azure-native.servicebus.Subscription
Explore with Pulumi AI
Description of subscription resource. Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
Other available API versions: 2022-10-01-preview, 2023-01-01-preview, 2024-01-01.
Example Usage
SubscriptionCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var subscription = new AzureNative.ServiceBus.Subscription("subscription", new()
    {
        EnableBatchedOperations = true,
        NamespaceName = "sdk-Namespace-1349",
        ResourceGroupName = "ResourceGroup",
        SubscriptionName = "sdk-Subscriptions-2178",
        TopicName = "sdk-Topics-8740",
    });
});
package main
import (
	servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicebus.NewSubscription(ctx, "subscription", &servicebus.SubscriptionArgs{
			EnableBatchedOperations: pulumi.Bool(true),
			NamespaceName:           pulumi.String("sdk-Namespace-1349"),
			ResourceGroupName:       pulumi.String("ResourceGroup"),
			SubscriptionName:        pulumi.String("sdk-Subscriptions-2178"),
			TopicName:               pulumi.String("sdk-Topics-8740"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.servicebus.Subscription;
import com.pulumi.azurenative.servicebus.SubscriptionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var subscription = new Subscription("subscription", SubscriptionArgs.builder()
            .enableBatchedOperations(true)
            .namespaceName("sdk-Namespace-1349")
            .resourceGroupName("ResourceGroup")
            .subscriptionName("sdk-Subscriptions-2178")
            .topicName("sdk-Topics-8740")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const subscription = new azure_native.servicebus.Subscription("subscription", {
    enableBatchedOperations: true,
    namespaceName: "sdk-Namespace-1349",
    resourceGroupName: "ResourceGroup",
    subscriptionName: "sdk-Subscriptions-2178",
    topicName: "sdk-Topics-8740",
});
import pulumi
import pulumi_azure_native as azure_native
subscription = azure_native.servicebus.Subscription("subscription",
    enable_batched_operations=True,
    namespace_name="sdk-Namespace-1349",
    resource_group_name="ResourceGroup",
    subscription_name="sdk-Subscriptions-2178",
    topic_name="sdk-Topics-8740")
resources:
  subscription:
    type: azure-native:servicebus:Subscription
    properties:
      enableBatchedOperations: true
      namespaceName: sdk-Namespace-1349
      resourceGroupName: ResourceGroup
      subscriptionName: sdk-Subscriptions-2178
      topicName: sdk-Topics-8740
Create Subscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Subscription(name: string, args: SubscriptionArgs, opts?: CustomResourceOptions);@overload
def Subscription(resource_name: str,
                 args: SubscriptionArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def Subscription(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 namespace_name: Optional[str] = None,
                 topic_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 default_message_time_to_live: Optional[str] = None,
                 lock_duration: Optional[str] = None,
                 duplicate_detection_history_time_window: Optional[str] = None,
                 enable_batched_operations: Optional[bool] = None,
                 forward_dead_lettered_messages_to: Optional[str] = None,
                 forward_to: Optional[str] = None,
                 is_client_affine: Optional[bool] = None,
                 auto_delete_on_idle: Optional[str] = None,
                 max_delivery_count: Optional[int] = None,
                 dead_lettering_on_message_expiration: Optional[bool] = None,
                 requires_session: Optional[bool] = None,
                 dead_lettering_on_filter_evaluation_exceptions: Optional[bool] = None,
                 status: Optional[EntityStatus] = None,
                 subscription_name: Optional[str] = None,
                 client_affine_properties: Optional[SBClientAffinePropertiesArgs] = None)func NewSubscription(ctx *Context, name string, args SubscriptionArgs, opts ...ResourceOption) (*Subscription, error)public Subscription(string name, SubscriptionArgs args, CustomResourceOptions? opts = null)
public Subscription(String name, SubscriptionArgs args)
public Subscription(String name, SubscriptionArgs args, CustomResourceOptions options)
type: azure-native:servicebus:Subscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeSubscriptionResource = new AzureNative.ServiceBus.Subscription("azure-nativeSubscriptionResource", new()
{
    NamespaceName = "string",
    TopicName = "string",
    ResourceGroupName = "string",
    DefaultMessageTimeToLive = "string",
    LockDuration = "string",
    DuplicateDetectionHistoryTimeWindow = "string",
    EnableBatchedOperations = false,
    ForwardDeadLetteredMessagesTo = "string",
    ForwardTo = "string",
    IsClientAffine = false,
    AutoDeleteOnIdle = "string",
    MaxDeliveryCount = 0,
    DeadLetteringOnMessageExpiration = false,
    RequiresSession = false,
    DeadLetteringOnFilterEvaluationExceptions = false,
    Status = AzureNative.ServiceBus.EntityStatus.Active,
    SubscriptionName = "string",
    ClientAffineProperties = new AzureNative.ServiceBus.Inputs.SBClientAffinePropertiesArgs
    {
        ClientId = "string",
        IsDurable = false,
        IsShared = false,
    },
});
example, err := servicebus.NewSubscription(ctx, "azure-nativeSubscriptionResource", &servicebus.SubscriptionArgs{
	NamespaceName:                             pulumi.String("string"),
	TopicName:                                 pulumi.String("string"),
	ResourceGroupName:                         pulumi.String("string"),
	DefaultMessageTimeToLive:                  pulumi.String("string"),
	LockDuration:                              pulumi.String("string"),
	DuplicateDetectionHistoryTimeWindow:       pulumi.String("string"),
	EnableBatchedOperations:                   pulumi.Bool(false),
	ForwardDeadLetteredMessagesTo:             pulumi.String("string"),
	ForwardTo:                                 pulumi.String("string"),
	IsClientAffine:                            pulumi.Bool(false),
	AutoDeleteOnIdle:                          pulumi.String("string"),
	MaxDeliveryCount:                          pulumi.Int(0),
	DeadLetteringOnMessageExpiration:          pulumi.Bool(false),
	RequiresSession:                           pulumi.Bool(false),
	DeadLetteringOnFilterEvaluationExceptions: pulumi.Bool(false),
	Status:           servicebus.EntityStatusActive,
	SubscriptionName: pulumi.String("string"),
	ClientAffineProperties: &servicebus.SBClientAffinePropertiesArgs{
		ClientId:  pulumi.String("string"),
		IsDurable: pulumi.Bool(false),
		IsShared:  pulumi.Bool(false),
	},
})
var azure_nativeSubscriptionResource = new Subscription("azure-nativeSubscriptionResource", SubscriptionArgs.builder()
    .namespaceName("string")
    .topicName("string")
    .resourceGroupName("string")
    .defaultMessageTimeToLive("string")
    .lockDuration("string")
    .duplicateDetectionHistoryTimeWindow("string")
    .enableBatchedOperations(false)
    .forwardDeadLetteredMessagesTo("string")
    .forwardTo("string")
    .isClientAffine(false)
    .autoDeleteOnIdle("string")
    .maxDeliveryCount(0)
    .deadLetteringOnMessageExpiration(false)
    .requiresSession(false)
    .deadLetteringOnFilterEvaluationExceptions(false)
    .status("Active")
    .subscriptionName("string")
    .clientAffineProperties(SBClientAffinePropertiesArgs.builder()
        .clientId("string")
        .isDurable(false)
        .isShared(false)
        .build())
    .build());
azure_native_subscription_resource = azure_native.servicebus.Subscription("azure-nativeSubscriptionResource",
    namespace_name="string",
    topic_name="string",
    resource_group_name="string",
    default_message_time_to_live="string",
    lock_duration="string",
    duplicate_detection_history_time_window="string",
    enable_batched_operations=False,
    forward_dead_lettered_messages_to="string",
    forward_to="string",
    is_client_affine=False,
    auto_delete_on_idle="string",
    max_delivery_count=0,
    dead_lettering_on_message_expiration=False,
    requires_session=False,
    dead_lettering_on_filter_evaluation_exceptions=False,
    status=azure_native.servicebus.EntityStatus.ACTIVE,
    subscription_name="string",
    client_affine_properties={
        "client_id": "string",
        "is_durable": False,
        "is_shared": False,
    })
const azure_nativeSubscriptionResource = new azure_native.servicebus.Subscription("azure-nativeSubscriptionResource", {
    namespaceName: "string",
    topicName: "string",
    resourceGroupName: "string",
    defaultMessageTimeToLive: "string",
    lockDuration: "string",
    duplicateDetectionHistoryTimeWindow: "string",
    enableBatchedOperations: false,
    forwardDeadLetteredMessagesTo: "string",
    forwardTo: "string",
    isClientAffine: false,
    autoDeleteOnIdle: "string",
    maxDeliveryCount: 0,
    deadLetteringOnMessageExpiration: false,
    requiresSession: false,
    deadLetteringOnFilterEvaluationExceptions: false,
    status: azure_native.servicebus.EntityStatus.Active,
    subscriptionName: "string",
    clientAffineProperties: {
        clientId: "string",
        isDurable: false,
        isShared: false,
    },
});
type: azure-native:servicebus:Subscription
properties:
    autoDeleteOnIdle: string
    clientAffineProperties:
        clientId: string
        isDurable: false
        isShared: false
    deadLetteringOnFilterEvaluationExceptions: false
    deadLetteringOnMessageExpiration: false
    defaultMessageTimeToLive: string
    duplicateDetectionHistoryTimeWindow: string
    enableBatchedOperations: false
    forwardDeadLetteredMessagesTo: string
    forwardTo: string
    isClientAffine: false
    lockDuration: string
    maxDeliveryCount: 0
    namespaceName: string
    requiresSession: false
    resourceGroupName: string
    status: Active
    subscriptionName: string
    topicName: string
Subscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Subscription resource accepts the following input properties:
- NamespaceName string
- The namespace name
- ResourceGroup stringName 
- Name of the Resource group within the Azure subscription.
- TopicName string
- The topic name.
- AutoDelete stringOn Idle 
- ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
- ClientAffine Pulumi.Properties Azure Native. Service Bus. Inputs. SBClient Affine Properties 
- Properties specific to client affine subscriptions.
- DeadLettering boolOn Filter Evaluation Exceptions 
- Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
- DeadLettering boolOn Message Expiration 
- Value that indicates whether a subscription has dead letter support when a message expires.
- DefaultMessage stringTime To Live 
- 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.
- DuplicateDetection stringHistory Time Window 
- ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
- EnableBatched boolOperations 
- Value that indicates whether server-side batched operations are enabled.
- ForwardDead stringLettered Messages To 
- Queue/Topic name to forward the Dead Letter message
- ForwardTo string
- Queue/Topic name to forward the messages
- IsClient boolAffine 
- Value that indicates whether the subscription has an affinity to the client id.
- LockDuration string
- ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
- MaxDelivery intCount 
- Number of maximum deliveries.
- RequiresSession bool
- Value indicating if a subscription supports the concept of sessions.
- Status
Pulumi.Azure Native. Service Bus. Entity Status 
- Enumerates the possible values for the status of a messaging entity.
- SubscriptionName string
- The subscription name.
- NamespaceName string
- The namespace name
- ResourceGroup stringName 
- Name of the Resource group within the Azure subscription.
- TopicName string
- The topic name.
- AutoDelete stringOn Idle 
- ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
- ClientAffine SBClientProperties Affine Properties Args 
- Properties specific to client affine subscriptions.
- DeadLettering boolOn Filter Evaluation Exceptions 
- Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
- DeadLettering boolOn Message Expiration 
- Value that indicates whether a subscription has dead letter support when a message expires.
- DefaultMessage stringTime To Live 
- 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.
- DuplicateDetection stringHistory Time Window 
- ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
- EnableBatched boolOperations 
- Value that indicates whether server-side batched operations are enabled.
- ForwardDead stringLettered Messages To 
- Queue/Topic name to forward the Dead Letter message
- ForwardTo string
- Queue/Topic name to forward the messages
- IsClient boolAffine 
- Value that indicates whether the subscription has an affinity to the client id.
- LockDuration string
- ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
- MaxDelivery intCount 
- Number of maximum deliveries.
- RequiresSession bool
- Value indicating if a subscription supports the concept of sessions.
- Status
EntityStatus 
- Enumerates the possible values for the status of a messaging entity.
- SubscriptionName string
- The subscription name.
- namespaceName String
- The namespace name
- resourceGroup StringName 
- Name of the Resource group within the Azure subscription.
- topicName String
- The topic name.
- autoDelete StringOn Idle 
- ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
- clientAffine SBClientProperties Affine Properties 
- Properties specific to client affine subscriptions.
- deadLettering BooleanOn Filter Evaluation Exceptions 
- Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
- deadLettering BooleanOn Message Expiration 
- Value that indicates whether a subscription has dead letter support when a message expires.
- defaultMessage StringTime To Live 
- 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.
- duplicateDetection StringHistory Time Window 
- ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
- enableBatched BooleanOperations 
- Value that indicates whether server-side batched operations are enabled.
- forwardDead StringLettered Messages To 
- Queue/Topic name to forward the Dead Letter message
- forwardTo String
- Queue/Topic name to forward the messages
- isClient BooleanAffine 
- Value that indicates whether the subscription has an affinity to the client id.
- lockDuration String
- ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
- maxDelivery IntegerCount 
- Number of maximum deliveries.
- requiresSession Boolean
- Value indicating if a subscription supports the concept of sessions.
- status
EntityStatus 
- Enumerates the possible values for the status of a messaging entity.
- subscriptionName String
- The subscription name.
- namespaceName string
- The namespace name
- resourceGroup stringName 
- Name of the Resource group within the Azure subscription.
- topicName string
- The topic name.
- autoDelete stringOn Idle 
- ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
- clientAffine SBClientProperties Affine Properties 
- Properties specific to client affine subscriptions.
- deadLettering booleanOn Filter Evaluation Exceptions 
- Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
- deadLettering booleanOn Message Expiration 
- Value that indicates whether a subscription has dead letter support when a message expires.
- defaultMessage stringTime To Live 
- 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.
- duplicateDetection stringHistory Time Window 
- ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
- enableBatched booleanOperations 
- Value that indicates whether server-side batched operations are enabled.
- forwardDead stringLettered Messages To 
- Queue/Topic name to forward the Dead Letter message
- forwardTo string
- Queue/Topic name to forward the messages
- isClient booleanAffine 
- Value that indicates whether the subscription has an affinity to the client id.
- lockDuration string
- ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
- maxDelivery numberCount 
- Number of maximum deliveries.
- requiresSession boolean
- Value indicating if a subscription supports the concept of sessions.
- status
EntityStatus 
- Enumerates the possible values for the status of a messaging entity.
- subscriptionName string
- The subscription name.
- namespace_name str
- The namespace name
- resource_group_ strname 
- Name of the Resource group within the Azure subscription.
- topic_name str
- The topic name.
- auto_delete_ stron_ idle 
- ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
- client_affine_ SBClientproperties Affine Properties Args 
- Properties specific to client affine subscriptions.
- dead_lettering_ boolon_ filter_ evaluation_ exceptions 
- Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
- dead_lettering_ boolon_ message_ expiration 
- Value that indicates whether a subscription has dead letter support when a message expires.
- default_message_ strtime_ to_ live 
- 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.
- duplicate_detection_ strhistory_ time_ window 
- ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
- enable_batched_ booloperations 
- Value that indicates whether server-side batched operations are enabled.
- forward_dead_ strlettered_ messages_ to 
- Queue/Topic name to forward the Dead Letter message
- forward_to str
- Queue/Topic name to forward the messages
- is_client_ boolaffine 
- Value that indicates whether the subscription has an affinity to the client id.
- lock_duration str
- ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
- max_delivery_ intcount 
- Number of maximum deliveries.
- requires_session bool
- Value indicating if a subscription supports the concept of sessions.
- status
EntityStatus 
- Enumerates the possible values for the status of a messaging entity.
- subscription_name str
- The subscription name.
- namespaceName String
- The namespace name
- resourceGroup StringName 
- Name of the Resource group within the Azure subscription.
- topicName String
- The topic name.
- autoDelete StringOn Idle 
- ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
- clientAffine Property MapProperties 
- Properties specific to client affine subscriptions.
- deadLettering BooleanOn Filter Evaluation Exceptions 
- Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
- deadLettering BooleanOn Message Expiration 
- Value that indicates whether a subscription has dead letter support when a message expires.
- defaultMessage StringTime To Live 
- 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.
- duplicateDetection StringHistory Time Window 
- ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
- enableBatched BooleanOperations 
- Value that indicates whether server-side batched operations are enabled.
- forwardDead StringLettered Messages To 
- Queue/Topic name to forward the Dead Letter message
- forwardTo String
- Queue/Topic name to forward the messages
- isClient BooleanAffine 
- Value that indicates whether the subscription has an affinity to the client id.
- lockDuration String
- ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
- maxDelivery NumberCount 
- Number of maximum deliveries.
- requiresSession Boolean
- Value indicating if a subscription supports the concept of sessions.
- status
"Active" | "Disabled" | "Restoring" | "SendDisabled" | "Receive Disabled" | "Creating" | "Deleting" | "Renaming" | "Unknown" 
- Enumerates the possible values for the status of a messaging entity.
- subscriptionName String
- The subscription name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Subscription resource produces the following output properties:
- AccessedAt string
- Last time there was a receive request to this subscription.
- CountDetails Pulumi.Azure Native. Service Bus. Outputs. Message Count Details Response 
- Message count details
- CreatedAt string
- Exact time the message was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- MessageCount double
- Number of messages.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Service Bus. Outputs. System Data Response 
- The system meta data relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- UpdatedAt string
- The exact time the message was updated.
- AccessedAt string
- Last time there was a receive request to this subscription.
- CountDetails MessageCount Details Response 
- Message count details
- CreatedAt string
- Exact time the message was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- MessageCount float64
- Number of messages.
- Name string
- The name of the resource
- SystemData SystemData Response 
- The system meta data relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- UpdatedAt string
- The exact time the message was updated.
- accessedAt String
- Last time there was a receive request to this subscription.
- countDetails MessageCount Details Response 
- Message count details
- createdAt String
- Exact time the message was created.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- messageCount Double
- Number of messages.
- name String
- The name of the resource
- systemData SystemData Response 
- The system meta data relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- updatedAt String
- The exact time the message was updated.
- accessedAt string
- Last time there was a receive request to this subscription.
- countDetails MessageCount Details Response 
- Message count details
- createdAt string
- Exact time the message was created.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The geo-location where the resource lives
- messageCount number
- Number of messages.
- name string
- The name of the resource
- systemData SystemData Response 
- The system meta data relating to this resource.
- type string
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- updatedAt string
- The exact time the message was updated.
- accessed_at str
- Last time there was a receive request to this subscription.
- count_details MessageCount Details Response 
- Message count details
- created_at str
- Exact time the message was created.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The geo-location where the resource lives
- message_count float
- Number of messages.
- name str
- The name of the resource
- system_data SystemData Response 
- The system meta data relating to this resource.
- type str
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- updated_at str
- The exact time the message was updated.
- accessedAt String
- Last time there was a receive request to this subscription.
- countDetails Property Map
- Message count details
- createdAt String
- Exact time the message was created.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- messageCount Number
- Number of messages.
- name String
- The name of the resource
- systemData Property Map
- The system meta data relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
- updatedAt String
- The exact time the message was updated.
Supporting Types
EntityStatus, EntityStatusArgs    
- Active
- Active
- Disabled
- Disabled
- Restoring
- Restoring
- SendDisabled 
- SendDisabled
- ReceiveDisabled 
- ReceiveDisabled
- Creating
- Creating
- Deleting
- Deleting
- Renaming
- Renaming
- Unknown
- Unknown
- EntityStatus Active 
- Active
- EntityStatus Disabled 
- Disabled
- EntityStatus Restoring 
- Restoring
- EntityStatus Send Disabled 
- SendDisabled
- EntityStatus Receive Disabled 
- ReceiveDisabled
- EntityStatus Creating 
- Creating
- EntityStatus Deleting 
- Deleting
- EntityStatus Renaming 
- Renaming
- EntityStatus Unknown 
- Unknown
- Active
- Active
- Disabled
- Disabled
- Restoring
- Restoring
- SendDisabled 
- SendDisabled
- ReceiveDisabled 
- ReceiveDisabled
- Creating
- Creating
- Deleting
- Deleting
- Renaming
- Renaming
- Unknown
- Unknown
- Active
- Active
- Disabled
- Disabled
- Restoring
- Restoring
- SendDisabled 
- SendDisabled
- ReceiveDisabled 
- ReceiveDisabled
- Creating
- Creating
- Deleting
- Deleting
- Renaming
- Renaming
- Unknown
- Unknown
- ACTIVE
- Active
- DISABLED
- Disabled
- RESTORING
- Restoring
- SEND_DISABLED
- SendDisabled
- RECEIVE_DISABLED
- ReceiveDisabled
- CREATING
- Creating
- DELETING
- Deleting
- RENAMING
- Renaming
- UNKNOWN
- Unknown
- "Active"
- Active
- "Disabled"
- Disabled
- "Restoring"
- Restoring
- "SendDisabled" 
- SendDisabled
- "ReceiveDisabled" 
- ReceiveDisabled
- "Creating"
- Creating
- "Deleting"
- Deleting
- "Renaming"
- Renaming
- "Unknown"
- Unknown
MessageCountDetailsResponse, MessageCountDetailsResponseArgs        
- ActiveMessage doubleCount 
- Number of active messages in the queue, topic, or subscription.
- DeadLetter doubleMessage Count 
- Number of messages that are dead lettered.
- ScheduledMessage doubleCount 
- Number of scheduled messages.
- TransferDead doubleLetter Message Count 
- Number of messages transferred into dead letters.
- TransferMessage doubleCount 
- Number of messages transferred to another queue, topic, or subscription.
- ActiveMessage float64Count 
- Number of active messages in the queue, topic, or subscription.
- DeadLetter float64Message Count 
- Number of messages that are dead lettered.
- ScheduledMessage float64Count 
- Number of scheduled messages.
- TransferDead float64Letter Message Count 
- Number of messages transferred into dead letters.
- TransferMessage float64Count 
- Number of messages transferred to another queue, topic, or subscription.
- activeMessage DoubleCount 
- Number of active messages in the queue, topic, or subscription.
- deadLetter DoubleMessage Count 
- Number of messages that are dead lettered.
- scheduledMessage DoubleCount 
- Number of scheduled messages.
- transferDead DoubleLetter Message Count 
- Number of messages transferred into dead letters.
- transferMessage DoubleCount 
- Number of messages transferred to another queue, topic, or subscription.
- activeMessage numberCount 
- Number of active messages in the queue, topic, or subscription.
- deadLetter numberMessage Count 
- Number of messages that are dead lettered.
- scheduledMessage numberCount 
- Number of scheduled messages.
- transferDead numberLetter Message Count 
- Number of messages transferred into dead letters.
- transferMessage numberCount 
- Number of messages transferred to another queue, topic, or subscription.
- active_message_ floatcount 
- Number of active messages in the queue, topic, or subscription.
- dead_letter_ floatmessage_ count 
- Number of messages that are dead lettered.
- scheduled_message_ floatcount 
- Number of scheduled messages.
- transfer_dead_ floatletter_ message_ count 
- Number of messages transferred into dead letters.
- transfer_message_ floatcount 
- Number of messages transferred to another queue, topic, or subscription.
- activeMessage NumberCount 
- Number of active messages in the queue, topic, or subscription.
- deadLetter NumberMessage Count 
- Number of messages that are dead lettered.
- scheduledMessage NumberCount 
- Number of scheduled messages.
- transferDead NumberLetter Message Count 
- Number of messages transferred into dead letters.
- transferMessage NumberCount 
- Number of messages transferred to another queue, topic, or subscription.
SBClientAffineProperties, SBClientAffinePropertiesArgs      
- ClientId string
- Indicates the Client ID of the application that created the client-affine subscription.
- IsDurable bool
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- bool
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- ClientId string
- Indicates the Client ID of the application that created the client-affine subscription.
- IsDurable bool
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- bool
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- clientId String
- Indicates the Client ID of the application that created the client-affine subscription.
- isDurable Boolean
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- Boolean
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- clientId string
- Indicates the Client ID of the application that created the client-affine subscription.
- isDurable boolean
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- boolean
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- client_id str
- Indicates the Client ID of the application that created the client-affine subscription.
- is_durable bool
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- bool
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- clientId String
- Indicates the Client ID of the application that created the client-affine subscription.
- isDurable Boolean
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- Boolean
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
SBClientAffinePropertiesResponse, SBClientAffinePropertiesResponseArgs        
- ClientId string
- Indicates the Client ID of the application that created the client-affine subscription.
- IsDurable bool
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- bool
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- ClientId string
- Indicates the Client ID of the application that created the client-affine subscription.
- IsDurable bool
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- bool
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- clientId String
- Indicates the Client ID of the application that created the client-affine subscription.
- isDurable Boolean
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- Boolean
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- clientId string
- Indicates the Client ID of the application that created the client-affine subscription.
- isDurable boolean
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- boolean
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- client_id str
- Indicates the Client ID of the application that created the client-affine subscription.
- is_durable bool
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- bool
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
- clientId String
- Indicates the Client ID of the application that created the client-affine subscription.
- isDurable Boolean
- For client-affine subscriptions, this value indicates whether the subscription is durable or not.
- Boolean
- For client-affine subscriptions, this value indicates whether the subscription is shared or not.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicebus:Subscription sdk-Subscriptions-2178 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0