@aws-sdk/client-ecr 3.614.0 → 3.620.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 (43) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +277 -5
  3. package/dist-es/ECR.js +8 -0
  4. package/dist-es/ECRClient.js +5 -5
  5. package/dist-es/commands/CreateRepositoryCreationTemplateCommand.js +24 -0
  6. package/dist-es/commands/DeleteRepositoryCreationTemplateCommand.js +24 -0
  7. package/dist-es/commands/DescribeRepositoryCreationTemplatesCommand.js +24 -0
  8. package/dist-es/commands/UpdateRepositoryCreationTemplateCommand.js +24 -0
  9. package/dist-es/commands/index.js +4 -0
  10. package/dist-es/models/models_0.js +28 -0
  11. package/dist-es/pagination/DescribeRepositoryCreationTemplatesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_json1_1.js +149 -1
  14. package/dist-types/ECR.d.ts +29 -0
  15. package/dist-types/ECRClient.d.ts +8 -4
  16. package/dist-types/commands/CreateRepositoryCreationTemplateCommand.d.ts +124 -0
  17. package/dist-types/commands/DeleteRepositoryCreationTemplateCommand.d.ts +97 -0
  18. package/dist-types/commands/DescribeRepositoryCreationTemplatesCommand.d.ts +102 -0
  19. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +2 -2
  20. package/dist-types/commands/UpdateRepositoryCreationTemplateCommand.d.ts +115 -0
  21. package/dist-types/commands/index.d.ts +4 -0
  22. package/dist-types/models/models_0.d.ts +415 -11
  23. package/dist-types/pagination/DescribeRepositoryCreationTemplatesPaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +1 -0
  25. package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
  26. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  27. package/dist-types/runtimeConfig.d.ts +1 -1
  28. package/dist-types/runtimeConfig.native.d.ts +1 -1
  29. package/dist-types/ts3.4/ECR.d.ts +75 -0
  30. package/dist-types/ts3.4/ECRClient.d.ts +26 -2
  31. package/dist-types/ts3.4/commands/CreateRepositoryCreationTemplateCommand.d.ts +40 -0
  32. package/dist-types/ts3.4/commands/DeleteRepositoryCreationTemplateCommand.d.ts +40 -0
  33. package/dist-types/ts3.4/commands/DescribeRepositoryCreationTemplatesCommand.d.ts +40 -0
  34. package/dist-types/ts3.4/commands/UpdateRepositoryCreationTemplateCommand.d.ts +40 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +83 -0
  37. package/dist-types/ts3.4/pagination/DescribeRepositoryCreationTemplatesPaginator.d.ts +11 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  39. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  43. package/package.json +18 -18
package/README.md CHANGED
@@ -267,6 +267,14 @@ CreateRepository
267
267
 
268
268
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/CreateRepositoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCommandOutput/)
269
269
 
270
+ </details>
271
+ <details>
272
+ <summary>
273
+ CreateRepositoryCreationTemplate
274
+ </summary>
275
+
276
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/CreateRepositoryCreationTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCreationTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCreationTemplateCommandOutput/)
277
+
270
278
  </details>
271
279
  <details>
272
280
  <summary>
@@ -299,6 +307,14 @@ DeleteRepository
299
307
 
300
308
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DeleteRepositoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCommandOutput/)
301
309
 
310
+ </details>
311
+ <details>
312
+ <summary>
313
+ DeleteRepositoryCreationTemplate
314
+ </summary>
315
+
316
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DeleteRepositoryCreationTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCreationTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCreationTemplateCommandOutput/)
317
+
302
318
  </details>
303
319
  <details>
304
320
  <summary>
@@ -355,6 +371,14 @@ DescribeRepositories
355
371
 
356
372
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DescribeRepositoriesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoriesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoriesCommandOutput/)
357
373
 
374
+ </details>
375
+ <details>
376
+ <summary>
377
+ DescribeRepositoryCreationTemplates
378
+ </summary>
379
+
380
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DescribeRepositoryCreationTemplatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoryCreationTemplatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoryCreationTemplatesCommandOutput/)
381
+
358
382
  </details>
359
383
  <details>
360
384
  <summary>
@@ -539,6 +563,14 @@ UpdatePullThroughCacheRule
539
563
 
540
564
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/UpdatePullThroughCacheRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdatePullThroughCacheRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdatePullThroughCacheRuleCommandOutput/)
541
565
 
566
+ </details>
567
+ <details>
568
+ <summary>
569
+ UpdateRepositoryCreationTemplate
570
+ </summary>
571
+
572
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/UpdateRepositoryCreationTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdateRepositoryCreationTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdateRepositoryCreationTemplateCommandOutput/)
573
+
542
574
  </details>
