@cdk8s/awscdk-resolver 0.0.471 → 0.0.472

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 (130) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +415 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +267 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +6 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +267 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
  16. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
  17. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
  18. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
  19. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
  20. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
  21. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
  22. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
  23. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
  24. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
  25. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +6 -0
  26. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
  27. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
  28. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
  29. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
  30. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
  31. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
  32. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
  33. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
  34. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +6 -0
  35. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
  36. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
  37. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
  38. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
  39. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
  40. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
  41. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
  42. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
  43. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
  44. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
  45. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
  46. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
  47. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
  48. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
  49. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
  50. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
  51. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
  52. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
  53. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
  54. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
  55. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
  56. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
  57. package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
  58. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  59. package/node_modules/@smithy/core/package.json +2 -2
  60. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  61. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  62. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -2
  63. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -2
  64. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  65. package/node_modules/@smithy/smithy-client/package.json +4 -4
  66. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  67. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  68. package/node_modules/@smithy/util-stream/package.json +6 -6
  69. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/CHANGELOG.md +16 -0
  70. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/README.md +7 -6
  71. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  72. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.d.cts +1 -1
  73. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  74. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  75. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  76. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  77. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/package.json +4 -2
  78. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.d.ts +2 -2
  79. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +1 -1
  80. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +4 -4
  81. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +379 -0
  82. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OrderedObjParser.js +55 -22
  83. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/XMLParser.js +4 -4
  84. package/package.json +3 -3
  85. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
  86. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
  87. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
  88. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
  89. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
  90. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +0 -369
  91. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/LICENSE +0 -0
  92. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxbuilder.min.js +0 -0
  93. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxbuilder.min.js.map +0 -0
  94. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxvalidator.min.js +0 -0
  95. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxvalidator.min.js.map +0 -0
  96. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/cli.js +0 -0
  97. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/man.js +0 -0
  98. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/read.js +0 -0
  99. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.js +0 -0
  100. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/ignoreAttributes.js +0 -0
  101. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/util.js +0 -0
  102. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
  103. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/EntitiesParser.js +0 -0
  104. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OptionsBuilder.js +0 -0
  105. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -0
  106. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +0 -0
  107. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +0 -0
  108. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Report.js +0 -0
  109. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPath.js +0 -0
  110. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
  111. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XMLParser.js +0 -0
  112. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
  113. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
  114. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
  115. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
  116. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
  117. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/EntitiesParser.js +0 -0
  118. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
  119. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
  120. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
  121. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
  122. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
  123. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
  124. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/validator.js +0 -0
  125. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlbuilder/json2xml.js +0 -0
  126. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlbuilder/orderedJs2Xml.js +0 -0
  127. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlbuilder/prettifyJs2Xml.js +0 -0
  128. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OptionsBuilder.js +0 -0
  129. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/node2json.js +0 -0
  130. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/xmlNode.js +0 -0
@@ -0,0 +1,267 @@
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
+ }
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,6 @@
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";
@@ -0,0 +1,3 @@
1
+ export * from "./isVirtualHostableS3Bucket";
2
+ export * from "./parseArn";
3
+ export * from "./partition";
@@ -0,0 +1,25 @@
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
+ };
@@ -0,0 +1,18 @@
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
+ };
@@ -0,0 +1,41 @@
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;
@@ -0,0 +1,267 @@
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
+ }
@@ -0,0 +1 @@
1
+ export { isIpAddress } from "@smithy/util-endpoints";
@@ -0,0 +1,21 @@
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);
@@ -0,0 +1 @@
1
+ export { resolveEndpoint } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { EndpointError } from "@smithy/util-endpoints";