@aws-cdk/region-info 2.4.0 → 2.8.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 +2 -2
- package/.jsii.tabl.json +8 -8
- package/lib/built-ins.generated.d.ts +1 -1
- package/lib/built-ins.generated.js +2 -2
- package/lib/default.js +1 -1
- package/lib/fact.js +2 -2
- package/lib/region-info.js +1 -1
- package/package.json +4 -4
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.52.1 (build 5ccc8f6)",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"aws",
|
|
18
18
|
"cdk"
|
|
@@ -1097,6 +1097,6 @@
|
|
|
1097
1097
|
"symbolId": "lib/region-info:RegionInfo"
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
1100
|
-
"version": "2.
|
|
1100
|
+
"version": "2.8.0",
|
|
1101
1101
|
"fingerprint": "**********"
|
|
1102
1102
|
}
|
package/.jsii.tabl.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2",
|
|
3
|
-
"toolVersion": "1.
|
|
3
|
+
"toolVersion": "1.52.1",
|
|
4
4
|
"snippets": {
|
|
5
5
|
"8c2cf5382985a73a9d345453f03a663f572ed57348c2baa7ba30b2aa39fc278d": {
|
|
6
6
|
"translations": {
|
|
7
7
|
"python": {
|
|
8
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": "
|
|
9
|
+
"version": "2"
|
|
10
10
|
},
|
|
11
11
|
"csharp": {
|
|
12
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\");",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"translations": {
|
|
60
60
|
"python": {
|
|
61
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": "
|
|
62
|
+
"version": "2"
|
|
63
63
|
},
|
|
64
64
|
"csharp": {
|
|
65
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);",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"translations": {
|
|
113
113
|
"python": {
|
|
114
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": "
|
|
115
|
+
"version": "2"
|
|
116
116
|
},
|
|
117
117
|
"csharp": {
|
|
118
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});",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"translations": {
|
|
157
157
|
"python": {
|
|
158
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": "
|
|
159
|
+
"version": "2"
|
|
160
160
|
},
|
|
161
161
|
"csharp": {
|
|
162
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);",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"translations": {
|
|
202
202
|
"python": {
|
|
203
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": "
|
|
204
|
+
"version": "2"
|
|
205
205
|
},
|
|
206
206
|
"csharp": {
|
|
207
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);",
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"translations": {
|
|
254
254
|
"python": {
|
|
255
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": "
|
|
256
|
+
"version": "2"
|
|
257
257
|
},
|
|
258
258
|
"csharp": {
|
|
259
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);",
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
"translations": {
|
|
306
306
|
"python": {
|
|
307
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": "
|
|
308
|
+
"version": "2"
|
|
309
309
|
},
|
|
310
310
|
"csharp": {
|
|
311
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\");",
|