543
575
  <details>
544
576
  <summary>
package/dist-cjs/index.js CHANGED
@@ -28,10 +28,12 @@ __export(src_exports, {
28
28
  CompleteLayerUploadCommand: () => CompleteLayerUploadCommand,
29
29
  CreatePullThroughCacheRuleCommand: () => CreatePullThroughCacheRuleCommand,
30
30
  CreateRepositoryCommand: () => CreateRepositoryCommand,
31
+ CreateRepositoryCreationTemplateCommand: () => CreateRepositoryCreationTemplateCommand,
31
32
  DeleteLifecyclePolicyCommand: () => DeleteLifecyclePolicyCommand,
32
33
  DeletePullThroughCacheRuleCommand: () => DeletePullThroughCacheRuleCommand,
33
34
  DeleteRegistryPolicyCommand: () => DeleteRegistryPolicyCommand,
34
35
  DeleteRepositoryCommand: () => DeleteRepositoryCommand,
36
+ DeleteRepositoryCreationTemplateCommand: () => DeleteRepositoryCreationTemplateCommand,
35
37
  DeleteRepositoryPolicyCommand: () => DeleteRepositoryPolicyCommand,
36
38
  DescribeImageReplicationStatusCommand: () => DescribeImageReplicationStatusCommand,
37
39
  DescribeImageScanFindingsCommand: () => DescribeImageScanFindingsCommand,
@@ -39,6 +41,7 @@ __export(src_exports, {
39
41
  DescribePullThroughCacheRulesCommand: () => DescribePullThroughCacheRulesCommand,
40
42
  DescribeRegistryCommand: () => DescribeRegistryCommand,
41
43
  DescribeRepositoriesCommand: () => DescribeRepositoriesCommand,
44
+ DescribeRepositoryCreationTemplatesCommand: () => DescribeRepositoryCreationTemplatesCommand,
42
45
  ECR: () => ECR,
43
46
  ECRClient: () => ECRClient,
44
47
  ECRServiceException: () => ECRServiceException,
@@ -87,6 +90,7 @@ __export(src_exports, {
87
90
  PutRegistryPolicyCommand: () => PutRegistryPolicyCommand,
88
91
  PutRegistryScanningConfigurationCommand: () => PutRegistryScanningConfigurationCommand,
89
92
  PutReplicationConfigurationCommand: () => PutReplicationConfigurationCommand,
93
+ RCTAppliedFor: () => RCTAppliedFor,
90
94
  ReferencedImagesNotFoundException: () => ReferencedImagesNotFoundException,
91
95
  RegistryPolicyNotFoundException: () => RegistryPolicyNotFoundException,
92
96
  ReplicationStatus: () => ReplicationStatus,
@@ -108,6 +112,8 @@ __export(src_exports, {
108
112
  StartLifecyclePolicyPreviewCommand: () => StartLifecyclePolicyPreviewCommand,
109
113
  TagResourceCommand: () => TagResourceCommand,
110
114
  TagStatus: () => TagStatus,
115
+ TemplateAlreadyExistsException: () => TemplateAlreadyExistsException,
116
+ TemplateNotFoundException: () => TemplateNotFoundException,
111
117
  TooManyTagsException: () => TooManyTagsException,
112
118
  UnableToAccessSecretException: () => UnableToAccessSecretException,
113
119
  UnableToDecryptSecretValueException: () => UnableToDecryptSecretValueException,
@@ -117,6 +123,7 @@ __export(src_exports, {
117
123
  UnsupportedUpstreamRegistryException: () => UnsupportedUpstreamRegistryException,
118
124
  UntagResourceCommand: () => UntagResourceCommand,
119
125
  UpdatePullThroughCacheRuleCommand: () => UpdatePullThroughCacheRuleCommand,
126
+ UpdateRepositoryCreationTemplateCommand: () => UpdateRepositoryCreationTemplateCommand,
120
127
  UploadLayerPartCommand: () => UploadLayerPartCommand,
121
128
  UploadNotFoundException: () => UploadNotFoundException,
122
129
  UpstreamRegistry: () => UpstreamRegistry,
@@ -127,6 +134,7 @@ __export(src_exports, {
127
134
  paginateDescribeImages: () => paginateDescribeImages,
128
135
  paginateDescribePullThroughCacheRules: () => paginateDescribePullThroughCacheRules,
129
136
  paginateDescribeRepositories: () => paginateDescribeRepositories,
137
+ paginateDescribeRepositoryCreationTemplates: () => paginateDescribeRepositoryCreationTemplates,
130
138
  paginateGetLifecyclePolicyPreview: () => paginateGetLifecyclePolicyPreview,
131
139
  paginateListImages: () => paginateListImages,
132
140
  waitForImageScanComplete: () => waitForImageScanComplete,
@@ -238,19 +246,19 @@ var _ECRClient = class _ECRClient extends import_smithy_client.Client {
238
246
  const _config_1 = resolveClientEndpointParameters(_config_0);
239
247
  const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
240
248
  const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
241
- const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
242
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
243
- const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
249
+ const _config_4 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_3);
250
+ const _config_5 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_4);
251
+ const _config_6 = (0, import_middleware_retry.resolveRetryConfig)(_config_5);
244
252
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
245
253
  const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
246
254
  super(_config_8);
247
255
  this.config = _config_8;
248
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
249
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
250
256
  this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
251
257
  this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
252
258
  this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
253
259
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
260
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
261
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
254
262
  this.middlewareStack.use(
255
263
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
256
264
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
@@ -696,6 +704,27 @@ var _TooManyTagsException = class _TooManyTagsException extends ECRServiceExcept
696
704
  };
697
705
  __name(_TooManyTagsException, "TooManyTagsException");
698
706
  var TooManyTagsException = _TooManyTagsException;
707
+ var RCTAppliedFor = {
708
+ PULL_THROUGH_CACHE: "PULL_THROUGH_CACHE",
709
+ REPLICATION: "REPLICATION"
710
+ };
711
+ var _TemplateAlreadyExistsException = class _TemplateAlreadyExistsException extends ECRServiceException {
712
+ /**
713
+ * @internal
714
+ */
715
+ constructor(opts) {
716
+ super({
717
+ name: "TemplateAlreadyExistsException",
718
+ $fault: "client",
719
+ ...opts
720
+ });
721
+ this.name = "TemplateAlreadyExistsException";
722
+ this.$fault = "client";
723
+ Object.setPrototypeOf(this, _TemplateAlreadyExistsException.prototype);
724
+ }
725
+ };
726
+ __name(_TemplateAlreadyExistsException, "TemplateAlreadyExistsException");
727
+ var TemplateAlreadyExistsException = _TemplateAlreadyExistsException;
699
728
  var _LifecyclePolicyNotFoundException = class _LifecyclePolicyNotFoundException extends ECRServiceException {
700
729
  /**
701
730
  * @internal
@@ -764,6 +793,23 @@ var _RepositoryNotEmptyException = class _RepositoryNotEmptyException extends EC
764
793
  };
765
794
  __name(_RepositoryNotEmptyException, "RepositoryNotEmptyException");
766
795
  var RepositoryNotEmptyException = _RepositoryNotEmptyException;
796
+ var _TemplateNotFoundException = class _TemplateNotFoundException extends ECRServiceException {
797
+ /**
798
+ * @internal
799
+ */
800
+ constructor(opts) {
801
+ super({
802
+ name: "TemplateNotFoundException",
803
+ $fault: "client",
804
+ ...opts
805
+ });
806
+ this.name = "TemplateNotFoundException";
807
+ this.$fault = "client";
808
+ Object.setPrototypeOf(this, _TemplateNotFoundException.prototype);
809
+ }
810
+ };
811
+ __name(_TemplateNotFoundException, "TemplateNotFoundException");
812
+ var TemplateNotFoundException = _TemplateNotFoundException;
767
813
  var _RepositoryPolicyNotFoundException = class _RepositoryPolicyNotFoundException extends ECRServiceException {
768
814
  /**
769
815
  * @internal
@@ -1094,6 +1140,12 @@ var se_CreateRepositoryCommand = /* @__PURE__ */ __name(async (input, context) =
1094
1140
  body = JSON.stringify((0, import_smithy_client._json)(input));
1095
1141
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1096
1142
  }, "se_CreateRepositoryCommand");
1143
+ var se_CreateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1144
+ const headers = sharedHeaders("CreateRepositoryCreationTemplate");
1145
+ let body;
1146
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1147
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1148
+ }, "se_CreateRepositoryCreationTemplateCommand");
1097
1149
  var se_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1098
1150
  const headers = sharedHeaders("DeleteLifecyclePolicy");
1099
1151
  let body;
@@ -1118,6 +1170,12 @@ var se_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (input, context) =
1118
1170
  body = JSON.stringify((0, import_smithy_client._json)(input));
1119
1171
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1120
1172
  }, "se_DeleteRepositoryCommand");
1173
+ var se_DeleteRepositoryCreationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1174
+ const headers = sharedHeaders("DeleteRepositoryCreationTemplate");
1175
+ let body;
1176
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1177
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1178
+ }, "se_DeleteRepositoryCreationTemplateCommand");
1121
1179
  var se_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1122
1180
  const headers = sharedHeaders("DeleteRepositoryPolicy");
1123
1181
  let body;
@@ -1160,6 +1218,12 @@ var se_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (input, contex
1160
1218
  body = JSON.stringify((0, import_smithy_client._json)(input));
1161
1219
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1162
1220
  }, "se_DescribeRepositoriesCommand");
1221
+ var se_DescribeRepositoryCreationTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
1222
+ const headers = sharedHeaders("DescribeRepositoryCreationTemplates");
1223
+ let body;
1224
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1225
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1226
+ }, "se_DescribeRepositoryCreationTemplatesCommand");
1163
1227
  var se_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
1164
1228
  const headers = sharedHeaders("GetAuthorizationToken");
1165
1229
  let body;
@@ -1298,6 +1362,12 @@ var se_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (input,
1298
1362
  body = JSON.stringify((0, import_smithy_client._json)(input));
1299
1363
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1300
1364
  }, "se_UpdatePullThroughCacheRuleCommand");
1365
+ var se_UpdateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1366
+ const headers = sharedHeaders("UpdateRepositoryCreationTemplate");
1367
+ let body;
1368
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1369
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1370
+ }, "se_UpdateRepositoryCreationTemplateCommand");
1301
1371
  var se_UploadLayerPartCommand = /* @__PURE__ */ __name(async (input, context) => {
1302
1372
  const headers = sharedHeaders("UploadLayerPart");
1303
1373
  let body;
@@ -1401,6 +1471,19 @@ var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
1401
1471
  };
1402
1472
  return response;
1403
1473
  }, "de_CreateRepositoryCommand");
1474
+ var de_CreateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1475
+ if (output.statusCode >= 300) {
1476
+ return de_CommandError(output, context);
1477
+ }
1478
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1479
+ let contents = {};
1480
+ contents = de_CreateRepositoryCreationTemplateResponse(data, context);
1481
+ const response = {
1482
+ $metadata: deserializeMetadata(output),
1483
+ ...contents
1484
+ };
1485
+ return response;
1486
+ }, "de_CreateRepositoryCreationTemplateCommand");
1404
1487
  var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1405
1488
  if (output.statusCode >= 300) {
1406
1489
  return de_CommandError(output, context);
@@ -1453,6 +1536,19 @@ var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
1453
1536
  };
1454
1537
  return response;
1455
1538
  }, "de_DeleteRepositoryCommand");
1539
+ var de_DeleteRepositoryCreationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1540
+ if (output.statusCode >= 300) {
1541
+ return de_CommandError(output, context);
1542
+ }
1543
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1544
+ let contents = {};
1545
+ contents = de_DeleteRepositoryCreationTemplateResponse(data, context);
1546
+ const response = {
1547
+ $metadata: deserializeMetadata(output),
1548
+ ...contents
1549
+ };
1550
+ return response;
1551
+ }, "de_DeleteRepositoryCreationTemplateCommand");
1456
1552
  var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1457
1553
  if (output.statusCode >= 300) {
1458
1554
  return de_CommandError(output, context);
@@ -1544,6 +1640,19 @@ var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (output, conte
1544
1640
  };
1545
1641
  return response;
1546
1642
  }, "de_DescribeRepositoriesCommand");
1643
+ var de_DescribeRepositoryCreationTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1644
+ if (output.statusCode >= 300) {
1645
+ return de_CommandError(output, context);
1646
+ }
1647
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1648
+ let contents = {};
1649
+ contents = de_DescribeRepositoryCreationTemplatesResponse(data, context);
1650
+ const response = {
1651
+ $metadata: deserializeMetadata(output),
1652
+ ...contents
1653
+ };
1654
+ return response;
1655
+ }, "de_DescribeRepositoryCreationTemplatesCommand");
1547
1656
  var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1548
1657
  if (output.statusCode >= 300) {
1549
1658
  return de_CommandError(output, context);
@@ -1843,6 +1952,19 @@ var de_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
1843
1952
  };
1844
1953
  return response;
1845
1954
  }, "de_UpdatePullThroughCacheRuleCommand");
1955
+ var de_UpdateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1956
+ if (output.statusCode >= 300) {
1957
+ return de_CommandError(output, context);
1958
+ }
1959
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1960
+ let contents = {};
1961
+ contents = de_UpdateRepositoryCreationTemplateResponse(data, context);
1962
+ const response = {
1963
+ $metadata: deserializeMetadata(output),
1964
+ ...contents
1965
+ };
1966
+ return response;
1967
+ }, "de_UpdateRepositoryCreationTemplateCommand");
1846
1968
  var de_UploadLayerPartCommand = /* @__PURE__ */ __name(async (output, context) => {
1847
1969
  if (output.statusCode >= 300) {
1848
1970
  return de_CommandError(output, context);
@@ -1936,6 +2058,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1936
2058
  case "TooManyTagsException":
1937
2059
  case "com.amazonaws.ecr#TooManyTagsException":
1938
2060
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2061
+ case "TemplateAlreadyExistsException":
2062
+ case "com.amazonaws.ecr#TemplateAlreadyExistsException":
2063
+ throw await de_TemplateAlreadyExistsExceptionRes(parsedOutput, context);
1939
2064
  case "LifecyclePolicyNotFoundException":
1940
2065
  case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
1941
2066
  throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
@@ -1948,6 +2073,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1948
2073
  case "RepositoryNotEmptyException":
1949
2074
  case "com.amazonaws.ecr#RepositoryNotEmptyException":
1950
2075
  throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
2076
+ case "TemplateNotFoundException":
2077
+ case "com.amazonaws.ecr#TemplateNotFoundException":
2078
+ throw await de_TemplateNotFoundExceptionRes(parsedOutput, context);
1951
2079
  case "RepositoryPolicyNotFoundException":
1952
2080
  case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
1953
2081
  throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
@@ -2260,6 +2388,24 @@ var de_ServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context)
2260
2388
  });
2261
2389
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2262
2390
  }, "de_ServerExceptionRes");
2391
+ var de_TemplateAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2392
+ const body = parsedOutput.body;
2393
+ const deserialized = (0, import_smithy_client._json)(body);
2394
+ const exception = new TemplateAlreadyExistsException({
2395
+ $metadata: deserializeMetadata(parsedOutput),
2396
+ ...deserialized
2397
+ });
2398
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2399
+ }, "de_TemplateAlreadyExistsExceptionRes");
2400
+ var de_TemplateNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2401
+ const body = parsedOutput.body;
2402
+ const deserialized = (0, import_smithy_client._json)(body);
2403
+ const exception = new TemplateNotFoundException({
2404
+ $metadata: deserializeMetadata(parsedOutput),
2405
+ ...deserialized
2406
+ });
2407
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2408
+ }, "de_TemplateNotFoundExceptionRes");
2263
2409
  var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2264
2410
  const body = parsedOutput.body;
2265
2411
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2386,6 +2532,12 @@ var de_CreatePullThroughCacheRuleResponse = /* @__PURE__ */ __name((output, cont
2386
2532
  upstreamRegistryUrl: import_smithy_client.expectString
2387
2533
  });
2388
2534
  }, "de_CreatePullThroughCacheRuleResponse");
