tencentcloud.TcmqSubscribe
Explore with Pulumi AI
Provides a resource to create a tcmq subscribe
Create TcmqSubscribe Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcmqSubscribe(name: string, args: TcmqSubscribeArgs, opts?: CustomResourceOptions);
@overload
def TcmqSubscribe(resource_name: str,
args: TcmqSubscribeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcmqSubscribe(resource_name: str,
opts: Optional[ResourceOptions] = None,
endpoint: Optional[str] = None,
protocol: Optional[str] = None,
subscription_name: Optional[str] = None,
topic_name: Optional[str] = None,
binding_keys: Optional[Sequence[str]] = None,
filter_tags: Optional[Sequence[str]] = None,
notify_content_format: Optional[str] = None,
notify_strategy: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tcmq_subscribe_id: Optional[str] = None)
func NewTcmqSubscribe(ctx *Context, name string, args TcmqSubscribeArgs, opts ...ResourceOption) (*TcmqSubscribe, error)
public TcmqSubscribe(string name, TcmqSubscribeArgs args, CustomResourceOptions? opts = null)
public TcmqSubscribe(String name, TcmqSubscribeArgs args)
public TcmqSubscribe(String name, TcmqSubscribeArgs args, CustomResourceOptions options)
type: tencentcloud:TcmqSubscribe
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 TcmqSubscribeArgs
- 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 TcmqSubscribeArgs
- 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 TcmqSubscribeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcmqSubscribeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcmqSubscribeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TcmqSubscribe 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 TcmqSubscribe resource accepts the following input properties:
- Endpoint string
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- Protocol string
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - Subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Binding
Keys List<string> - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - List<string>
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - Notify
Content stringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - Notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Dictionary<string, string>
- Tag description list.
- Tcmq
Subscribe stringId - ID of the resource.
- Endpoint string
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- Protocol string
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - Subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Binding
Keys []string - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - []string
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - Notify
Content stringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - Notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - map[string]string
- Tag description list.
- Tcmq
Subscribe stringId - ID of the resource.
- endpoint String
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- protocol String
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription
Name String - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- topic
Name String - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding
Keys List<String> - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - List<String>
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify
Content StringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy String - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Map<String,String>
- Tag description list.
- tcmq
Subscribe StringId - ID of the resource.
- endpoint string
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- protocol string
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding
Keys string[] - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - string[]
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify
Content stringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - {[key: string]: string}
- Tag description list.
- tcmq
Subscribe stringId - ID of the resource.
- endpoint str
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- protocol str
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription_
name str - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- topic_
name str - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding_
keys Sequence[str] - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - Sequence[str]
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify_
content_ strformat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify_
strategy str - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Mapping[str, str]
- Tag description list.
- tcmq_
subscribe_ strid - ID of the resource.
- endpoint String
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- protocol String
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription
Name String - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- topic
Name String - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding
Keys List<String> - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - List<String>
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify
Content StringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy String - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Map<String>
- Tag description list.
- tcmq
Subscribe StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TcmqSubscribe 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 TcmqSubscribe Resource
Get an existing TcmqSubscribe 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?: TcmqSubscribeState, opts?: CustomResourceOptions): TcmqSubscribe
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
binding_keys: Optional[Sequence[str]] = None,
endpoint: Optional[str] = None,
filter_tags: Optional[Sequence[str]] = None,
notify_content_format: Optional[str] = None,
notify_strategy: Optional[str] = None,
protocol: Optional[str] = None,
subscription_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tcmq_subscribe_id: Optional[str] = None,
topic_name: Optional[str] = None) -> TcmqSubscribe
func GetTcmqSubscribe(ctx *Context, name string, id IDInput, state *TcmqSubscribeState, opts ...ResourceOption) (*TcmqSubscribe, error)
public static TcmqSubscribe Get(string name, Input<string> id, TcmqSubscribeState? state, CustomResourceOptions? opts = null)
public static TcmqSubscribe get(String name, Output<String> id, TcmqSubscribeState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TcmqSubscribe get: id: ${id}
- 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.
- Binding
Keys List<string> - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - Endpoint string
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- List<string>
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - Notify
Content stringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - Notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Protocol string
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - Subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Dictionary<string, string>
- Tag description list.
- Tcmq
Subscribe stringId - ID of the resource.
- Topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Binding
Keys []string - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - Endpoint string
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- []string
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - Notify
Content stringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - Notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Protocol string
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - Subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- map[string]string
- Tag description list.
- Tcmq
Subscribe stringId - ID of the resource.
- Topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding
Keys List<String> - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - endpoint String
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- List<String>
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify
Content StringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy String - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol String
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription
Name String - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Map<String,String>
- Tag description list.
- tcmq
Subscribe StringId - ID of the resource.
- topic
Name String - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding
Keys string[] - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - endpoint string
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- string[]
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify
Content stringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol string
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- {[key: string]: string}
- Tag description list.
- tcmq
Subscribe stringId - ID of the resource.
- topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding_
keys Sequence[str] - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - endpoint str
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- Sequence[str]
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify_
content_ strformat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify_
strategy str - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol str
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription_
name str - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Mapping[str, str]
- Tag description list.
- tcmq_
subscribe_ strid - ID of the resource.
- topic_
name str - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- binding
Keys List<String> - The number of
BindingKey
cannot exceed 5, and the length of eachBindingKey
cannot exceed 64 bytes. This field indicates the filtering policy for subscribing to and receiving messages. EachBindingKey
includes up to 15 dots (namely up to 16 segments). - endpoint String
Endpoint
for notification receipt, which is distinguished byProtocol
. Forhttp
,Endpoint
must begin withhttp://
andhost
can be a domain name or IP. ForQueue
, enterQueueName
. Note that currently the push service cannot push messages to a VPC; therefore, if a VPC domain name or address is entered forEndpoint
, pushed messages will not be received. Currently, messages can be pushed only to the public network and classic network.- List<String>
- Message body tag (used for message filtering). The number of tags cannot exceed 5, and each tag can contain up to 16 characters. It is used in conjunction with the
MsgTag
parameter of(Batch)PublishMessage
. Rules: 1. IfFilterTag
is not configured, no matter whetherMsgTag
is configured, the subscription will receive all messages published to the topic; 2. If the array ofFilterTag
values has a value, only when at least one of the values in the array also exists in the array ofMsgTag
values (i.e.,FilterTag
andMsgTag
have an intersection) can the subscription receive messages published to the topic; 3. If the array ofFilterTag
values has a value, butMsgTag
is not configured, then no message published to the topic will be received, which can be considered as a special case of rule 2 asFilterTag
andMsgTag
do not intersect in this case. The overall design idea of rules is based on the intention of the subscriber. - notify
Content StringFormat - Push content format. Valid values: 1. JSON; 2. SIMPLIFIED, i.e., the raw format. If
Protocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy String - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol String
- ubscription protocol. Currently, two protocols are supported:
http
andqueue
. To use thehttp
protocol, you need to build your own web server to receive messages. With thequeue
protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently. - subscription
Name String - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Map<String>
- Tag description list.
- tcmq
Subscribe StringId - ID of the resource.
- topic
Name String - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
Import
tcmq subscribe can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tcmqSubscribe:TcmqSubscribe subscribe subscribe_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.