CDK构造,用于定义AWS Lambda函数和amazons3 bucket之间的交互。
aws-solutions-constructs.aws-apigateway-sqs的Python项目详细描述
aws apigateway sqs模块
---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解决方案构造实现了一个连接到amazonsqs队列模式的amazonapi网关。在
以下是Typescript中的最小可部署模式定义:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromaws_solutions_constructs.aws_apigateway_sqsimportApiGatewayToSqs,ApiGatewayToSqsPropsApiGatewayToSqs(self,"ApiGatewayToSqsPattern")
初始值设定项
^{pr2}$参数
构装道具
^{3}$图案属性
Name | Type | Description |
---|---|---|
apiGateway | ^{ | Returns an instance of the API Gateway REST API created by the pattern. |
apiGatewayRole | ^{ | Returns an instance of the iam.Role created by the construct for API Gateway. |
apiGatewayCloudWatchRole | ^{ | Returns an instance of the iam.Role created by the construct for API Gateway for CloudWatch access. |
apiGatewayLogGroup | ^{ | Returns an instance of the LogGroup created by the construct for API Gateway access logging to CloudWatch. |
sqsQueue | ^{ | Returns an instance of the SQS queue created by the pattern. |
deadLetterQueue? | ^{ | Returns an instance of the DeadLetterQueue created by the pattern. |
API用法示例
Method | Request Path | Request Body | Queue Action | Description |
---|---|---|---|---|
GET | ^{ | ^{ | Retrieves a message from the queue. | |
POST | ^{ | ^{ | ^{ | Delivers a message to the queue. |
DELETE | ^{ | ^{ | Deletes a specified message from the queue |
默认设置
没有任何重写的构件的现成实现将设置以下默认值:
亚马逊API网关
- 部署边缘优化的API终结点
- 为API网关启用CloudWatch日志记录
- 为API网关配置最小权限访问IAM角色
- 将所有API方法的默认授权类型设置为IAM
- 启用X射线跟踪
Amazon SQS队列
- 为源SQS队列部署SQS死信队列
- 使用AWS托管KMS密钥为源SQS队列启用服务器端加密
- 对传输中的数据进行加密
建筑
©版权所有2020亚马逊网站,Inc.或其附属公司。版权所有。在
- 项目
标签: