@aws-sdk/client-ecr 3.36.0 → 3.39.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 (114) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/ECR.js +0 -11
  3. package/dist-cjs/ECRClient.js +0 -16
  4. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +0 -31
  5. package/dist-cjs/commands/BatchDeleteImageCommand.js +0 -29
  6. package/dist-cjs/commands/BatchGetImageCommand.js +0 -27
  7. package/dist-cjs/commands/CompleteLayerUploadCommand.js +0 -32
  8. package/dist-cjs/commands/CreateRepositoryCommand.js +0 -25
  9. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +0 -24
  10. package/dist-cjs/commands/DeleteRegistryPolicyCommand.js +0 -24
  11. package/dist-cjs/commands/DeleteRepositoryCommand.js +0 -26
  12. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +0 -24
  13. package/dist-cjs/commands/DescribeImageReplicationStatusCommand.js +0 -24
  14. package/dist-cjs/commands/DescribeImageScanFindingsCommand.js +0 -24
  15. package/dist-cjs/commands/DescribeImagesCommand.js +0 -30
  16. package/dist-cjs/commands/DescribeRegistryCommand.js +0 -26
  17. package/dist-cjs/commands/DescribeRepositoriesCommand.js +0 -24
  18. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +0 -31
  19. package/dist-cjs/commands/GetDownloadUrlForLayerCommand.js +0 -31
  20. package/dist-cjs/commands/GetLifecyclePolicyCommand.js +0 -24
  21. package/dist-cjs/commands/GetLifecyclePolicyPreviewCommand.js +0 -25
  22. package/dist-cjs/commands/GetRegistryPolicyCommand.js +0 -24
  23. package/dist-cjs/commands/GetRepositoryPolicyCommand.js +0 -24
  24. package/dist-cjs/commands/InitiateLayerUploadCommand.js +0 -31
  25. package/dist-cjs/commands/ListImagesCommand.js +0 -30
  26. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  27. package/dist-cjs/commands/PutImageCommand.js +0 -32
  28. package/dist-cjs/commands/PutImageScanningConfigurationCommand.js +0 -24
  29. package/dist-cjs/commands/PutImageTagMutabilityCommand.js +0 -26
  30. package/dist-cjs/commands/PutLifecyclePolicyCommand.js +0 -26
  31. package/dist-cjs/commands/PutRegistryPolicyCommand.js +0 -26
  32. package/dist-cjs/commands/PutReplicationConfigurationCommand.js +0 -34
  33. package/dist-cjs/commands/SetRepositoryPolicyCommand.js +0 -26
  34. package/dist-cjs/commands/StartImageScanCommand.js +0 -27
  35. package/dist-cjs/commands/StartLifecyclePolicyPreviewCommand.js +0 -25
  36. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  37. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  38. package/dist-cjs/commands/UploadLayerPartCommand.js +0 -31
  39. package/dist-cjs/commands/index.js +38 -0
  40. package/dist-cjs/endpoints.js +10 -1
  41. package/dist-cjs/index.js +5 -45
  42. package/dist-cjs/models/models_0.js +0 -381
  43. package/dist-cjs/pagination/DescribeImageScanFindingsPaginator.js +0 -10
  44. package/dist-cjs/pagination/DescribeImagesPaginator.js +0 -10
  45. package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +0 -10
  46. package/dist-cjs/pagination/GetLifecyclePolicyPreviewPaginator.js +0 -10
  47. package/dist-cjs/pagination/ListImagesPaginator.js +0 -10
  48. package/dist-cjs/pagination/index.js +9 -0
  49. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  50. package/dist-cjs/runtimeConfig.browser.js +1 -5
  51. package/dist-cjs/runtimeConfig.js +1 -5
  52. package/dist-cjs/runtimeConfig.native.js +0 -3
  53. package/dist-cjs/runtimeConfig.shared.js +0 -3
  54. package/dist-cjs/waiters/index.js +5 -0
  55. package/dist-cjs/waiters/waitForImageScanComplete.js +0 -9
  56. package/dist-cjs/waiters/waitForLifecyclePolicyPreviewComplete.js +0 -9
  57. package/dist-es/commands/index.js +35 -0
  58. package/dist-es/endpoints.js +10 -1
  59. package/dist-es/index.js +5 -45
  60. package/dist-es/pagination/index.js +6 -0
  61. package/dist-es/waiters/index.js +2 -0
  62. package/dist-types/commands/index.d.ts +35 -0
  63. package/dist-types/index.d.ts +5 -45
  64. package/dist-types/pagination/index.d.ts +6 -0
  65. package/dist-types/ts3.4/ECR.d.ts +36 -216
  66. package/dist-types/ts3.4/ECRClient.d.ts +24 -97
  67. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -27
  68. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +2 -25
  69. package/dist-types/ts3.4/commands/BatchGetImageCommand.d.ts +2 -23
  70. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +2 -28
  71. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -21
  72. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +2 -20
  73. package/dist-types/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +2 -20
  74. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -22
  75. package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +2 -20
  76. package/dist-types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +2 -20
  77. package/dist-types/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +2 -20
  78. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +2 -26
  79. package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +2 -22
  80. package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +2 -20
  81. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -27
  82. package/dist-types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +2 -27
  83. package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +2 -21
  85. package/dist-types/ts3.4/commands/GetRegistryPolicyCommand.d.ts +2 -20
  86. package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +2 -20
  87. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +2 -27
  88. package/dist-types/ts3.4/commands/ListImagesCommand.d.ts +2 -26
  89. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  90. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +2 -28
  91. package/dist-types/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +2 -20
  92. package/dist-types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +2 -22
  93. package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -22
  94. package/dist-types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +2 -22
  95. package/dist-types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +2 -30
  96. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +2 -22
  97. package/dist-types/ts3.4/commands/StartImageScanCommand.d.ts +2 -23
  98. package/dist-types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +2 -21
  99. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -21
  100. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  101. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +2 -27
  102. package/dist-types/ts3.4/commands/index.d.ts +35 -0
  103. package/dist-types/ts3.4/index.d.ts +5 -45
  104. package/dist-types/ts3.4/models/models_0.d.ts +478 -1712
  105. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  106. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  107. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  108. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  109. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  110. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  111. package/dist-types/ts3.4/waiters/waitForImageScanComplete.d.ts +2 -9
  112. package/dist-types/ts3.4/waiters/waitForLifecyclePolicyPreviewComplete.d.ts +2 -9
  113. package/dist-types/waiters/index.d.ts +2 -0
  114. package/package.json +33 -33
