@aws-cdk/region-info 1.132.0 → 1.133.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 +7 -3
- package/.warnings.jsii.js +27 -0
- package/lib/built-ins.generated.d.ts +1 -1
- package/lib/built-ins.generated.js +2 -2
- package/lib/default.js +3 -2
- package/lib/fact.js +5 -3
- package/lib/region-info.js +2 -2
- package/package.json +3 -3
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.45.0 (build 61747b6)",
|
|
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
|
},
|
|
@@ -671,6 +674,7 @@
|
|
|
671
674
|
"@aws-cdk/region-info.RegionInfo": {
|
|
672
675
|
"assembly": "@aws-cdk/region-info",
|
|
673
676
|
"docs": {
|
|
677
|
+
"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
678
|
"stability": "stable",
|
|
675
679
|
"summary": "Information pertaining to an AWS region."
|
|
676
680
|
},
|
|
@@ -1017,6 +1021,6 @@
|
|
|
1017
1021
|
"symbolId": "lib/region-info:RegionInfo"
|
|
1018
1022
|
}
|
|
1019
1023
|
},
|
|
1020
|
-
"version": "1.
|
|
1021
|
-
"fingerprint": "
|
|
1024
|
+
"version": "1.133.0",
|
|
1025
|
+
"fingerprint": "**********"
|
|
1022
1026
|
}
|
|
@@ -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;
|