SubscriptionProps
Properties for defining a Subscription.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mns-subscription
Initializer
import ros_cdk_mns
ros_cdk_mns.SubscriptionProps(
endpoint: typing.Union[str, IResolvable],
subscription_name: typing.Union[str, IResolvable],
topic_name: typing.Union[str, IResolvable],
dlq_policy: typing.Union[IResolvable, DlqPolicyProperty] = None,
filter_tag: typing.Union[str, IResolvable] = None,
notify_content_format: typing.Union[str, IResolvable] = None,
notify_strategy: typing.Union[str, IResolvable] = None,
push_type: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
endpoint | typing.Union[str, ros_cdk_core.IResolvable] | Property endpoint: The message delivery endpoint. |
subscription_name | typing.Union[str, ros_cdk_core.IResolvable] | Property subscriptionName: Subscription name. |
topic_name | typing.Union[str, ros_cdk_core.IResolvable] | Property topicName: Topic name. |
dlq_policy | typing.Union[ros_cdk_core.IResolvable, DlqPolicyProperty] | Property dlqPolicy: Dead-letter queue policy. |
filter_tag | typing.Union[str, ros_cdk_core.IResolvable] | Property filterTag: Message filter tag in the created subscription (Only messages with consistent tags are pushed.) The value is a string of no more than 16 characters. The default value is no message filter. |
notify_content_format | typing.Union[str, ros_cdk_core.IResolvable] | Property notifyContentFormat: Format of the message content pushed to the endpoint. |
notify_strategy | typing.Union[str, ros_cdk_core.IResolvable] | Property notifyStrategy: Retry policy that will be applied when an error occurs during message push to the endpoint. |
push_type | typing.Union[str, ros_cdk_core.IResolvable] | Property pushType: Push type of the created subscription. |
endpointRequired
endpoint: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property endpoint: The message delivery endpoint.
The format varies based on the PushType value:
- If
PushTypeishttp: An HTTP/HTTPS callback URL, such ashttp:\/\/example.com\/callbackorhttps:\/\/example.com\/callback. - If
PushTypeisqueue: The ARN of the destination queue, in the formatacs:mns:{RegionId}:{account ID}:queues\/{QueueName}. - If
PushTypeisdm: The endpoint for email push, in the fixed formatsmq-ep:dm:{account ID}:__dynamic. Replace{account ID}with your account ID. - If
PushTypeisdysms: The endpoint for SMS push, in the formatsmq-ep:dysms:{account ID}:{MobileNumber}. - If
PushTypeiskafka: The Kafka push endpoint. - If
PushTypeisfc: The endpoint for Function Compute, in the formatacs:fc:{RegionId}:{account ID}:services\/{ServiceName}\/functions\/{FunctionName}. - If
PushTypeiseventbus: The endpoint for EventBridge, in the formatacs:eventbridge:{RegionId}:{account ID}:eventbus\/{EventBusName}.
subscription_nameRequired
subscription_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property subscriptionName: Subscription name.
topic_nameRequired
topic_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property topicName: Topic name.
dlq_policyOptional
dlq_policy: typing.Union[IResolvable, DlqPolicyProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, DlqPolicyProperty]
Property dlqPolicy: Dead-letter queue policy.
filter_tagOptional
filter_tag: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property filterTag: Message filter tag in the created subscription (Only messages with consistent tags are pushed.) The value is a string of no more than 16 characters. The default value is no message filter.
notify_content_formatOptional
notify_content_format: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property notifyContentFormat: Format of the message content pushed to the endpoint.
XML, JSON, or SIMPLIFIED; default value: XML. For details about message formats, refer to Basic Concepts/NotifyContentFormat.
notify_strategyOptional
notify_strategy: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property notifyStrategy: Retry policy that will be applied when an error occurs during message push to the endpoint.
BACKOFF_RETRY or EXPONENTIAL_DECAY_RETRY; default value: BACKOFF_RETRY. For details about retry policies, refer to Basic Concepts/NotifyStrategy.
push_typeOptional
push_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property pushType: Push type of the created subscription.