We recommend using Azure Native.
azure.eventgrid.Namespace
Explore with Pulumi AI
Manages an EventGrid Namespace
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleNamespace = new azure.eventgrid.Namespace("example", {
    name: "my-eventgrid-namespace",
    location: example.location,
    resourceGroupName: example.name,
    tags: {
        environment: "Production",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_namespace = azure.eventgrid.Namespace("example",
    name="my-eventgrid-namespace",
    location=example.location,
    resource_group_name=example.name,
    tags={
        "environment": "Production",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = eventgrid.NewNamespace(ctx, "example", &eventgrid.NamespaceArgs{
			Name:              pulumi.String("my-eventgrid-namespace"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleNamespace = new Azure.EventGrid.Namespace("example", new()
    {
        Name = "my-eventgrid-namespace",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Tags = 
        {
            { "environment", "Production" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.eventgrid.Namespace;
import com.pulumi.azure.eventgrid.NamespaceArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
            .name("my-eventgrid-namespace")
            .location(example.location())
            .resourceGroupName(example.name())
            .tags(Map.of("environment", "Production"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleNamespace:
    type: azure:eventgrid:Namespace
    name: example
    properties:
      name: my-eventgrid-namespace
      location: ${example.location}
      resourceGroupName: ${example.name}
      tags:
        environment: Production
Create Namespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);@overload
def Namespace(resource_name: str,
              args: NamespaceArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def Namespace(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              resource_group_name: Optional[str] = None,
              capacity: Optional[int] = None,
              identity: Optional[NamespaceIdentityArgs] = None,
              inbound_ip_rules: Optional[Sequence[NamespaceInboundIpRuleArgs]] = None,
              location: Optional[str] = None,
              name: Optional[str] = None,
              public_network_access: Optional[str] = None,
              sku: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              topic_spaces_configurations: Optional[Sequence[NamespaceTopicSpacesConfigurationArgs]] = None)func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
public Namespace(String name, NamespaceArgs args)
public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
type: azure:eventgrid:Namespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var namespaceResource = new Azure.EventGrid.Namespace("namespaceResource", new()
{
    ResourceGroupName = "string",
    Capacity = 0,
    Identity = new Azure.EventGrid.Inputs.NamespaceIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    InboundIpRules = new[]
    {
        new Azure.EventGrid.Inputs.NamespaceInboundIpRuleArgs
        {
            IpMask = "string",
            Action = "string",
        },
    },
    Location = "string",
    Name = "string",
    PublicNetworkAccess = "string",
    Sku = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TopicSpacesConfigurations = new[]
    {
        new Azure.EventGrid.Inputs.NamespaceTopicSpacesConfigurationArgs
        {
            AlternativeAuthenticationNameSources = new[]
            {
                "string",
            },
            DynamicRoutingEnrichments = new[]
            {
                new Azure.EventGrid.Inputs.NamespaceTopicSpacesConfigurationDynamicRoutingEnrichmentArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            MaximumClientSessionsPerAuthenticationName = 0,
            MaximumSessionExpiryInHours = 0,
            RouteTopicId = "string",
            StaticRoutingEnrichments = new[]
            {
                new Azure.EventGrid.Inputs.NamespaceTopicSpacesConfigurationStaticRoutingEnrichmentArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
        },
    },
});
example, err := eventgrid.NewNamespace(ctx, "namespaceResource", &eventgrid.NamespaceArgs{
	ResourceGroupName: pulumi.String("string"),
	Capacity:          pulumi.Int(0),
	Identity: &eventgrid.NamespaceIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	InboundIpRules: eventgrid.NamespaceInboundIpRuleArray{
		&eventgrid.NamespaceInboundIpRuleArgs{
			IpMask: pulumi.String("string"),
			Action: pulumi.String("string"),
		},
	},
	Location:            pulumi.String("string"),
	Name:                pulumi.String("string"),
	PublicNetworkAccess: pulumi.String("string"),
	Sku:                 pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TopicSpacesConfigurations: eventgrid.NamespaceTopicSpacesConfigurationArray{
		&eventgrid.NamespaceTopicSpacesConfigurationArgs{
			AlternativeAuthenticationNameSources: pulumi.StringArray{
				pulumi.String("string"),
			},
			DynamicRoutingEnrichments: eventgrid.NamespaceTopicSpacesConfigurationDynamicRoutingEnrichmentArray{
				&eventgrid.NamespaceTopicSpacesConfigurationDynamicRoutingEnrichmentArgs{
					Key:   pulumi.String("string"),
					Value: pulumi.String("string"),
				},
			},
			MaximumClientSessionsPerAuthenticationName: pulumi.Int(0),
			MaximumSessionExpiryInHours:                pulumi.Int(0),
			RouteTopicId:                               pulumi.String("string"),
			StaticRoutingEnrichments: eventgrid.NamespaceTopicSpacesConfigurationStaticRoutingEnrichmentArray{
				&eventgrid.NamespaceTopicSpacesConfigurationStaticRoutingEnrichmentArgs{
					Key:   pulumi.String("string"),
					Value: pulumi.String("string"),
				},
			},
		},
	},
})
var namespaceResource = new Namespace("namespaceResource", NamespaceArgs.builder()
    .resourceGroupName("string")
    .capacity(0)
    .identity(NamespaceIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .inboundIpRules(NamespaceInboundIpRuleArgs.builder()
        .ipMask("string")
        .action("string")
        .build())
    .location("string")
    .name("string")
    .publicNetworkAccess("string")
    .sku("string")
    .tags(Map.of("string", "string"))
    .topicSpacesConfigurations(NamespaceTopicSpacesConfigurationArgs.builder()
        .alternativeAuthenticationNameSources("string")
        .dynamicRoutingEnrichments(NamespaceTopicSpacesConfigurationDynamicRoutingEnrichmentArgs.builder()
            .key("string")
            .value("string")
            .build())
        .maximumClientSessionsPerAuthenticationName(0)
        .maximumSessionExpiryInHours(0)
        .routeTopicId("string")
        .staticRoutingEnrichments(NamespaceTopicSpacesConfigurationStaticRoutingEnrichmentArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build())
    .build());
namespace_resource = azure.eventgrid.Namespace("namespaceResource",
    resource_group_name="string",
    capacity=0,
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    inbound_ip_rules=[{
        "ip_mask": "string",
        "action": "string",
    }],
    location="string",
    name="string",
    public_network_access="string",
    sku="string",
    tags={
        "string": "string",
    },
    topic_spaces_configurations=[{
        "alternative_authentication_name_sources": ["string"],
        "dynamic_routing_enrichments": [{
            "key": "string",
            "value": "string",
        }],
        "maximum_client_sessions_per_authentication_name": 0,
        "maximum_session_expiry_in_hours": 0,
        "route_topic_id": "string",
        "static_routing_enrichments": [{
            "key": "string",
            "value": "string",
        }],
    }])
const namespaceResource = new azure.eventgrid.Namespace("namespaceResource", {
    resourceGroupName: "string",
    capacity: 0,
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    inboundIpRules: [{
        ipMask: "string",
        action: "string",
    }],
    location: "string",
    name: "string",
    publicNetworkAccess: "string",
    sku: "string",
    tags: {
        string: "string",
    },
    topicSpacesConfigurations: [{
        alternativeAuthenticationNameSources: ["string"],
        dynamicRoutingEnrichments: [{
            key: "string",
            value: "string",
        }],
        maximumClientSessionsPerAuthenticationName: 0,
        maximumSessionExpiryInHours: 0,
        routeTopicId: "string",
        staticRoutingEnrichments: [{
            key: "string",
            value: "string",
        }],
    }],
});
type: azure:eventgrid:Namespace
properties:
    capacity: 0
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    inboundIpRules:
        - action: string
          ipMask: string
    location: string
    name: string
    publicNetworkAccess: string
    resourceGroupName: string
    sku: string
    tags:
        string: string
    topicSpacesConfigurations:
        - alternativeAuthenticationNameSources:
            - string
          dynamicRoutingEnrichments:
            - key: string
              value: string
          maximumClientSessionsPerAuthenticationName: 0
          maximumSessionExpiryInHours: 0
          routeTopicId: string
          staticRoutingEnrichments:
            - key: string
              value: string
Namespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Namespace resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- Capacity int
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- Identity
NamespaceIdentity 
- An identityblock as defined below.
- InboundIp List<NamespaceRules Inbound Ip Rule> 
- One or more inbound_ip_ruleblocks as defined below.
- Location string
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- PublicNetwork stringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- Sku string
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TopicSpaces List<NamespaceConfigurations Topic Spaces Configuration> 
- A topic_spaces_configurationblock as defined below.
- ResourceGroup stringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- Capacity int
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- Identity
NamespaceIdentity Args 
- An identityblock as defined below.
- InboundIp []NamespaceRules Inbound Ip Rule Args 
- One or more inbound_ip_ruleblocks as defined below.
- Location string
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- PublicNetwork stringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- Sku string
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- map[string]string
- A mapping of tags to assign to the resource.
- TopicSpaces []NamespaceConfigurations Topic Spaces Configuration Args 
- A topic_spaces_configurationblock as defined below.
- resourceGroup StringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- capacity Integer
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- inboundIp List<NamespaceRules Inbound Ip Rule> 
- One or more inbound_ip_ruleblocks as defined below.
- location String
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- publicNetwork StringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- sku String
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Map<String,String>
- A mapping of tags to assign to the resource.
- topicSpaces List<NamespaceConfigurations Topic Spaces Configuration> 
- A topic_spaces_configurationblock as defined below.
- resourceGroup stringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- capacity number
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- inboundIp NamespaceRules Inbound Ip Rule[] 
- One or more inbound_ip_ruleblocks as defined below.
- location string
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- publicNetwork stringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- sku string
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- topicSpaces NamespaceConfigurations Topic Spaces Configuration[] 
- A topic_spaces_configurationblock as defined below.
- resource_group_ strname 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- capacity int
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity
NamespaceIdentity Args 
- An identityblock as defined below.
- inbound_ip_ Sequence[Namespacerules Inbound Ip Rule Args] 
- One or more inbound_ip_ruleblocks as defined below.
- location str
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- public_network_ straccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- sku str
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- topic_spaces_ Sequence[Namespaceconfigurations Topic Spaces Configuration Args] 
- A topic_spaces_configurationblock as defined below.
- resourceGroup StringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- capacity Number
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity Property Map
- An identityblock as defined below.
- inboundIp List<Property Map>Rules 
- One or more inbound_ip_ruleblocks as defined below.
- location String
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- publicNetwork StringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- sku String
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Map<String>
- A mapping of tags to assign to the resource.
- topicSpaces List<Property Map>Configurations 
- A topic_spaces_configurationblock as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Namespace Resource
Get an existing Namespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceState, opts?: CustomResourceOptions): Namespace@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        capacity: Optional[int] = None,
        identity: Optional[NamespaceIdentityArgs] = None,
        inbound_ip_rules: Optional[Sequence[NamespaceInboundIpRuleArgs]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        public_network_access: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        sku: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        topic_spaces_configurations: Optional[Sequence[NamespaceTopicSpacesConfigurationArgs]] = None) -> Namespacefunc GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)public static Namespace get(String name, Output<String> id, NamespaceState state, CustomResourceOptions options)resources:  _:    type: azure:eventgrid:Namespace    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Capacity int
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- Identity
NamespaceIdentity 
- An identityblock as defined below.
- InboundIp List<NamespaceRules Inbound Ip Rule> 
- One or more inbound_ip_ruleblocks as defined below.
- Location string
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- PublicNetwork stringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- ResourceGroup stringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- Sku string
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TopicSpaces List<NamespaceConfigurations Topic Spaces Configuration> 
- A topic_spaces_configurationblock as defined below.
- Capacity int
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- Identity
NamespaceIdentity Args 
- An identityblock as defined below.
- InboundIp []NamespaceRules Inbound Ip Rule Args 
- One or more inbound_ip_ruleblocks as defined below.
- Location string
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- PublicNetwork stringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- ResourceGroup stringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- Sku string
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- map[string]string
- A mapping of tags to assign to the resource.
- TopicSpaces []NamespaceConfigurations Topic Spaces Configuration Args 
- A topic_spaces_configurationblock as defined below.
- capacity Integer
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- inboundIp List<NamespaceRules Inbound Ip Rule> 
- One or more inbound_ip_ruleblocks as defined below.
- location String
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- publicNetwork StringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- resourceGroup StringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- sku String
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Map<String,String>
- A mapping of tags to assign to the resource.
- topicSpaces List<NamespaceConfigurations Topic Spaces Configuration> 
- A topic_spaces_configurationblock as defined below.
- capacity number
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- inboundIp NamespaceRules Inbound Ip Rule[] 
- One or more inbound_ip_ruleblocks as defined below.
- location string
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- publicNetwork stringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- resourceGroup stringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- sku string
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- topicSpaces NamespaceConfigurations Topic Spaces Configuration[] 
- A topic_spaces_configurationblock as defined below.
- capacity int
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity
NamespaceIdentity Args 
- An identityblock as defined below.
- inbound_ip_ Sequence[Namespacerules Inbound Ip Rule Args] 
- One or more inbound_ip_ruleblocks as defined below.
- location str
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- public_network_ straccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- resource_group_ strname 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- sku str
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- topic_spaces_ Sequence[Namespaceconfigurations Topic Spaces Configuration Args] 
- A topic_spaces_configurationblock as defined below.
- capacity Number
- Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1and40.
- identity Property Map
- An identityblock as defined below.
- inboundIp List<Property Map>Rules 
- One or more inbound_ip_ruleblocks as defined below.
- location String
- Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
- publicNetwork StringAccess 
- Whether or not public network access is allowed for this server. Defaults to Enabled.
- resourceGroup StringName 
- The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created.
- sku String
- Defines which tier to use. The only possible value is Standard. Defaults toStandard.
- Map<String>
- A mapping of tags to assign to the resource.
- topicSpaces List<Property Map>Configurations 
- A topic_spaces_configurationblock as defined below.
Supporting Types
NamespaceIdentity, NamespaceIdentityArgs    
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are SystemAssigned,UserAssigned.
- IdentityIds List<string>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. - NOTE: This is required when - typeis set to- UserAssigned
- PrincipalId string
- TenantId string
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are SystemAssigned,UserAssigned.
- IdentityIds []string
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. - NOTE: This is required when - typeis set to- UserAssigned
- PrincipalId string
- TenantId string
- type String
- Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are SystemAssigned,UserAssigned.
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. - NOTE: This is required when - typeis set to- UserAssigned
- principalId String
- tenantId String
- type string
- Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are SystemAssigned,UserAssigned.
- identityIds string[]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. - NOTE: This is required when - typeis set to- UserAssigned
- principalId string
- tenantId string
- type str
- Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are SystemAssigned,UserAssigned.
- identity_ids Sequence[str]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. - NOTE: This is required when - typeis set to- UserAssigned
- principal_id str
- tenant_id str
- type String
- Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are SystemAssigned,UserAssigned.
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. - NOTE: This is required when - typeis set to- UserAssigned
- principalId String
- tenantId String
NamespaceInboundIpRule, NamespaceInboundIpRuleArgs        
NamespaceTopicSpacesConfiguration, NamespaceTopicSpacesConfigurationArgs        
- AlternativeAuthentication List<string>Name Sources 
- Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns,ClientCertificateEmail,ClientCertificateIp,ClientCertificateSubjectandClientCertificateUri.
- DynamicRouting List<NamespaceEnrichments Topic Spaces Configuration Dynamic Routing Enrichment> 
- One or more dynamic_routing_enrichmentblocks as defined below.
- MaximumClient intSessions Per Authentication Name 
- Specifies the maximum number of client sessions per authentication name. Valid values can be between 1and100.
- MaximumSession intExpiry In Hours 
- Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1and8.
- RouteTopic stringId 
- Specifies the Event Grid topic resource ID to route messages to.
- StaticRouting List<NamespaceEnrichments Topic Spaces Configuration Static Routing Enrichment> 
- One or more static_routing_enrichmentblocks as defined below.
- AlternativeAuthentication []stringName Sources 
- Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns,ClientCertificateEmail,ClientCertificateIp,ClientCertificateSubjectandClientCertificateUri.
- DynamicRouting []NamespaceEnrichments Topic Spaces Configuration Dynamic Routing Enrichment 
- One or more dynamic_routing_enrichmentblocks as defined below.
- MaximumClient intSessions Per Authentication Name 
- Specifies the maximum number of client sessions per authentication name. Valid values can be between 1and100.
- MaximumSession intExpiry In Hours 
- Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1and8.
- RouteTopic stringId 
- Specifies the Event Grid topic resource ID to route messages to.
- StaticRouting []NamespaceEnrichments Topic Spaces Configuration Static Routing Enrichment 
- One or more static_routing_enrichmentblocks as defined below.
- alternativeAuthentication List<String>Name Sources 
- Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns,ClientCertificateEmail,ClientCertificateIp,ClientCertificateSubjectandClientCertificateUri.
- dynamicRouting List<NamespaceEnrichments Topic Spaces Configuration Dynamic Routing Enrichment> 
- One or more dynamic_routing_enrichmentblocks as defined below.
- maximumClient IntegerSessions Per Authentication Name 
- Specifies the maximum number of client sessions per authentication name. Valid values can be between 1and100.
- maximumSession IntegerExpiry In Hours 
- Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1and8.
- routeTopic StringId 
- Specifies the Event Grid topic resource ID to route messages to.
- staticRouting List<NamespaceEnrichments Topic Spaces Configuration Static Routing Enrichment> 
- One or more static_routing_enrichmentblocks as defined below.
- alternativeAuthentication string[]Name Sources 
- Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns,ClientCertificateEmail,ClientCertificateIp,ClientCertificateSubjectandClientCertificateUri.
- dynamicRouting NamespaceEnrichments Topic Spaces Configuration Dynamic Routing Enrichment[] 
- One or more dynamic_routing_enrichmentblocks as defined below.
- maximumClient numberSessions Per Authentication Name 
- Specifies the maximum number of client sessions per authentication name. Valid values can be between 1and100.
- maximumSession numberExpiry In Hours 
- Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1and8.
- routeTopic stringId 
- Specifies the Event Grid topic resource ID to route messages to.
- staticRouting NamespaceEnrichments Topic Spaces Configuration Static Routing Enrichment[] 
- One or more static_routing_enrichmentblocks as defined below.
- alternative_authentication_ Sequence[str]name_ sources 
- Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns,ClientCertificateEmail,ClientCertificateIp,ClientCertificateSubjectandClientCertificateUri.
- dynamic_routing_ Sequence[Namespaceenrichments Topic Spaces Configuration Dynamic Routing Enrichment] 
- One or more dynamic_routing_enrichmentblocks as defined below.
- maximum_client_ intsessions_ per_ authentication_ name 
- Specifies the maximum number of client sessions per authentication name. Valid values can be between 1and100.
- maximum_session_ intexpiry_ in_ hours 
- Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1and8.
- route_topic_ strid 
- Specifies the Event Grid topic resource ID to route messages to.
- static_routing_ Sequence[Namespaceenrichments Topic Spaces Configuration Static Routing Enrichment] 
- One or more static_routing_enrichmentblocks as defined below.
- alternativeAuthentication List<String>Name Sources 
- Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns,ClientCertificateEmail,ClientCertificateIp,ClientCertificateSubjectandClientCertificateUri.
- dynamicRouting List<Property Map>Enrichments 
- One or more dynamic_routing_enrichmentblocks as defined below.
- maximumClient NumberSessions Per Authentication Name 
- Specifies the maximum number of client sessions per authentication name. Valid values can be between 1and100.
- maximumSession NumberExpiry In Hours 
- Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1and8.
- routeTopic StringId 
- Specifies the Event Grid topic resource ID to route messages to.
- staticRouting List<Property Map>Enrichments 
- One or more static_routing_enrichmentblocks as defined below.
NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment, NamespaceTopicSpacesConfigurationDynamicRoutingEnrichmentArgs              
NamespaceTopicSpacesConfigurationStaticRoutingEnrichment, NamespaceTopicSpacesConfigurationStaticRoutingEnrichmentArgs              
Import
EventGrid Namespace’s can be imported using the resource id, e.g.
$ pulumi import azure:eventgrid/namespace:Namespace namespace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/namespaces/namespace1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.