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

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


aws事件规则sns模块

---

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事件规则和awsns主题。在

以下是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_snsimportEventsRuleToSnsProps,EventsRuleToSnsprops=EventsRuleToSnsProps(event_rule_props=RuleProps(schedule=events.Schedule.rate(Duration.minutes(5))))construct_stack=EventsRuleToSns(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.
existingTopicObj?^{}Existing instance of SNS Topic object, if this is set then the topicProps is ignored.
topicProps?^{}User provided props to override the default props for the SNS Topic.
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 SNS Topic.
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
snsTopic^{}Returns an instance of sns.Topic created by the construct
encryptionKey?^{}Returns an instance of kms Key used for the SNS Topic.

默认设置

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

Amazon CloudWatch事件规则

  • 向CloudWatch事件授予发布到SNS主题的最低权限。在

亚马逊社交网站主题

  • 为SNS主题配置最小权限访问权限。在
  • 使用客户管理的KMS密钥为SNS主题启用服务器端加密。在
  • 对传输中的数据进行加密。在

建筑

Architecture Diagram


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

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

推荐PyPI第三方库


热门话题
java接口中的每个方法都是抽象的,但在抽象类中,我们也只能使用抽象方法   初始化Java中声明的、未初始化的变量会发生什么情况?   java BouncyCastle openPGP将字节[]数组加密为csv文件   在Java中将类A(和所有子类)映射到类B的实例的字典   RSA公钥编码,在Java和Android中,代码相同,结果不同   java在安卓中实现数字检测语音识别   java取消选择复选框   java如何在其他配置中重用Maven配置XML片段   java有没有一种有效的方法来检查HashMap是否包含映射到相同值的键?   spring处理程序调度失败;嵌套的例外是java。lang.NoClassDefFoundError:org/apache/http/client/HttpClient   带有ehcache的java多层缓存   java如何访问chromium(或任何其他浏览器)cookie   java通过将两个集合与spring data mongodb data中的条件合并来获取计数   安卓中R.java的语法错误