@aws-solutions-constructs/aws-apigateway-lambda 2.80.0 → 2.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +43 -4
- package/lib/index.js +1 -1
- package/package.json +6 -6
- package/test/integ.apilam-deployFunction.js.snapshot/apilam-deployFunction.assets.json +3 -3
- package/test/integ.apilam-deployFunction.js.snapshot/apilam-deployFunction.template.json +24 -35
- package/test/integ.apilam-deployFunction.js.snapshot/apilamdeployFunctionIntegDefaultTestDeployAssert281C111D.assets.json +1 -1
- package/test/integ.apilam-deployFunction.js.snapshot/cdk.out +1 -1
- package/test/integ.apilam-deployFunction.js.snapshot/integ.json +1 -1
- package/test/integ.apilam-deployFunction.js.snapshot/manifest.json +290 -6
- package/test/integ.apilam-deployFunction.js.snapshot/tree.json +1 -927
- package/test/integ.apilam-existingFunction.js.snapshot/apilam-existingFunction.assets.json +3 -3
- package/test/integ.apilam-existingFunction.js.snapshot/apilam-existingFunction.template.json +24 -35
- package/test/integ.apilam-existingFunction.js.snapshot/apilamexistingFunctionIntegDefaultTestDeployAssert4238FD03.assets.json +1 -1
- package/test/integ.apilam-existingFunction.js.snapshot/cdk.out +1 -1
- package/test/integ.apilam-existingFunction.js.snapshot/integ.json +1 -1
- package/test/integ.apilam-existingFunction.js.snapshot/manifest.json +290 -6
- package/test/integ.apilam-existingFunction.js.snapshot/tree.json +1 -927
- package/test/integ.apilam-no-usage-plan.js.snapshot/apilam-no-usage-plan.assets.json +3 -3
- package/test/integ.apilam-no-usage-plan.js.snapshot/apilam-no-usage-plan.template.json +24 -35
- package/test/integ.apilam-no-usage-plan.js.snapshot/apilamnousageplanIntegDefaultTestDeployAssertFA088EA5.assets.json +1 -1
- package/test/integ.apilam-no-usage-plan.js.snapshot/cdk.out +1 -1
- package/test/integ.apilam-no-usage-plan.js.snapshot/integ.json +1 -1
- package/test/integ.apilam-no-usage-plan.js.snapshot/manifest.json +44 -41
- package/test/integ.apilam-no-usage-plan.js.snapshot/tree.json +1 -1078
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "40.0.0",
|
|
3
3
|
"files": {
|
|
4
4
|
"0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f": {
|
|
5
5
|
"source": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"3a6415e3df08844304f115c22dc5326fffdb2e72d603a024e1f5c0730c13d837": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "apilam-no-usage-plan.template.json",
|
|
20
20
|
"packaging": "file"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"destinations": {
|
|
23
23
|
"current_account-current_region": {
|
|
24
24
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
25
|
-
"objectKey": "
|
|
25
|
+
"objectKey": "3a6415e3df08844304f115c22dc5326fffdb2e72d603a024e1f5c0730c13d837.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -63,40 +63,6 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32": {
|
|
67
|
-
"Type": "AWS::IAM::Policy",
|
|
68
|
-
"Properties": {
|
|
69
|
-
"PolicyDocument": {
|
|
70
|
-
"Statement": [
|
|
71
|
-
{
|
|
72
|
-
"Action": [
|
|
73
|
-
"xray:PutTelemetryRecords",
|
|
74
|
-
"xray:PutTraceSegments"
|
|
75
|
-
],
|
|
76
|
-
"Effect": "Allow",
|
|
77
|
-
"Resource": "*"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"Version": "2012-10-17"
|
|
81
|
-
},
|
|
82
|
-
"PolicyName": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
|
|
83
|
-
"Roles": [
|
|
84
|
-
{
|
|
85
|
-
"Ref": "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
"Metadata": {
|
|
90
|
-
"cfn_nag": {
|
|
91
|
-
"rules_to_suppress": [
|
|
92
|
-
{
|
|
93
|
-
"id": "W12",
|
|
94
|
-
"reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
66
|
"testapigatewaylambdaLambdaFunction18FF222F": {
|
|
101
67
|
"Type": "AWS::Lambda::Function",
|
|
102
68
|
"Properties": {
|
|
@@ -124,7 +90,6 @@
|
|
|
124
90
|
}
|
|
125
91
|
},
|
|
126
92
|
"DependsOn": [
|
|
127
|
-
"testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
|
|
128
93
|
"testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
|
|
129
94
|
],
|
|
130
95
|
"Metadata": {
|
|
@@ -146,6 +111,30 @@
|
|
|
146
111
|
}
|
|
147
112
|
}
|
|
148
113
|
},
|
|
114
|
+
"testapigatewaylambdaLambdaFunctioninlinePolicyAddedToExecutionRole00FEF72FF": {
|
|
115
|
+
"Type": "AWS::IAM::Policy",
|
|
116
|
+
"Properties": {
|
|
117
|
+
"PolicyDocument": {
|
|
118
|
+
"Statement": [
|
|
119
|
+
{
|
|
120
|
+
"Action": [
|
|
121
|
+
"xray:PutTelemetryRecords",
|
|
122
|
+
"xray:PutTraceSegments"
|
|
123
|
+
],
|
|
124
|
+
"Effect": "Allow",
|
|
125
|
+
"Resource": "*"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"Version": "2012-10-17"
|
|
129
|
+
},
|
|
130
|
+
"PolicyName": "testapigatewaylambdaLambdaFunctioninlinePolicyAddedToExecutionRole00FEF72FF",
|
|
131
|
+
"Roles": [
|
|
132
|
+
{
|
|
133
|
+
"Ref": "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
149
138
|
"testapigatewaylambdaApiAccessLogGroupEB3253A2": {
|
|
150
139
|
"Type": "AWS::Logs::LogGroup",
|
|
151
140
|
"UpdateReplacePolicy": "Retain",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"40.0.0"}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"validateOnSynth": false,
|
|
67
67
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
68
68
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
69
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
69
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3a6415e3df08844304f115c22dc5326fffdb2e72d603a024e1f5c0730c13d837.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -93,14 +93,6 @@
|
|
|
93
93
|
"inlinePolicies": "*"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
{
|
|
97
|
-
"type": "aws:cdk:analytics:method",
|
|
98
|
-
"data": {
|
|
99
|
-
"addToPrincipalPolicy": [
|
|
100
|
-
{}
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
96
|
{
|
|
105
97
|
"type": "aws:cdk:analytics:method",
|
|
106
98
|
"data": {
|
|
@@ -130,25 +122,41 @@
|
|
|
130
122
|
"data": "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
|
|
131
123
|
}
|
|
132
124
|
],
|
|
133
|
-
"/apilam-no-usage-plan/test-apigateway-lambda/
|
|
125
|
+
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunction": [
|
|
134
126
|
{
|
|
135
127
|
"type": "aws:cdk:analytics:construct",
|
|
136
|
-
"data":
|
|
128
|
+
"data": {
|
|
129
|
+
"role": "*",
|
|
130
|
+
"tracing": "Active",
|
|
131
|
+
"runtime": "*",
|
|
132
|
+
"handler": "*",
|
|
133
|
+
"code": "*"
|
|
134
|
+
}
|
|
137
135
|
},
|
|
138
136
|
{
|
|
139
137
|
"type": "aws:cdk:analytics:method",
|
|
140
138
|
"data": {
|
|
141
|
-
"
|
|
142
|
-
"*"
|
|
139
|
+
"addEnvironment": [
|
|
140
|
+
"*",
|
|
141
|
+
"*",
|
|
142
|
+
{
|
|
143
|
+
"removeInEdge": true
|
|
144
|
+
}
|
|
143
145
|
]
|
|
144
146
|
}
|
|
145
|
-
}
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunction/Resource": [
|
|
146
150
|
{
|
|
147
|
-
"type": "aws:cdk:
|
|
151
|
+
"type": "aws:cdk:logicalId",
|
|
152
|
+
"data": "testapigatewaylambdaLambdaFunction18FF222F"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
|
|
156
|
+
{
|
|
157
|
+
"type": "aws:cdk:analytics:construct",
|
|
148
158
|
"data": {
|
|
149
|
-
"
|
|
150
|
-
"*"
|
|
151
|
-
]
|
|
159
|
+
"statements": "*"
|
|
152
160
|
}
|
|
153
161
|
},
|
|
154
162
|
{
|
|
@@ -158,42 +166,28 @@
|
|
|
158
166
|
{}
|
|
159
167
|
]
|
|
160
168
|
}
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunctionServiceRole/DefaultPolicy/Resource": [
|
|
164
|
-
{
|
|
165
|
-
"type": "aws:cdk:logicalId",
|
|
166
|
-
"data": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunction": [
|
|
169
|
+
},
|
|
170
170
|
{
|
|
171
|
-
"type": "aws:cdk:analytics:
|
|
171
|
+
"type": "aws:cdk:analytics:method",
|
|
172
172
|
"data": {
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"handler": "*",
|
|
177
|
-
"code": "*"
|
|
173
|
+
"attachToRole": [
|
|
174
|
+
"*"
|
|
175
|
+
]
|
|
178
176
|
}
|
|
179
177
|
},
|
|
180
178
|
{
|
|
181
179
|
"type": "aws:cdk:analytics:method",
|
|
182
180
|
"data": {
|
|
183
|
-
"
|
|
184
|
-
"*"
|
|
185
|
-
"*",
|
|
186
|
-
{
|
|
187
|
-
"removeInEdge": true
|
|
188
|
-
}
|
|
181
|
+
"attachToRole": [
|
|
182
|
+
"*"
|
|
189
183
|
]
|
|
190
184
|
}
|
|
191
185
|
}
|
|
192
186
|
],
|
|
193
|
-
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunction/Resource": [
|
|
187
|
+
"/apilam-no-usage-plan/test-apigateway-lambda/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
|
|
194
188
|
{
|
|
195
189
|
"type": "aws:cdk:logicalId",
|
|
196
|
-
"data": "
|
|
190
|
+
"data": "testapigatewaylambdaLambdaFunctioninlinePolicyAddedToExecutionRole00FEF72FF"
|
|
197
191
|
}
|
|
198
192
|
],
|
|
199
193
|
"/apilam-no-usage-plan/test-apigateway-lambda/ApiAccessLogGroup": [
|
|
@@ -463,6 +457,15 @@
|
|
|
463
457
|
"type": "aws:cdk:logicalId",
|
|
464
458
|
"data": "CheckBootstrapVersion"
|
|
465
459
|
}
|
|
460
|
+
],
|
|
461
|
+
"testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32": [
|
|
462
|
+
{
|
|
463
|
+
"type": "aws:cdk:logicalId",
|
|
464
|
+
"data": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
|
|
465
|
+
"trace": [
|
|
466
|
+
"!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
|
|
467
|
+
]
|
|
468
|
+
}
|
|
466
469
|
]
|
|
467
470
|
},
|
|
468
471
|
"displayName": "apilam-no-usage-plan"
|