AWS SNS到AWS Lambda集成的CDK构造

aws-solutions-konstruk.aws-sns-lambda的Python项目详细描述


aws sns lambda模块

Stability: Experimental

This is a developer preview (public beta) module.

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.


API Reference:http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-sns-lambda/
^{tb2}$

这个AWS解决方案Konstruk实现了一个连接到AWS Lambda函数的Amazon SNS。在

下面是一个最小的可部署模式定义:

const{SnsToLambdaProps,SnsToLambda}=require('@aws-solutions-konstruk/aws-sns-lambda');conststack=newStack(app,'test-sns-lambda');// Definitionsconstprops:SnsToLambdaProps={deployLambda:true,lambdaFunctionProps:{runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler',code:lambda.Code.asset(`${__dirname}/lambda`)}};newSnsToLambda(stack,'test-sns-lambda',props);

初始值设定项

^{pr2}$

参数

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

构装道具

NameTypeDescription
deployLambda^{}Whether to create a new Lambda function or use an existing Lambda function. If set to false, you must provide an existing function for the ^{} property.
existingLambdaObj?^{}An optional, existing Lambda function. This property is required if ^{} is set to false.
lambdaFunctionProps?^{}Optional user-provided props to override the default props for the lambda function
topicProps?^{}Optional user provided properties to override the default properties for the SNS topic.
enableEncryption?^{}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 with.

图案属性

NameTypeDescription
lambdaFunction()^{}Returns an instance of the Lambda function created by the pattern.
snsTopic()^{}Returns an instance of the SNS topic created by the pattern.

建筑

Architecture Diagram


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

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

推荐PyPI第三方库


热门话题
编译器构造为什么在Java中允许初始化对Null的引用?   java手动调用javax的actionPerformed。摆动计时器   使用git分支的java Maven版本控制   Java8句子流   java JPA OneToOne和OneToMany实体实例化/创建   java如何将值添加到列表<Map<String,Object>>?   java如何使用ComboBox在一个框架内更改JPanel。getSelectedIndex()   java在比较XML和xmlunit时忽略文本差异   java无法从其他pc连接到本地主机   Java中分配对象id的优雅方式   Java中静态变量的使用   java试图从Neteller获取OAuth访问令牌时产生错误:“服务器返回HTTP响应代码:401表示URL”   Java:基元类型是否会影响性能?   java可以让hasNext()不区分大小写吗?   基于AutoCompleteTextView建议属性或AutoCompleteTextView值的java Android搜索   java流文件到firefox浏览器有时无法打开应用程序对话框   在没有ArrayList的Java中返回数组中的搜索结果   复制java。木卫一。IOException:数据错误(CRC)   java为什么我在尝试删除Facebook测试用户时会出现“方法未实现”错误   java如何使用JNA调用SetProcessReliationPolicy