@aws-solutions-constructs/aws-route53-apigateway 2.51.0 → 2.52.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/.eslintignore +3 -1
- package/.jsii +49 -4
- package/integ.config.json +7 -0
- package/lib/index.js +1 -1
- package/package.json +9 -8
- package/test/integ.r53api-dummyTest.js +5 -2
- package/test/integ.r53api-dummyTest.js.snapshot/cdk.out +1 -0
- package/test/integ.r53api-dummyTest.js.snapshot/integ.json +12 -0
- package/test/integ.r53api-dummyTest.js.snapshot/manifest.json +161 -0
- package/test/integ.r53api-dummyTest.js.snapshot/r53api-dummyTest.assets.json +19 -0
- package/test/integ.r53api-dummyTest.js.snapshot/r53api-dummyTest.template.json +257 -0
- package/test/integ.r53api-dummyTest.js.snapshot/r53apidummyTestIntegDefaultTestDeployAssert95FDDAD3.assets.json +19 -0
- package/test/integ.r53api-dummyTest.js.snapshot/r53apidummyTestIntegDefaultTestDeployAssert95FDDAD3.template.json +36 -0
- package/test/integ.r53api-dummyTest.js.snapshot/tree.json +420 -0
- package/test/integ.r53api-dummyTest.expected.json +0 -257
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Description": "Dummy Integration Test for aws-route53-apigateway",
|
|
3
|
-
"Resources": {
|
|
4
|
-
"ApiAccessLogGroupCEA70788": {
|
|
5
|
-
"Type": "AWS::Logs::LogGroup",
|
|
6
|
-
"UpdateReplacePolicy": "Retain",
|
|
7
|
-
"DeletionPolicy": "Retain",
|
|
8
|
-
"Metadata": {
|
|
9
|
-
"cfn_nag": {
|
|
10
|
-
"rules_to_suppress": [
|
|
11
|
-
{
|
|
12
|
-
"id": "W86",
|
|
13
|
-
"reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": "W84",
|
|
17
|
-
"reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"RestApi0C43BF4B": {
|
|
24
|
-
"Type": "AWS::ApiGateway::RestApi",
|
|
25
|
-
"Properties": {
|
|
26
|
-
"EndpointConfiguration": {
|
|
27
|
-
"Types": [
|
|
28
|
-
"REGIONAL"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"Name": "RestApi"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"RestApiDeployment180EC50303f556aa2d7ddf6a650ba4d72f3e85ac": {
|
|
35
|
-
"Type": "AWS::ApiGateway::Deployment",
|
|
36
|
-
"Properties": {
|
|
37
|
-
"Description": "Automatically created by the RestApi construct",
|
|
38
|
-
"RestApiId": {
|
|
39
|
-
"Ref": "RestApi0C43BF4B"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"DependsOn": [
|
|
43
|
-
"RestApiGET0F59260B"
|
|
44
|
-
],
|
|
45
|
-
"Metadata": {
|
|
46
|
-
"cfn_nag": {
|
|
47
|
-
"rules_to_suppress": [
|
|
48
|
-
{
|
|
49
|
-
"id": "W45",
|
|
50
|
-
"reason": "ApiGateway has AccessLogging enabled in AWS::ApiGateway::Stage resource, but cfn_nag checks for it in AWS::ApiGateway::Deployment resource"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"RestApiDeploymentStageprod3855DE66": {
|
|
57
|
-
"Type": "AWS::ApiGateway::Stage",
|
|
58
|
-
"Properties": {
|
|
59
|
-
"AccessLogSetting": {
|
|
60
|
-
"DestinationArn": {
|
|
61
|
-
"Fn::GetAtt": [
|
|
62
|
-
"ApiAccessLogGroupCEA70788",
|
|
63
|
-
"Arn"
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
"Format": "{\"requestId\":\"$context.requestId\",\"ip\":\"$context.identity.sourceIp\",\"user\":\"$context.identity.user\",\"caller\":\"$context.identity.caller\",\"requestTime\":\"$context.requestTime\",\"httpMethod\":\"$context.httpMethod\",\"resourcePath\":\"$context.resourcePath\",\"status\":\"$context.status\",\"protocol\":\"$context.protocol\",\"responseLength\":\"$context.responseLength\"}"
|
|
67
|
-
},
|
|
68
|
-
"DeploymentId": {
|
|
69
|
-
"Ref": "RestApiDeployment180EC50303f556aa2d7ddf6a650ba4d72f3e85ac"
|
|
70
|
-
},
|
|
71
|
-
"MethodSettings": [
|
|
72
|
-
{
|
|
73
|
-
"DataTraceEnabled": false,
|
|
74
|
-
"HttpMethod": "*",
|
|
75
|
-
"LoggingLevel": "INFO",
|
|
76
|
-
"ResourcePath": "/*"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"RestApiId": {
|
|
80
|
-
"Ref": "RestApi0C43BF4B"
|
|
81
|
-
},
|
|
82
|
-
"StageName": "prod",
|
|
83
|
-
"TracingEnabled": true
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"RestApiGET0F59260B": {
|
|
87
|
-
"Type": "AWS::ApiGateway::Method",
|
|
88
|
-
"Properties": {
|
|
89
|
-
"AuthorizationType": "AWS_IAM",
|
|
90
|
-
"HttpMethod": "GET",
|
|
91
|
-
"Integration": {
|
|
92
|
-
"Type": "MOCK"
|
|
93
|
-
},
|
|
94
|
-
"ResourceId": {
|
|
95
|
-
"Fn::GetAtt": [
|
|
96
|
-
"RestApi0C43BF4B",
|
|
97
|
-
"RootResourceId"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"RestApiId": {
|
|
101
|
-
"Ref": "RestApi0C43BF4B"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"RestApiUsagePlan6E1C537A": {
|
|
106
|
-
"Type": "AWS::ApiGateway::UsagePlan",
|
|
107
|
-
"Properties": {
|
|
108
|
-
"ApiStages": [
|
|
109
|
-
{
|
|
110
|
-
"ApiId": {
|
|
111
|
-
"Ref": "RestApi0C43BF4B"
|
|
112
|
-
},
|
|
113
|
-
"Stage": {
|
|
114
|
-
"Ref": "RestApiDeploymentStageprod3855DE66"
|
|
115
|
-
},
|
|
116
|
-
"Throttle": {}
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"LambdaRestApiCloudWatchRoleF339D4E6": {
|
|
122
|
-
"Type": "AWS::IAM::Role",
|
|
123
|
-
"Properties": {
|
|
124
|
-
"AssumeRolePolicyDocument": {
|
|
125
|
-
"Statement": [
|
|
126
|
-
{
|
|
127
|
-
"Action": "sts:AssumeRole",
|
|
128
|
-
"Effect": "Allow",
|
|
129
|
-
"Principal": {
|
|
130
|
-
"Service": "apigateway.amazonaws.com"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"Version": "2012-10-17"
|
|
135
|
-
},
|
|
136
|
-
"Policies": [
|
|
137
|
-
{
|
|
138
|
-
"PolicyDocument": {
|
|
139
|
-
"Statement": [
|
|
140
|
-
{
|
|
141
|
-
"Action": [
|
|
142
|
-
"logs:CreateLogGroup",
|
|
143
|
-
"logs:CreateLogStream",
|
|
144
|
-
"logs:DescribeLogGroups",
|
|
145
|
-
"logs:DescribeLogStreams",
|
|
146
|
-
"logs:PutLogEvents",
|
|
147
|
-
"logs:GetLogEvents",
|
|
148
|
-
"logs:FilterLogEvents"
|
|
149
|
-
],
|
|
150
|
-
"Effect": "Allow",
|
|
151
|
-
"Resource": {
|
|
152
|
-
"Fn::Join": [
|
|
153
|
-
"",
|
|
154
|
-
[
|
|
155
|
-
"arn:",
|
|
156
|
-
{
|
|
157
|
-
"Ref": "AWS::Partition"
|
|
158
|
-
},
|
|
159
|
-
":logs:",
|
|
160
|
-
{
|
|
161
|
-
"Ref": "AWS::Region"
|
|
162
|
-
},
|
|
163
|
-
":",
|
|
164
|
-
{
|
|
165
|
-
"Ref": "AWS::AccountId"
|
|
166
|
-
},
|
|
167
|
-
":*"
|
|
168
|
-
]
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"Version": "2012-10-17"
|
|
174
|
-
},
|
|
175
|
-
"PolicyName": "LambdaRestApiCloudWatchRolePolicy"
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"LambdaRestApiAccount": {
|
|
181
|
-
"Type": "AWS::ApiGateway::Account",
|
|
182
|
-
"Properties": {
|
|
183
|
-
"CloudWatchRoleArn": {
|
|
184
|
-
"Fn::GetAtt": [
|
|
185
|
-
"LambdaRestApiCloudWatchRoleF339D4E6",
|
|
186
|
-
"Arn"
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"DependsOn": [
|
|
191
|
-
"RestApi0C43BF4B"
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"Outputs": {
|
|
196
|
-
"RestApiEndpoint0551178A": {
|
|
197
|
-
"Value": {
|
|
198
|
-
"Fn::Join": [
|
|
199
|
-
"",
|
|
200
|
-
[
|
|
201
|
-
"https://",
|
|
202
|
-
{
|
|
203
|
-
"Ref": "RestApi0C43BF4B"
|
|
204
|
-
},
|
|
205
|
-
".execute-api.",
|
|
206
|
-
{
|
|
207
|
-
"Ref": "AWS::Region"
|
|
208
|
-
},
|
|
209
|
-
".",
|
|
210
|
-
{
|
|
211
|
-
"Ref": "AWS::URLSuffix"
|
|
212
|
-
},
|
|
213
|
-
"/",
|
|
214
|
-
{
|
|
215
|
-
"Ref": "RestApiDeploymentStageprod3855DE66"
|
|
216
|
-
},
|
|
217
|
-
"/"
|
|
218
|
-
]
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"Parameters": {
|
|
224
|
-
"BootstrapVersion": {
|
|
225
|
-
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
226
|
-
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
227
|
-
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
"Rules": {
|
|
231
|
-
"CheckBootstrapVersion": {
|
|
232
|
-
"Assertions": [
|
|
233
|
-
{
|
|
234
|
-
"Assert": {
|
|
235
|
-
"Fn::Not": [
|
|
236
|
-
{
|
|
237
|
-
"Fn::Contains": [
|
|
238
|
-
[
|
|
239
|
-
"1",
|
|
240
|
-
"2",
|
|
241
|
-
"3",
|
|
242
|
-
"4",
|
|
243
|
-
"5"
|
|
244
|
-
],
|
|
245
|
-
{
|
|
246
|
-
"Ref": "BootstrapVersion"
|
|
247
|
-
}
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|