CDK构造用于定义AWS Lambda函数和Amazon SNS主题之间的交互。

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


aws lambda 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解决方案构造实现了一个连接到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}$

参数

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

构装道具

NameTypeDescription
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.

图案属性

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.

默认设置

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

AWS Lambda函数

  • 为Lambda函数配置受限权限访问IAM角色
  • 启用NodeJs Lambda函数的Keep Alive重用连接
  • 启用X射线跟踪

亚马逊社交网站主题

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

建筑

Architecture Diagram


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

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

推荐PyPI第三方库


热门话题
java Spring框架服务单元测试   在Java中遍历hashmaps的hashmap以检索字符串值   如何使用CodeQL检查Java注释是否具有特定属性?   java为什么在Spring Boot中访问此资源而不是登录弹出窗口需要始终获得完全身份验证   处理将多集计数转换为列表的过程   java另一个线性布局,没有出现按钮   eclipse Java映像加载未显示在jar中   java Junit类无法加载基本测试类ApplicationContext   java如何在main中使用my getvalues()方法打印列表   java Sonar,S128:切换案例应该以无条件的“中断”语句结束,而不是继续   java从socket读取字符串错误连接重置错误   java使用新数据刷新任意图表饼图   java通过异步运行lambda访问方法参数   java错误的结果一旦我处理try and catch