1. Packages
  2. Azure Classic
  3. API Docs
  4. eventgrid
  5. Namespace

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

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",
    },
});
Copy
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",
    })
Copy
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
	})
}
Copy
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" },
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. NamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. NamespaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
                },
            },
        },
    },
});
Copy
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"),
				},
			},
		},
	},
})
Copy
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());
Copy
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",
        }],
    }])
Copy
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",
        }],
    }],
});
Copy
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
Copy

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:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
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 1 and 40.
Identity NamespaceIdentity
An identity block as defined below.
InboundIpRules List<NamespaceInboundIpRule>
One or more inbound_ip_rule blocks as defined below.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
PublicNetworkAccess string
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 to Standard.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
TopicSpacesConfigurations Changes to this property will trigger replacement. List<NamespaceTopicSpacesConfiguration>
A topic_spaces_configuration block as defined below.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
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 1 and 40.
Identity NamespaceIdentityArgs
An identity block as defined below.
InboundIpRules []NamespaceInboundIpRuleArgs
One or more inbound_ip_rule blocks as defined below.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
PublicNetworkAccess string
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 to Standard.
Tags map[string]string
A mapping of tags to assign to the resource.
TopicSpacesConfigurations Changes to this property will trigger replacement. []NamespaceTopicSpacesConfigurationArgs
A topic_spaces_configuration block as defined below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
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 1 and 40.
identity NamespaceIdentity
An identity block as defined below.
inboundIpRules List<NamespaceInboundIpRule>
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
publicNetworkAccess String
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 to Standard.
tags Map<String,String>
A mapping of tags to assign to the resource.
topicSpacesConfigurations Changes to this property will trigger replacement. List<NamespaceTopicSpacesConfiguration>
A topic_spaces_configuration block as defined below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
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 1 and 40.
identity NamespaceIdentity
An identity block as defined below.
inboundIpRules NamespaceInboundIpRule[]
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
publicNetworkAccess string
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 to Standard.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
topicSpacesConfigurations Changes to this property will trigger replacement. NamespaceTopicSpacesConfiguration[]
A topic_spaces_configuration block as defined below.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
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 1 and 40.
identity NamespaceIdentityArgs
An identity block as defined below.
inbound_ip_rules Sequence[NamespaceInboundIpRuleArgs]
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. str
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
public_network_access str
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 to Standard.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
topic_spaces_configurations Changes to this property will trigger replacement. Sequence[NamespaceTopicSpacesConfigurationArgs]
A topic_spaces_configuration block as defined below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
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 1 and 40.
identity Property Map
An identity block as defined below.
inboundIpRules List<Property Map>
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
publicNetworkAccess String
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 to Standard.
tags Map<String>
A mapping of tags to assign to the resource.
topicSpacesConfigurations Changes to this property will trigger replacement. List<Property Map>
A topic_spaces_configuration block 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) -> Namespace
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Capacity int
Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1 and 40.
Identity NamespaceIdentity
An identity block as defined below.
InboundIpRules List<NamespaceInboundIpRule>
One or more inbound_ip_rule blocks as defined below.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
PublicNetworkAccess string
Whether or not public network access is allowed for this server. Defaults to Enabled.
ResourceGroupName Changes to this property will trigger replacement. string
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 to Standard.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
TopicSpacesConfigurations Changes to this property will trigger replacement. List<NamespaceTopicSpacesConfiguration>
A topic_spaces_configuration block as defined below.
Capacity int
Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1 and 40.
Identity NamespaceIdentityArgs
An identity block as defined below.
InboundIpRules []NamespaceInboundIpRuleArgs
One or more inbound_ip_rule blocks as defined below.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
PublicNetworkAccess string
Whether or not public network access is allowed for this server. Defaults to Enabled.
ResourceGroupName Changes to this property will trigger replacement. string
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 to Standard.
Tags map[string]string
A mapping of tags to assign to the resource.
TopicSpacesConfigurations Changes to this property will trigger replacement. []NamespaceTopicSpacesConfigurationArgs
A topic_spaces_configuration block as defined below.
capacity Integer
Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1 and 40.
identity NamespaceIdentity
An identity block as defined below.
inboundIpRules List<NamespaceInboundIpRule>
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
publicNetworkAccess String
Whether or not public network access is allowed for this server. Defaults to Enabled.
resourceGroupName Changes to this property will trigger replacement. String
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 to Standard.
tags Map<String,String>
A mapping of tags to assign to the resource.
topicSpacesConfigurations Changes to this property will trigger replacement. List<NamespaceTopicSpacesConfiguration>
A topic_spaces_configuration block as defined below.
capacity number
Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1 and 40.
identity NamespaceIdentity
An identity block as defined below.
inboundIpRules NamespaceInboundIpRule[]
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
publicNetworkAccess string
Whether or not public network access is allowed for this server. Defaults to Enabled.
resourceGroupName Changes to this property will trigger replacement. string
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 to Standard.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
topicSpacesConfigurations Changes to this property will trigger replacement. NamespaceTopicSpacesConfiguration[]
A topic_spaces_configuration block as defined below.
capacity int
Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1 and 40.
identity NamespaceIdentityArgs
An identity block as defined below.
inbound_ip_rules Sequence[NamespaceInboundIpRuleArgs]
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. str
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
public_network_access str
Whether or not public network access is allowed for this server. Defaults to Enabled.
resource_group_name Changes to this property will trigger replacement. str
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 to Standard.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
topic_spaces_configurations Changes to this property will trigger replacement. Sequence[NamespaceTopicSpacesConfigurationArgs]
A topic_spaces_configuration block as defined below.
capacity Number
Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between 1 and 40.
identity Property Map
An identity block as defined below.
inboundIpRules List<Property Map>
One or more inbound_ip_rule blocks as defined below.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created.
publicNetworkAccess String
Whether or not public network access is allowed for this server. Defaults to Enabled.
resourceGroupName Changes to this property will trigger replacement. String
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 to Standard.
tags Map<String>
A mapping of tags to assign to the resource.
topicSpacesConfigurations Changes to this property will trigger replacement. List<Property Map>
A topic_spaces_configuration block as defined below.

