AWS SNS到AWS Lambda集成的CDK构造
aws-solutions-konstruk.aws-sns-lambda的Python项目详细描述
aws sns lambda模块
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/ |
---|
这个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}$参数
构装道具
Name | Type | Description |
---|---|---|
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 ^{ |
existingLambdaObj? | ^{ | An optional, existing Lambda function. This property is required if ^{ |
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. |
图案属性
Name | Type | Description |
---|---|---|
lambdaFunction() | ^{ | Returns an instance of the Lambda function created by the pattern. |
snsTopic() | ^{ | Returns an instance of the SNS topic created by the pattern. |
建筑
©版权所有2020亚马逊网站,Inc.或其附属公司。版权所有。在
- 项目
标签: