@aws-sdk/client-ecr 3.477.0 → 3.481.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 (201) hide show
  1. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +18 -41
  2. package/dist-cjs/commands/BatchDeleteImageCommand.js +18 -41
  3. package/dist-cjs/commands/BatchGetImageCommand.js +18 -41
  4. package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +18 -41
  5. package/dist-cjs/commands/CompleteLayerUploadCommand.js +18 -41
  6. package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +18 -41
  7. package/dist-cjs/commands/CreateRepositoryCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +18 -41
  9. package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteRegistryPolicyCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteRepositoryCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +18 -41
  13. package/dist-cjs/commands/DescribeImageReplicationStatusCommand.js +18 -41
  14. package/dist-cjs/commands/DescribeImageScanFindingsCommand.js +18 -41
  15. package/dist-cjs/commands/DescribeImagesCommand.js +18 -41
  16. package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +18 -41
  17. package/dist-cjs/commands/DescribeRegistryCommand.js +18 -41
  18. package/dist-cjs/commands/DescribeRepositoriesCommand.js +18 -41
  19. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +18 -41
  20. package/dist-cjs/commands/GetDownloadUrlForLayerCommand.js +18 -41
  21. package/dist-cjs/commands/GetLifecyclePolicyCommand.js +18 -41
  22. package/dist-cjs/commands/GetLifecyclePolicyPreviewCommand.js +18 -41
  23. package/dist-cjs/commands/GetRegistryPolicyCommand.js +18 -41
  24. package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +18 -41
  25. package/dist-cjs/commands/GetRepositoryPolicyCommand.js +18 -41
  26. package/dist-cjs/commands/InitiateLayerUploadCommand.js +18 -41
  27. package/dist-cjs/commands/ListImagesCommand.js +18 -41
  28. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  29. package/dist-cjs/commands/PutImageCommand.js +18 -41
  30. package/dist-cjs/commands/PutImageScanningConfigurationCommand.js +18 -41
  31. package/dist-cjs/commands/PutImageTagMutabilityCommand.js +18 -41
  32. package/dist-cjs/commands/PutLifecyclePolicyCommand.js +18 -41
  33. package/dist-cjs/commands/PutRegistryPolicyCommand.js +18 -41
  34. package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +18 -41
  35. package/dist-cjs/commands/PutReplicationConfigurationCommand.js +18 -41
  36. package/dist-cjs/commands/SetRepositoryPolicyCommand.js +18 -41
  37. package/dist-cjs/commands/StartImageScanCommand.js +18 -41
  38. package/dist-cjs/commands/StartLifecyclePolicyPreviewCommand.js +18 -41
  39. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  40. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  41. package/dist-cjs/commands/UpdatePullThroughCacheRuleCommand.js +18 -41
  42. package/dist-cjs/commands/UploadLayerPartCommand.js +18 -41
  43. package/dist-cjs/commands/ValidatePullThroughCacheRuleCommand.js +18 -41
  44. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  45. package/dist-cjs/pagination/DescribeImageScanFindingsPaginator.js +2 -24
  46. package/dist-cjs/pagination/DescribeImagesPaginator.js +2 -24
  47. package/dist-cjs/pagination/DescribePullThroughCacheRulesPaginator.js +2 -24
  48. package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +2 -24
  49. package/dist-cjs/pagination/GetLifecyclePolicyPreviewPaginator.js +2 -24
  50. package/dist-cjs/pagination/ListImagesPaginator.js +2 -24
  51. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +18 -41
  52. package/dist-es/commands/BatchDeleteImageCommand.js +18 -41
  53. package/dist-es/commands/BatchGetImageCommand.js +18 -41
  54. package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +18 -41
  55. package/dist-es/commands/CompleteLayerUploadCommand.js +18 -41
  56. package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +18 -41
  57. package/dist-es/commands/CreateRepositoryCommand.js +18 -41
  58. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +18 -41
  59. package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +18 -41
  60. package/dist-es/commands/DeleteRegistryPolicyCommand.js +18 -41
  61. package/dist-es/commands/DeleteRepositoryCommand.js +18 -41
  62. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +18 -41
  63. package/dist-es/commands/DescribeImageReplicationStatusCommand.js +18 -41
  64. package/dist-es/commands/DescribeImageScanFindingsCommand.js +18 -41
  65. package/dist-es/commands/DescribeImagesCommand.js +18 -41
  66. package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +18 -41
  67. package/dist-es/commands/DescribeRegistryCommand.js +18 -41
  68. package/dist-es/commands/DescribeRepositoriesCommand.js +18 -41
  69. package/dist-es/commands/GetAuthorizationTokenCommand.js +18 -41
  70. package/dist-es/commands/GetDownloadUrlForLayerCommand.js +18 -41
  71. package/dist-es/commands/GetLifecyclePolicyCommand.js +18 -41
  72. package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +18 -41
  73. package/dist-es/commands/GetRegistryPolicyCommand.js +18 -41
  74. package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +18 -41
  75. package/dist-es/commands/GetRepositoryPolicyCommand.js +18 -41
  76. package/dist-es/commands/InitiateLayerUploadCommand.js +18 -41
  77. package/dist-es/commands/ListImagesCommand.js +18 -41
  78. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  79. package/dist-es/commands/PutImageCommand.js +18 -41
  80. package/dist-es/commands/PutImageScanningConfigurationCommand.js +18 -41
  81. package/dist-es/commands/PutImageTagMutabilityCommand.js +18 -41
  82. package/dist-es/commands/PutLifecyclePolicyCommand.js +18 -41
  83. package/dist-es/commands/PutRegistryPolicyCommand.js +18 -41
  84. package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +18 -41
  85. package/dist-es/commands/PutReplicationConfigurationCommand.js +18 -41
  86. package/dist-es/commands/SetRepositoryPolicyCommand.js +18 -41
  87. package/dist-es/commands/StartImageScanCommand.js +18 -41
  88. package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +18 -41
  89. package/dist-es/commands/TagResourceCommand.js +18 -41
  90. package/dist-es/commands/UntagResourceCommand.js +18 -41
  91. package/dist-es/commands/UpdatePullThroughCacheRuleCommand.js +18 -41
  92. package/dist-es/commands/UploadLayerPartCommand.js +18 -41
  93. package/dist-es/commands/ValidatePullThroughCacheRuleCommand.js +18 -41
  94. package/dist-es/endpoint/EndpointParameters.js +6 -0
  95. package/dist-es/pagination/DescribeImageScanFindingsPaginator.js +2 -23
  96. package/dist-es/pagination/DescribeImagesPaginator.js +2 -23
  97. package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +2 -23
  98. package/dist-es/pagination/DescribeRepositoriesPaginator.js +2 -23
  99. package/dist-es/pagination/GetLifecyclePolicyPreviewPaginator.js +2 -23
  100. package/dist-es/pagination/ListImagesPaginator.js +2 -23
  101. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +6 -21
  102. package/dist-types/commands/BatchDeleteImageCommand.d.ts +6 -21
  103. package/dist-types/commands/BatchGetImageCommand.d.ts +6 -21
  104. package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +6 -21
  105. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +6 -21
  106. package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +6 -21
  107. package/dist-types/commands/CreateRepositoryCommand.d.ts +6 -21
  108. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +6 -21
  109. package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +6 -21
  110. package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +6 -21
  111. package/dist-types/commands/DeleteRepositoryCommand.d.ts +6 -21
  112. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +6 -21
  113. package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +6 -21
  114. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +6 -21
  115. package/dist-types/commands/DescribeImagesCommand.d.ts +6 -21
  116. package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +6 -21
  117. package/dist-types/commands/DescribeRegistryCommand.d.ts +6 -21
  118. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +6 -21
  119. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +6 -21
  120. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +6 -21
  121. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +6 -21
  122. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +6 -21
  123. package/dist-types/commands/GetRegistryPolicyCommand.d.ts +6 -21
  124. package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +6 -21
  125. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +6 -21
  126. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +6 -21
  127. package/dist-types/commands/ListImagesCommand.d.ts +6 -21
  128. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  129. package/dist-types/commands/PutImageCommand.d.ts +6 -21
  130. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +6 -21
  131. package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +6 -21
  132. package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +6 -21
  133. package/dist-types/commands/PutRegistryPolicyCommand.d.ts +6 -21
  134. package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +6 -21
  135. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +6 -21
  136. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +6 -21
  137. package/dist-types/commands/StartImageScanCommand.d.ts +6 -21
  138. package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +6 -21
  139. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  140. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  141. package/dist-types/commands/UpdatePullThroughCacheRuleCommand.d.ts +6 -21
  142. package/dist-types/commands/UploadLayerPartCommand.d.ts +6 -21
  143. package/dist-types/commands/ValidatePullThroughCacheRuleCommand.d.ts +6 -21
  144. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  145. package/dist-types/pagination/DescribeImageScanFindingsPaginator.d.ts +1 -1
  146. package/dist-types/pagination/DescribeImagesPaginator.d.ts +1 -1
  147. package/dist-types/pagination/DescribePullThroughCacheRulesPaginator.d.ts +1 -1
  148. package/dist-types/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
  149. package/dist-types/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +1 -1
  150. package/dist-types/pagination/ListImagesPaginator.d.ts +1 -1
  151. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +12 -24
  152. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +14 -23
  153. package/dist-types/ts3.4/commands/BatchGetImageCommand.d.ts +14 -23
  154. package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +14 -23
  156. package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +12 -24
  157. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +14 -23
  158. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +12 -24
  159. package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +12 -24
  160. package/dist-types/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +12 -24
  161. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +12 -24
  163. package/dist-types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +12 -24
  164. package/dist-types/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +12 -24
  165. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +14 -23
  166. package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +12 -24
  167. package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +14 -23
  168. package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +12 -24
  169. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +12 -24
  170. package/dist-types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +12 -24
  171. package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +12 -24
  173. package/dist-types/ts3.4/commands/GetRegistryPolicyCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +12 -24
  175. package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +14 -23
  177. package/dist-types/ts3.4/commands/ListImagesCommand.d.ts +14 -23
  178. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  179. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +14 -23
  180. package/dist-types/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +12 -24
  181. package/dist-types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +12 -24
  182. package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +14 -23
  183. package/dist-types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +14 -23
  184. package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +12 -24
  185. package/dist-types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +12 -24
  186. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +14 -23
  187. package/dist-types/ts3.4/commands/StartImageScanCommand.d.ts +14 -23
  188. package/dist-types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +12 -24
  189. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  190. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  191. package/dist-types/ts3.4/commands/UpdatePullThroughCacheRuleCommand.d.ts +12 -24
  192. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +14 -23
  193. package/dist-types/ts3.4/commands/ValidatePullThroughCacheRuleCommand.d.ts +12 -24
  194. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  195. package/dist-types/ts3.4/pagination/DescribeImageScanFindingsPaginator.d.ts +3 -3
  196. package/dist-types/ts3.4/pagination/DescribeImagesPaginator.d.ts +3 -3
  197. package/dist-types/ts3.4/pagination/DescribePullThroughCacheRulesPaginator.d.ts +3 -3
  198. package/dist-types/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +3 -3
  199. package/dist-types/ts3.4/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +3 -3
  200. package/dist-types/ts3.4/pagination/ListImagesPaginator.d.ts +3 -3
  201. package/package.json +11 -10
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class StartImageScanCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartImageScanCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "StartImageScanCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "StartImageScan",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_StartImageScanCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_StartImageScanCommand)(output, context);
49
- }
10
+ class StartImageScanCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "StartImageScan", {})
22
+ .n("ECRClient", "StartImageScanCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_StartImageScanCommand)
25
+ .de(Aws_json1_1_1.de_StartImageScanCommand)
26
+ .build() {
50
27
  }
51
28
  exports.StartImageScanCommand = StartImageScanCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class StartLifecyclePolicyPreviewCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "StartLifecyclePolicyPreviewCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "StartLifecyclePolicyPreview",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_StartLifecyclePolicyPreviewCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_StartLifecyclePolicyPreviewCommand)(output, context);
49
- }
10
+ class StartLifecyclePolicyPreviewCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "StartLifecyclePolicyPreview", {})
22
+ .n("ECRClient", "StartLifecyclePolicyPreviewCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_StartLifecyclePolicyPreviewCommand)
25
+ .de(Aws_json1_1_1.de_StartLifecyclePolicyPreviewCommand)
26
+ .build() {
50
27
  }
51
28
  exports.StartLifecyclePolicyPreviewCommand = StartLifecyclePolicyPreviewCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class TagResourceCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "TagResourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "TagResource",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_TagResourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_TagResourceCommand)(output, context);
49
- }
10
+ class TagResourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "TagResource", {})
22
+ .n("ECRClient", "TagResourceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_TagResourceCommand)
25
+ .de(Aws_json1_1_1.de_TagResourceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.TagResourceCommand = TagResourceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class UntagResourceCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "UntagResourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "UntagResource",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_UntagResourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_UntagResourceCommand)(output, context);
49
- }
10
+ class UntagResourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "UntagResource", {})
22
+ .n("ECRClient", "UntagResourceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_UntagResourceCommand)
25
+ .de(Aws_json1_1_1.de_UntagResourceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UntagResourceCommand = UntagResourceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class UpdatePullThroughCacheRuleCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePullThroughCacheRuleCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "UpdatePullThroughCacheRuleCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "UpdatePullThroughCacheRule",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_UpdatePullThroughCacheRuleCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_UpdatePullThroughCacheRuleCommand)(output, context);
49
- }
10
+ class UpdatePullThroughCacheRuleCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "UpdatePullThroughCacheRule", {})
22
+ .n("ECRClient", "UpdatePullThroughCacheRuleCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_UpdatePullThroughCacheRuleCommand)
25
+ .de(Aws_json1_1_1.de_UpdatePullThroughCacheRuleCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdatePullThroughCacheRuleCommand = UpdatePullThroughCacheRuleCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class UploadLayerPartCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UploadLayerPartCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "UploadLayerPartCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "UploadLayerPart",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_UploadLayerPartCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_UploadLayerPartCommand)(output, context);
49
- }
10
+ class UploadLayerPartCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "UploadLayerPart", {})
22
+ .n("ECRClient", "UploadLayerPartCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_UploadLayerPartCommand)
25
+ .de(Aws_json1_1_1.de_UploadLayerPartCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UploadLayerPartCommand = UploadLayerPartCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class ValidatePullThroughCacheRuleCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ValidatePullThroughCacheRuleCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ECRClient";
29
- const commandName = "ValidatePullThroughCacheRuleCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonEC2ContainerRegistry_V20150921",
38
- operation: "ValidatePullThroughCacheRule",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_ValidatePullThroughCacheRuleCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_ValidatePullThroughCacheRuleCommand)(output, context);
49
- }
10
+ class ValidatePullThroughCacheRuleCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonEC2ContainerRegistry_V20150921", "ValidatePullThroughCacheRule", {})
22
+ .n("ECRClient", "ValidatePullThroughCacheRuleCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_ValidatePullThroughCacheRuleCommand)
25
+ .de(Aws_json1_1_1.de_ValidatePullThroughCacheRuleCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ValidatePullThroughCacheRuleCommand = ValidatePullThroughCacheRuleCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeImageScanFindings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeImageScanFindingsCommand_1 = require("../commands/DescribeImageScanFindingsCommand");
5
6
  const ECRClient_1 = require("../ECRClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeImageScanFindingsCommand_1.DescribeImageScanFindingsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeImageScanFindings(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof ECRClient_1.ECRClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ECR | ECRClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeImageScanFindings = paginateDescribeImageScanFindings;
7
+ exports.paginateDescribeImageScanFindings = (0, core_1.createPaginator)(ECRClient_1.ECRClient, DescribeImageScanFindingsCommand_1.DescribeImageScanFindingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeImages = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeImagesCommand_1 = require("../commands/DescribeImagesCommand");
5
6
  const ECRClient_1 = require("../ECRClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeImagesCommand_1.DescribeImagesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeImages(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof ECRClient_1.ECRClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ECR | ECRClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeImages = paginateDescribeImages;
7
+ exports.paginateDescribeImages = (0, core_1.createPaginator)(ECRClient_1.ECRClient, DescribeImagesCommand_1.DescribeImagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribePullThroughCacheRules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribePullThroughCacheRulesCommand_1 = require("../commands/DescribePullThroughCacheRulesCommand");
5
6
  const ECRClient_1 = require("../ECRClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribePullThroughCacheRulesCommand_1.DescribePullThroughCacheRulesCommand(input), ...args);
8
- };
9
- async function* paginateDescribePullThroughCacheRules(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof ECRClient_1.ECRClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ECR | ECRClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribePullThroughCacheRules = paginateDescribePullThroughCacheRules;
7
+ exports.paginateDescribePullThroughCacheRules = (0, core_1.createPaginator)(ECRClient_1.ECRClient, DescribePullThroughCacheRulesCommand_1.DescribePullThroughCacheRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeRepositories = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeRepositoriesCommand_1 = require("../commands/DescribeRepositoriesCommand");
5
6
  const ECRClient_1 = require("../ECRClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeRepositories(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof ECRClient_1.ECRClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ECR | ECRClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeRepositories = paginateDescribeRepositories;
7
+ exports.paginateDescribeRepositories = (0, core_1.createPaginator)(ECRClient_1.ECRClient, DescribeRepositoriesCommand_1.DescribeRepositoriesCommand, "nextToken", "nextToken", "maxResults");