Supporting Types

NamespaceIdentity
, NamespaceIdentityArgs

Type This property is required. 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 type is set to UserAssigned

PrincipalId string
TenantId string
Type This property is required. 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 type is set to UserAssigned

PrincipalId string
TenantId string
type This property is required. 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 type is set to UserAssigned

principalId String
tenantId String
type This property is required. 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 type is set to UserAssigned

principalId string
tenantId string
type This property is required. 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 type is set to UserAssigned

principal_id str
tenant_id str
type This property is required. 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 type is set to UserAssigned

principalId String
tenantId String

NamespaceInboundIpRule
, NamespaceInboundIpRuleArgs

IpMask This property is required. string
The IP mask (CIDR) to match on.
Action string
The action to take when the rule is matched. Possible values are Allow. Defaults to Allow.
IpMask This property is required. string
The IP mask (CIDR) to match on.
Action string
The action to take when the rule is matched. Possible values are Allow. Defaults to Allow.
ipMask This property is required. String
The IP mask (CIDR) to match on.
action String
The action to take when the rule is matched. Possible values are Allow. Defaults to Allow.
ipMask This property is required. string
The IP mask (CIDR) to match on.
action string
The action to take when the rule is matched. Possible values are Allow. Defaults to Allow.
ip_mask This property is required. str
The IP mask (CIDR) to match on.
action str
The action to take when the rule is matched. Possible values are Allow. Defaults to Allow.
ipMask This property is required. String
The IP mask (CIDR) to match on.
action String
The action to take when the rule is matched. Possible values are Allow. Defaults to Allow.

NamespaceTopicSpacesConfiguration
, NamespaceTopicSpacesConfigurationArgs

