1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. mns
  5. TopicSubscription
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.mns.TopicSubscription

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const topic = new alicloud.mns.Topic("topic", {
        loggingEnabled: false,
        maximumMessageSize: 65536,
    });
    const subscription = new alicloud.mns.TopicSubscription("subscription", {
        endpoint: "http://www.xxx.com/xxx",
        filterTag: "test",
        notifyContentFormat: "XML",
        notifyStrategy: "BACKOFF_RETRY",
        topicName: "tf-example-mnstopic",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    topic = alicloud.mns.Topic("topic",
        logging_enabled=False,
        maximum_message_size=65536)
    subscription = alicloud.mns.TopicSubscription("subscription",
        endpoint="http://www.xxx.com/xxx",
        filter_tag="test",
        notify_content_format="XML",
        notify_strategy="BACKOFF_RETRY",
        topic_name="tf-example-mnstopic")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mns.NewTopic(ctx, "topic", &mns.TopicArgs{
    			LoggingEnabled:     pulumi.Bool(false),
    			MaximumMessageSize: pulumi.Int(65536),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = mns.NewTopicSubscription(ctx, "subscription", &mns.TopicSubscriptionArgs{
    			Endpoint:            pulumi.String("http://www.xxx.com/xxx"),
    			FilterTag:           pulumi.String("test"),
    			NotifyContentFormat: pulumi.String("XML"),
    			NotifyStrategy:      pulumi.String("BACKOFF_RETRY"),
    			TopicName:           pulumi.String("tf-example-mnstopic"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var topic = new AliCloud.Mns.Topic("topic", new()
        {
            LoggingEnabled = false,
            MaximumMessageSize = 65536,
        });
    
        var subscription = new AliCloud.Mns.TopicSubscription("subscription", new()
        {
            Endpoint = "http://www.xxx.com/xxx",
            FilterTag = "test",
            NotifyContentFormat = "XML",
            NotifyStrategy = "BACKOFF_RETRY",
            TopicName = "tf-example-mnstopic",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.mns.Topic;
    import com.pulumi.alicloud.mns.TopicArgs;
    import com.pulumi.alicloud.mns.TopicSubscription;
    import com.pulumi.alicloud.mns.TopicSubscriptionArgs;
    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 topic = new Topic("topic", TopicArgs.builder()        
                .loggingEnabled(false)
                .maximumMessageSize(65536)
                .build());
    
            var subscription = new TopicSubscription("subscription", TopicSubscriptionArgs.builder()        
                .endpoint("http://www.xxx.com/xxx")
                .filterTag("test")
                .notifyContentFormat("XML")
                .notifyStrategy("BACKOFF_RETRY")
                .topicName("tf-example-mnstopic")
                .build());
    
        }
    }
    
    resources:
      topic:
        type: alicloud:mns:Topic
        properties:
          loggingEnabled: false
          maximumMessageSize: 65536
      subscription:
        type: alicloud:mns:TopicSubscription
        properties:
          endpoint: http://www.xxx.com/xxx
          filterTag: test
          notifyContentFormat: XML
          notifyStrategy: BACKOFF_RETRY
          topicName: tf-example-mnstopic
    

    Create TopicSubscription Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TopicSubscription(name: string, args: TopicSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def TopicSubscription(resource_name: str,
                          args: TopicSubscriptionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TopicSubscription(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          endpoint: Optional[str] = None,
                          topic_name: Optional[str] = None,
                          filter_tag: Optional[str] = None,
                          name: Optional[str] = None,
                          notify_content_format: Optional[str] = None,
                          notify_strategy: Optional[str] = None)
    func NewTopicSubscription(ctx *Context, name string, args TopicSubscriptionArgs, opts ...ResourceOption) (*TopicSubscription, error)
    public TopicSubscription(string name, TopicSubscriptionArgs args, CustomResourceOptions? opts = null)
    public TopicSubscription(String name, TopicSubscriptionArgs args)
    public TopicSubscription(String name, TopicSubscriptionArgs args, CustomResourceOptions options)
    
    type: alicloud:mns:TopicSubscription
    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 TopicSubscriptionArgs
    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 TopicSubscriptionArgs
    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 TopicSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TopicSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TopicSubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var topicSubscriptionResource = new AliCloud.Mns.TopicSubscription("topicSubscriptionResource", new()
    {
        Endpoint = "string",
        TopicName = "string",
        FilterTag = "string",
        Name = "string",
        NotifyContentFormat = "string",
        NotifyStrategy = "string",
    });
    
    example, err := mns.NewTopicSubscription(ctx, "topicSubscriptionResource", &mns.TopicSubscriptionArgs{
    	Endpoint:            pulumi.String("string"),
    	TopicName:           pulumi.String("string"),
    	FilterTag:           pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	NotifyContentFormat: pulumi.String("string"),
    	NotifyStrategy:      pulumi.String("string"),
    })
    
    var topicSubscriptionResource = new TopicSubscription("topicSubscriptionResource", TopicSubscriptionArgs.builder()        
        .endpoint("string")
        .topicName("string")
        .filterTag("string")
        .name("string")
        .notifyContentFormat("string")
        .notifyStrategy("string")
        .build());
    
    topic_subscription_resource = alicloud.mns.TopicSubscription("topicSubscriptionResource",
        endpoint="string",
        topic_name="string",
        filter_tag="string",
        name="string",
        notify_content_format="string",
        notify_strategy="string")
    
    const topicSubscriptionResource = new alicloud.mns.TopicSubscription("topicSubscriptionResource", {
        endpoint: "string",
        topicName: "string",
        filterTag: "string",
        name: "string",
        notifyContentFormat: "string",
        notifyStrategy: "string",
    });
    
    type: alicloud:mns:TopicSubscription
    properties:
        endpoint: string
        filterTag: string
        name: string
        notifyContentFormat: string
        notifyStrategy: string
        topicName: string
    

    TopicSubscription Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TopicSubscription resource accepts the following input properties:

    Endpoint string
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    TopicName string
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    FilterTag string
    The length should be shorter than 16.
    Name string
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    NotifyContentFormat string
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    NotifyStrategy string
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    Endpoint string
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    TopicName string
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    FilterTag string
    The length should be shorter than 16.
    Name string
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    NotifyContentFormat string
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    NotifyStrategy string
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    endpoint String
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    topicName String
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    filterTag String
    The length should be shorter than 16.
    name String
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notifyContentFormat String
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notifyStrategy String
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    endpoint string
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    topicName string
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    filterTag string
    The length should be shorter than 16.
    name string
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notifyContentFormat string
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notifyStrategy string
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    endpoint str
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    topic_name str
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    filter_tag str
    The length should be shorter than 16.
    name str
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notify_content_format str
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notify_strategy str
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    endpoint String
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    topicName String
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    filterTag String
    The length should be shorter than 16.
    name String
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notifyContentFormat String
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notifyStrategy String
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TopicSubscription resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TopicSubscription Resource

    Get an existing TopicSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TopicSubscriptionState, opts?: CustomResourceOptions): TopicSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint: Optional[str] = None,
            filter_tag: Optional[str] = None,
            name: Optional[str] = None,
            notify_content_format: Optional[str] = None,
            notify_strategy: Optional[str] = None,
            topic_name: Optional[str] = None) -> TopicSubscription
    func GetTopicSubscription(ctx *Context, name string, id IDInput, state *TopicSubscriptionState, opts ...ResourceOption) (*TopicSubscription, error)
    public static TopicSubscription Get(string name, Input<string> id, TopicSubscriptionState? state, CustomResourceOptions? opts = null)
    public static TopicSubscription get(String name, Output<String> id, TopicSubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Endpoint string
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    FilterTag string
    The length should be shorter than 16.
    Name string
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    NotifyContentFormat string
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    NotifyStrategy string
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    TopicName string
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    Endpoint string
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    FilterTag string
    The length should be shorter than 16.
    Name string
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    NotifyContentFormat string
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    NotifyStrategy string
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    TopicName string
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    endpoint String
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    filterTag String
    The length should be shorter than 16.
    name String
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notifyContentFormat String
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notifyStrategy String
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    topicName String
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    endpoint string
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    filterTag string
    The length should be shorter than 16.
    name string
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notifyContentFormat string
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notifyStrategy string
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    topicName string
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    endpoint str
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    filter_tag str
    The length should be shorter than 16.
    name str
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notify_content_format str
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notify_strategy str
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    topic_name str
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    endpoint String
    The endpoint has three format. Available values format:

    • HTTP Format: http://xxx.com/xxx
    • Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}
    • Email Format: mail:directmail:{MailAddress}
    filterTag String
    The length should be shorter than 16.
    name String
    Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
    notifyContentFormat String
    The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.
    notifyStrategy String
    The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .
    topicName String
    The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.

    Import

    MNS Topic subscription can be imported using the id, e.g.

    $ pulumi import alicloud:mns/topicSubscription:TopicSubscription subscription tf-example-mnstopic:tf-example-mnstopic-sub
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi