import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing ServiceBus Subscription. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.servicebus.getSubscription({ * name: "examplesubscription", * topicId: "exampletopic", * }); * export const servicebusSubscription = exampleAzurermServicebusNamespace; * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.ServiceBus` - 2024-01-01 */ export declare function getSubscription(args: GetSubscriptionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSubscription. */ export interface GetSubscriptionArgs { /** * Specifies the name of the ServiceBus Subscription. */ name: string; /** * @deprecated `namespaceName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ namespaceName?: string; /** * @deprecated `resourceGroupName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ resourceGroupName?: string; /** * The ID of the ServiceBus Topic where the Service Bus Subscription exists. */ topicId?: string; /** * @deprecated `topicName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ topicName?: string; } /** * A collection of values returned by getSubscription. */ export interface GetSubscriptionResult { /** * The idle interval after which the Subscription is automatically deleted. */ readonly autoDeleteOnIdle: string; /** * Whether batched operations are enabled. */ readonly batchedOperationsEnabled: boolean; /** * Does the ServiceBus Subscription have dead letter support on filter evaluation exceptions? */ readonly deadLetteringOnFilterEvaluationError: boolean; /** * Does the Service Bus Subscription have dead letter support when a message expires? */ readonly deadLetteringOnMessageExpiration: boolean; /** * The Default message timespan to live. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself. */ readonly defaultMessageTtl: string; readonly enableBatchedOperations: boolean; /** * The name of a Queue or Topic to automatically forward Dead Letter messages to. */ readonly forwardDeadLetteredMessagesTo: string; /** * The name of a ServiceBus Queue or ServiceBus Topic where messages are automatically forwarded. */ readonly forwardTo: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The lock duration for the subscription. */ readonly lockDuration: string; /** * The maximum number of deliveries. */ readonly maxDeliveryCount: number; readonly name: string; /** * @deprecated `namespaceName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ readonly namespaceName?: string; /** * Whether this ServiceBus Subscription supports session. */ readonly requiresSession: boolean; /** * @deprecated `resourceGroupName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ readonly resourceGroupName?: string; readonly topicId?: string; /** * @deprecated `topicName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ readonly topicName?: string; } /** * Use this data source to access information about an existing ServiceBus Subscription. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.servicebus.getSubscription({ * name: "examplesubscription", * topicId: "exampletopic", * }); * export const servicebusSubscription = exampleAzurermServicebusNamespace; * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.ServiceBus` - 2024-01-01 */ export declare function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSubscription. */ export interface GetSubscriptionOutputArgs { /** * Specifies the name of the ServiceBus Subscription. */ name: pulumi.Input; /** * @deprecated `namespaceName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ namespaceName?: pulumi.Input; /** * @deprecated `resourceGroupName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ resourceGroupName?: pulumi.Input; /** * The ID of the ServiceBus Topic where the Service Bus Subscription exists. */ topicId?: pulumi.Input; /** * @deprecated `topicName` will be removed in favour of the property `topicId` in version 5.0 of the AzureRM Provider. */ topicName?: pulumi.Input; }