2535
+ var de_CreateRepositoryCreationTemplateResponse = /* @__PURE__ */ __name((output, context) => {
2536
+ return (0, import_smithy_client.take)(output, {
2537
+ registryId: import_smithy_client.expectString,
2538
+ repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context)
2539
+ });
2540
+ }, "de_CreateRepositoryCreationTemplateResponse");
2389
2541
  var de_CreateRepositoryResponse = /* @__PURE__ */ __name((output, context) => {
2390
2542
  return (0, import_smithy_client.take)(output, {
2391
2543
  repository: (_) => de_Repository(_, context)
@@ -2431,6 +2583,12 @@ var de_DeletePullThroughCacheRuleResponse = /* @__PURE__ */ __name((output, cont
2431
2583
  upstreamRegistryUrl: import_smithy_client.expectString
2432
2584
  });
2433
2585
  }, "de_DeletePullThroughCacheRuleResponse");
2586
+ var de_DeleteRepositoryCreationTemplateResponse = /* @__PURE__ */ __name((output, context) => {
2587
+ return (0, import_smithy_client.take)(output, {
2588
+ registryId: import_smithy_client.expectString,
2589
+ repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context)
2590
+ });
2591
+ }, "de_DeleteRepositoryCreationTemplateResponse");
2434
2592
  var de_DeleteRepositoryResponse = /* @__PURE__ */ __name((output, context) => {
2435
2593
  return (0, import_smithy_client.take)(output, {
2436
2594
  repository: (_) => de_Repository(_, context)
@@ -2464,6 +2622,13 @@ var de_DescribeRepositoriesResponse = /* @__PURE__ */ __name((output, context) =
2464
2622
  repositories: (_) => de_RepositoryList(_, context)
2465
2623
  });
2466
2624
  }, "de_DescribeRepositoriesResponse");
2625
+ var de_DescribeRepositoryCreationTemplatesResponse = /* @__PURE__ */ __name((output, context) => {
2626
+ return (0, import_smithy_client.take)(output, {
2627
+ nextToken: import_smithy_client.expectString,
2628
+ registryId: import_smithy_client.expectString,
2629
+ repositoryCreationTemplates: (_) => de_RepositoryCreationTemplateList(_, context)
2630
+ });
2631
+ }, "de_DescribeRepositoryCreationTemplatesResponse");
2467
2632
  var de_EnhancedImageScanFinding = /* @__PURE__ */ __name((output, context) => {
2468
2633
  return (0, import_smithy_client.take)(output, {
2469
2634
  awsAccountId: import_smithy_client.expectString,
@@ -2608,6 +2773,27 @@ var de_Repository = /* @__PURE__ */ __name((output, context) => {
2608
2773
  repositoryUri: import_smithy_client.expectString
2609
2774
  });
2610
2775
  }, "de_Repository");
2776
+ var de_RepositoryCreationTemplate = /* @__PURE__ */ __name((output, context) => {
2777
+ return (0, import_smithy_client.take)(output, {
2778
+ appliedFor: import_smithy_client._json,
2779
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2780
+ customRoleArn: import_smithy_client.expectString,
2781
+ description: import_smithy_client.expectString,
2782
+ encryptionConfiguration: import_smithy_client._json,
2783
+ imageTagMutability: import_smithy_client.expectString,
2784
+ lifecyclePolicy: import_smithy_client.expectString,
2785
+ prefix: import_smithy_client.expectString,
2786
+ repositoryPolicy: import_smithy_client.expectString,
2787
+ resourceTags: import_smithy_client._json,
2788
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2789
+ });
2790
+ }, "de_RepositoryCreationTemplate");
2791
+ var de_RepositoryCreationTemplateList = /* @__PURE__ */ __name((output, context) => {
2792
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2793
+ return de_RepositoryCreationTemplate(entry, context);
2794
+ });
2795
+ return retVal;
2796
+ }, "de_RepositoryCreationTemplateList");
2611
2797
  var de_RepositoryList = /* @__PURE__ */ __name((output, context) => {
2612
2798
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
2613
2799
  return de_Repository(entry, context);
@@ -2646,6 +2832,12 @@ var de_UpdatePullThroughCacheRuleResponse = /* @__PURE__ */ __name((output, cont
2646
2832
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2647
2833
  });
2648
2834
  }, "de_UpdatePullThroughCacheRuleResponse");
2835
+ var de_UpdateRepositoryCreationTemplateResponse = /* @__PURE__ */ __name((output, context) => {
2836
+ return (0, import_smithy_client.take)(output, {
2837
+ registryId: import_smithy_client.expectString,
2838
+ repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context)
2839
+ });
2840
+ }, "de_UpdateRepositoryCreationTemplateResponse");
2649
2841
  var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2650
2842
  httpStatusCode: output.statusCode,
2651
2843
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2788,6 +2980,22 @@ var _CreateRepositoryCommand = class _CreateRepositoryCommand extends import_smi
2788
2980
  __name(_CreateRepositoryCommand, "CreateRepositoryCommand");
2789
2981
  var CreateRepositoryCommand = _CreateRepositoryCommand;
2790
2982
 
2983
+ // src/commands/CreateRepositoryCreationTemplateCommand.ts
2984
+
2985
+
2986
+
2987
+ var _CreateRepositoryCreationTemplateCommand = class _CreateRepositoryCreationTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2988
+ ...commonParams
2989
+ }).m(function(Command, cs, config, o) {
2990
+ return [
2991
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2992
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2993
+ ];
2994
+ }).s("AmazonEC2ContainerRegistry_V20150921", "CreateRepositoryCreationTemplate", {}).n("ECRClient", "CreateRepositoryCreationTemplateCommand").f(void 0, void 0).ser(se_CreateRepositoryCreationTemplateCommand).de(de_CreateRepositoryCreationTemplateCommand).build() {
2995
+ };
2996
+ __name(_CreateRepositoryCreationTemplateCommand, "CreateRepositoryCreationTemplateCommand");
2997
+ var CreateRepositoryCreationTemplateCommand = _CreateRepositoryCreationTemplateCommand;
2998
+
2791
2999
  // src/commands/DeleteLifecyclePolicyCommand.ts
2792
3000
 
2793
3001
 
@@ -2852,6 +3060,22 @@ var _DeleteRepositoryCommand = class _DeleteRepositoryCommand extends import_smi
2852
3060
  __name(_DeleteRepositoryCommand, "DeleteRepositoryCommand");
2853
3061
  var DeleteRepositoryCommand = _DeleteRepositoryCommand;
2854
3062
 
