import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an EventHub 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 exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("example", { * name: "example-namespace", * location: example.location, * resourceGroupName: example.name, * sku: "Standard", * capacity: 2, * tags: { * environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.EventHub` - 2024-01-01 * * ## Import * * EventHub Namespaces can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventhub/eventHubNamespace:EventHubNamespace namespace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1 * ``` */ export declare class EventHubNamespace extends pulumi.CustomResource { /** * Get an existing EventHubNamespace 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?: EventHubNamespaceState, opts?: pulumi.CustomResourceOptions): EventHubNamespace; /** * Returns true if the given object is an instance of EventHubNamespace. 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 EventHubNamespace; /** * Is Auto Inflate enabled for the EventHub Namespace? */ readonly autoInflateEnabled: pulumi.Output; /** * Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`. */ readonly capacity: pulumi.Output; /** * Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created. */ readonly dedicatedClusterId: pulumi.Output; /** * The primary connection string for the authorization rule `RootManageSharedAccessKey`. */ readonly defaultPrimaryConnectionString: pulumi.Output; /** * The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled. */ readonly defaultPrimaryConnectionStringAlias: pulumi.Output; /** * The primary access key for the authorization rule `RootManageSharedAccessKey`. */ readonly defaultPrimaryKey: pulumi.Output; /** * The secondary connection string for the authorization rule `RootManageSharedAccessKey`. */ readonly defaultSecondaryConnectionString: pulumi.Output; /** * The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled. */ readonly defaultSecondaryConnectionStringAlias: pulumi.Output; /** * The secondary access key for the authorization rule `RootManageSharedAccessKey`. */ readonly defaultSecondaryKey: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`. */ readonly localAuthenticationEnabled: pulumi.Output; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `40`. */ readonly maximumThroughputUnits: pulumi.Output; /** * The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`. * * > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. */ readonly minimumTlsVersion: pulumi.Output; /** * Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A `networkRulesets` block as defined below. */ readonly networkRulesets: pulumi.Output; /** * Is public network access enabled for the EventHub Namespace? Defaults to `true`. */ readonly publicNetworkAccessEnabled: pulumi.Output; /** * The name of the resource group in which to create the namespace. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource. */ readonly sku: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a EventHubNamespace 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: EventHubNamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EventHubNamespace resources. */ export interface EventHubNamespaceState { /** * Is Auto Inflate enabled for the EventHub Namespace? */ autoInflateEnabled?: pulumi.Input; /** * Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`. */ capacity?: pulumi.Input; /** * Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created. */ dedicatedClusterId?: pulumi.Input; /** * The primary connection string for the authorization rule `RootManageSharedAccessKey`. */ defaultPrimaryConnectionString?: pulumi.Input; /** * The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled. */ defaultPrimaryConnectionStringAlias?: pulumi.Input; /** * The primary access key for the authorization rule `RootManageSharedAccessKey`. */ defaultPrimaryKey?: pulumi.Input; /** * The secondary connection string for the authorization rule `RootManageSharedAccessKey`. */ defaultSecondaryConnectionString?: pulumi.Input; /** * The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled. */ defaultSecondaryConnectionStringAlias?: pulumi.Input; /** * The secondary access key for the authorization rule `RootManageSharedAccessKey`. */ defaultSecondaryKey?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`. */ localAuthenticationEnabled?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `40`. */ maximumThroughputUnits?: pulumi.Input; /** * The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`. * * > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. */ minimumTlsVersion?: pulumi.Input; /** * Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `networkRulesets` block as defined below. */ networkRulesets?: pulumi.Input; /** * Is public network access enabled for the EventHub Namespace? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The name of the resource group in which to create the namespace. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource. */ sku?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a EventHubNamespace resource. */ export interface EventHubNamespaceArgs { /** * Is Auto Inflate enabled for the EventHub Namespace? */ autoInflateEnabled?: pulumi.Input; /** * Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`. */ capacity?: pulumi.Input; /** * Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created. */ dedicatedClusterId?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`. */ localAuthenticationEnabled?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `40`. */ maximumThroughputUnits?: pulumi.Input; /** * The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`. * * > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. */ minimumTlsVersion?: pulumi.Input; /** * Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `networkRulesets` block as defined below. */ networkRulesets?: pulumi.Input; /** * Is public network access enabled for the EventHub Namespace? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The name of the resource group in which to create the namespace. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource. */ sku: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }