forked from aws/aws-cdk
/
test-stack.template.json
147 lines (147 loc) · 2.83 KB
/
test-stack.template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"Resources": {
"ApiF70053CD": {
"Type": "AWS::ApiGateway::RestApi",
"Properties": {
"Name": "Api"
}
},
"ApiDeploymentB17BE62Df672ad8455f9678e4a3db5854bdb8d73": {
"Type": "AWS::ApiGateway::Deployment",
"Properties": {
"RestApiId": {
"Ref": "ApiF70053CD"
},
"Description": "Automatically created by the RestApi construct"
},
"DependsOn": [
"ApiGET9257B917"
]
},
"ApiDeploymentStageprod3EB9684E": {
"Type": "AWS::ApiGateway::Stage",
"Properties": {
"RestApiId": {
"Ref": "ApiF70053CD"
},
"DeploymentId": {
"Ref": "ApiDeploymentB17BE62Df672ad8455f9678e4a3db5854bdb8d73"
},
"StageName": "prod"
}
},
"ApiGET9257B917": {
"Type": "AWS::ApiGateway::Method",
"Properties": {
"HttpMethod": "GET",
"ResourceId": {
"Fn::GetAtt": [
"ApiF70053CD",
"RootResourceId"
]
},
"RestApiId": {
"Ref": "ApiF70053CD"
},
"AuthorizationType": "NONE",
"Integration": {
"Type": "MOCK"
}
}
},
"MappingOneAB5D4FD4": {
"Type": "AWS::ApiGateway::BasePathMapping",
"Properties": {
"DomainName": "domainName",
"RestApiId": {
"Ref": "ApiF70053CD"
},
"Stage": {
"Ref": "ApiDeploymentStageprod3EB9684E"
}
}
},
"MappingTwo551C79ED": {
"Type": "AWS::ApiGateway::BasePathMapping",
"Properties": {
"DomainName": "domainName",
"BasePath": "path",
"RestApiId": {
"Ref": "ApiF70053CD"
}
}
},
"MappingThree36BBA1B6": {
"Type": "AWS::ApiGateway::BasePathMapping",
"Properties": {
"DomainName": "domainName",
"BasePath": "api/v1/multi-level-path",
"RestApiId": {
"Ref": "ApiF70053CD"
}
}
}
},
"Outputs": {
"ApiEndpoint4F160690": {
"Value": {
"Fn::Join": [
"",
[
"https://",
{
"Ref": "ApiF70053CD"
},
".execute-api.",
{
"Ref": "AWS::Region"
},
".",
{
"Ref": "AWS::URLSuffix"
},
"/",
{
"Ref": "ApiDeploymentStageprod3EB9684E"
},
"/"
]
]
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}