PartnerNamespaceArgs

data class PartnerNamespaceArgs(val disableLocalAuth: Output<Boolean>? = null, val inboundIpRules: Output<List<InboundIpRuleArgs>>? = null, val location: Output<String>? = null, val minimumTlsVersionAllowed: Output<Either<String, TlsVersion>>? = null, val partnerNamespaceName: Output<String>? = null, val partnerRegistrationFullyQualifiedId: Output<String>? = null, val partnerTopicRoutingMode: Output<Either<String, PartnerTopicRoutingMode>>? = null, val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PartnerNamespaceArgs>

EventGrid Partner Namespace. Uses Azure REST API version 2025-02-15. In version 2.x of the Azure Native provider, it used API version 2022-06-15. Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventgrid [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

PartnerNamespaces_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var partnerNamespace = new AzureNative.EventGrid.PartnerNamespace("partnerNamespace", new()
{
Location = "westus",
PartnerNamespaceName = "examplePartnerNamespaceName1",
PartnerRegistrationFullyQualifiedId = "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1",
ResourceGroupName = "examplerg",
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventgrid.NewPartnerNamespace(ctx, "partnerNamespace", &eventgrid.PartnerNamespaceArgs{
Location: pulumi.String("westus"),
PartnerNamespaceName: pulumi.String("examplePartnerNamespaceName1"),
PartnerRegistrationFullyQualifiedId: pulumi.String("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1"),
ResourceGroupName: pulumi.String("examplerg"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventgrid.PartnerNamespace;
import com.pulumi.azurenative.eventgrid.PartnerNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var partnerNamespace = new PartnerNamespace("partnerNamespace", PartnerNamespaceArgs.builder()
.location("westus")
.partnerNamespaceName("examplePartnerNamespaceName1")
.partnerRegistrationFullyQualifiedId("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1")
.resourceGroupName("examplerg")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:eventgrid:PartnerNamespace examplePartnerNamespaceName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}

Constructors

Link copied to clipboard
constructor(disableLocalAuth: Output<Boolean>? = null, inboundIpRules: Output<List<InboundIpRuleArgs>>? = null, location: Output<String>? = null, minimumTlsVersionAllowed: Output<Either<String, TlsVersion>>? = null, partnerNamespaceName: Output<String>? = null, partnerRegistrationFullyQualifiedId: Output<String>? = null, partnerTopicRoutingMode: Output<Either<String, PartnerTopicRoutingMode>>? = null, publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val disableLocalAuth: Output<Boolean>? = null

This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the partner namespace.

Link copied to clipboard
val inboundIpRules: Output<List<InboundIpRuleArgs>>? = null

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

Link copied to clipboard
val location: Output<String>? = null

Location of the resource.

Link copied to clipboard
val minimumTlsVersionAllowed: Output<Either<String, TlsVersion>>? = null

Minimum TLS version of the publisher allowed to publish to this partner namespace

Link copied to clipboard
val partnerNamespaceName: Output<String>? = null

Name of the partner namespace.

Link copied to clipboard

The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

Link copied to clipboard

This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.

Link copied to clipboard
val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the user's subscription.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags of the resource.

Functions

Link copied to clipboard
open override fun toJava(): PartnerNamespaceArgs