UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

160 lines (159 loc) 5.87 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Returns a subscription description for the specified topic. * * Uses Azure REST API version 2024-01-01. * * Other available API versions: 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native servicebus [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getSubscription(args: GetSubscriptionArgs, opts?: pulumi.InvokeOptions): Promise<GetSubscriptionResult>; export interface GetSubscriptionArgs { /** * The namespace name */ namespaceName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The subscription name. */ subscriptionName: string; /** * The topic name. */ topicName: string; } /** * Description of subscription resource. */ export interface GetSubscriptionResult { /** * Last time there was a receive request to this subscription. */ readonly accessedAt: string; /** * ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. */ readonly autoDeleteOnIdle?: string; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Properties specific to client affine subscriptions. */ readonly clientAffineProperties?: outputs.servicebus.SBClientAffinePropertiesResponse; /** * Message count details */ readonly countDetails: outputs.servicebus.MessageCountDetailsResponse; /** * Exact time the message was created. */ readonly createdAt: string; /** * Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. */ readonly deadLetteringOnFilterEvaluationExceptions?: boolean; /** * Value that indicates whether a subscription has dead letter support when a message expires. */ readonly deadLetteringOnMessageExpiration?: boolean; /** * ISO 8061 Default message timespan to live value. 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 defaultMessageTimeToLive?: string; /** * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. */ readonly duplicateDetectionHistoryTimeWindow?: string; /** * Value that indicates whether server-side batched operations are enabled. */ readonly enableBatchedOperations?: boolean; /** * Queue/Topic name to forward the Dead Letter message */ readonly forwardDeadLetteredMessagesTo?: string; /** * Queue/Topic name to forward the messages */ readonly forwardTo?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * Value that indicates whether the subscription has an affinity to the client id. */ readonly isClientAffine?: boolean; /** * The geo-location where the resource lives */ readonly location: string; /** * ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. */ readonly lockDuration?: string; /** * Number of maximum deliveries. */ readonly maxDeliveryCount?: number; /** * Number of messages. */ readonly messageCount: number; /** * The name of the resource */ readonly name: string; /** * Value indicating if a subscription supports the concept of sessions. */ readonly requiresSession?: boolean; /** * Enumerates the possible values for the status of a messaging entity. */ readonly status?: string; /** * The system meta data relating to this resource. */ readonly systemData: outputs.servicebus.SystemDataResponse; /** * The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" */ readonly type: string; /** * The exact time the message was updated. */ readonly updatedAt: string; } /** * Returns a subscription description for the specified topic. * * Uses Azure REST API version 2024-01-01. * * Other available API versions: 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native servicebus [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSubscriptionResult>; export interface GetSubscriptionOutputArgs { /** * The namespace name */ namespaceName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The subscription name. */ subscriptionName: pulumi.Input<string>; /** * The topic name. */ topicName: pulumi.Input<string>; }