用于部署调用AWS SQS的AWS事件规则的CDK构造

aws-solutions-constructs.aws-events-rule-sqs的Python项目详细描述


aws事件规则sqs模块

---

Stability: Experimental

All classes are under active development and subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.


Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/
^{tb2}$

这个AWS解决方案构造实现了AWS事件规则和AWS SQS队列。在

以下是Typescript中的最小可部署模式定义:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromaws_cdk.coreimportDurationimportaws_cdk.aws_eventsaseventsimportaws_cdk.aws_iamasiamfromaws_solutions_constructs.aws_events_rule_sqsimportEventsRuleToSqsProps,EventsRuleToSqsprops=EventsRuleToSqsProps(event_rule_props=RuleProps(schedule=events.Schedule.rate(Duration.minutes(5))))construct_stack=EventsRuleToSqs(self,"test-construct",props)# Grant yourself permissions to use the Customer Managed KMS Keypolicy_statement=iam.PolicyStatement(actions=["kms:Encrypt","kms:Decrypt"],effect=iam.Effect.ALLOW,principals=[iam.AccountRootPrincipal()],resources=["*"])construct_stack.encryption_key.add_to_resource_policy(policy_statement)

初始值设定项

^{pr2}$

参数

  • 范围^{}
  • 标识string
  • 道具^{}

构装道具

NameTypeDescription
eventRuleProps^{}User provided eventRuleProps to override the defaults.
existingQueueObj?^{}An optional, existing SQS queue to be used instead of the default queue. If an existing queue is provided, the ^{} property will be ignored.
queueProps?^{}User provided props to override the default props for the SQS Queue.
enableQueuePurging?^{}Whether to grant additional permissions to the Lambda function enabling it to purge the SQS queue. Defaults to ^{}.
deployDeadLetterQueue?^{}Whether to create a secondary queue to be used as a dead letter queue. Defaults to ^{}.
deadLetterQueueProps?^{}Optional user-provided props to override the default props for the dead letter queue. Only used if the ^{} property is set to true.
maxReceiveCount?^{}The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. Defaults to ^{}.
enableEncryptionWithCustomerManagedKey?^{}Use a KMS Key, either managed by this CDK app, or imported. If importing an encryption key, it must be specified in the encryptionKey property for this construct.
encryptionKey?^{}An optional, imported encryption key to encrypt the SQS queue.
encryptionKeyProps?^{}An optional, user provided properties to override the default properties for the KMS encryption key.

图案属性

NameTypeDescription
eventsRule^{}Returns an instance of events.Rule created by the construct
sqsQueue^{}Returns an instance of sqs.Queue created by the construct
encryptionKey?^{}Returns an instance of kms Key used for the SQS queue.
deadLetterQueue?^{}Returns an instance of the dead-letter SQS queue created by the pattern.

默认设置

没有任何重写的构件的现成实现将设置以下默认值:

Amazon CloudWatch事件规则

  • 向CloudWatch事件授予最低权限以发布到SQS队列。在

Amazon SQS队列

  • 为源SQS队列部署SQS死信队列。在
  • 使用客户管理的KMS密钥为源SQS队列启用服务器端加密。在
  • 对传输中的数据进行加密。在

建筑

Architecture Diagram


©版权所有2020亚马逊网站,Inc.或其附属公司。版权所有。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么我不能从ObjectInputStream读取ArrayList?   linux如何设置java时区?   java是一种拥有系统的方法。出来在循环中打印不同的内容?   scala Apache Spark:在Java中有效地使用mapPartitions   java Maven对com的依赖性。白天利用率   java将多个数据映射到单个id的表的正式名称是什么?   java如何在Android应用程序中隐藏FulterWave API键   SeleniumWebDriverJava:如何使用行号和列号单击表中的特定单元格   java Springbatch将数据从写入程序或处理器传递到RestConroller   java在Android TextView中一次换行两行,并带有跨距   java如何使这个rxjava zip并行运行?   JAVAutil。登录中。记录器不尊重java。util。登录中。数量   java无法将参数发布到服务器   java Eclipse:在自定义透视图/视图的状态行上显示作业进度   java在调用findAll()时,找到了多个具有给定标识符的行,但如果我使用findById()遍历所有条目,则可以工作;   Java中的正则表达式问题   Java中的实例变量   java如何在安卓中逐字搜索   java如何计算百分比