Class TopicSubscription
Inherited Members
Namespace: Pulumi.AliCloud.Mns
Assembly: Pulumi.AliCloud.dll
Syntax
public class TopicSubscription : CustomResource
Constructors
View SourceTopicSubscription(String, TopicSubscriptionArgs, CustomResourceOptions)
Create a TopicSubscription resource with the given unique name, arguments, and options.
Declaration
public TopicSubscription(string name, TopicSubscriptionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TopicSubscriptionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEndpoint
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}
Declaration
public Output<string> Endpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FilterTag
The length should be shorter than 16.
Declaration
public Output<string> FilterTag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
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.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotifyContentFormat
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'.
Declaration
public Output<string> NotifyContentFormat { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotifyStrategy
The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. the attribute has two value EXPONENTIAL_DECAY_RETR or BACKOFF_RETRY. Default value to BACKOFF_RETRY .
Declaration
public Output<string> NotifyStrategy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TopicName
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.
Declaration
public Output<string> TopicName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, TopicSubscriptionState, CustomResourceOptions)
Get an existing TopicSubscription resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static TopicSubscription Get(string name, Input<string> id, TopicSubscriptionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TopicSubscriptionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| TopicSubscription |