@@ -4,22 +4,13 @@ exports.paginateDescribeImageScanFindings = void 0;
4
4
  const DescribeImageScanFindingsCommand_1 = require("../commands/DescribeImageScanFindingsCommand");
5
5
  const ECR_1 = require("../ECR");
6
6
  const ECRClient_1 = require("../ECRClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeImageScanFindingsCommand_1.DescribeImageScanFindingsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeImageScanFindings(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeImageScanFindings(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeImageScanFindings(config, input, ...additionalAr
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeImageScanFindings = paginateDescribeImageScanFindings;
@@ -4,22 +4,13 @@ exports.paginateDescribeImages = void 0;
4
4
  const DescribeImagesCommand_1 = require("../commands/DescribeImagesCommand");
5
5
  const ECR_1 = require("../ECR");
6
6
  const ECRClient_1 = require("../ECRClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeImagesCommand_1.DescribeImagesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeImages(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeImages(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeImages(config, input, ...additionalArguments) {
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeImages = paginateDescribeImages;
@@ -4,22 +4,13 @@ exports.paginateDescribeRepositories = void 0;
4
4
  const DescribeRepositoriesCommand_1 = require("../commands/DescribeRepositoriesCommand");
5
5
  const ECR_1 = require("../ECR");
6
6
  const ECRClient_1 = require("../ECRClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeRepositories(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeRepositories(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeRepositories(config, input, ...additionalArgumen
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeRepositories = paginateDescribeRepositories;
@@ -4,22 +4,13 @@ exports.paginateGetLifecyclePolicyPreview = void 0;
4
4
  const GetLifecyclePolicyPreviewCommand_1 = require("../commands/GetLifecyclePolicyPreviewCommand");
5
5
  const ECR_1 = require("../ECR");
6
6
  const ECRClient_1 = require("../ECRClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new GetLifecyclePolicyPreviewCommand_1.GetLifecyclePolicyPreviewCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.getLifecyclePolicyPreview(input, ...args);
20
12
  };
21
13
  async function* paginateGetLifecyclePolicyPreview(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateGetLifecyclePolicyPreview(config, input, ...additionalAr
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateGetLifecyclePolicyPreview = paginateGetLifecyclePolicyPreview;
@@ -4,22 +4,13 @@ exports.paginateListImages = void 0;
4
4
  const ListImagesCommand_1 = require("../commands/ListImagesCommand");
5
5
  const ECR_1 = require("../ECR");
6
6
  const ECRClient_1 = require("../ECRClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListImagesCommand_1.ListImagesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listImages(input, ...args);
20
12
  };
21
13
  async function* paginateListImages(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListImages(config, input, ...additionalArguments) {
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListImages = paginateListImages;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./DescribeImageScanFindingsPaginator"), exports);
5
+ tslib_1.__exportStar(require("./DescribeImagesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./DescribeRepositoriesPaginator"), exports);
7
+ tslib_1.__exportStar(require("./GetLifecyclePolicyPreviewPaginator"), exports);
8
+ tslib_1.__exportStar(require("./Interfaces"), exports);
9
+ tslib_1.__exportStar(require("./ListImagesPaginator"), exports);
@@ -4594,14 +4594,12 @@ const deserializeMetadata = (output) => {
4594
4594
  cfId: output.headers["x-amz-cf-id"],
4595
4595
  });
4596
4596
  };
4597
- // Collect low-level response body stream to Uint8Array.
4598
4597
  const collectBody = (streamBody = new Uint8Array(), context) => {
4599
4598
  if (streamBody instanceof Uint8Array) {
4600
4599
  return Promise.resolve(streamBody);
4601
4600
  }
4602
4601
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4603
4602
  };
4604
- // Encode Uint8Array data into string with utf-8.
4605
4603
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4606
4604
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4607
4605
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -4627,9 +4625,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4627
4625
  }
4628
4626
  return {};
4629
4627
  });
4630
- /**
4631
- * Load an error code for the aws.rest-json-1.1 protocol.
4632
- */
4633
4628
  const loadRestJsonErrorCode = (output, data) => {
4634
4629
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4635
4630
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForImageScanComplete"), exports);
5
+ tslib_1.__exportStar(require("./waitForLifecyclePolicyPreviewComplete"), exports);
@@ -32,20 +32,11 @@ const checkState = async (client, input) => {
32
32
  }
33
33
  return { state: util_waiter_1.WaiterState.RETRY, reason };
34
34
  };
35
- /**
36
- * Wait until an image scan is complete and findings can be accessed
37
- * @deprecated Use waitUntilImageScanComplete instead. waitForImageScanComplete does not throw error in non-success cases.
38
- */
39
35
  const waitForImageScanComplete = async (params, input) => {
40
36
  const serviceDefaults = { minDelay: 5, maxDelay: 120 };
41
37
  return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
42
38
  };
43
39
  exports.waitForImageScanComplete = waitForImageScanComplete;
44
- /**
45
- * Wait until an image scan is complete and findings can be accessed
46
- * @param params - Waiter configuration options.
47
- * @param input - The input to DescribeImageScanFindingsCommand for polling.
48
- */
49
40
  const waitUntilImageScanComplete = async (params, input) => {
50
41
  const serviceDefaults = { minDelay: 5, maxDelay: 120 };
51
42
  const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
@@ -32,20 +32,11 @@ const checkState = async (client, input) => {
32
32
  }
33
33
  return { state: util_waiter_1.WaiterState.RETRY, reason };
34
34
  };
35
- /**
36
- * Wait until a lifecycle policy preview request is complete and results can be accessed
37
- * @deprecated Use waitUntilLifecyclePolicyPreviewComplete instead. waitForLifecyclePolicyPreviewComplete does not throw error in non-success cases.
38
- */
39
35
  const waitForLifecyclePolicyPreviewComplete = async (params, input) => {
40
36
  const serviceDefaults = { minDelay: 5, maxDelay: 120 };
41
37
  return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
42
38
  };
43
39
  exports.waitForLifecyclePolicyPreviewComplete = waitForLifecyclePolicyPreviewComplete;
44
- /**
45
- * Wait until a lifecycle policy preview request is complete and results can be accessed
46
- * @param params - Waiter configuration options.
47
- * @param input - The input to GetLifecyclePolicyPreviewCommand for polling.
48
- */
49
40
  const waitUntilLifecyclePolicyPreviewComplete = async (params, input) => {
50
41
  const serviceDefaults = { minDelay: 5, maxDelay: 120 };
51
42
  const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
@@ -0,0 +1,35 @@
1
+ export * from "./BatchCheckLayerAvailabilityCommand";
2
+ export * from "./BatchDeleteImageCommand";
3
+ export * from "./BatchGetImageCommand";
4
+ export * from "./CompleteLayerUploadCommand";
5
+ export * from "./CreateRepositoryCommand";
6
+ export * from "./DeleteLifecyclePolicyCommand";
7
+ export * from "./DeleteRegistryPolicyCommand";
8
+ export * from "./DeleteRepositoryCommand";
9
+ export * from "./DeleteRepositoryPolicyCommand";
10
+ export * from "./DescribeImageReplicationStatusCommand";
11
+ export * from "./DescribeImageScanFindingsCommand";
12
+ export * from "./DescribeImagesCommand";
13
+ export * from "./DescribeRegistryCommand";
14
+ export * from "./DescribeRepositoriesCommand";
15
+ export * from "./GetAuthorizationTokenCommand";
16
+ export * from "./GetDownloadUrlForLayerCommand";
17
+ export * from "./GetLifecyclePolicyCommand";
18
+ export * from "./GetLifecyclePolicyPreviewCommand";
19
+ export * from "./GetRegistryPolicyCommand";
20
+ export * from "./GetRepositoryPolicyCommand";
21
+ export * from "./InitiateLayerUploadCommand";
22
+ export * from "./ListImagesCommand";
23
+ export * from "./ListTagsForResourceCommand";
24
+ export * from "./PutImageCommand";
25
+ export * from "./PutImageScanningConfigurationCommand";
26
+ export * from "./PutImageTagMutabilityCommand";
27
+ export * from "./PutLifecyclePolicyCommand";
28
+ export * from "./PutRegistryPolicyCommand";
29
+ export * from "./PutReplicationConfigurationCommand";
30
+ export * from "./SetRepositoryPolicyCommand";
31
+ export * from "./StartImageScanCommand";
32
+ export * from "./StartLifecyclePolicyPreviewCommand";
33
+ export * from "./TagResourceCommand";
34
+ export * from "./UntagResourceCommand";
35
+ export * from "./UploadLayerPartCommand";
@@ -145,6 +145,10 @@ var regionHash = {
145
145
  hostname: "api.ecr.us-iso-east-1.c2s.ic.gov",
146
146
  signingRegion: "us-iso-east-1",
147
147
  },
148
+ "us-iso-west-1": {
149
+ hostname: "api.ecr.us-iso-west-1.c2s.ic.gov",
150
+ signingRegion: "us-iso-west-1",
151
+ },
148
152
  "us-isob-east-1": {
149
153
  hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov",
150
154
  signingRegion: "us-isob-east-1",
@@ -191,18 +195,22 @@ var partitionHash = {
191
195
  "us-west-1",
192
196
  "us-west-2",
193
197
  ],
198
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
194
199
  hostname: "api.ecr.{region}.amazonaws.com",
195
200
  },
196
201
  "aws-cn": {
197
202
  regions: ["cn-north-1", "cn-northwest-1"],
203
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
198
204
  hostname: "api.ecr.{region}.amazonaws.com.cn",
199
205
  },
200
206
  "aws-iso": {
201
- regions: ["us-iso-east-1"],
207
+ regions: ["us-iso-east-1", "us-iso-west-1"],
208
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
202
209
  hostname: "api.ecr.{region}.c2s.ic.gov",
203
210
  },
204
211
  "aws-iso-b": {
205
212
  regions: ["us-isob-east-1"],
213
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
206
214
  hostname: "api.ecr.{region}.sc2s.sgov.gov",
207
215
  },
208
216
  "aws-us-gov": {
@@ -214,6 +222,7 @@ var partitionHash = {
214
222
  "us-gov-east-1",
215
223
  "us-gov-west-1",
216
224
  ],
225
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
217
226
  hostname: "api.ecr.{region}.amazonaws.com",
218
227
  },
219
228
  };
package/dist-es/index.js CHANGED
@@ -1,46 +1,6 @@
1
- export * from "./ECRClient";
2
1
  export * from "./ECR";
3
- export * from "./commands/BatchCheckLayerAvailabilityCommand";
4
- export * from "./commands/BatchDeleteImageCommand";
5
- export * from "./commands/BatchGetImageCommand";
6
- export * from "./commands/CompleteLayerUploadCommand";
7
- export * from "./commands/CreateRepositoryCommand";
8
- export * from "./commands/DeleteLifecyclePolicyCommand";
9
- export * from "./commands/DeleteRegistryPolicyCommand";
10
- export * from "./commands/DeleteRepositoryCommand";
11
- export * from "./commands/DeleteRepositoryPolicyCommand";
12
- export * from "./commands/DescribeImageReplicationStatusCommand";
13
- export * from "./commands/DescribeImagesCommand";
14
- export * from "./pagination/DescribeImagesPaginator";
15
- export * from "./commands/DescribeImageScanFindingsCommand";
16
- export * from "./pagination/DescribeImageScanFindingsPaginator";
17
- export * from "./waiters/waitForImageScanComplete";
18
- export * from "./commands/DescribeRegistryCommand";
19
- export * from "./commands/DescribeRepositoriesCommand";
20
- export * from "./pagination/DescribeRepositoriesPaginator";
21
- export * from "./commands/GetAuthorizationTokenCommand";
22
- export * from "./commands/GetDownloadUrlForLayerCommand";
23
- export * from "./commands/GetLifecyclePolicyCommand";
24
- export * from "./commands/GetLifecyclePolicyPreviewCommand";
25
- export * from "./pagination/GetLifecyclePolicyPreviewPaginator";
26
- export * from "./waiters/waitForLifecyclePolicyPreviewComplete";
27
- export * from "./commands/GetRegistryPolicyCommand";
28
- export * from "./commands/GetRepositoryPolicyCommand";
29
- export * from "./commands/InitiateLayerUploadCommand";
30
- export * from "./commands/ListImagesCommand";
31
- export * from "./pagination/ListImagesPaginator";
32
- export * from "./commands/ListTagsForResourceCommand";
33
- export * from "./commands/PutImageCommand";
34
- export * from "./commands/PutImageScanningConfigurationCommand";
35
- export * from "./commands/PutImageTagMutabilityCommand";
36
- export * from "./commands/PutLifecyclePolicyCommand";
37
- export * from "./commands/PutRegistryPolicyCommand";
38
- export * from "./commands/PutReplicationConfigurationCommand";
39
- export * from "./commands/SetRepositoryPolicyCommand";
40
- export * from "./commands/StartImageScanCommand";
41
- export * from "./commands/StartLifecyclePolicyPreviewCommand";
42
- export * from "./commands/TagResourceCommand";
43
- export * from "./commands/UntagResourceCommand";
44
- export * from "./commands/UploadLayerPartCommand";
45
- export * from "./pagination/Interfaces";
46
- export * from "./models/index";
2
+ export * from "./ECRClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,6 @@
1
+ export * from "./DescribeImageScanFindingsPaginator";
2
+ export * from "./DescribeImagesPaginator";
3
+ export * from "./DescribeRepositoriesPaginator";
4
+ export * from "./GetLifecyclePolicyPreviewPaginator";
5
+ export * from "./Interfaces";
6
+ export * from "./ListImagesPaginator";
@@ -0,0 +1,2 @@
1
+ export * from "./waitForImageScanComplete";
2
+ export * from "./waitForLifecyclePolicyPreviewComplete";
@@ -0,0 +1,35 @@
1
+ export * from "./BatchCheckLayerAvailabilityCommand";
2
+ export * from "./BatchDeleteImageCommand";
3
+ export * from "./BatchGetImageCommand";
4
+ export * from "./CompleteLayerUploadCommand";
5
+ export * from "./CreateRepositoryCommand";
6
+ export * from "./DeleteLifecyclePolicyCommand";
7
+ export * from "./DeleteRegistryPolicyCommand";
8
+ export * from "./DeleteRepositoryCommand";
9
+ export * from "./DeleteRepositoryPolicyCommand";
10
+ export * from "./DescribeImageReplicationStatusCommand";
11
+ export * from "./DescribeImageScanFindingsCommand";
12
+ export * from "./DescribeImagesCommand";
13
+ export * from "./DescribeRegistryCommand";
14
+ export * from "./DescribeRepositoriesCommand";
15
+ export * from "./GetAuthorizationTokenCommand";
16
+ export * from "./GetDownloadUrlForLayerCommand";
17
+ export * from "./GetLifecyclePolicyCommand";
18
+ export * from "./GetLifecyclePolicyPreviewCommand";
19
+ export * from "./GetRegistryPolicyCommand";
20
+ export * from "./GetRepositoryPolicyCommand";
21
+ export * from "./InitiateLayerUploadCommand";
22
+ export * from "./ListImagesCommand";
23
+ export * from "./ListTagsForResourceCommand";
24
+ export * from "./PutImageCommand";
25
+ export * from "./PutImageScanningConfigurationCommand";
26
+ export * from "./PutImageTagMutabilityCommand";
27
+ export * from "./PutLifecyclePolicyCommand";
28
+ export * from "./PutRegistryPolicyCommand";
29
+ export * from "./PutReplicationConfigurationCommand";
30
+ export * from "./SetRepositoryPolicyCommand";
31
+ export * from "./StartImageScanCommand";
32
+ export * from "./StartLifecyclePolicyPreviewCommand";
33
+ export * from "./TagResourceCommand";
34
+ export * from "./UntagResourceCommand";
35
+ export * from "./UploadLayerPartCommand";
@@ -1,46 +1,6 @@
1
- export * from "./ECRClient";
2
1
  export * from "./ECR";
3
- export * from "./commands/BatchCheckLayerAvailabilityCommand";
4
- export * from "./commands/BatchDeleteImageCommand";
5
- export * from "./commands/BatchGetImageCommand";
6
- export * from "./commands/CompleteLayerUploadCommand";
7
- export * from "./commands/CreateRepositoryCommand";
8
- export * from "./commands/DeleteLifecyclePolicyCommand";
9
- export * from "./commands/DeleteRegistryPolicyCommand";
10
- export * from "./commands/DeleteRepositoryCommand";
11
- export * from "./commands/DeleteRepositoryPolicyCommand";
12
- export * from "./commands/DescribeImageReplicationStatusCommand";
13
- export * from "./commands/DescribeImagesCommand";
14
- export * from "./pagination/DescribeImagesPaginator";
15
- export * from "./commands/DescribeImageScanFindingsCommand";
16
- export * from "./pagination/DescribeImageScanFindingsPaginator";
17
- export * from "./waiters/waitForImageScanComplete";
18
- export * from "./commands/DescribeRegistryCommand";
19
- export * from "./commands/DescribeRepositoriesCommand";
20
- export * from "./pagination/DescribeRepositoriesPaginator";
21
- export * from "./commands/GetAuthorizationTokenCommand";
22
- export * from "./commands/GetDownloadUrlForLayerCommand";
23
- export * from "./commands/GetLifecyclePolicyCommand";
24
- export * from "./commands/GetLifecyclePolicyPreviewCommand";
25
- export * from "./pagination/GetLifecyclePolicyPreviewPaginator";
26
- export * from "./waiters/waitForLifecyclePolicyPreviewComplete";
27
- export * from "./commands/GetRegistryPolicyCommand";
28
- export * from "./commands/GetRepositoryPolicyCommand";
29
- export * from "./commands/InitiateLayerUploadCommand";
30
- export * from "./commands/ListImagesCommand";
31
- export * from "./pagination/ListImagesPaginator";
32
- export * from "./commands/ListTagsForResourceCommand";
33
- export * from "./commands/PutImageCommand";
34
- export * from "./commands/PutImageScanningConfigurationCommand";
35
- export * from "./commands/PutImageTagMutabilityCommand";
36
- export * from "./commands/PutLifecyclePolicyCommand";
37
- export * from "./commands/PutRegistryPolicyCommand";
38
- export * from "./commands/PutReplicationConfigurationCommand";
39
- export * from "./commands/SetRepositoryPolicyCommand";
40
- export * from "./commands/StartImageScanCommand";
41
- export * from "./commands/StartLifecyclePolicyPreviewCommand";
42
- export * from "./commands/TagResourceCommand";
43
- export * from "./commands/UntagResourceCommand";
44
- export * from "./commands/UploadLayerPartCommand";
45
- export * from "./pagination/Interfaces";
46
- export * from "./models/index";
2
+ export * from "./ECRClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,6 @@
1
+ export * from "./DescribeImageScanFindingsPaginator";
2
+ export * from "./DescribeImagesPaginator";
3
+ export * from "./DescribeRepositoriesPaginator";
4
+ export * from "./GetLifecyclePolicyPreviewPaginator";
5
+ export * from "./Interfaces";
6
+ export * from "./ListImagesPaginator";