{ "source": ["invoices"], "detail-type": ["InvoiceCreated", "InvoiceUpdated"] }
以下是一个在 AWS CLI 中使用 put-rule 命令创建自定义模式规则的示例:
aws events put-rule --name my-custom-rule --event-pattern '{"source": ["invoices"],"detail-type": ["InvoiceCreated", "InvoiceUpdated"]}' --state ENABLED
该命令创建了命名为 my-custom-rule 的新规则,并将自定义事件模式设置为 '{"source": ["invoices"],"detail-type": ["InvoiceCreated", "InvoiceUpdated"]}',并将规则状态设置为 ENABLED。
上一篇:AWSEventBridge在使用Localstack定时调用APIDestinations时会丢弃请求头和参数。
下一篇:AwsEventBusJavaclientdoesnotthrowerrorwhenmessageispublishedtononexistingeventbus