AlternativeAuthenticationNameSources List<string>
Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns, ClientCertificateEmail, ClientCertificateIp, ClientCertificateSubject and ClientCertificateUri.
DynamicRoutingEnrichments List<NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment>
One or more dynamic_routing_enrichment blocks as defined below.
MaximumClientSessionsPerAuthenticationName int
Specifies the maximum number of client sessions per authentication name. Valid values can be between 1 and 100.
MaximumSessionExpiryInHours int
Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1 and 8.
RouteTopicId string
Specifies the Event Grid topic resource ID to route messages to.
StaticRoutingEnrichments List<NamespaceTopicSpacesConfigurationStaticRoutingEnrichment>
One or more static_routing_enrichment blocks as defined below.
AlternativeAuthenticationNameSources []string
Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns, ClientCertificateEmail, ClientCertificateIp, ClientCertificateSubject and ClientCertificateUri.
DynamicRoutingEnrichments []NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment
One or more dynamic_routing_enrichment blocks as defined below.
MaximumClientSessionsPerAuthenticationName int
Specifies the maximum number of client sessions per authentication name. Valid values can be between 1 and 100.
MaximumSessionExpiryInHours int
Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1 and 8.
RouteTopicId string
Specifies the Event Grid topic resource ID to route messages to.
StaticRoutingEnrichments []NamespaceTopicSpacesConfigurationStaticRoutingEnrichment
One or more static_routing_enrichment blocks as defined below.
alternativeAuthenticationNameSources List<String>
Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns, ClientCertificateEmail, ClientCertificateIp, ClientCertificateSubject and ClientCertificateUri.
dynamicRoutingEnrichments List<NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment>
One or more dynamic_routing_enrichment blocks as defined below.
maximumClientSessionsPerAuthenticationName Integer
Specifies the maximum number of client sessions per authentication name. Valid values can be between 1 and 100.
maximumSessionExpiryInHours Integer
Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1 and 8.
routeTopicId String
Specifies the Event Grid topic resource ID to route messages to.
staticRoutingEnrichments List<NamespaceTopicSpacesConfigurationStaticRoutingEnrichment>
One or more static_routing_enrichment blocks as defined below.
alternativeAuthenticationNameSources string[]
Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns, ClientCertificateEmail, ClientCertificateIp, ClientCertificateSubject and ClientCertificateUri.
dynamicRoutingEnrichments NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment[]
One or more dynamic_routing_enrichment blocks as defined below.
maximumClientSessionsPerAuthenticationName number
Specifies the maximum number of client sessions per authentication name. Valid values can be between 1 and 100.
maximumSessionExpiryInHours number
Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1 and 8.
routeTopicId string
Specifies the Event Grid topic resource ID to route messages to.
staticRoutingEnrichments NamespaceTopicSpacesConfigurationStaticRoutingEnrichment[]
One or more static_routing_enrichment blocks as defined below.
alternative_authentication_name_sources Sequence[str]
Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns, ClientCertificateEmail, ClientCertificateIp, ClientCertificateSubject and ClientCertificateUri.
dynamic_routing_enrichments Sequence[NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment]
One or more dynamic_routing_enrichment blocks as defined below.
maximum_client_sessions_per_authentication_name int
Specifies the maximum number of client sessions per authentication name. Valid values can be between 1 and 100.
maximum_session_expiry_in_hours int
Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1 and 8.
route_topic_id str
Specifies the Event Grid topic resource ID to route messages to.
static_routing_enrichments Sequence[NamespaceTopicSpacesConfigurationStaticRoutingEnrichment]
One or more static_routing_enrichment blocks as defined below.
alternativeAuthenticationNameSources List<String>
Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are ClientCertificateDns, ClientCertificateEmail, ClientCertificateIp, ClientCertificateSubject and ClientCertificateUri.
dynamicRoutingEnrichments List<Property Map>
One or more dynamic_routing_enrichment blocks as defined below.
maximumClientSessionsPerAuthenticationName Number
Specifies the maximum number of client sessions per authentication name. Valid values can be between 1 and 100.
maximumSessionExpiryInHours Number
Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between 1 and 8.
routeTopicId String
Specifies the Event Grid topic resource ID to route messages to.
staticRoutingEnrichments List<Property Map>
One or more static_routing_enrichment blocks as defined below.

NamespaceTopicSpacesConfigurationDynamicRoutingEnrichment
, NamespaceTopicSpacesConfigurationDynamicRoutingEnrichmentArgs

Key This property is required. string
The enrichment key.
Value This property is required. string
The enrichment value.
Key This property is required. string
The enrichment key.
Value This property is required. string
The enrichment value.
key This property is required. String
The enrichment key.
value This property is required. String
The enrichment value.
key This property is required. string
The enrichment key.
value This property is required. string
The enrichment value.
key This property is required. str
The enrichment key.
value This property is required. str
The enrichment value.
key This property is required. String
The enrichment key.
value This property is required. String
The enrichment value.

NamespaceTopicSpacesConfigurationStaticRoutingEnrichment
, NamespaceTopicSpacesConfigurationStaticRoutingEnrichmentArgs

Key This property is required. string
The enrichment key.
Value This property is required. string
The enrichment value.
Key This property is required. string
The enrichment key.
Value This property is required. string
The enrichment value.
key This property is required. String
The enrichment key.
value This property is required. String
The enrichment value.
key This property is required. string
The enrichment key.
value This property is required. string
The enrichment value.
key This property is required. str
The enrichment key.
value This property is required. str
The enrichment value.
key This property is required. String
The enrichment key.
value This property is required. String
The enrichment value.

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
Copy

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 azurerm Terraform Provider.