import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a ServiceBus Namespace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "my-servicebus", * location: "West Europe", * }); * const exampleNamespace = new azure.servicebus.Namespace("example", { * name: "tfex-servicebus-namespace", * location: example.location, * resourceGroupName: example.name, * sku: "Standard", * tags: { * source: "example", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ServiceBus` - 2024-01-01 * * ## Import * * Service Bus Namespace can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventhub/namespace:Namespace example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceBus/namespaces/sbns1 * ``` * * @deprecated azure.eventhub.Namespace has been deprecated in favor of azure.servicebus.Namespace */ 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. When `sku` is `Premium`, capacity can be `1`, `2`, `4`, `8` or `16`. When `sku` is `Basic` or `Standard`, capacity can be `0` only. */ readonly capacity: pulumi.Output; /** * An `customerManagedKey` block as defined below. */ readonly customerManagedKey: pulumi.Output; /** * The primary connection string for the authorization rule `RootManageSharedAccessKey`. */ readonly defaultPrimaryConnectionString: 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 secondary access key for the authorization rule `RootManageSharedAccessKey`. */ readonly defaultSecondaryKey: pulumi.Output; /** * The URL to access the Service Bus Namespace. */ readonly endpoint: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to `true`. */ readonly localAuthEnabled: pulumi.Output; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The minimum supported TLS version for this Service Bus 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 Service Bus Namespace resource . Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * An `networkRuleSet` block as defined below. */ readonly networkRuleSet: pulumi.Output; /** * Specifies the number messaging partitions. Only valid when `sku` is `Premium` and the minimum number is `1`. Possible values include `0`, `1`, `2`, and `4`. Defaults to `0` for Standard, Basic namespace. Changing this forces a new resource to be created. * * > **Note:** It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. */ readonly premiumMessagingPartitions: pulumi.Output; /** * Is public network access enabled for the Service Bus Namespace? Defaults to `true`. */ readonly publicNetworkAccessEnabled: pulumi.Output; /** * The name of the resource group in which to Changing this forces a new resource to be created. * create the namespace. */ readonly resourceGroupName: pulumi.Output; /** * Defines which tier to use. Options are `Basic`, `Standard` or `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 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. */ /** @deprecated azure.eventhub.Namespace has been deprecated in favor of azure.servicebus.Namespace */ constructor(name: string, args: NamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Namespace resources. */ export interface NamespaceState { /** * Specifies the capacity. When `sku` is `Premium`, capacity can be `1`, `2`, `4`, `8` or `16`. When `sku` is `Basic` or `Standard`, capacity can be `0` only. */ capacity?: pulumi.Input; /** * An `customerManagedKey` block as defined below. */ customerManagedKey?: pulumi.Input; /** * The primary connection string for the authorization rule `RootManageSharedAccessKey`. */ defaultPrimaryConnectionString?: 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 secondary access key for the authorization rule `RootManageSharedAccessKey`. */ defaultSecondaryKey?: pulumi.Input; /** * The URL to access the Service Bus Namespace. */ endpoint?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to `true`. */ localAuthEnabled?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The minimum supported TLS version for this Service Bus 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 Service Bus Namespace resource . Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * An `networkRuleSet` block as defined below. */ networkRuleSet?: pulumi.Input; /** * Specifies the number messaging partitions. Only valid when `sku` is `Premium` and the minimum number is `1`. Possible values include `0`, `1`, `2`, and `4`. Defaults to `0` for Standard, Basic namespace. Changing this forces a new resource to be created. * * > **Note:** It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. */ premiumMessagingPartitions?: pulumi.Input; /** * Is public network access enabled for the Service Bus Namespace? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The name of the resource group in which to Changing this forces a new resource to be created. * create the namespace. */ resourceGroupName?: pulumi.Input; /** * Defines which tier to use. Options are `Basic`, `Standard` or `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 Namespace resource. */ export interface NamespaceArgs { /** * Specifies the capacity. When `sku` is `Premium`, capacity can be `1`, `2`, `4`, `8` or `16`. When `sku` is `Basic` or `Standard`, capacity can be `0` only. */ capacity?: pulumi.Input; /** * An `customerManagedKey` block as defined below. */ customerManagedKey?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to `true`. */ localAuthEnabled?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The minimum supported TLS version for this Service Bus 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 Service Bus Namespace resource . Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * An `networkRuleSet` block as defined below. */ networkRuleSet?: pulumi.Input; /** * Specifies the number messaging partitions. Only valid when `sku` is `Premium` and the minimum number is `1`. Possible values include `0`, `1`, `2`, and `4`. Defaults to `0` for Standard, Basic namespace. Changing this forces a new resource to be created. * * > **Note:** It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. */ premiumMessagingPartitions?: pulumi.Input; /** * Is public network access enabled for the Service Bus Namespace? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The name of the resource group in which to Changing this forces a new resource to be created. * create the namespace. */ resourceGroupName: pulumi.Input; /** * Defines which tier to use. Options are `Basic`, `Standard` or `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; }>; }