3063
+ // src/commands/DeleteRepositoryCreationTemplateCommand.ts
3064
+
3065
+
3066
+
3067
+ var _DeleteRepositoryCreationTemplateCommand = class _DeleteRepositoryCreationTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
3068
+ ...commonParams
3069
+ }).m(function(Command, cs, config, o) {
3070
+ return [
3071
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3072
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3073
+ ];
3074
+ }).s("AmazonEC2ContainerRegistry_V20150921", "DeleteRepositoryCreationTemplate", {}).n("ECRClient", "DeleteRepositoryCreationTemplateCommand").f(void 0, void 0).ser(se_DeleteRepositoryCreationTemplateCommand).de(de_DeleteRepositoryCreationTemplateCommand).build() {
3075
+ };
3076
+ __name(_DeleteRepositoryCreationTemplateCommand, "DeleteRepositoryCreationTemplateCommand");
3077
+ var DeleteRepositoryCreationTemplateCommand = _DeleteRepositoryCreationTemplateCommand;
3078
+
2855
3079
  // src/commands/DeleteRepositoryPolicyCommand.ts
2856
3080
 
2857
3081
 
@@ -2964,6 +3188,22 @@ var _DescribeRepositoriesCommand = class _DescribeRepositoriesCommand extends im
2964
3188
  __name(_DescribeRepositoriesCommand, "DescribeRepositoriesCommand");
2965
3189
  var DescribeRepositoriesCommand = _DescribeRepositoriesCommand;
2966
3190
 
3191
+ // src/commands/DescribeRepositoryCreationTemplatesCommand.ts
3192
+
3193
+
3194
+
3195
+ var _DescribeRepositoryCreationTemplatesCommand = class _DescribeRepositoryCreationTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
3196
+ ...commonParams
3197
+ }).m(function(Command, cs, config, o) {
3198
+ return [
3199
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3200
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3201
+ ];
3202
+ }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeRepositoryCreationTemplates", {}).n("ECRClient", "DescribeRepositoryCreationTemplatesCommand").f(void 0, void 0).ser(se_DescribeRepositoryCreationTemplatesCommand).de(de_DescribeRepositoryCreationTemplatesCommand).build() {
3203
+ };
3204
+ __name(_DescribeRepositoryCreationTemplatesCommand, "DescribeRepositoryCreationTemplatesCommand");
3205
+ var DescribeRepositoryCreationTemplatesCommand = _DescribeRepositoryCreationTemplatesCommand;
3206
+
2967
3207
  // src/commands/GetAuthorizationTokenCommand.ts
2968
3208
 
2969
3209
 
@@ -3332,6 +3572,22 @@ var _UpdatePullThroughCacheRuleCommand = class _UpdatePullThroughCacheRuleComman
3332
3572
  __name(_UpdatePullThroughCacheRuleCommand, "UpdatePullThroughCacheRuleCommand");
3333
3573
  var UpdatePullThroughCacheRuleCommand = _UpdatePullThroughCacheRuleCommand;
3334
3574
 
3575
+ // src/commands/UpdateRepositoryCreationTemplateCommand.ts
3576
+
3577
+
3578
+
3579
+ var _UpdateRepositoryCreationTemplateCommand = class _UpdateRepositoryCreationTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
3580
+ ...commonParams
3581
+ }).m(function(Command, cs, config, o) {
3582
+ return [
3583
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3584
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3585
+ ];
3586
+ }).s("AmazonEC2ContainerRegistry_V20150921", "UpdateRepositoryCreationTemplate", {}).n("ECRClient", "UpdateRepositoryCreationTemplateCommand").f(void 0, void 0).ser(se_UpdateRepositoryCreationTemplateCommand).de(de_UpdateRepositoryCreationTemplateCommand).build() {
3587
+ };
3588
+ __name(_UpdateRepositoryCreationTemplateCommand, "UpdateRepositoryCreationTemplateCommand");
3589
+ var UpdateRepositoryCreationTemplateCommand = _UpdateRepositoryCreationTemplateCommand;
3590
+
3335
3591
  // src/commands/UploadLayerPartCommand.ts
3336
3592
 
3337
3593
 
