CDK构造用于定义AWS Lambda函数和Amazon SNS主题之间的交互。
aws-solutions-constructs.aws-lambda-sns的Python项目详细描述
aws lambda sns模块
---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/ |
---|
这个AWS解决方案构造实现了一个连接到Amazon SNS主题的AWS Lambda函数。在
以下是Typescript中的最小可部署模式定义:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromaws_solutions_constructs.aws_lambda_snsimportLambdaToSns,LambdaToSnsPropsLambdaToSns(self,"test-lambda-sns",lambda_function_props=FunctionProps(runtime=lambda_.Runtime.NODEJS_12_X,handler="index.handler",code=lambda_.Code.from_asset(f"{__dirname}/lambda")))
初始值设定项
^{pr2}$参数
构装道具
Name | Type | Description |
---|---|---|
existingLambdaObj? | ^{ | Existing instance of Lambda Function object, if this is set then the lambdaFunctionProps is ignored. |
lambdaFunctionProps? | ^{ | User provided props to override the default props for the Lambda function. |
existingTopicObj? | ^{ | Existing instance of SNS Topic object, if this is set then the topicProps is ignored. |
topicProps? | ^{ | Optional user provided properties to override the default properties for the SNS topic. |
图案属性
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. |
默认设置
没有任何重写的构件的现成实现将设置以下默认值:
AWS Lambda函数
- 为Lambda函数配置受限权限访问IAM角色
- 启用NodeJs Lambda函数的Keep Alive重用连接
- 启用X射线跟踪
亚马逊社交网站主题
- 为SNS主题配置最小权限访问权限
- 使用AWS托管的KMS密钥为SNS主题启用服务器端加密
- 对传输中的数据进行加密
建筑
©版权所有2020亚马逊网站,Inc.或其附属公司。版权所有。在
- 项目
标签: