@jjrawlins/cdk-diff-pr-github-action 1.3.2 → 1.3.3

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.
Files changed (99) hide show
  1. package/.jsii +3 -3
  2. package/lib/CdkDiffIamTemplate.js +2 -2
  3. package/lib/CdkDiffIamTemplateStackSet.js +2 -2
  4. package/lib/CdkDiffStackWorkflow.js +1 -1
  5. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  6. package/lib/CdkDriftIamTemplate.js +2 -2
  7. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  8. package/node_modules/@aws-sdk/client-sso/package.json +12 -12
  9. package/node_modules/@aws-sdk/core/dist-cjs/index.js +11 -0
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +11 -0
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +11 -0
  12. package/node_modules/@aws-sdk/core/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  14. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  16. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  17. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  18. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  19. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  20. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  21. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +1 -1
  25. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
  26. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +1 -1
  27. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -1
  28. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +4 -3
  30. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -3
  33. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
  34. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +2 -2
  35. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +5 -4
  36. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -2
  37. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +5 -3
  38. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -2
  39. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +5 -3
  40. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
  41. package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
  42. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  43. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  44. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  45. package/package.json +2 -2
  46. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  47. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  48. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  49. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  50. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  51. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  52. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  53. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  54. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  55. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  56. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  57. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  58. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  59. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  60. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  61. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
  62. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  63. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  64. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  65. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  66. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  67. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  68. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  69. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  70. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  71. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  72. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  73. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  74. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  75. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  76. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  77. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  78. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  79. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  80. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  81. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  82. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  83. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  84. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  87. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  88. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  89. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  91. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  92. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  93. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  94. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  95. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  96. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  97. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  98. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  99. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
@@ -1,267 +0,0 @@
1
- {
2
- "partitions": [{
3
- "id": "aws",
4
- "outputs": {
5
- "dnsSuffix": "amazonaws.com",
6
- "dualStackDnsSuffix": "api.aws",
7
- "implicitGlobalRegion": "us-east-1",
8
- "name": "aws",
9
- "supportsDualStack": true,
10
- "supportsFIPS": true
11
- },
12
- "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
13
- "regions": {
14
- "af-south-1": {
15
- "description": "Africa (Cape Town)"
16
- },
17
- "ap-east-1": {
18
- "description": "Asia Pacific (Hong Kong)"
19
- },
20
- "ap-east-2": {
21
- "description": "Asia Pacific (Taipei)"
22
- },
23
- "ap-northeast-1": {
24
- "description": "Asia Pacific (Tokyo)"
25
- },
26
- "ap-northeast-2": {
27
- "description": "Asia Pacific (Seoul)"
28
- },
29
- "ap-northeast-3": {
30
- "description": "Asia Pacific (Osaka)"
31
- },
32
- "ap-south-1": {
33
- "description": "Asia Pacific (Mumbai)"
34
- },
35
- "ap-south-2": {
36
- "description": "Asia Pacific (Hyderabad)"
37
- },
38
- "ap-southeast-1": {
39
- "description": "Asia Pacific (Singapore)"
40
- },
41
- "ap-southeast-2": {
42
- "description": "Asia Pacific (Sydney)"
43
- },
44
- "ap-southeast-3": {
45
- "description": "Asia Pacific (Jakarta)"
46
- },
47
- "ap-southeast-4": {
48
- "description": "Asia Pacific (Melbourne)"
49
- },
50
- "ap-southeast-5": {
51
- "description": "Asia Pacific (Malaysia)"
52
- },
53
- "ap-southeast-6": {
54
- "description": "Asia Pacific (New Zealand)"
55
- },
56
- "ap-southeast-7": {
57
- "description": "Asia Pacific (Thailand)"
58
- },
59
- "aws-global": {
60
- "description": "aws global region"
61
- },
62
- "ca-central-1": {
63
- "description": "Canada (Central)"
64
- },
65
- "ca-west-1": {
66
- "description": "Canada West (Calgary)"
67
- },
68
- "eu-central-1": {
69
- "description": "Europe (Frankfurt)"
70
- },
71
- "eu-central-2": {
72
- "description": "Europe (Zurich)"
73
- },
74
- "eu-north-1": {
75
- "description": "Europe (Stockholm)"
76
- },
77
- "eu-south-1": {
78
- "description": "Europe (Milan)"
79
- },
80
- "eu-south-2": {
81
- "description": "Europe (Spain)"
82
- },
83
- "eu-west-1": {
84
- "description": "Europe (Ireland)"
85
- },
86
- "eu-west-2": {
87
- "description": "Europe (London)"
88
- },
89
- "eu-west-3": {
90
- "description": "Europe (Paris)"
91
- },
92
- "il-central-1": {
93
- "description": "Israel (Tel Aviv)"
94
- },
95
- "me-central-1": {
96
- "description": "Middle East (UAE)"
97
- },
98
- "me-south-1": {
99
- "description": "Middle East (Bahrain)"
100
- },
101
- "mx-central-1": {
102
- "description": "Mexico (Central)"
103
- },
104
- "sa-east-1": {
105
- "description": "South America (Sao Paulo)"
106
- },
107
- "us-east-1": {
108
- "description": "US East (N. Virginia)"
109
- },
110
- "us-east-2": {
111
- "description": "US East (Ohio)"
112
- },
113
- "us-west-1": {
114
- "description": "US West (N. California)"
115
- },
116
- "us-west-2": {
117
- "description": "US West (Oregon)"
118
- }
119
- }
120
- }, {
121
- "id": "aws-cn",
122
- "outputs": {
123
- "dnsSuffix": "amazonaws.com.cn",
124
- "dualStackDnsSuffix": "api.amazonwebservices.com.cn",
125
- "implicitGlobalRegion": "cn-northwest-1",
126
- "name": "aws-cn",
127
- "supportsDualStack": true,
128
- "supportsFIPS": true
129
- },
130
- "regionRegex": "^cn\\-\\w+\\-\\d+$",
131
- "regions": {
132
- "aws-cn-global": {
133
- "description": "aws-cn global region"
134
- },
135
- "cn-north-1": {
136
- "description": "China (Beijing)"
137
- },
138
- "cn-northwest-1": {
139
- "description": "China (Ningxia)"
140
- }
141
- }
142
- }, {
143
- "id": "aws-eusc",
144
- "outputs": {
145
- "dnsSuffix": "amazonaws.eu",
146
- "dualStackDnsSuffix": "api.amazonwebservices.eu",
147
- "implicitGlobalRegion": "eusc-de-east-1",
148
- "name": "aws-eusc",
149
- "supportsDualStack": true,
150
- "supportsFIPS": true
151
- },
152
- "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
153
- "regions": {
154
- "eusc-de-east-1": {
155
- "description": "AWS European Sovereign Cloud (Germany)"
156
- }
157
- }
158
- }, {
159
- "id": "aws-iso",
160
- "outputs": {
161
- "dnsSuffix": "c2s.ic.gov",
162
- "dualStackDnsSuffix": "api.aws.ic.gov",
163
- "implicitGlobalRegion": "us-iso-east-1",
164
- "name": "aws-iso",
165
- "supportsDualStack": true,
166
- "supportsFIPS": true
167
- },
168
- "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
169
- "regions": {
170
- "aws-iso-global": {
171
- "description": "aws-iso global region"
172
- },
173
- "us-iso-east-1": {
174
- "description": "US ISO East"
175
- },
176
- "us-iso-west-1": {
177
- "description": "US ISO WEST"
178
- }
179
- }
180
- }, {
181
- "id": "aws-iso-b",
182
- "outputs": {
183
- "dnsSuffix": "sc2s.sgov.gov",
184
- "dualStackDnsSuffix": "api.aws.scloud",
185
- "implicitGlobalRegion": "us-isob-east-1",
186
- "name": "aws-iso-b",
187
- "supportsDualStack": true,
188
- "supportsFIPS": true
189
- },
190
- "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
191
- "regions": {
192
- "aws-iso-b-global": {
193
- "description": "aws-iso-b global region"
194
- },
195
- "us-isob-east-1": {
196
- "description": "US ISOB East (Ohio)"
197
- },
198
- "us-isob-west-1": {
199
- "description": "US ISOB West"
200
- }
201
- }
202
- }, {
203
- "id": "aws-iso-e",
204
- "outputs": {
205
- "dnsSuffix": "cloud.adc-e.uk",
206
- "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
207
- "implicitGlobalRegion": "eu-isoe-west-1",
208
- "name": "aws-iso-e",
209
- "supportsDualStack": true,
210
- "supportsFIPS": true
211
- },
212
- "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
213
- "regions": {
214
- "aws-iso-e-global": {
215
- "description": "aws-iso-e global region"
216
- },
217
- "eu-isoe-west-1": {
218
- "description": "EU ISOE West"
219
- }
220
- }
221
- }, {
222
- "id": "aws-iso-f",
223
- "outputs": {
224
- "dnsSuffix": "csp.hci.ic.gov",
225
- "dualStackDnsSuffix": "api.aws.hci.ic.gov",
226
- "implicitGlobalRegion": "us-isof-south-1",
227
- "name": "aws-iso-f",
228
- "supportsDualStack": true,
229
- "supportsFIPS": true
230
- },
231
- "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
232
- "regions": {
233
- "aws-iso-f-global": {
234
- "description": "aws-iso-f global region"
235
- },
236
- "us-isof-east-1": {
237
- "description": "US ISOF EAST"
238
- },
239
- "us-isof-south-1": {
240
- "description": "US ISOF SOUTH"
241
- }
242
- }
243
- }, {
244
- "id": "aws-us-gov",
245
- "outputs": {
246
- "dnsSuffix": "amazonaws.com",
247
- "dualStackDnsSuffix": "api.aws",
248
- "implicitGlobalRegion": "us-gov-west-1",
249
- "name": "aws-us-gov",
250
- "supportsDualStack": true,
251
- "supportsFIPS": true
252
- },
253
- "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
254
- "regions": {
255
- "aws-us-gov-global": {
256
- "description": "aws-us-gov global region"
257
- },
258
- "us-gov-east-1": {
259
- "description": "AWS GovCloud (US-East)"
260
- },
261
- "us-gov-west-1": {
262
- "description": "AWS GovCloud (US-West)"
263
- }
264
- }
265
- }],
266
- "version": "1.1"
267
- }
@@ -1,10 +0,0 @@
1
- import { customEndpointFunctions } from "@smithy/util-endpoints";
2
- import { isVirtualHostableS3Bucket } from "./lib/aws/isVirtualHostableS3Bucket";
3
- import { parseArn } from "./lib/aws/parseArn";
4
- import { partition } from "./lib/aws/partition";
5
- export const awsEndpointFunctions = {
6
- isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
7
- parseArn: parseArn,
8
- partition: partition,
9
- };
10
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,6 +0,0 @@
1
- export * from "./aws";
2
- export * from "./lib/aws/partition";
3
- export * from "./lib/isIpAddress";
4
- export * from "./resolveDefaultAwsRegionalEndpointsConfig";
5
- export * from "./resolveEndpoint";
6
- export * from "./types";
@@ -1,3 +0,0 @@
1
- export * from "./isVirtualHostableS3Bucket";
2
- export * from "./parseArn";
3
- export * from "./partition";
@@ -1,25 +0,0 @@
1
- import { isValidHostLabel } from "@smithy/util-endpoints";
2
- import { isIpAddress } from "../isIpAddress";
3
- export const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
4
- if (allowSubDomains) {
5
- for (const label of value.split(".")) {
6
- if (!isVirtualHostableS3Bucket(label)) {
7
- return false;
8
- }
9
- }
10
- return true;
11
- }
12
- if (!isValidHostLabel(value)) {
13
- return false;
14
- }
15
- if (value.length < 3 || value.length > 63) {
16
- return false;
17
- }
18
- if (value !== value.toLowerCase()) {
19
- return false;
20
- }
21
- if (isIpAddress(value)) {
22
- return false;
23
- }
24
- return true;
25
- };
@@ -1,18 +0,0 @@
1
- const ARN_DELIMITER = ":";
2
- const RESOURCE_DELIMITER = "/";
3
- export const parseArn = (value) => {
4
- const segments = value.split(ARN_DELIMITER);
5
- if (segments.length < 6)
6
- return null;
7
- const [arn, partition, service, region, accountId, ...resourcePath] = segments;
8
- if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
9
- return null;
10
- const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
11
- return {
12
- partition,
13
- service,
14
- region,
15
- accountId,
16
- resourceId,
17
- };
18
- };
@@ -1,41 +0,0 @@
1
- import partitionsInfo from "./partitions.json";
2
- let selectedPartitionsInfo = partitionsInfo;
3
- let selectedUserAgentPrefix = "";
4
- export const partition = (value) => {
5
- const { partitions } = selectedPartitionsInfo;
6
- for (const partition of partitions) {
7
- const { regions, outputs } = partition;
8
- for (const [region, regionData] of Object.entries(regions)) {
9
- if (region === value) {
10
- return {
11
- ...outputs,
12
- ...regionData,
13
- };
14
- }
15
- }
16
- }
17
- for (const partition of partitions) {
18
- const { regionRegex, outputs } = partition;
19
- if (new RegExp(regionRegex).test(value)) {
20
- return {
21
- ...outputs,
22
- };
23
- }
24
- }
25
- const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
26
- if (!DEFAULT_PARTITION) {
27
- throw new Error("Provided region was not found in the partition array or regex," +
28
- " and default partition with id 'aws' doesn't exist.");
29
- }
30
- return {
31
- ...DEFAULT_PARTITION.outputs,
32
- };
33
- };
34
- export const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
35
- selectedPartitionsInfo = partitionsInfo;
36
- selectedUserAgentPrefix = userAgentPrefix;
37
- };
38
- export const useDefaultPartitionInfo = () => {
39
- setPartitionInfo(partitionsInfo, "");
40
- };
41
- export const getUserAgentPrefix = () => selectedUserAgentPrefix;
@@ -1,267 +0,0 @@
1
- {
2
- "partitions": [{
3
- "id": "aws",
4
- "outputs": {
5
- "dnsSuffix": "amazonaws.com",
6
- "dualStackDnsSuffix": "api.aws",
7
- "implicitGlobalRegion": "us-east-1",
8
- "name": "aws",
9
- "supportsDualStack": true,
10
- "supportsFIPS": true
11
- },
12
- "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
13
- "regions": {
14
- "af-south-1": {
15
- "description": "Africa (Cape Town)"
16
- },
17
- "ap-east-1": {
18
- "description": "Asia Pacific (Hong Kong)"
19
- },
20
- "ap-east-2": {
21
- "description": "Asia Pacific (Taipei)"
22
- },
23
- "ap-northeast-1": {
24
- "description": "Asia Pacific (Tokyo)"
25
- },
26
- "ap-northeast-2": {
27
- "description": "Asia Pacific (Seoul)"
28
- },
29
- "ap-northeast-3": {
30
- "description": "Asia Pacific (Osaka)"
31
- },
32
- "ap-south-1": {
33
- "description": "Asia Pacific (Mumbai)"
34
- },
35
- "ap-south-2": {
36
- "description": "Asia Pacific (Hyderabad)"
37
- },
38
- "ap-southeast-1": {
39
- "description": "Asia Pacific (Singapore)"
40
- },
41
- "ap-southeast-2": {
42
- "description": "Asia Pacific (Sydney)"
43
- },
44
- "ap-southeast-3": {
45
- "description": "Asia Pacific (Jakarta)"
46
- },
47
- "ap-southeast-4": {
48
- "description": "Asia Pacific (Melbourne)"
49
- },
50
- "ap-southeast-5": {
51
- "description": "Asia Pacific (Malaysia)"
52
- },
53
- "ap-southeast-6": {
54
- "description": "Asia Pacific (New Zealand)"
55
- },
56
- "ap-southeast-7": {
57
- "description": "Asia Pacific (Thailand)"
58
- },
59
- "aws-global": {
60
- "description": "aws global region"
61
- },
62
- "ca-central-1": {
63
- "description": "Canada (Central)"
64
- },
65
- "ca-west-1": {
66
- "description": "Canada West (Calgary)"
67
- },
68
- "eu-central-1": {
69
- "description": "Europe (Frankfurt)"
70
- },
71
- "eu-central-2": {
72
- "description": "Europe (Zurich)"
73
- },
74
- "eu-north-1": {
75
- "description": "Europe (Stockholm)"
76
- },
77
- "eu-south-1": {
78
- "description": "Europe (Milan)"
79
- },
80
- "eu-south-2": {
81
- "description": "Europe (Spain)"
82
- },
83
- "eu-west-1": {
84
- "description": "Europe (Ireland)"
85
- },
86
- "eu-west-2": {
87
- "description": "Europe (London)"
88
- },
89
- "eu-west-3": {
90
- "description": "Europe (Paris)"
91
- },
92
- "il-central-1": {
93
- "description": "Israel (Tel Aviv)"
94
- },
95
- "me-central-1": {
96
- "description": "Middle East (UAE)"
97
- },
98
- "me-south-1": {
99
- "description": "Middle East (Bahrain)"
100
- },
101
- "mx-central-1": {
102
- "description": "Mexico (Central)"
103
- },
104
- "sa-east-1": {
105
- "description": "South America (Sao Paulo)"
106
- },
107
- "us-east-1": {
108
- "description": "US East (N. Virginia)"
109
- },
110
- "us-east-2": {
111
- "description": "US East (Ohio)"
112
- },
113
- "us-west-1": {
114
- "description": "US West (N. California)"
115
- },
116
- "us-west-2": {
117
- "description": "US West (Oregon)"
118
- }
119
- }
120
- }, {
121
- "id": "aws-cn",
122
- "outputs": {
123
- "dnsSuffix": "amazonaws.com.cn",
124
- "dualStackDnsSuffix": "api.amazonwebservices.com.cn",
125
- "implicitGlobalRegion": "cn-northwest-1",
126
- "name": "aws-cn",
127
- "supportsDualStack": true,
128
- "supportsFIPS": true
129
- },
130
- "regionRegex": "^cn\\-\\w+\\-\\d+$",
131
- "regions": {
132
- "aws-cn-global": {
133
- "description": "aws-cn global region"
134
- },
135
- "cn-north-1": {
136
- "description": "China (Beijing)"
137
- },
138
- "cn-northwest-1": {
139
- "description": "China (Ningxia)"
140
- }
141
- }
142
- }, {
143
- "id": "aws-eusc",
144
- "outputs": {
145
- "dnsSuffix": "amazonaws.eu",
146
- "dualStackDnsSuffix": "api.amazonwebservices.eu",
147
- "implicitGlobalRegion": "eusc-de-east-1",
148
- "name": "aws-eusc",
149
- "supportsDualStack": true,
150
- "supportsFIPS": true
151
- },
152
- "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
153
- "regions": {
154
- "eusc-de-east-1": {
155
- "description": "AWS European Sovereign Cloud (Germany)"
156
- }
157
- }
158
- }, {
159
- "id": "aws-iso",
160
- "outputs": {
161
- "dnsSuffix": "c2s.ic.gov",
162
- "dualStackDnsSuffix": "api.aws.ic.gov",
163
- "implicitGlobalRegion": "us-iso-east-1",
164
- "name": "aws-iso",
165
- "supportsDualStack": true,
166
- "supportsFIPS": true
167
- },
168
- "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
169
- "regions": {
170
- "aws-iso-global": {
171
- "description": "aws-iso global region"
172
- },
173
- "us-iso-east-1": {
174
- "description": "US ISO East"
175
- },
176
- "us-iso-west-1": {
177
- "description": "US ISO WEST"
178
- }
179
- }
180
- }, {
181
- "id": "aws-iso-b",
182
- "outputs": {
183
- "dnsSuffix": "sc2s.sgov.gov",
184
- "dualStackDnsSuffix": "api.aws.scloud",
185
- "implicitGlobalRegion": "us-isob-east-1",
186
- "name": "aws-iso-b",
187
- "supportsDualStack": true,
188
- "supportsFIPS": true
189
- },
190
- "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
191
- "regions": {
192
- "aws-iso-b-global": {
193
- "description": "aws-iso-b global region"
194
- },
195
- "us-isob-east-1": {
196
- "description": "US ISOB East (Ohio)"
197
- },
198
- "us-isob-west-1": {
199
- "description": "US ISOB West"
200
- }
201
- }
202
- }, {
203
- "id": "aws-iso-e",
204
- "outputs": {
205
- "dnsSuffix": "cloud.adc-e.uk",
206
- "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
207
- "implicitGlobalRegion": "eu-isoe-west-1",
208
- "name": "aws-iso-e",
209
- "supportsDualStack": true,
210
- "supportsFIPS": true
211
- },
212
- "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
213
- "regions": {
214
- "aws-iso-e-global": {
215
- "description": "aws-iso-e global region"
216
- },
217
- "eu-isoe-west-1": {
218
- "description": "EU ISOE West"
219
- }
220
- }
221
- }, {
222
- "id": "aws-iso-f",
223
- "outputs": {
224
- "dnsSuffix": "csp.hci.ic.gov",
225
- "dualStackDnsSuffix": "api.aws.hci.ic.gov",
226
- "implicitGlobalRegion": "us-isof-south-1",
227
- "name": "aws-iso-f",
228
- "supportsDualStack": true,
229
- "supportsFIPS": true
230
- },
231
- "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
232
- "regions": {
233
- "aws-iso-f-global": {
234
- "description": "aws-iso-f global region"
235
- },
236
- "us-isof-east-1": {
237
- "description": "US ISOF EAST"
238
- },
239
- "us-isof-south-1": {
240
- "description": "US ISOF SOUTH"
241
- }
242
- }
243
- }, {
244
- "id": "aws-us-gov",
245
- "outputs": {
246
- "dnsSuffix": "amazonaws.com",
247
- "dualStackDnsSuffix": "api.aws",
248
- "implicitGlobalRegion": "us-gov-west-1",
249
- "name": "aws-us-gov",
250
- "supportsDualStack": true,
251
- "supportsFIPS": true
252
- },
253
- "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
254
- "regions": {
255
- "aws-us-gov-global": {
256
- "description": "aws-us-gov global region"
257
- },
258
- "us-gov-east-1": {
259
- "description": "AWS GovCloud (US-East)"
260
- },
261
- "us-gov-west-1": {
262
- "description": "AWS GovCloud (US-West)"
263
- }
264
- }
265
- }],
266
- "version": "1.1"
267
- }
@@ -1 +0,0 @@
1
- export { isIpAddress } from "@smithy/util-endpoints";
@@ -1,21 +0,0 @@
1
- import { parseUrl } from "@smithy/url-parser";
2
- export const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
3
- if (typeof input.endpointProvider !== "function") {
4
- throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
5
- }
6
- const { endpoint } = input;
7
- if (endpoint === undefined) {
8
- input.endpoint = async () => {
9
- return toEndpointV1(input.endpointProvider({
10
- Region: typeof input.region === "function" ? await input.region() : input.region,
11
- UseDualStack: typeof input.useDualstackEndpoint === "function"
12
- ? await input.useDualstackEndpoint()
13
- : input.useDualstackEndpoint,
14
- UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
15
- Endpoint: undefined,
16
- }, { logger: input.logger }));
17
- };
18
- }
19
- return input;
20
- };
21
- export const toEndpointV1 = (endpoint) => parseUrl(endpoint.url);
@@ -1 +0,0 @@
1
- export { resolveEndpoint } from "@smithy/util-endpoints";
@@ -1 +0,0 @@
1
- export { EndpointError } from "@smithy/util-endpoints";