@aws-sdk/client-ecr 3.194.0 → 3.195.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.
Files changed (196) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/ECRClient.js +11 -8
  3. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +10 -0
  4. package/dist-cjs/commands/BatchDeleteImageCommand.js +10 -0
  5. package/dist-cjs/commands/BatchGetImageCommand.js +10 -0
  6. package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +10 -0
  7. package/dist-cjs/commands/CompleteLayerUploadCommand.js +10 -0
  8. package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +10 -0
  9. package/dist-cjs/commands/CreateRepositoryCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +10 -0
  11. package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +10 -0
  12. package/dist-cjs/commands/DeleteRegistryPolicyCommand.js +10 -0
  13. package/dist-cjs/commands/DeleteRepositoryCommand.js +10 -0
  14. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +10 -0
  15. package/dist-cjs/commands/DescribeImageReplicationStatusCommand.js +10 -0
  16. package/dist-cjs/commands/DescribeImageScanFindingsCommand.js +10 -0
  17. package/dist-cjs/commands/DescribeImagesCommand.js +10 -0
  18. package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +10 -0
  19. package/dist-cjs/commands/DescribeRegistryCommand.js +10 -0
  20. package/dist-cjs/commands/DescribeRepositoriesCommand.js +10 -0
  21. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +10 -0
  22. package/dist-cjs/commands/GetDownloadUrlForLayerCommand.js +10 -0
  23. package/dist-cjs/commands/GetLifecyclePolicyCommand.js +10 -0
  24. package/dist-cjs/commands/GetLifecyclePolicyPreviewCommand.js +10 -0
  25. package/dist-cjs/commands/GetRegistryPolicyCommand.js +10 -0
  26. package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +10 -0
  27. package/dist-cjs/commands/GetRepositoryPolicyCommand.js +10 -0
  28. package/dist-cjs/commands/InitiateLayerUploadCommand.js +10 -0
  29. package/dist-cjs/commands/ListImagesCommand.js +10 -0
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  31. package/dist-cjs/commands/PutImageCommand.js +10 -0
  32. package/dist-cjs/commands/PutImageScanningConfigurationCommand.js +10 -0
  33. package/dist-cjs/commands/PutImageTagMutabilityCommand.js +10 -0
  34. package/dist-cjs/commands/PutLifecyclePolicyCommand.js +10 -0
  35. package/dist-cjs/commands/PutRegistryPolicyCommand.js +10 -0
  36. package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +10 -0
  37. package/dist-cjs/commands/PutReplicationConfigurationCommand.js +10 -0
  38. package/dist-cjs/commands/SetRepositoryPolicyCommand.js +10 -0
  39. package/dist-cjs/commands/StartImageScanCommand.js +10 -0
  40. package/dist-cjs/commands/StartLifecyclePolicyPreviewCommand.js +10 -0
  41. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  42. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  43. package/dist-cjs/commands/UploadLayerPartCommand.js +10 -0
  44. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  45. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  46. package/dist-cjs/endpoint/ruleset.js +482 -0
  47. package/dist-cjs/runtimeConfig.shared.js +3 -3
  48. package/dist-es/ECRClient.js +12 -9
  49. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +10 -0
  50. package/dist-es/commands/BatchDeleteImageCommand.js +10 -0
  51. package/dist-es/commands/BatchGetImageCommand.js +10 -0
  52. package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +10 -0
  53. package/dist-es/commands/CompleteLayerUploadCommand.js +10 -0
  54. package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +10 -0
  55. package/dist-es/commands/CreateRepositoryCommand.js +10 -0
  56. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +10 -0
  57. package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +10 -0
  58. package/dist-es/commands/DeleteRegistryPolicyCommand.js +10 -0
  59. package/dist-es/commands/DeleteRepositoryCommand.js +10 -0
  60. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +10 -0
  61. package/dist-es/commands/DescribeImageReplicationStatusCommand.js +10 -0
  62. package/dist-es/commands/DescribeImageScanFindingsCommand.js +10 -0
  63. package/dist-es/commands/DescribeImagesCommand.js +10 -0
  64. package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +10 -0
  65. package/dist-es/commands/DescribeRegistryCommand.js +10 -0
  66. package/dist-es/commands/DescribeRepositoriesCommand.js +10 -0
  67. package/dist-es/commands/GetAuthorizationTokenCommand.js +10 -0
  68. package/dist-es/commands/GetDownloadUrlForLayerCommand.js +10 -0
  69. package/dist-es/commands/GetLifecyclePolicyCommand.js +10 -0
  70. package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +10 -0
  71. package/dist-es/commands/GetRegistryPolicyCommand.js +10 -0
  72. package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +10 -0
  73. package/dist-es/commands/GetRepositoryPolicyCommand.js +10 -0
  74. package/dist-es/commands/InitiateLayerUploadCommand.js +10 -0
  75. package/dist-es/commands/ListImagesCommand.js +10 -0
  76. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  77. package/dist-es/commands/PutImageCommand.js +10 -0
  78. package/dist-es/commands/PutImageScanningConfigurationCommand.js +10 -0
  79. package/dist-es/commands/PutImageTagMutabilityCommand.js +10 -0
  80. package/dist-es/commands/PutLifecyclePolicyCommand.js +10 -0
  81. package/dist-es/commands/PutRegistryPolicyCommand.js +10 -0
  82. package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +10 -0
  83. package/dist-es/commands/PutReplicationConfigurationCommand.js +10 -0
  84. package/dist-es/commands/SetRepositoryPolicyCommand.js +10 -0
  85. package/dist-es/commands/StartImageScanCommand.js +10 -0
  86. package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +10 -0
  87. package/dist-es/commands/TagResourceCommand.js +10 -0
  88. package/dist-es/commands/UntagResourceCommand.js +10 -0
  89. package/dist-es/commands/UploadLayerPartCommand.js +10 -0
  90. package/dist-es/endpoint/EndpointParameters.js +8 -0
  91. package/dist-es/endpoint/endpointResolver.js +8 -0
  92. package/dist-es/endpoint/ruleset.js +479 -0
  93. package/dist-es/runtimeConfig.shared.js +2 -2
  94. package/dist-types/ECRClient.d.ts +6 -9
  95. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -0
  96. package/dist-types/commands/BatchDeleteImageCommand.d.ts +2 -0
  97. package/dist-types/commands/BatchGetImageCommand.d.ts +2 -0
  98. package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +2 -0
  99. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +2 -0
  100. package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +2 -0
  101. package/dist-types/commands/CreateRepositoryCommand.d.ts +2 -0
  102. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +2 -0
  103. package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +2 -0
  104. package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +2 -0
  105. package/dist-types/commands/DeleteRepositoryCommand.d.ts +2 -0
  106. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +2 -0
  107. package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +2 -0
  108. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +2 -0
  109. package/dist-types/commands/DescribeImagesCommand.d.ts +2 -0
  110. package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +2 -0
  111. package/dist-types/commands/DescribeRegistryCommand.d.ts +2 -0
  112. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +2 -0
  113. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +2 -0
  114. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +2 -0
  115. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +2 -0
  116. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +2 -0
  117. package/dist-types/commands/GetRegistryPolicyCommand.d.ts +2 -0
  118. package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +2 -0
  119. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +2 -0
  120. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +2 -0
  121. package/dist-types/commands/ListImagesCommand.d.ts +2 -0
  122. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  123. package/dist-types/commands/PutImageCommand.d.ts +2 -0
  124. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +2 -0
  125. package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +2 -0
  126. package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +2 -0
  127. package/dist-types/commands/PutRegistryPolicyCommand.d.ts +2 -0
  128. package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +2 -0
  129. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +2 -0
  130. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +2 -0
  131. package/dist-types/commands/StartImageScanCommand.d.ts +2 -0
  132. package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +2 -0
  133. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  134. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  135. package/dist-types/commands/UploadLayerPartCommand.d.ts +2 -0
  136. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  137. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  138. package/dist-types/endpoint/ruleset.d.ts +2 -0
  139. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  140. package/dist-types/runtimeConfig.d.ts +4 -2
  141. package/dist-types/runtimeConfig.native.d.ts +4 -2
  142. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  143. package/dist-types/ts3.4/ECRClient.d.ts +15 -8
  144. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -0
  145. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +2 -0
  146. package/dist-types/ts3.4/commands/BatchGetImageCommand.d.ts +2 -0
  147. package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +2 -0
  148. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +2 -0
  149. package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +2 -0
  150. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -0
  151. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +2 -0
  152. package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +2 -0
  153. package/dist-types/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +2 -0
  154. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -0
  155. package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +2 -0
  156. package/dist-types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +2 -0
  157. package/dist-types/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +2 -0
  158. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +2 -0
  159. package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +2 -0
  160. package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +2 -0
  161. package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +2 -0
  162. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -0
  163. package/dist-types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +2 -0
  164. package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +2 -0
  165. package/dist-types/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +2 -0
  166. package/dist-types/ts3.4/commands/GetRegistryPolicyCommand.d.ts +2 -0
  167. package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +2 -0
  168. package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +2 -0
  169. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +2 -0
  170. package/dist-types/ts3.4/commands/ListImagesCommand.d.ts +2 -0
  171. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  172. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +2 -0
  173. package/dist-types/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +2 -0
  174. package/dist-types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +2 -0
  175. package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -0
  176. package/dist-types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +2 -0
  177. package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +2 -0
  178. package/dist-types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +2 -0
  179. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +2 -0
  180. package/dist-types/ts3.4/commands/StartImageScanCommand.d.ts +2 -0
  181. package/dist-types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +2 -0
  182. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  183. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  184. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +2 -0
  185. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  186. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  187. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  188. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  189. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  190. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  191. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  192. package/package.json +3 -1
  193. package/dist-cjs/endpoints.js +0 -448
  194. package/dist-es/endpoints.js +0 -444
  195. package/dist-types/endpoints.d.ts +0 -2
  196. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -40,9 +39,21 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
40
39
  >;
41
40
  endpoint?:
42
41
  | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
42
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
+ import("@aws-sdk/types").Provider<string>)
44
+ | (import("@aws-sdk/types").Endpoint &
45
+ import("@aws-sdk/types").Provider<string>)
46
+ | (import("@aws-sdk/types").EndpointV2 &
47
+ import("@aws-sdk/types").Provider<string>)
48
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
+ import("@aws-sdk/types").Provider<string>)
45
50
  | undefined;
51
+ endpointProvider: (
52
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
53
+ context?: {
54
+ logger?: import("@aws-sdk/types").Logger | undefined;
55
+ }
56
+ ) => import("@aws-sdk/types").EndpointV2;
46
57
  tls?: boolean | undefined;
47
58
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
59
  credentials?:
@@ -3,8 +3,13 @@ import { ECRClientConfig } from "./ECRClient";
3
3
  export declare const getRuntimeConfig: (config: ECRClientConfig) => {
4
4
  apiVersion: string;
5
5
  disableHostPrefix: boolean;
6
+ endpointProvider: (
7
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
8
+ context?: {
9
+ logger?: __Logger | undefined;
10
+ }
11
+ ) => import("@aws-sdk/types").EndpointV2;
6
12
  logger: __Logger;
7
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
8
13
  serviceId: string;
9
14
  urlParser: import("@aws-sdk/types").UrlParser;
10
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecr",
3
3
  "description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
4
- "version": "3.194.0",
4
+ "version": "3.195.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -26,6 +26,7 @@
26
26
  "@aws-sdk/hash-node": "3.193.0",
27
27
  "@aws-sdk/invalid-dependency": "3.193.0",
28
28
  "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
29
30
  "@aws-sdk/middleware-host-header": "3.193.0",
30
31
  "@aws-sdk/middleware-logger": "3.193.0",
31
32
  "@aws-sdk/middleware-recursion-detection": "3.193.0",
@@ -46,6 +47,7 @@
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
48
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
49
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.194.0",
49
51
  "@aws-sdk/util-user-agent-browser": "3.193.0",
50
52
  "@aws-sdk/util-user-agent-node": "3.193.0",
51
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
@@ -1,448 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {
6
- "af-south-1": {
7
- variants: [
8
- {
9
- hostname: "api.ecr.af-south-1.amazonaws.com",
10
- tags: [],
11
- },
12
- ],
13
- signingRegion: "af-south-1",
14
- },
15
- "ap-east-1": {
16
- variants: [
17
- {
18
- hostname: "api.ecr.ap-east-1.amazonaws.com",
19
- tags: [],
20
- },
21
- ],
22
- signingRegion: "ap-east-1",
23
- },
24
- "ap-northeast-1": {
25
- variants: [
26
- {
27
- hostname: "api.ecr.ap-northeast-1.amazonaws.com",
28
- tags: [],
29
- },
30
- ],
31
- signingRegion: "ap-northeast-1",
32
- },
33
- "ap-northeast-2": {
34
- variants: [
35
- {
36
- hostname: "api.ecr.ap-northeast-2.amazonaws.com",
37
- tags: [],
38
- },
39
- ],
40
- signingRegion: "ap-northeast-2",
41
- },
42
- "ap-northeast-3": {
43
- variants: [
44
- {
45
- hostname: "api.ecr.ap-northeast-3.amazonaws.com",
46
- tags: [],
47
- },
48
- ],
49
- signingRegion: "ap-northeast-3",
50
- },
51
- "ap-south-1": {
52
- variants: [
53
- {
54
- hostname: "api.ecr.ap-south-1.amazonaws.com",
55
- tags: [],
56
- },
57
- ],
58
- signingRegion: "ap-south-1",
59
- },
60
- "ap-southeast-1": {
61
- variants: [
62
- {
63
- hostname: "api.ecr.ap-southeast-1.amazonaws.com",
64
- tags: [],
65
- },
66
- ],
67
- signingRegion: "ap-southeast-1",
68
- },
69
- "ap-southeast-2": {
70
- variants: [
71
- {
72
- hostname: "api.ecr.ap-southeast-2.amazonaws.com",
73
- tags: [],
74
- },
75
- ],
76
- signingRegion: "ap-southeast-2",
77
- },
78
- "ap-southeast-3": {
79
- variants: [
80
- {
81
- hostname: "api.ecr.ap-southeast-3.amazonaws.com",
82
- tags: [],
83
- },
84
- ],
85
- signingRegion: "ap-southeast-3",
86
- },
87
- "ca-central-1": {
88
- variants: [
89
- {
90
- hostname: "api.ecr.ca-central-1.amazonaws.com",
91
- tags: [],
92
- },
93
- ],
94
- signingRegion: "ca-central-1",
95
- },
96
- "cn-north-1": {
97
- variants: [
98
- {
99
- hostname: "api.ecr.cn-north-1.amazonaws.com.cn",
100
- tags: [],
101
- },
102
- ],
103
- signingRegion: "cn-north-1",
104
- },
105
- "cn-northwest-1": {
106
- variants: [
107
- {
108
- hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn",
109
- tags: [],
110
- },
111
- ],
112
- signingRegion: "cn-northwest-1",
113
- },
114
- "eu-central-1": {
115
- variants: [
116
- {
117
- hostname: "api.ecr.eu-central-1.amazonaws.com",
118
- tags: [],
119
- },
120
- ],
121
- signingRegion: "eu-central-1",
122
- },
123
- "eu-north-1": {
124
- variants: [
125
- {
126
- hostname: "api.ecr.eu-north-1.amazonaws.com",
127
- tags: [],
128
- },
129
- ],
130
- signingRegion: "eu-north-1",
131
- },
132
- "eu-south-1": {
133
- variants: [
134
- {
135
- hostname: "api.ecr.eu-south-1.amazonaws.com",
136
- tags: [],
137
- },
138
- ],
139
- signingRegion: "eu-south-1",
140
- },
141
- "eu-west-1": {
142
- variants: [
143
- {
144
- hostname: "api.ecr.eu-west-1.amazonaws.com",
145
- tags: [],
146
- },
147
- ],
148
- signingRegion: "eu-west-1",
149
- },
150
- "eu-west-2": {
151
- variants: [
152
- {
153
- hostname: "api.ecr.eu-west-2.amazonaws.com",
154
- tags: [],
155
- },
156
- ],
157
- signingRegion: "eu-west-2",
158
- },
159
- "eu-west-3": {
160
- variants: [
161
- {
162
- hostname: "api.ecr.eu-west-3.amazonaws.com",
163
- tags: [],
164
- },
165
- ],
166
- signingRegion: "eu-west-3",
167
- },
168
- "me-central-1": {
169
- variants: [
170
- {
171
- hostname: "api.ecr.me-central-1.amazonaws.com",
172
- tags: [],
173
- },
174
- ],
175
- signingRegion: "me-central-1",
176
- },
177
- "me-south-1": {
178
- variants: [
179
- {
180
- hostname: "api.ecr.me-south-1.amazonaws.com",
181
- tags: [],
182
- },
183
- ],
184
- signingRegion: "me-south-1",
185
- },
186
- "sa-east-1": {
187
- variants: [
188
- {
189
- hostname: "api.ecr.sa-east-1.amazonaws.com",
190
- tags: [],
191
- },
192
- ],
193
- signingRegion: "sa-east-1",
194
- },
195
- "us-east-1": {
196
- variants: [
197
- {
198
- hostname: "api.ecr.us-east-1.amazonaws.com",
199
- tags: [],
200
- },
201
- {
202
- hostname: "ecr-fips.us-east-1.amazonaws.com",
203
- tags: ["fips"],
204
- },
205
- ],
206
- signingRegion: "us-east-1",
207
- },
208
- "us-east-2": {
209
- variants: [
210
- {
211
- hostname: "api.ecr.us-east-2.amazonaws.com",
212
- tags: [],
213
- },
214
- {
215
- hostname: "ecr-fips.us-east-2.amazonaws.com",
216
- tags: ["fips"],
217
- },
218
- ],
219
- signingRegion: "us-east-2",
220
- },
221
- "us-gov-east-1": {
222
- variants: [
223
- {
224
- hostname: "api.ecr.us-gov-east-1.amazonaws.com",
225
- tags: [],
226
- },
227
- {
228
- hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
229
- tags: ["fips"],
230
- },
231
- ],
232
- signingRegion: "us-gov-east-1",
233
- },
234
- "us-gov-west-1": {
235
- variants: [
236
- {
237
- hostname: "api.ecr.us-gov-west-1.amazonaws.com",
238
- tags: [],
239
- },
240
- {
241
- hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
242
- tags: ["fips"],
243
- },
244
- ],
245
- signingRegion: "us-gov-west-1",
246
- },
247
- "us-iso-east-1": {
248
- variants: [
249
- {
250
- hostname: "api.ecr.us-iso-east-1.c2s.ic.gov",
251
- tags: [],
252
- },
253
- ],
254
- signingRegion: "us-iso-east-1",
255
- },
256
- "us-iso-west-1": {
257
- variants: [
258
- {
259
- hostname: "api.ecr.us-iso-west-1.c2s.ic.gov",
260
- tags: [],
261
- },
262
- ],
263
- signingRegion: "us-iso-west-1",
264
- },
265
- "us-isob-east-1": {
266
- variants: [
267
- {
268
- hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov",
269
- tags: [],
270
- },
271
- ],
272
- signingRegion: "us-isob-east-1",
273
- },
274
- "us-west-1": {
275
- variants: [
276
- {
277
- hostname: "api.ecr.us-west-1.amazonaws.com",
278
- tags: [],
279
- },
280
- {
281
- hostname: "ecr-fips.us-west-1.amazonaws.com",
282
- tags: ["fips"],
283
- },
284
- ],
285
- signingRegion: "us-west-1",
286
- },
287
- "us-west-2": {
288
- variants: [
289
- {
290
- hostname: "api.ecr.us-west-2.amazonaws.com",
291
- tags: [],
292
- },
293
- {
294
- hostname: "ecr-fips.us-west-2.amazonaws.com",
295
- tags: ["fips"],
296
- },
297
- ],
298
- signingRegion: "us-west-2",
299
- },
300
- };
301
- const partitionHash = {
302
- aws: {
303
- regions: [
304
- "af-south-1",
305
- "ap-east-1",
306
- "ap-northeast-1",
307
- "ap-northeast-2",
308
- "ap-northeast-3",
309
- "ap-south-1",
310
- "ap-southeast-1",
311
- "ap-southeast-2",
312
- "ap-southeast-3",
313
- "ca-central-1",
314
- "dkr-us-east-1",
315
- "dkr-us-east-2",
316
- "dkr-us-west-1",
317
- "dkr-us-west-2",
318
- "eu-central-1",
319
- "eu-north-1",
320
- "eu-south-1",
321
- "eu-west-1",
322
- "eu-west-2",
323
- "eu-west-3",
324
- "fips-dkr-us-east-1",
325
- "fips-dkr-us-east-2",
326
- "fips-dkr-us-west-1",
327
- "fips-dkr-us-west-2",
328
- "fips-us-east-1",
329
- "fips-us-east-2",
330
- "fips-us-west-1",
331
- "fips-us-west-2",
332
- "me-central-1",
333
- "me-south-1",
334
- "sa-east-1",
335
- "us-east-1",
336
- "us-east-2",
337
- "us-west-1",
338
- "us-west-2",
339
- ],
340
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
341
- variants: [
342
- {
343
- hostname: "api.ecr.{region}.amazonaws.com",
344
- tags: [],
345
- },
346
- {
347
- hostname: "ecr-fips.{region}.amazonaws.com",
348
- tags: ["fips"],
349
- },
350
- {
351
- hostname: "api.ecr-fips.{region}.api.aws",
352
- tags: ["dualstack", "fips"],
353
- },
354
- {
355
- hostname: "api.ecr.{region}.api.aws",
356
- tags: ["dualstack"],
357
- },
358
- ],
359
- },
360
- "aws-cn": {
361
- regions: ["cn-north-1", "cn-northwest-1"],
362
- regionRegex: "^cn\\-\\w+\\-\\d+$",
363
- variants: [
364
- {
365
- hostname: "api.ecr.{region}.amazonaws.com.cn",
366
- tags: [],
367
- },
368
- {
369
- hostname: "api.ecr-fips.{region}.amazonaws.com.cn",
370
- tags: ["fips"],
371
- },
372
- {
373
- hostname: "api.ecr-fips.{region}.api.amazonwebservices.com.cn",
374
- tags: ["dualstack", "fips"],
375
- },
376
- {
377
- hostname: "api.ecr.{region}.api.amazonwebservices.com.cn",
378
- tags: ["dualstack"],
379
- },
380
- ],
381
- },
382
- "aws-iso": {
383
- regions: ["us-iso-east-1", "us-iso-west-1"],
384
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
385
- variants: [
386
- {
387
- hostname: "api.ecr.{region}.c2s.ic.gov",
388
- tags: [],
389
- },
390
- {
391
- hostname: "api.ecr-fips.{region}.c2s.ic.gov",
392
- tags: ["fips"],
393
- },
394
- ],
395
- },
396
- "aws-iso-b": {
397
- regions: ["us-isob-east-1"],
398
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
399
- variants: [
400
- {
401
- hostname: "api.ecr.{region}.sc2s.sgov.gov",
402
- tags: [],
403
- },
404
- {
405
- hostname: "api.ecr-fips.{region}.sc2s.sgov.gov",
406
- tags: ["fips"],
407
- },
408
- ],
409
- },
410
- "aws-us-gov": {
411
- regions: [
412
- "dkr-us-gov-east-1",
413
- "dkr-us-gov-west-1",
414
- "fips-dkr-us-gov-east-1",
415
- "fips-dkr-us-gov-west-1",
416
- "fips-us-gov-east-1",
417
- "fips-us-gov-west-1",
418
- "us-gov-east-1",
419
- "us-gov-west-1",
420
- ],
421
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
422
- variants: [
423
- {
424
- hostname: "api.ecr.{region}.amazonaws.com",
425
- tags: [],
426
- },
427
- {
428
- hostname: "ecr-fips.{region}.amazonaws.com",
429
- tags: ["fips"],
430
- },
431
- {
432
- hostname: "api.ecr-fips.{region}.api.aws",
433
- tags: ["dualstack", "fips"],
434
- },
435
- {
436
- hostname: "api.ecr.{region}.api.aws",
437
- tags: ["dualstack"],
438
- },
439
- ],
440
- },
441
- };
442
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
443
- ...options,
444
- signingService: "ecr",
445
- regionHash,
446
- partitionHash,
447
- });
448
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;