@@ -3373,10 +3629,12 @@ var commands = {
3373
3629
  CompleteLayerUploadCommand,
3374
3630
  CreatePullThroughCacheRuleCommand,
3375
3631
  CreateRepositoryCommand,
3632
+ CreateRepositoryCreationTemplateCommand,
3376
3633
  DeleteLifecyclePolicyCommand,
3377
3634
  DeletePullThroughCacheRuleCommand,
3378
3635
  DeleteRegistryPolicyCommand,
3379
3636
  DeleteRepositoryCommand,
3637
+ DeleteRepositoryCreationTemplateCommand,
3380
3638
  DeleteRepositoryPolicyCommand,
3381
3639
  DescribeImageReplicationStatusCommand,
3382
3640
  DescribeImagesCommand,
@@ -3384,6 +3642,7 @@ var commands = {
3384
3642
  DescribePullThroughCacheRulesCommand,
3385
3643
  DescribeRegistryCommand,
3386
3644
  DescribeRepositoriesCommand,
3645
+ DescribeRepositoryCreationTemplatesCommand,
3387
3646
  GetAuthorizationTokenCommand,
3388
3647
  GetDownloadUrlForLayerCommand,
3389
3648
  GetLifecyclePolicyCommand,
@@ -3407,6 +3666,7 @@ var commands = {
3407
3666
  TagResourceCommand,
3408
3667
  UntagResourceCommand,
3409
3668
  UpdatePullThroughCacheRuleCommand,
3669
+ UpdateRepositoryCreationTemplateCommand,
3410
3670
  UploadLayerPartCommand,
3411
3671
  ValidatePullThroughCacheRuleCommand
3412
3672
  };
@@ -3432,6 +3692,10 @@ var paginateDescribePullThroughCacheRules = (0, import_core.createPaginator)(ECR
3432
3692
 
3433
3693
  var paginateDescribeRepositories = (0, import_core.createPaginator)(ECRClient, DescribeRepositoriesCommand, "nextToken", "nextToken", "maxResults");
3434
3694
 
3695
+ // src/pagination/DescribeRepositoryCreationTemplatesPaginator.ts
3696
+
3697
+ var paginateDescribeRepositoryCreationTemplates = (0, import_core.createPaginator)(ECRClient, DescribeRepositoryCreationTemplatesCommand, "nextToken", "nextToken", "maxResults");
3698
+
3435
3699
  // src/pagination/GetLifecyclePolicyPreviewPaginator.ts
3436
3700
 
3437
3701
  var paginateGetLifecyclePolicyPreview = (0, import_core.createPaginator)(ECRClient, GetLifecyclePolicyPreviewCommand, "nextToken", "nextToken", "maxResults");
@@ -3534,10 +3798,12 @@ var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name(async (para
3534
3798
  CompleteLayerUploadCommand,
3535
3799
  CreatePullThroughCacheRuleCommand,
3536
3800
  CreateRepositoryCommand,
3801
+ CreateRepositoryCreationTemplateCommand,
3537
3802
  DeleteLifecyclePolicyCommand,
3538
3803
  DeletePullThroughCacheRuleCommand,
3539
3804
  DeleteRegistryPolicyCommand,
3540
3805
  DeleteRepositoryCommand,
3806
+ DeleteRepositoryCreationTemplateCommand,
3541
3807
  DeleteRepositoryPolicyCommand,
3542
3808
  DescribeImageReplicationStatusCommand,
3543
3809
  DescribeImageScanFindingsCommand,
@@ -3545,6 +3811,7 @@ var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name(async (para
3545
3811
  DescribePullThroughCacheRulesCommand,
3546
3812
  DescribeRegistryCommand,
3547
3813
  DescribeRepositoriesCommand,
3814
+ DescribeRepositoryCreationTemplatesCommand,
3548
3815
  GetAuthorizationTokenCommand,
3549
3816
  GetDownloadUrlForLayerCommand,
3550
3817
  GetLifecyclePolicyCommand,
@@ -3568,12 +3835,14 @@ var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name(async (para
3568
3835
  TagResourceCommand,
3569
3836
  UntagResourceCommand,
3570
3837
  UpdatePullThroughCacheRuleCommand,
3838
+ UpdateRepositoryCreationTemplateCommand,
3571
3839
  UploadLayerPartCommand,
3572
3840
  ValidatePullThroughCacheRuleCommand,
3573
3841
  paginateDescribeImageScanFindings,
3574
3842
  paginateDescribeImages,
3575
3843
  paginateDescribePullThroughCacheRules,
3576
3844
  paginateDescribeRepositories,
3845
+ paginateDescribeRepositoryCreationTemplates,
3577
3846
  paginateGetLifecyclePolicyPreview,
3578
3847
  paginateListImages,
3579
3848
  waitForImageScanComplete,
@@ -3609,10 +3878,13 @@ var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name(async (para
3609
3878
  InvalidTagParameterException,
3610
3879
  RepositoryAlreadyExistsException,
3611
3880
  TooManyTagsException,
3881
+ RCTAppliedFor,
3882
+ TemplateAlreadyExistsException,
3612
3883
  LifecyclePolicyNotFoundException,
3613
3884
  PullThroughCacheRuleNotFoundException,
3614
3885
  RegistryPolicyNotFoundException,
3615
3886
  RepositoryNotEmptyException,
3887
+ TemplateNotFoundException,
3616
3888
  RepositoryPolicyNotFoundException,
3617
3889
  ReplicationStatus,
3618
3890
  ImageNotFoundException,