@aws-cdk/region-info 1.132.0 → 1.136.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 +28 -7
- package/.jsii.tabl.json +357 -0
- package/.warnings.jsii.js +27 -0
- package/build-tools/fact-tables.js +149 -71
- package/build-tools/generate-static-data.js +9 -5
- package/lib/built-ins.generated.d.ts +1 -1
- package/lib/built-ins.generated.js +164 -110
- package/lib/default.js +3 -2
- package/lib/fact.d.ts +1 -1
- package/lib/fact.js +10 -5
- package/lib/region-info.d.ts +2 -1
- package/lib/region-info.js +5 -4
- package/package.json +5 -5
- package/rosetta/_generated.ts-fixture +6 -0
package/.jsii
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"stability": "stable"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
15
|
-
"jsiiVersion": "1.
|
|
15
|
+
"jsiiVersion": "1.47.0 (build 86d2c33)",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"aws",
|
|
18
18
|
"cdk"
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"metadata": {
|
|
22
22
|
"jsii": {
|
|
23
|
+
"compiledWithDeprecationWarnings": true,
|
|
23
24
|
"pacmak": {
|
|
24
25
|
"hasDefaultInterfaces": true
|
|
25
26
|
}
|
|
@@ -147,6 +148,7 @@
|
|
|
147
148
|
"@aws-cdk/region-info.Fact": {
|
|
148
149
|
"assembly": "@aws-cdk/region-info",
|
|
149
150
|
"docs": {
|
|
151
|
+
"example": "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",
|
|
150
152
|
"stability": "stable",
|
|
151
153
|
"summary": "A database of regional information."
|
|
152
154
|
},
|
|
@@ -339,6 +341,7 @@
|
|
|
339
341
|
"@aws-cdk/region-info.FactName": {
|
|
340
342
|
"assembly": "@aws-cdk/region-info",
|
|
341
343
|
"docs": {
|
|
344
|
+
"example": "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",
|
|
342
345
|
"stability": "stable",
|
|
343
346
|
"summary": "All standardized fact names."
|
|
344
347
|
},
|
|
@@ -370,6 +373,13 @@
|
|
|
370
373
|
"type": {
|
|
371
374
|
"primitive": "string"
|
|
372
375
|
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "arch",
|
|
379
|
+
"optional": true,
|
|
380
|
+
"type": {
|
|
381
|
+
"primitive": "string"
|
|
382
|
+
}
|
|
373
383
|
}
|
|
374
384
|
],
|
|
375
385
|
"returns": {
|
|
@@ -386,7 +396,7 @@
|
|
|
386
396
|
},
|
|
387
397
|
"locationInModule": {
|
|
388
398
|
"filename": "lib/fact.ts",
|
|
389
|
-
"line":
|
|
399
|
+
"line": 182
|
|
390
400
|
},
|
|
391
401
|
"name": "servicePrincipal",
|
|
392
402
|
"parameters": [
|
|
@@ -671,6 +681,7 @@
|
|
|
671
681
|
"@aws-cdk/region-info.RegionInfo": {
|
|
672
682
|
"assembly": "@aws-cdk/region-info",
|
|
673
683
|
"docs": {
|
|
684
|
+
"example": "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",
|
|
674
685
|
"stability": "stable",
|
|
675
686
|
"summary": "Information pertaining to an AWS region."
|
|
676
687
|
},
|
|
@@ -751,7 +762,7 @@
|
|
|
751
762
|
},
|
|
752
763
|
"locationInModule": {
|
|
753
764
|
"filename": "lib/region-info.ts",
|
|
754
|
-
"line":
|
|
765
|
+
"line": 125
|
|
755
766
|
},
|
|
756
767
|
"name": "cloudwatchLambdaInsightsArn",
|
|
757
768
|
"parameters": [
|
|
@@ -763,6 +774,16 @@
|
|
|
763
774
|
"type": {
|
|
764
775
|
"primitive": "string"
|
|
765
776
|
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"docs": {
|
|
780
|
+
"summary": "the Lambda Function architecture (e.g. 'x86_64' or 'arm64')."
|
|
781
|
+
},
|
|
782
|
+
"name": "architecture",
|
|
783
|
+
"optional": true,
|
|
784
|
+
"type": {
|
|
785
|
+
"primitive": "string"
|
|
786
|
+
}
|
|
766
787
|
}
|
|
767
788
|
],
|
|
768
789
|
"returns": {
|
|
@@ -861,7 +882,7 @@
|
|
|
861
882
|
"immutable": true,
|
|
862
883
|
"locationInModule": {
|
|
863
884
|
"filename": "lib/region-info.ts",
|
|
864
|
-
"line":
|
|
885
|
+
"line": 133
|
|
865
886
|
},
|
|
866
887
|
"name": "appMeshRepositoryAccount",
|
|
867
888
|
"optional": true,
|
|
@@ -941,7 +962,7 @@
|
|
|
941
962
|
"immutable": true,
|
|
942
963
|
"locationInModule": {
|
|
943
964
|
"filename": "lib/region-info.ts",
|
|
944
|
-
"line":
|
|
965
|
+
"line": 140
|
|
945
966
|
},
|
|
946
967
|
"name": "firehoseCidrBlock",
|
|
947
968
|
"optional": true,
|
|
@@ -1017,6 +1038,6 @@
|
|
|
1017
1038
|
"symbolId": "lib/region-info:RegionInfo"
|
|
1018
1039
|
}
|
|
1019
1040
|
},
|
|
1020
|
-
"version": "1.
|
|
1021
|
-
"fingerprint": "
|
|
1041
|
+
"version": "1.136.0",
|
|
1042
|
+
"fingerprint": "**********"
|
|
1022
1043
|
}
|
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;
|