import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an EventGrid Namespace * * ## Example Usage * * ```typescript * 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", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2023-12-15-preview * * ## Import * * EventGrid Namespace's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventgrid/namespace:Namespace namespace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/namespaces/namespace1 * ``` */ export declare class Namespace extends pulumi.CustomResource { /** * Get an existing Namespace resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NamespaceState, opts?: pulumi.CustomResourceOptions): Namespace; /** * Returns true if the given object is an instance of Namespace. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Namespace; /** * Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between `1` and `40`. */ readonly capacity: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * One or more `inboundIpRule` blocks as defined below. */ readonly inboundIpRules: pulumi.Output; /** * Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Whether or not public network access is allowed for this server. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. */ readonly publicNetworkAccess: pulumi.Output; /** * The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Defines which tier to use. The only possible value is `Standard`. Defaults to `Standard`. */ readonly sku: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A `topicSpacesConfiguration` block as defined below. Changing this forces a new resource to be created. */ readonly topicSpacesConfigurations: pulumi.Output; /** * Create a Namespace resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Namespace resources. */ export interface NamespaceState { /** * Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between `1` and `40`. */ capacity?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * One or more `inboundIpRule` blocks as defined below. */ inboundIpRules?: pulumi.Input[]>; /** * Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether or not public network access is allowed for this server. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. */ publicNetworkAccess?: pulumi.Input; /** * The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * Defines which tier to use. The only possible value is `Standard`. Defaults to `Standard`. */ sku?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `topicSpacesConfiguration` block as defined below. Changing this forces a new resource to be created. */ topicSpacesConfigurations?: pulumi.Input[]>; } /** * The set of arguments for constructing a Namespace resource. */ export interface NamespaceArgs { /** * Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between `1` and `40`. */ capacity?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * One or more `inboundIpRule` blocks as defined below. */ inboundIpRules?: pulumi.Input[]>; /** * Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether or not public network access is allowed for this server. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. */ publicNetworkAccess?: pulumi.Input; /** * The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Defines which tier to use. The only possible value is `Standard`. Defaults to `Standard`. */ sku?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `topicSpacesConfiguration` block as defined below. Changing this forces a new resource to be created. */ topicSpacesConfigurations?: pulumi.Input[]>; }