alicloud.eventbridge.Rule
Explore with Pulumi AI
Provides a Event Bridge Rule resource.
For information about Event Bridge Rule and how to use it, see What is Rule.
NOTE: Available since v1.129.0.
Create Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);
@overload
def Rule(resource_name: str,
args: RuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Rule(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_bus_name: Optional[str] = None,
filter_pattern: Optional[str] = None,
rule_name: Optional[str] = None,
targets: Optional[Sequence[RuleTargetArgs]] = None,
description: Optional[str] = None,
status: Optional[str] = None)
func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
type: alicloud:eventbridge:Rule
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 RuleArgs
- 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 RuleArgs
- 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 RuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleArgs
- 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 exampleruleResourceResourceFromEventbridgerule = new AliCloud.EventBridge.Rule("exampleruleResourceResourceFromEventbridgerule", new()
{
EventBusName = "string",
FilterPattern = "string",
RuleName = "string",
Targets = new[]
{
new AliCloud.EventBridge.Inputs.RuleTargetArgs
{
Endpoint = "string",
ParamLists = new[]
{
new AliCloud.EventBridge.Inputs.RuleTargetParamListArgs
{
Form = "string",
ResourceKey = "string",
Template = "string",
Value = "string",
},
},
TargetId = "string",
Type = "string",
DeadLetterQueue = new AliCloud.EventBridge.Inputs.RuleTargetDeadLetterQueueArgs
{
Arn = "string",
},
PushRetryStrategy = "string",
},
},
Description = "string",
Status = "string",
});
example, err := eventbridge.NewRule(ctx, "exampleruleResourceResourceFromEventbridgerule", &eventbridge.RuleArgs{
EventBusName: pulumi.String("string"),
FilterPattern: pulumi.String("string"),
RuleName: pulumi.String("string"),
Targets: eventbridge.RuleTargetArray{
&eventbridge.RuleTargetArgs{
Endpoint: pulumi.String("string"),
ParamLists: eventbridge.RuleTargetParamListArray{
&eventbridge.RuleTargetParamListArgs{
Form: pulumi.String("string"),
ResourceKey: pulumi.String("string"),
Template: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TargetId: pulumi.String("string"),
Type: pulumi.String("string"),
DeadLetterQueue: &eventbridge.RuleTargetDeadLetterQueueArgs{
Arn: pulumi.String("string"),
},
PushRetryStrategy: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Status: pulumi.String("string"),
})
var exampleruleResourceResourceFromEventbridgerule = new Rule("exampleruleResourceResourceFromEventbridgerule", RuleArgs.builder()
.eventBusName("string")
.filterPattern("string")
.ruleName("string")
.targets(RuleTargetArgs.builder()
.endpoint("string")
.paramLists(RuleTargetParamListArgs.builder()
.form("string")
.resourceKey("string")
.template("string")
.value("string")
.build())
.targetId("string")
.type("string")
.deadLetterQueue(RuleTargetDeadLetterQueueArgs.builder()
.arn("string")
.build())
.pushRetryStrategy("string")
.build())
.description("string")
.status("string")
.build());
examplerule_resource_resource_from_eventbridgerule = alicloud.eventbridge.Rule("exampleruleResourceResourceFromEventbridgerule",
event_bus_name="string",
filter_pattern="string",
rule_name="string",
targets=[{
"endpoint": "string",
"param_lists": [{
"form": "string",
"resource_key": "string",
"template": "string",
"value": "string",
}],
"target_id": "string",
"type": "string",
"dead_letter_queue": {
"arn": "string",
},
"push_retry_strategy": "string",
}],
description="string",
status="string")
const exampleruleResourceResourceFromEventbridgerule = new alicloud.eventbridge.Rule("exampleruleResourceResourceFromEventbridgerule", {
eventBusName: "string",
filterPattern: "string",
ruleName: "string",
targets: [{
endpoint: "string",
paramLists: [{
form: "string",
resourceKey: "string",
template: "string",
value: "string",
}],
targetId: "string",
type: "string",
deadLetterQueue: {
arn: "string",
},
pushRetryStrategy: "string",
}],
description: "string",
status: "string",
});
type: alicloud:eventbridge:Rule
properties:
description: string
eventBusName: string
filterPattern: string
ruleName: string
status: string
targets:
- deadLetterQueue:
arn: string
endpoint: string
paramLists:
- form: string
resourceKey: string
template: string
value: string
pushRetryStrategy: string
targetId: string
type: string
Rule 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 Rule resource accepts the following input properties:
- Event
Bus stringName - The name of the event bus.
- Filter
Pattern string - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - Rule
Name string - The name of the event rule.
- Targets
List<Pulumi.
Ali Cloud. Event Bridge. Inputs. Rule Target> - The targets of rule. See
targets
below. - Description string
- The description of the event rule.
- Status string
- The status of the event rule. Valid values:
ENABLE
,DISABLE
.
- Event
Bus stringName - The name of the event bus.
- Filter
Pattern string - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - Rule
Name string - The name of the event rule.
- Targets
[]Rule
Target Args - The targets of rule. See
targets
below. - Description string
- The description of the event rule.
- Status string
- The status of the event rule. Valid values:
ENABLE
,DISABLE
.
- event
Bus StringName - The name of the event bus.
- filter
Pattern String - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule
Name String - The name of the event rule.
- targets
List<Rule
Target> - The targets of rule. See
targets
below. - description String
- The description of the event rule.
- status String
- The status of the event rule. Valid values:
ENABLE
,DISABLE
.
- event
Bus stringName - The name of the event bus.
- filter
Pattern string - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule
Name string - The name of the event rule.
- targets
Rule
Target[] - The targets of rule. See
targets
below. - description string
- The description of the event rule.
- status string
- The status of the event rule. Valid values:
ENABLE
,DISABLE
.
- event_
bus_ strname - The name of the event bus.
- filter_
pattern str - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule_
name str - The name of the event rule.
- targets
Sequence[Rule
Target Args] - The targets of rule. See
targets
below. - description str
- The description of the event rule.
- status str
- The status of the event rule. Valid values:
ENABLE
,DISABLE
.
- event
Bus StringName - The name of the event bus.
- filter
Pattern String - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule
Name String - The name of the event rule.
- targets List<Property Map>
- The targets of rule. See
targets
below. - description String
- The description of the event rule.
- status String
- The status of the event rule. Valid values:
ENABLE
,DISABLE
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Rule 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 Rule Resource
Get an existing Rule 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?: RuleState, opts?: CustomResourceOptions): Rule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
event_bus_name: Optional[str] = None,
filter_pattern: Optional[str] = None,
rule_name: Optional[str] = None,
status: Optional[str] = None,
targets: Optional[Sequence[RuleTargetArgs]] = None) -> Rule
func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
public static Rule get(String name, Output<String> id, RuleState 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.
- Description string
- The description of the event rule.
- Event
Bus stringName - The name of the event bus.
- Filter
Pattern string - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - Rule
Name string - The name of the event rule.
- Status string
- The status of the event rule. Valid values:
ENABLE
,DISABLE
. - Targets
List<Pulumi.
Ali Cloud. Event Bridge. Inputs. Rule Target> - The targets of rule. See
targets
below.
- Description string
- The description of the event rule.
- Event
Bus stringName - The name of the event bus.
- Filter
Pattern string - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - Rule
Name string - The name of the event rule.
- Status string
- The status of the event rule. Valid values:
ENABLE
,DISABLE
. - Targets
[]Rule
Target Args - The targets of rule. See
targets
below.
- description String
- The description of the event rule.
- event
Bus StringName - The name of the event bus.
- filter
Pattern String - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule
Name String - The name of the event rule.
- status String
- The status of the event rule. Valid values:
ENABLE
,DISABLE
. - targets
List<Rule
Target> - The targets of rule. See
targets
below.
- description string
- The description of the event rule.
- event
Bus stringName - The name of the event bus.
- filter
Pattern string - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule
Name string - The name of the event rule.
- status string
- The status of the event rule. Valid values:
ENABLE
,DISABLE
. - targets
Rule
Target[] - The targets of rule. See
targets
below.
- description str
- The description of the event rule.
- event_
bus_ strname - The name of the event bus.
- filter_
pattern str - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule_
name str - The name of the event rule.
- status str
- The status of the event rule. Valid values:
ENABLE
,DISABLE
. - targets
Sequence[Rule
Target Args] - The targets of rule. See
targets
below.
- description String
- The description of the event rule.
- event
Bus StringName - The name of the event bus.
- filter
Pattern String - The pattern to match interested events. Event mode, JSON format. The value description is as follows:
stringEqual
mode.stringExpression
mode. Each field has up to 5 expressions (map structure). - rule
Name String - The name of the event rule.
- status String
- The status of the event rule. Valid values:
ENABLE
,DISABLE
. - targets List<Property Map>
- The targets of rule. See
targets
below.
Supporting Types
RuleTarget, RuleTargetArgs
- Endpoint string
- The endpoint of the event target.
- Param
Lists List<Pulumi.Ali Cloud. Event Bridge. Inputs. Rule Target Param List> - The parameters that are configured for the event target. See
param_list
below. - Target
Id string - The ID of the custom event target.
- Type string
- The type of the event target. Valid values:
acs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.dingtalk
,acs.eventbridge
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fc.function
,acs.fnf
,acs.k8s
,acs.mail
,acs.mns.queue
,acs.mns.topic
,acs.openapi
,acs.rabbitmq
,acs.rds.mysql
,acs.rocketmq
,acs.sae
,acs.sls
,acs.sms
,http
,https
andmysql
. NOTE: From version 1.208.1,type
can be set toacs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fnf
,acs.k8s
,acs.openapi
,acs.rds.mysql
,acs.sae
,acs.sls
,mysql
. - Dead
Letter Pulumi.Queue Ali Cloud. Event Bridge. Inputs. Rule Target Dead Letter Queue - The dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See
dead_letter_queue
below. - Push
Retry stringStrategy - The retry policy that is used to push the event. Valid values:
BACKOFF_RETRY
: Backoff retry. The request can be retried up to three times. The interval between two consecutive retries is a random value between 10 and 20 seconds.EXPONENTIAL_DECAY_RETRY
: Exponential decay retry. The request can be retried up to 176 times. The interval between two consecutive retries exponentially increases to 512 seconds, and the total retry time is one day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512, ..., and 512 seconds, including a maximum of one hundred and sixty-seven 512 seconds in total.
- Endpoint string
- The endpoint of the event target.
- Param
Lists []RuleTarget Param List - The parameters that are configured for the event target. See
param_list
below. - Target
Id string - The ID of the custom event target.
- Type string
- The type of the event target. Valid values:
acs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.dingtalk
,acs.eventbridge
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fc.function
,acs.fnf
,acs.k8s
,acs.mail
,acs.mns.queue
,acs.mns.topic
,acs.openapi
,acs.rabbitmq
,acs.rds.mysql
,acs.rocketmq
,acs.sae
,acs.sls
,acs.sms
,http
,https
andmysql
. NOTE: From version 1.208.1,type
can be set toacs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fnf
,acs.k8s
,acs.openapi
,acs.rds.mysql
,acs.sae
,acs.sls
,mysql
. - Dead
Letter RuleQueue Target Dead Letter Queue - The dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See
dead_letter_queue
below. - Push
Retry stringStrategy - The retry policy that is used to push the event. Valid values:
BACKOFF_RETRY
: Backoff retry. The request can be retried up to three times. The interval between two consecutive retries is a random value between 10 and 20 seconds.EXPONENTIAL_DECAY_RETRY
: Exponential decay retry. The request can be retried up to 176 times. The interval between two consecutive retries exponentially increases to 512 seconds, and the total retry time is one day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512, ..., and 512 seconds, including a maximum of one hundred and sixty-seven 512 seconds in total.
- endpoint String
- The endpoint of the event target.
- param
Lists List<RuleTarget Param List> - The parameters that are configured for the event target. See
param_list
below. - target
Id String - The ID of the custom event target.
- type String
- The type of the event target. Valid values:
acs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.dingtalk
,acs.eventbridge
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fc.function
,acs.fnf
,acs.k8s
,acs.mail
,acs.mns.queue
,acs.mns.topic
,acs.openapi
,acs.rabbitmq
,acs.rds.mysql
,acs.rocketmq
,acs.sae
,acs.sls
,acs.sms
,http
,https
andmysql
. NOTE: From version 1.208.1,type
can be set toacs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fnf
,acs.k8s
,acs.openapi
,acs.rds.mysql
,acs.sae
,acs.sls
,mysql
. - dead
Letter RuleQueue Target Dead Letter Queue - The dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See
dead_letter_queue
below. - push
Retry StringStrategy - The retry policy that is used to push the event. Valid values:
BACKOFF_RETRY
: Backoff retry. The request can be retried up to three times. The interval between two consecutive retries is a random value between 10 and 20 seconds.EXPONENTIAL_DECAY_RETRY
: Exponential decay retry. The request can be retried up to 176 times. The interval between two consecutive retries exponentially increases to 512 seconds, and the total retry time is one day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512, ..., and 512 seconds, including a maximum of one hundred and sixty-seven 512 seconds in total.
- endpoint string
- The endpoint of the event target.
- param
Lists RuleTarget Param List[] - The parameters that are configured for the event target. See
param_list
below. - target
Id string - The ID of the custom event target.
- type string
- The type of the event target. Valid values:
acs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.dingtalk
,acs.eventbridge
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fc.function
,acs.fnf
,acs.k8s
,acs.mail
,acs.mns.queue
,acs.mns.topic
,acs.openapi
,acs.rabbitmq
,acs.rds.mysql
,acs.rocketmq
,acs.sae
,acs.sls
,acs.sms
,http
,https
andmysql
. NOTE: From version 1.208.1,type
can be set toacs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fnf
,acs.k8s
,acs.openapi
,acs.rds.mysql
,acs.sae
,acs.sls
,mysql
. - dead
Letter RuleQueue Target Dead Letter Queue - The dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See
dead_letter_queue
below. - push
Retry stringStrategy - The retry policy that is used to push the event. Valid values:
BACKOFF_RETRY
: Backoff retry. The request can be retried up to three times. The interval between two consecutive retries is a random value between 10 and 20 seconds.EXPONENTIAL_DECAY_RETRY
: Exponential decay retry. The request can be retried up to 176 times. The interval between two consecutive retries exponentially increases to 512 seconds, and the total retry time is one day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512, ..., and 512 seconds, including a maximum of one hundred and sixty-seven 512 seconds in total.
- endpoint str
- The endpoint of the event target.
- param_
lists Sequence[RuleTarget Param List] - The parameters that are configured for the event target. See
param_list
below. - target_
id str - The ID of the custom event target.
- type str
- The type of the event target. Valid values:
acs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.dingtalk
,acs.eventbridge
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fc.function
,acs.fnf
,acs.k8s
,acs.mail
,acs.mns.queue
,acs.mns.topic
,acs.openapi
,acs.rabbitmq
,acs.rds.mysql
,acs.rocketmq
,acs.sae
,acs.sls
,acs.sms
,http
,https
andmysql
. NOTE: From version 1.208.1,type
can be set toacs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fnf
,acs.k8s
,acs.openapi
,acs.rds.mysql
,acs.sae
,acs.sls
,mysql
. - dead_
letter_ Rulequeue Target Dead Letter Queue - The dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See
dead_letter_queue
below. - push_
retry_ strstrategy - The retry policy that is used to push the event. Valid values:
BACKOFF_RETRY
: Backoff retry. The request can be retried up to three times. The interval between two consecutive retries is a random value between 10 and 20 seconds.EXPONENTIAL_DECAY_RETRY
: Exponential decay retry. The request can be retried up to 176 times. The interval between two consecutive retries exponentially increases to 512 seconds, and the total retry time is one day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512, ..., and 512 seconds, including a maximum of one hundred and sixty-seven 512 seconds in total.
- endpoint String
- The endpoint of the event target.
- param
Lists List<Property Map> - The parameters that are configured for the event target. See
param_list
below. - target
Id String - The ID of the custom event target.
- type String
- The type of the event target. Valid values:
acs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.dingtalk
,acs.eventbridge
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fc.function
,acs.fnf
,acs.k8s
,acs.mail
,acs.mns.queue
,acs.mns.topic
,acs.openapi
,acs.rabbitmq
,acs.rds.mysql
,acs.rocketmq
,acs.sae
,acs.sls
,acs.sms
,http
,https
andmysql
. NOTE: From version 1.208.1,type
can be set toacs.alikafka
,acs.api.destination
,acs.arms.loki
,acs.datahub
,acs.eventbridge.olap
,acs.eventbus.SLSCloudLens
,acs.fnf
,acs.k8s
,acs.openapi
,acs.rds.mysql
,acs.sae
,acs.sls
,mysql
. - dead
Letter Property MapQueue - The dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See
dead_letter_queue
below. - push
Retry StringStrategy - The retry policy that is used to push the event. Valid values:
BACKOFF_RETRY
: Backoff retry. The request can be retried up to three times. The interval between two consecutive retries is a random value between 10 and 20 seconds.EXPONENTIAL_DECAY_RETRY
: Exponential decay retry. The request can be retried up to 176 times. The interval between two consecutive retries exponentially increases to 512 seconds, and the total retry time is one day. The specific retry intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512, ..., and 512 seconds, including a maximum of one hundred and sixty-seven 512 seconds in total.
RuleTargetDeadLetterQueue, RuleTargetDeadLetterQueueArgs
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the dead letter queue. Events that are not processed or whose maximum retries are exceeded are written to the dead-letter queue. The ARN feature is supported by the following queue types: MNS and Message Queue for Apache RocketMQ.
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the dead letter queue. Events that are not processed or whose maximum retries are exceeded are written to the dead-letter queue. The ARN feature is supported by the following queue types: MNS and Message Queue for Apache RocketMQ.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the dead letter queue. Events that are not processed or whose maximum retries are exceeded are written to the dead-letter queue. The ARN feature is supported by the following queue types: MNS and Message Queue for Apache RocketMQ.
- arn string
- The Alibaba Cloud Resource Name (ARN) of the dead letter queue. Events that are not processed or whose maximum retries are exceeded are written to the dead-letter queue. The ARN feature is supported by the following queue types: MNS and Message Queue for Apache RocketMQ.
- arn str
- The Alibaba Cloud Resource Name (ARN) of the dead letter queue. Events that are not processed or whose maximum retries are exceeded are written to the dead-letter queue. The ARN feature is supported by the following queue types: MNS and Message Queue for Apache RocketMQ.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the dead letter queue. Events that are not processed or whose maximum retries are exceeded are written to the dead-letter queue. The ARN feature is supported by the following queue types: MNS and Message Queue for Apache RocketMQ.
RuleTargetParamList, RuleTargetParamListArgs
- Form string
- The format of the event target parameter. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
. - Resource
Key string - The resource parameter of the event target. For more information, see How to use it
- Template string
- The template of the event target parameter.
- Value string
The value of the event target parameter.
NOTE: There exists a potential diff error that the backend service will return a default param as following:
param_list { resource_key = "IsBase64Encode" form = "CONSTANT" value = "false" template = "" }
In order to fix the diff, from version 1.160.0, this resource has removed the param which
resource_key = "IsBase64Encode"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.
- Form string
- The format of the event target parameter. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
. - Resource
Key string - The resource parameter of the event target. For more information, see How to use it
- Template string
- The template of the event target parameter.
- Value string
The value of the event target parameter.
NOTE: There exists a potential diff error that the backend service will return a default param as following:
param_list { resource_key = "IsBase64Encode" form = "CONSTANT" value = "false" template = "" }
In order to fix the diff, from version 1.160.0, this resource has removed the param which
resource_key = "IsBase64Encode"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.
- form String
- The format of the event target parameter. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
. - resource
Key String - The resource parameter of the event target. For more information, see How to use it
- template String
- The template of the event target parameter.
- value String
The value of the event target parameter.
NOTE: There exists a potential diff error that the backend service will return a default param as following:
param_list { resource_key = "IsBase64Encode" form = "CONSTANT" value = "false" template = "" }
In order to fix the diff, from version 1.160.0, this resource has removed the param which
resource_key = "IsBase64Encode"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.
- form string
- The format of the event target parameter. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
. - resource
Key string - The resource parameter of the event target. For more information, see How to use it
- template string
- The template of the event target parameter.
- value string
The value of the event target parameter.
NOTE: There exists a potential diff error that the backend service will return a default param as following:
param_list { resource_key = "IsBase64Encode" form = "CONSTANT" value = "false" template = "" }
In order to fix the diff, from version 1.160.0, this resource has removed the param which
resource_key = "IsBase64Encode"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.
- form str
- The format of the event target parameter. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
. - resource_
key str - The resource parameter of the event target. For more information, see How to use it
- template str
- The template of the event target parameter.
- value str
The value of the event target parameter.
NOTE: There exists a potential diff error that the backend service will return a default param as following:
param_list { resource_key = "IsBase64Encode" form = "CONSTANT" value = "false" template = "" }
In order to fix the diff, from version 1.160.0, this resource has removed the param which
resource_key = "IsBase64Encode"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.
- form String
- The format of the event target parameter. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
. - resource
Key String - The resource parameter of the event target. For more information, see How to use it
- template String
- The template of the event target parameter.
- value String
The value of the event target parameter.
NOTE: There exists a potential diff error that the backend service will return a default param as following:
param_list { resource_key = "IsBase64Encode" form = "CONSTANT" value = "false" template = "" }
In order to fix the diff, from version 1.160.0, this resource has removed the param which
resource_key = "IsBase64Encode"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.
Import
Event Bridge Rule can be imported using the id, e.g.
$ pulumi import alicloud:eventbridge/rule:Rule example <event_bus_name>:<rule_name>
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.