@aws-cdk/region-info 2.0.0-rc.8 → 2.2.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 +163 -18
- package/.jsii.tabl.json +357 -0
- package/.warnings.jsii.js +27 -0
- package/build-tools/fact-tables.d.ts +15 -1
- package/build-tools/fact-tables.js +224 -3
- package/build-tools/generate-static-data.js +29 -1
- package/lib/built-ins.generated.d.ts +1 -1
- package/lib/built-ins.generated.js +219 -5
- package/lib/default.js +3 -2
- package/lib/fact.d.ts +18 -0
- package/lib/fact.js +28 -3
- package/lib/region-info.d.ts +20 -0
- package/lib/region-info.js +28 -2
- package/package.json +11 -12
- package/rosetta/_generated.ts-fixture +6 -0
package/.jsii.tabl.json
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2",
|
|
3
|
+
"toolVersion": "1.47.0",
|
|
4
|
+
"snippets": {
|
|
5
|
+
"8c2cf5382985a73a9d345453f03a663f572ed57348c2baa7ba30b2aa39fc278d": {
|
|
6
|
+
"translations": {
|
|
7
|
+
"python": {
|
|
8
|
+
"source": "from aws_cdk.region_info import RegionInfo\n\n# Get the information for \"eu-west-1\":\nregion = RegionInfo.get(\"eu-west-1\")\n\n# Access attributes:\nregion.s3_static_website_endpoint # s3-website-eu-west-1.amazonaws.com\nregion.service_principal(\"logs.amazonaws.com\")",
|
|
9
|
+
"version": "1"
|
|
10
|
+
},
|
|
11
|
+
"csharp": {
|
|
12
|
+
"source": "using Amazon.CDK.RegionInfo;\n\n// Get the information for \"eu-west-1\":\nRegionInfo region = RegionInfo.Get(\"eu-west-1\");\n\n// Access attributes:\nregion.S3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.ServicePrincipal(\"logs.amazonaws.com\");",
|
|
13
|
+
"version": "1"
|
|
14
|
+
},
|
|
15
|
+
"java": {
|
|
16
|
+
"source": "import software.amazon.awscdk.regioninfo.RegionInfo;\n\n// Get the information for \"eu-west-1\":\nRegionInfo region = RegionInfo.get(\"eu-west-1\");\n\n// Access attributes:\nregion.getS3StaticWebsiteEndpoint(); // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal(\"logs.amazonaws.com\");",
|
|
17
|
+
"version": "1"
|
|
18
|
+
},
|
|
19
|
+
"$": {
|
|
20
|
+
"source": "import { RegionInfo } from '@aws-cdk/region-info';\n\n// Get the information for \"eu-west-1\":\nconst region = RegionInfo.get('eu-west-1');\n\n// Access attributes:\nregion.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal('logs.amazonaws.com'); // logs.eu-west-1.amazonaws.com",
|
|
21
|
+
"version": "0"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"location": {
|
|
25
|
+
"api": {
|
|
26
|
+
"api": "moduleReadme",
|
|
27
|
+
"moduleFqn": "@aws-cdk/region-info"
|
|
28
|
+
},
|
|
29
|
+
"field": {
|
|
30
|
+
"field": "markdown",
|
|
31
|
+
"line": 24
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"didCompile": true,
|
|
35
|
+
"fqnsReferenced": [
|
|
36
|
+
"@aws-cdk/region-info.RegionInfo",
|
|
37
|
+
"@aws-cdk/region-info.RegionInfo#get",
|
|
38
|
+
"@aws-cdk/region-info.RegionInfo#servicePrincipal"
|
|
39
|
+
],
|
|
40
|
+
"fullSource": "import { RegionInfo } from '@aws-cdk/region-info';\n\n// Get the information for \"eu-west-1\":\nconst region = RegionInfo.get('eu-west-1');\n\n// Access attributes:\nregion.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal('logs.amazonaws.com'); // logs.eu-west-1.amazonaws.com",
|
|
41
|
+
"syntaxKindCounter": {
|
|
42
|
+
"10": 3,
|
|
43
|
+
"75": 8,
|
|
44
|
+
"194": 3,
|
|
45
|
+
"196": 2,
|
|
46
|
+
"225": 1,
|
|
47
|
+
"226": 2,
|
|
48
|
+
"242": 1,
|
|
49
|
+
"243": 1,
|
|
50
|
+
"254": 1,
|
|
51
|
+
"255": 1,
|
|
52
|
+
"257": 1,
|
|
53
|
+
"258": 1,
|
|
54
|
+
"290": 1
|
|
55
|
+
},
|
|
56
|
+
"fqnsFingerprint": "5c194d6d478422dea865c4567106f6bf1581826e044eac351bba63495c69013d"
|
|
57
|
+
},
|
|
58
|
+
"43074915e3fbb4af099979815e42bf34c93fce972721f3e0df2665eb1a59754c": {
|
|
59
|
+
"translations": {
|
|
60
|
+
"python": {
|
|
61
|
+
"source": "import aws_cdk.region_info as region_info\n\ncode_deploy_principal = region_info.Fact.find(\"us-east-1\", region_info.FactName.service_principal(\"codedeploy.amazonaws.com\"))\n# => codedeploy.us-east-1.amazonaws.com\n\nstatic_website = region_info.Fact.find(\"ap-northeast-1\", region_info.FactName.S3_STATIC_WEBSITE_ENDPOINT)",
|
|
62
|
+
"version": "1"
|
|
63
|
+
},
|
|
64
|
+
"csharp": {
|
|
65
|
+
"source": "using Amazon.CDK.RegionInfo;\n\nstring? codeDeployPrincipal = Fact.Find(\"us-east-1\", FactName.ServicePrincipal(\"codedeploy.amazonaws.com\"));\n// => codedeploy.us-east-1.amazonaws.com\n\nstring? staticWebsite = Fact.Find(\"ap-northeast-1\", FactName.S3_STATIC_WEBSITE_ENDPOINT);",
|
|
66
|
+
"version": "1"
|
|
67
|
+
},
|
|
68
|
+
"java": {
|
|
69
|
+
"source": "import software.amazon.awscdk.regioninfo.*;\n\nString codeDeployPrincipal = Fact.find(\"us-east-1\", FactName.servicePrincipal(\"codedeploy.amazonaws.com\"));\n// => codedeploy.us-east-1.amazonaws.com\n\nString staticWebsite = Fact.find(\"ap-northeast-1\", FactName.S3_STATIC_WEBSITE_ENDPOINT);",
|
|
70
|
+
"version": "1"
|
|
71
|
+
},
|
|
72
|
+
"$": {
|
|
73
|
+
"source": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
|
|
74
|
+
"version": "0"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"location": {
|
|
78
|
+
"api": {
|
|
79
|
+
"api": "moduleReadme",
|
|
80
|
+
"moduleFqn": "@aws-cdk/region-info"
|
|
81
|
+
},
|
|
82
|
+
"field": {
|
|
83
|
+
"field": "markdown",
|
|
84
|
+
"line": 46
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"didCompile": true,
|
|
88
|
+
"fqnsReferenced": [
|
|
89
|
+
"@aws-cdk/region-info.Fact",
|
|
90
|
+
"@aws-cdk/region-info.Fact#find",
|
|
91
|
+
"@aws-cdk/region-info.FactName",
|
|
92
|
+
"@aws-cdk/region-info.FactName#S3_STATIC_WEBSITE_ENDPOINT",
|
|
93
|
+
"@aws-cdk/region-info.FactName#servicePrincipal"
|
|
94
|
+
],
|
|
95
|
+
"fullSource": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
|
|
96
|
+
"syntaxKindCounter": {
|
|
97
|
+
"10": 4,
|
|
98
|
+
"75": 15,
|
|
99
|
+
"194": 8,
|
|
100
|
+
"196": 3,
|
|
101
|
+
"225": 2,
|
|
102
|
+
"242": 2,
|
|
103
|
+
"243": 2,
|
|
104
|
+
"254": 1,
|
|
105
|
+
"255": 1,
|
|
106
|
+
"256": 1,
|
|
107
|
+
"290": 1
|
|
108
|
+
},
|
|
109
|
+
"fqnsFingerprint": "5797746405d6bb24589edbf736a0149091e139d518240b022a77ab4ec5990586"
|
|
110
|
+
},
|
|
111
|
+
"3d7a1e55afd9b75e542dceb624bfd1df42fefc9183d91438afd00c0c22ff92bb": {
|
|
112
|
+
"translations": {
|
|
113
|
+
"python": {
|
|
114
|
+
"source": "region_info.Fact.register(\n region=\"bermuda-triangle-1\",\n name=region_info.FactName.service_principal(\"s3.amazonaws.com\"),\n value=\"s3-website.bermuda-triangle-1.nowhere.com\"\n)",
|
|
115
|
+
"version": "1"
|
|
116
|
+
},
|
|
117
|
+
"csharp": {
|
|
118
|
+
"source": "regionInfo.Fact.Register(new Struct {\n Region = \"bermuda-triangle-1\",\n Name = regionInfo.FactName.ServicePrincipal(\"s3.amazonaws.com\"),\n Value = \"s3-website.bermuda-triangle-1.nowhere.com\"\n});",
|
|
119
|
+
"version": "1"
|
|
120
|
+
},
|
|
121
|
+
"java": {
|
|
122
|
+
"source": "regionInfo.Fact.register(Map.of(\n \"region\", \"bermuda-triangle-1\",\n \"name\", regionInfo.FactName.servicePrincipal(\"s3.amazonaws.com\"),\n \"value\", \"s3-website.bermuda-triangle-1.nowhere.com\"));",
|
|
123
|
+
"version": "1"
|
|
124
|
+
},
|
|
125
|
+
"$": {
|
|
126
|
+
"source": "regionInfo.Fact.register({\n region: 'bermuda-triangle-1',\n name: regionInfo.FactName.servicePrincipal('s3.amazonaws.com'),\n value: 's3-website.bermuda-triangle-1.nowhere.com',\n});",
|
|
127
|
+
"version": "0"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"location": {
|
|
131
|
+
"api": {
|
|
132
|
+
"api": "moduleReadme",
|
|
133
|
+
"moduleFqn": "@aws-cdk/region-info"
|
|
134
|
+
},
|
|
135
|
+
"field": {
|
|
136
|
+
"field": "markdown",
|
|
137
|
+
"line": 62
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"didCompile": false,
|
|
141
|
+
"fqnsReferenced": [],
|
|
142
|
+
"fullSource": "regionInfo.Fact.register({\n region: 'bermuda-triangle-1',\n name: regionInfo.FactName.servicePrincipal('s3.amazonaws.com'),\n value: 's3-website.bermuda-triangle-1.nowhere.com',\n});",
|
|
143
|
+
"syntaxKindCounter": {
|
|
144
|
+
"10": 3,
|
|
145
|
+
"75": 9,
|
|
146
|
+
"193": 1,
|
|
147
|
+
"194": 4,
|
|
148
|
+
"196": 2,
|
|
149
|
+
"226": 1,
|
|
150
|
+
"281": 3,
|
|
151
|
+
"290": 1
|
|
152
|
+
},
|
|
153
|
+
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
154
|
+
},
|
|
155
|
+
"a7976b1bc92b65190240b49ddf9ea32c9e54489023d0e436ae19076cd72ed27e": {
|
|
156
|
+
"translations": {
|
|
157
|
+
"python": {
|
|
158
|
+
"source": "region_info.Fact.register({\n \"region\": \"us-east-1\",\n \"name\": region_info.FactName.service_principal(\"service.amazonaws.com\"),\n \"value\": \"the-correct-principal.amazonaws.com\"\n}, True)",
|
|
159
|
+
"version": "1"
|
|
160
|
+
},
|
|
161
|
+
"csharp": {
|
|
162
|
+
"source": "regionInfo.Fact.Register(new Struct {\n Region = \"us-east-1\",\n Name = regionInfo.FactName.ServicePrincipal(\"service.amazonaws.com\"),\n Value = \"the-correct-principal.amazonaws.com\"\n}, true);",
|
|
163
|
+
"version": "1"
|
|
164
|
+
},
|
|
165
|
+
"java": {
|
|
166
|
+
"source": "regionInfo.Fact.register(Map.of(\n \"region\", \"us-east-1\",\n \"name\", regionInfo.FactName.servicePrincipal(\"service.amazonaws.com\"),\n \"value\", \"the-correct-principal.amazonaws.com\"), true);",
|
|
167
|
+
"version": "1"
|
|
168
|
+
},
|
|
169
|
+
"$": {
|
|
170
|
+
"source": "regionInfo.Fact.register({\n region: 'us-east-1',\n name: regionInfo.FactName.servicePrincipal('service.amazonaws.com'),\n value: 'the-correct-principal.amazonaws.com',\n}, true /* Allow overriding information */);",
|
|
171
|
+
"version": "0"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"location": {
|
|
175
|
+
"api": {
|
|
176
|
+
"api": "moduleReadme",
|
|
177
|
+
"moduleFqn": "@aws-cdk/region-info"
|
|
178
|
+
},
|
|
179
|
+
"field": {
|
|
180
|
+
"field": "markdown",
|
|
181
|
+
"line": 76
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"didCompile": false,
|
|
185
|
+
"fqnsReferenced": [],
|
|
186
|
+
"fullSource": "regionInfo.Fact.register({\n region: 'us-east-1',\n name: regionInfo.FactName.servicePrincipal('service.amazonaws.com'),\n value: 'the-correct-principal.amazonaws.com',\n}, true /* Allow overriding information */);",
|
|
187
|
+
"syntaxKindCounter": {
|
|
188
|
+
"10": 3,
|
|
189
|
+
"75": 9,
|
|
190
|
+
"106": 1,
|
|
191
|
+
"193": 1,
|
|
192
|
+
"194": 4,
|
|
193
|
+
"196": 2,
|
|
194
|
+
"226": 1,
|
|
195
|
+
"281": 3,
|
|
196
|
+
"290": 1
|
|
197
|
+
},
|
|
198
|
+
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
199
|
+
},
|
|
200
|
+
"d2cce5fcddaa1742d738a0d48c81e343190bcebab616d9cfa00e4423c14f5797": {
|
|
201
|
+
"translations": {
|
|
202
|
+
"python": {
|
|
203
|
+
"source": "import aws_cdk.region_info as region_info\n\ncode_deploy_principal = region_info.Fact.find(\"us-east-1\", region_info.FactName.service_principal(\"codedeploy.amazonaws.com\"))\n# => codedeploy.us-east-1.amazonaws.com\n\nstatic_website = region_info.Fact.find(\"ap-northeast-1\", region_info.FactName.S3_STATIC_WEBSITE_ENDPOINT)",
|
|
204
|
+
"version": "1"
|
|
205
|
+
},
|
|
206
|
+
"csharp": {
|
|
207
|
+
"source": "using Amazon.CDK.RegionInfo;\n\nstring? codeDeployPrincipal = Fact.Find(\"us-east-1\", FactName.ServicePrincipal(\"codedeploy.amazonaws.com\"));\n// => codedeploy.us-east-1.amazonaws.com\n\nstring? staticWebsite = Fact.Find(\"ap-northeast-1\", FactName.S3_STATIC_WEBSITE_ENDPOINT);",
|
|
208
|
+
"version": "1"
|
|
209
|
+
},
|
|
210
|
+
"java": {
|
|
211
|
+
"source": "import software.amazon.awscdk.regioninfo.*;\n\nString codeDeployPrincipal = Fact.find(\"us-east-1\", FactName.servicePrincipal(\"codedeploy.amazonaws.com\"));\n// => codedeploy.us-east-1.amazonaws.com\n\nString staticWebsite = Fact.find(\"ap-northeast-1\", FactName.S3_STATIC_WEBSITE_ENDPOINT);",
|
|
212
|
+
"version": "1"
|
|
213
|
+
},
|
|
214
|
+
"$": {
|
|
215
|
+
"source": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
|
|
216
|
+
"version": "0"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"location": {
|
|
220
|
+
"api": {
|
|
221
|
+
"api": "type",
|
|
222
|
+
"fqn": "@aws-cdk/region-info.Fact"
|
|
223
|
+
},
|
|
224
|
+
"field": {
|
|
225
|
+
"field": "example"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"didCompile": true,
|
|
229
|
+
"fqnsReferenced": [
|
|
230
|
+
"@aws-cdk/region-info.Fact",
|
|
231
|
+
"@aws-cdk/region-info.Fact#find",
|
|
232
|
+
"@aws-cdk/region-info.FactName",
|
|
233
|
+
"@aws-cdk/region-info.FactName#S3_STATIC_WEBSITE_ENDPOINT",
|
|
234
|
+
"@aws-cdk/region-info.FactName#servicePrincipal"
|
|
235
|
+
],
|
|
236
|
+
"fullSource": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
|
|
237
|
+
"syntaxKindCounter": {
|
|
238
|
+
"10": 4,
|
|
239
|
+
"75": 15,
|
|
240
|
+
"194": 8,
|
|
241
|
+
"196": 3,
|
|
242
|
+
"225": 2,
|
|
243
|
+
"242": 2,
|
|
244
|
+
"243": 2,
|
|
245
|
+
"254": 1,
|
|
246
|
+
"255": 1,
|
|
247
|
+
"256": 1,
|
|
248
|
+
"290": 1
|
|
249
|
+
},
|
|
250
|
+
"fqnsFingerprint": "5797746405d6bb24589edbf736a0149091e139d518240b022a77ab4ec5990586"
|
|
251
|
+
},
|
|
252
|
+
"3e16434a69e5fdd23ac55cdeef1f88fcec25a4312c0ae3c1d39696fa98e9a0bc": {
|
|
253
|
+
"translations": {
|
|
254
|
+
"python": {
|
|
255
|
+
"source": "import aws_cdk.region_info as region_info\n\ncode_deploy_principal = region_info.Fact.find(\"us-east-1\", region_info.FactName.service_principal(\"codedeploy.amazonaws.com\"))\n# => codedeploy.us-east-1.amazonaws.com\n\nstatic_website = region_info.Fact.find(\"ap-northeast-1\", region_info.FactName.S3_STATIC_WEBSITE_ENDPOINT)",
|
|
256
|
+
"version": "1"
|
|
257
|
+
},
|
|
258
|
+
"csharp": {
|
|
259
|
+
"source": "using Amazon.CDK.RegionInfo;\n\nstring? codeDeployPrincipal = Fact.Find(\"us-east-1\", FactName.ServicePrincipal(\"codedeploy.amazonaws.com\"));\n// => codedeploy.us-east-1.amazonaws.com\n\nstring? staticWebsite = Fact.Find(\"ap-northeast-1\", FactName.S3_STATIC_WEBSITE_ENDPOINT);",
|
|
260
|
+
"version": "1"
|
|
261
|
+
},
|
|
262
|
+
"java": {
|
|
263
|
+
"source": "import software.amazon.awscdk.regioninfo.*;\n\nString codeDeployPrincipal = Fact.find(\"us-east-1\", FactName.servicePrincipal(\"codedeploy.amazonaws.com\"));\n// => codedeploy.us-east-1.amazonaws.com\n\nString staticWebsite = Fact.find(\"ap-northeast-1\", FactName.S3_STATIC_WEBSITE_ENDPOINT);",
|
|
264
|
+
"version": "1"
|
|
265
|
+
},
|
|
266
|
+
"$": {
|
|
267
|
+
"source": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
|
|
268
|
+
"version": "0"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"location": {
|
|
272
|
+
"api": {
|
|
273
|
+
"api": "type",
|
|
274
|
+
"fqn": "@aws-cdk/region-info.FactName"
|
|
275
|
+
},
|
|
276
|
+
"field": {
|
|
277
|
+
"field": "example"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"didCompile": true,
|
|
281
|
+
"fqnsReferenced": [
|
|
282
|
+
"@aws-cdk/region-info.Fact",
|
|
283
|
+
"@aws-cdk/region-info.Fact#find",
|
|
284
|
+
"@aws-cdk/region-info.FactName",
|
|
285
|
+
"@aws-cdk/region-info.FactName#S3_STATIC_WEBSITE_ENDPOINT",
|
|
286
|
+
"@aws-cdk/region-info.FactName#servicePrincipal"
|
|
287
|
+
],
|
|
288
|
+
"fullSource": "import * as regionInfo from '@aws-cdk/region-info';\n\nconst codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));\n// => codedeploy.us-east-1.amazonaws.com\n\nconst staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);\n// => s3-website-ap-northeast-1.amazonaws.com",
|
|
289
|
+
"syntaxKindCounter": {
|
|
290
|
+
"10": 4,
|
|
291
|
+
"75": 15,
|
|
292
|
+
"194": 8,
|
|
293
|
+
"196": 3,
|
|
294
|
+
"225": 2,
|
|
295
|
+
"242": 2,
|
|
296
|
+
"243": 2,
|
|
297
|
+
"254": 1,
|
|
298
|
+
"255": 1,
|
|
299
|
+
"256": 1,
|
|
300
|
+
"290": 1
|
|
301
|
+
},
|
|
302
|
+
"fqnsFingerprint": "5797746405d6bb24589edbf736a0149091e139d518240b022a77ab4ec5990586"
|
|
303
|
+
},
|
|
304
|
+
"12e7d2b9990237845aa652758f7ea8ca82282f02dcad493fe18d3ed6bc75dcd0": {
|
|
305
|
+
"translations": {
|
|
306
|
+
"python": {
|
|
307
|
+
"source": "from aws_cdk.region_info import RegionInfo\n\n# Get the information for \"eu-west-1\":\nregion = RegionInfo.get(\"eu-west-1\")\n\n# Access attributes:\nregion.s3_static_website_endpoint # s3-website-eu-west-1.amazonaws.com\nregion.service_principal(\"logs.amazonaws.com\")",
|
|
308
|
+
"version": "1"
|
|
309
|
+
},
|
|
310
|
+
"csharp": {
|
|
311
|
+
"source": "using Amazon.CDK.RegionInfo;\n\n// Get the information for \"eu-west-1\":\nRegionInfo region = RegionInfo.Get(\"eu-west-1\");\n\n// Access attributes:\nregion.S3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.ServicePrincipal(\"logs.amazonaws.com\");",
|
|
312
|
+
"version": "1"
|
|
313
|
+
},
|
|
314
|
+
"java": {
|
|
315
|
+
"source": "import software.amazon.awscdk.regioninfo.RegionInfo;\n\n// Get the information for \"eu-west-1\":\nRegionInfo region = RegionInfo.get(\"eu-west-1\");\n\n// Access attributes:\nregion.getS3StaticWebsiteEndpoint(); // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal(\"logs.amazonaws.com\");",
|
|
316
|
+
"version": "1"
|
|
317
|
+
},
|
|
318
|
+
"$": {
|
|
319
|
+
"source": "import { RegionInfo } from '@aws-cdk/region-info';\n\n// Get the information for \"eu-west-1\":\nconst region = RegionInfo.get('eu-west-1');\n\n// Access attributes:\nregion.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal('logs.amazonaws.com'); // logs.eu-west-1.amazonaws.com",
|
|
320
|
+
"version": "0"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"location": {
|
|
324
|
+
"api": {
|
|
325
|
+
"api": "type",
|
|
326
|
+
"fqn": "@aws-cdk/region-info.RegionInfo"
|
|
327
|
+
},
|
|
328
|
+
"field": {
|
|
329
|
+
"field": "example"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"didCompile": true,
|
|
333
|
+
"fqnsReferenced": [
|
|
334
|
+
"@aws-cdk/region-info.RegionInfo",
|
|
335
|
+
"@aws-cdk/region-info.RegionInfo#get",
|
|
336
|
+
"@aws-cdk/region-info.RegionInfo#servicePrincipal"
|
|
337
|
+
],
|
|
338
|
+
"fullSource": "import { RegionInfo } from '@aws-cdk/region-info';\n\n// Get the information for \"eu-west-1\":\nconst region = RegionInfo.get('eu-west-1');\n\n// Access attributes:\nregion.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com\nregion.servicePrincipal('logs.amazonaws.com'); // logs.eu-west-1.amazonaws.com",
|
|
339
|
+
"syntaxKindCounter": {
|
|
340
|
+
"10": 3,
|
|
341
|
+
"75": 8,
|
|
342
|
+
"194": 3,
|
|
343
|
+
"196": 2,
|
|
344
|
+
"225": 1,
|
|
345
|
+
"226": 2,
|
|
346
|
+
"242": 1,
|
|
347
|
+
"243": 1,
|
|
348
|
+
"254": 1,
|
|
349
|
+
"255": 1,
|
|
350
|
+
"257": 1,
|
|
351
|
+
"258": 1,
|
|
352
|
+
"290": 1
|
|
353
|
+
},
|
|
354
|
+
"fqnsFingerprint": "5c194d6d478422dea865c4567106f6bf1581826e044eac351bba63495c69013d"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _aws_cdk_region_info_Default(p) {
|
|
2
|
+
}
|
|
3
|
+
function _aws_cdk_region_info_IFact(p) {
|
|
4
|
+
}
|
|
5
|
+
function _aws_cdk_region_info_FactName(p) {
|
|
6
|
+
}
|
|
7
|
+
function _aws_cdk_region_info_Fact(p) {
|
|
8
|
+
}
|
|
9
|
+
function _aws_cdk_region_info_RegionInfo(p) {
|
|
10
|
+
}
|
|
11
|
+
function print(name, deprecationMessage) {
|
|
12
|
+
const deprecated = process.env.JSII_DEPRECATED;
|
|
13
|
+
const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
|
|
14
|
+
const message = `${name} is deprecated.\n ${deprecationMessage}\n This API will be removed in the next major release.`;
|
|
15
|
+
switch (deprecationMode) {
|
|
16
|
+
case "fail":
|
|
17
|
+
throw new DeprecationError(message);
|
|
18
|
+
case "warn":
|
|
19
|
+
console.warn("[WARNING]", message);
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const visitedObjects = new Set();
|
|
24
|
+
class DeprecationError extends Error {
|
|
25
|
+
}
|
|
26
|
+
module.exports = { print, _aws_cdk_region_info_Default, _aws_cdk_region_info_IFact, _aws_cdk_region_info_FactName, _aws_cdk_region_info_Fact, _aws_cdk_region_info_RegionInfo };
|
|
27
|
+
module.exports.DeprecationError = DeprecationError;
|
|
@@ -3,11 +3,19 @@ export declare const AWS_CDK_METADATA: Set<string>;
|
|
|
3
3
|
/**
|
|
4
4
|
* The hosted zone Id if using an alias record in Route53.
|
|
5
5
|
*
|
|
6
|
-
* @see https://docs.aws.amazon.com/general/latest/gr/
|
|
6
|
+
* @see https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region
|
|
7
7
|
*/
|
|
8
8
|
export declare const ROUTE_53_BUCKET_WEBSITE_ZONE_IDS: {
|
|
9
9
|
[region: string]: string;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* The hosted zone Id of the Elastic Beanstalk environment.
|
|
13
|
+
*
|
|
14
|
+
* @see https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html
|
|
15
|
+
*/
|
|
16
|
+
export declare const EBS_ENV_ENDPOINT_HOSTED_ZONE_IDS: {
|
|
17
|
+
[region: string]: string;
|
|
18
|
+
};
|
|
11
19
|
interface Region {
|
|
12
20
|
partition: string;
|
|
13
21
|
domainSuffix: string;
|
|
@@ -24,4 +32,10 @@ export declare const DLC_REPOSITORY_ACCOUNTS: {
|
|
|
24
32
|
export declare const APPMESH_ECR_ACCOUNTS: {
|
|
25
33
|
[region: string]: string;
|
|
26
34
|
};
|
|
35
|
+
export declare const CLOUDWATCH_LAMBDA_INSIGHTS_ARNS: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
export declare const FIREHOSE_CIDR_BLOCKS: {
|
|
39
|
+
[region: string]: string;
|
|
40
|
+
};
|
|
27
41
|
export {};
|