@aws-sdk/client-ecr 3.33.0 → 3.34.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 (140) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/ECR.ts +37 -0
  3. package/ECRClient.ts +6 -0
  4. package/commands/DescribeImageReplicationStatusCommand.ts +102 -0
  5. package/dist/cjs/ECR.js +15 -0
  6. package/dist/cjs/ECR.js.map +1 -1
  7. package/dist/cjs/ECRClient.js.map +1 -1
  8. package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js +61 -0
  9. package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
  10. package/dist/cjs/index.js +1 -0
  11. package/dist/cjs/index.js.map +1 -1
  12. package/dist/cjs/models/models_0.js +67 -21
  13. package/dist/cjs/models/models_0.js.map +1 -1
  14. package/dist/cjs/package.json +39 -39
  15. package/dist/cjs/protocols/Aws_json1_1.js +193 -2
  16. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  17. package/dist/es/ECR.js +16 -12
  18. package/dist/es/ECR.js.map +1 -1
  19. package/dist/es/ECRClient.js +1 -17
  20. package/dist/es/ECRClient.js.map +1 -1
  21. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js +2 -34
  22. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
  23. package/dist/es/commands/BatchDeleteImageCommand.js +2 -32
  24. package/dist/es/commands/BatchDeleteImageCommand.js.map +1 -1
  25. package/dist/es/commands/BatchGetImageCommand.js +2 -30
  26. package/dist/es/commands/BatchGetImageCommand.js.map +1 -1
  27. package/dist/es/commands/CompleteLayerUploadCommand.js +2 -35
  28. package/dist/es/commands/CompleteLayerUploadCommand.js.map +1 -1
  29. package/dist/es/commands/CreateRepositoryCommand.js +2 -28
  30. package/dist/es/commands/CreateRepositoryCommand.js.map +1 -1
  31. package/dist/es/commands/DeleteLifecyclePolicyCommand.js +2 -27
  32. package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
  33. package/dist/es/commands/DeleteRegistryPolicyCommand.js +2 -27
  34. package/dist/es/commands/DeleteRegistryPolicyCommand.js.map +1 -1
  35. package/dist/es/commands/DeleteRepositoryCommand.js +2 -29
  36. package/dist/es/commands/DeleteRepositoryCommand.js.map +1 -1
  37. package/dist/es/commands/DeleteRepositoryPolicyCommand.js +2 -27
  38. package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
  39. package/dist/es/commands/DescribeImageReplicationStatusCommand.js +40 -0
  40. package/dist/es/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
  41. package/dist/es/commands/DescribeImageScanFindingsCommand.js +2 -27
  42. package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +1 -1
  43. package/dist/es/commands/DescribeImagesCommand.js +2 -33
  44. package/dist/es/commands/DescribeImagesCommand.js.map +1 -1
  45. package/dist/es/commands/DescribeRegistryCommand.js +2 -29
  46. package/dist/es/commands/DescribeRegistryCommand.js.map +1 -1
  47. package/dist/es/commands/DescribeRepositoriesCommand.js +2 -27
  48. package/dist/es/commands/DescribeRepositoriesCommand.js.map +1 -1
  49. package/dist/es/commands/GetAuthorizationTokenCommand.js +2 -34
  50. package/dist/es/commands/GetAuthorizationTokenCommand.js.map +1 -1
  51. package/dist/es/commands/GetDownloadUrlForLayerCommand.js +2 -34
  52. package/dist/es/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
  53. package/dist/es/commands/GetLifecyclePolicyCommand.js +2 -27
  54. package/dist/es/commands/GetLifecyclePolicyCommand.js.map +1 -1
  55. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js +2 -28
  56. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
  57. package/dist/es/commands/GetRegistryPolicyCommand.js +2 -27
  58. package/dist/es/commands/GetRegistryPolicyCommand.js.map +1 -1
  59. package/dist/es/commands/GetRepositoryPolicyCommand.js +2 -27
  60. package/dist/es/commands/GetRepositoryPolicyCommand.js.map +1 -1
  61. package/dist/es/commands/InitiateLayerUploadCommand.js +2 -34
  62. package/dist/es/commands/InitiateLayerUploadCommand.js.map +1 -1
  63. package/dist/es/commands/ListImagesCommand.js +2 -33
  64. package/dist/es/commands/ListImagesCommand.js.map +1 -1
  65. package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
  66. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  67. package/dist/es/commands/PutImageCommand.js +2 -35
  68. package/dist/es/commands/PutImageCommand.js.map +1 -1
  69. package/dist/es/commands/PutImageScanningConfigurationCommand.js +2 -27
  70. package/dist/es/commands/PutImageScanningConfigurationCommand.js.map +1 -1
  71. package/dist/es/commands/PutImageTagMutabilityCommand.js +2 -29
  72. package/dist/es/commands/PutImageTagMutabilityCommand.js.map +1 -1
  73. package/dist/es/commands/PutLifecyclePolicyCommand.js +2 -29
  74. package/dist/es/commands/PutLifecyclePolicyCommand.js.map +1 -1
  75. package/dist/es/commands/PutRegistryPolicyCommand.js +2 -29
  76. package/dist/es/commands/PutRegistryPolicyCommand.js.map +1 -1
  77. package/dist/es/commands/PutReplicationConfigurationCommand.js +2 -37
  78. package/dist/es/commands/PutReplicationConfigurationCommand.js.map +1 -1
  79. package/dist/es/commands/SetRepositoryPolicyCommand.js +2 -29
  80. package/dist/es/commands/SetRepositoryPolicyCommand.js.map +1 -1
  81. package/dist/es/commands/StartImageScanCommand.js +2 -30
  82. package/dist/es/commands/StartImageScanCommand.js.map +1 -1
  83. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js +2 -28
  84. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
  85. package/dist/es/commands/TagResourceCommand.js +2 -28
  86. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  87. package/dist/es/commands/UntagResourceCommand.js +2 -27
  88. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  89. package/dist/es/commands/UploadLayerPartCommand.js +2 -34
  90. package/dist/es/commands/UploadLayerPartCommand.js.map +1 -1
  91. package/dist/es/endpoints.js +1 -1
  92. package/dist/es/endpoints.js.map +1 -1
  93. package/dist/es/index.js +1 -0
  94. package/dist/es/index.js.map +1 -1
  95. package/dist/es/models/models_0.js +34 -377
  96. package/dist/es/models/models_0.js.map +1 -1
  97. package/dist/es/package.json +39 -39
  98. package/dist/es/pagination/DescribeImageScanFindingsPaginator.js +16 -28
  99. package/dist/es/pagination/DescribeImageScanFindingsPaginator.js.map +1 -1
  100. package/dist/es/pagination/DescribeImagesPaginator.js +16 -28
  101. package/dist/es/pagination/DescribeImagesPaginator.js.map +1 -1
  102. package/dist/es/pagination/DescribeRepositoriesPaginator.js +16 -28
  103. package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +1 -1
  104. package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js +16 -28
  105. package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js.map +1 -1
  106. package/dist/es/pagination/ListImagesPaginator.js +16 -28
  107. package/dist/es/pagination/ListImagesPaginator.js.map +1 -1
  108. package/dist/es/protocols/Aws_json1_1.js +1069 -882
  109. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  110. package/dist/es/runtimeConfig.browser.js +0 -3
  111. package/dist/es/runtimeConfig.browser.js.map +1 -1
  112. package/dist/es/runtimeConfig.js +0 -3
  113. package/dist/es/runtimeConfig.js.map +1 -1
  114. package/dist/es/runtimeConfig.native.js +0 -3
  115. package/dist/es/runtimeConfig.native.js.map +1 -1
  116. package/dist/es/runtimeConfig.shared.js +0 -3
  117. package/dist/es/runtimeConfig.shared.js.map +1 -1
  118. package/dist/es/waiters/waitForImageScanComplete.js +9 -18
  119. package/dist/es/waiters/waitForImageScanComplete.js.map +1 -1
  120. package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js +9 -18
  121. package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js.map +1 -1
  122. package/dist/types/ECR.d.ts +7 -0
  123. package/dist/types/ECRClient.d.ts +3 -2
  124. package/dist/types/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
  125. package/dist/types/index.d.ts +1 -0
  126. package/dist/types/models/models_0.d.ts +154 -43
  127. package/dist/types/protocols/Aws_json1_1.d.ts +3 -0
  128. package/dist/types/ts3.4/ECR.d.ts +7 -0
  129. package/dist/types/ts3.4/ECRClient.d.ts +3 -2
  130. package/dist/types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
  131. package/dist/types/ts3.4/index.d.ts +1 -0
  132. package/dist/types/ts3.4/models/models_0.d.ts +154 -43
  133. package/dist/types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  134. package/index.ts +1 -0
  135. package/models/models_0.ts +190 -51
  136. package/package.json +39 -39
  137. package/protocols/Aws_json1_1.ts +229 -0
  138. package/tsconfig.es.json +0 -2
  139. package/tsconfig.json +4 -5
  140. package/tsconfig.types.json +8 -0
@@ -22,6 +22,10 @@ import {
22
22
  DeleteRepositoryPolicyCommandInput,
23
23
  DeleteRepositoryPolicyCommandOutput,
24
24
  } from "../commands/DeleteRepositoryPolicyCommand";
25
+ import {
26
+ DescribeImageReplicationStatusCommandInput,
27
+ DescribeImageReplicationStatusCommandOutput,
28
+ } from "../commands/DescribeImageReplicationStatusCommand";
25
29
  import {
26
30
  DescribeImageScanFindingsCommandInput,
27
31
  DescribeImageScanFindingsCommandOutput,
@@ -107,6 +111,8 @@ import {
107
111
  DeleteRepositoryPolicyResponse,
108
112
  DeleteRepositoryRequest,
109
113
  DeleteRepositoryResponse,
114
+ DescribeImageReplicationStatusRequest,
115
+ DescribeImageReplicationStatusResponse,
110
116
  DescribeImageScanFindingsRequest,
111
117
  DescribeImageScanFindingsResponse,
112
118
  DescribeImagesFilter,
@@ -138,6 +144,7 @@ import {
138
144
  ImageFailure,
139
145
  ImageIdentifier,
140
146
  ImageNotFoundException,
147
+ ImageReplicationStatus,
141
148
  ImageScanFinding,
142
149
  ImageScanFindings,
143
150
  ImageScanFindingsSummary,
@@ -189,6 +196,7 @@ import {
189
196
  ReplicationRule,
190
197
  Repository,
191
198
  RepositoryAlreadyExistsException,
199
+ RepositoryFilter,
192
200
  RepositoryNotEmptyException,
193
201
  RepositoryNotFoundException,
194
202
  RepositoryPolicyNotFoundException,
@@ -348,6 +356,19 @@ export const serializeAws_json1_1DeleteRepositoryPolicyCommand = async (
348
356
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
357
  };
350
358
 
359
+ export const serializeAws_json1_1DescribeImageReplicationStatusCommand = async (
360
+ input: DescribeImageReplicationStatusCommandInput,
361
+ context: __SerdeContext
362
+ ): Promise<__HttpRequest> => {
363
+ const headers: __HeaderBag = {
364
+ "content-type": "application/x-amz-json-1.1",
365
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus",
366
+ };
367
+ let body: any;
368
+ body = JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(input, context));
369
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
+ };
371
+
351
372
  export const serializeAws_json1_1DescribeImagesCommand = async (
352
373
  input: DescribeImagesCommandInput,
353
374
  context: __SerdeContext
@@ -1234,6 +1255,14 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (
1234
1255
  $metadata: deserializeMetadata(output),
1235
1256
  };
1236
1257
  break;
1258
+ case "ValidationException":
1259
+ case "com.amazonaws.ecr#ValidationException":
1260
+ response = {
1261
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1262
+ name: errorCode,
1263
+ $metadata: deserializeMetadata(output),
1264
+ };
1265
+ break;
1237
1266
  default:
1238
1267
  const parsedBody = parsedOutput.body;
1239
1268
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1415,6 +1444,92 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (
1415
1444
  return Promise.reject(Object.assign(new Error(message), response));
1416
1445
  };
1417
1446
 
1447
+ export const deserializeAws_json1_1DescribeImageReplicationStatusCommand = async (
1448
+ output: __HttpResponse,
1449
+ context: __SerdeContext
1450
+ ): Promise<DescribeImageReplicationStatusCommandOutput> => {
1451
+ if (output.statusCode >= 300) {
1452
+ return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(output, context);
1453
+ }
1454
+ const data: any = await parseBody(output.body, context);
1455
+ let contents: any = {};
1456
+ contents = deserializeAws_json1_1DescribeImageReplicationStatusResponse(data, context);
1457
+ const response: DescribeImageReplicationStatusCommandOutput = {
1458
+ $metadata: deserializeMetadata(output),
1459
+ ...contents,
1460
+ };
1461
+ return Promise.resolve(response);
1462
+ };
1463
+
1464
+ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
1465
+ output: __HttpResponse,
1466
+ context: __SerdeContext
1467
+ ): Promise<DescribeImageReplicationStatusCommandOutput> => {
1468
+ const parsedOutput: any = {
1469
+ ...output,
1470
+ body: await parseBody(output.body, context),
1471
+ };
1472
+ let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1473
+ let errorCode: string = "UnknownError";
1474
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1475
+ switch (errorCode) {
1476
+ case "ImageNotFoundException":
1477
+ case "com.amazonaws.ecr#ImageNotFoundException":
1478
+ response = {
1479
+ ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
1480
+ name: errorCode,
1481
+ $metadata: deserializeMetadata(output),
1482
+ };
1483
+ break;
1484
+ case "InvalidParameterException":
1485
+ case "com.amazonaws.ecr#InvalidParameterException":
1486
+ response = {
1487
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
1488
+ name: errorCode,
1489
+ $metadata: deserializeMetadata(output),
1490
+ };
1491
+ break;
1492
+ case "RepositoryNotFoundException":
1493
+ case "com.amazonaws.ecr#RepositoryNotFoundException":
1494
+ response = {
1495
+ ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
1496
+ name: errorCode,
1497
+ $metadata: deserializeMetadata(output),
1498
+ };
1499
+ break;
1500
+ case "ServerException":
1501
+ case "com.amazonaws.ecr#ServerException":
1502
+ response = {
1503
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
1504
+ name: errorCode,
1505
+ $metadata: deserializeMetadata(output),
1506
+ };
1507
+ break;
1508
+ case "ValidationException":
1509
+ case "com.amazonaws.ecr#ValidationException":
1510
+ response = {
1511
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1512
+ name: errorCode,
1513
+ $metadata: deserializeMetadata(output),
1514
+ };
1515
+ break;
1516
+ default:
1517
+ const parsedBody = parsedOutput.body;
1518
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1519
+ response = {
1520
+ ...parsedBody,
1521
+ name: `${errorCode}`,
1522
+ message: parsedBody.message || parsedBody.Message || errorCode,
1523
+ $fault: "client",
1524
+ $metadata: deserializeMetadata(output),
1525
+ } as any;
1526
+ }
1527
+ const message = response.message || response.Message || errorCode;
1528
+ response.message = message;
1529
+ delete response.Message;
1530
+ return Promise.reject(Object.assign(new Error(message), response));
1531
+ };
1532
+
1418
1533
  export const deserializeAws_json1_1DescribeImagesCommand = async (
1419
1534
  output: __HttpResponse,
1420
1535
  context: __SerdeContext
@@ -2076,6 +2191,14 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (
2076
2191
  $metadata: deserializeMetadata(output),
2077
2192
  };
2078
2193
  break;
2194
+ case "ValidationException":
2195
+ case "com.amazonaws.ecr#ValidationException":
2196
+ response = {
2197
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2198
+ name: errorCode,
2199
+ $metadata: deserializeMetadata(output),
2200
+ };
2201
+ break;
2079
2202
  default:
2080
2203
  const parsedBody = parsedOutput.body;
2081
2204
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2770,6 +2893,14 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (
2770
2893
  $metadata: deserializeMetadata(output),
2771
2894
  };
2772
2895
  break;
2896
+ case "ValidationException":
2897
+ case "com.amazonaws.ecr#ValidationException":
2898
+ response = {
2899
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2900
+ name: errorCode,
2901
+ $metadata: deserializeMetadata(output),
2902
+ };
2903
+ break;
2773
2904
  default:
2774
2905
  const parsedBody = parsedOutput.body;
2775
2906
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3912,6 +4043,7 @@ const serializeAws_json1_1CreateRepositoryRequest = (input: CreateRepositoryRequ
3912
4043
  }),
3913
4044
  ...(input.imageTagMutability !== undefined &&
3914
4045
  input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }),
4046
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3915
4047
  ...(input.repositoryName !== undefined &&
3916
4048
  input.repositoryName !== null && { repositoryName: input.repositoryName }),
3917
4049
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
@@ -3956,6 +4088,19 @@ const serializeAws_json1_1DeleteRepositoryRequest = (input: DeleteRepositoryRequ
3956
4088
  };
3957
4089
  };
3958
4090
 
4091
+ const serializeAws_json1_1DescribeImageReplicationStatusRequest = (
4092
+ input: DescribeImageReplicationStatusRequest,
4093
+ context: __SerdeContext
4094
+ ): any => {
4095
+ return {
4096
+ ...(input.imageId !== undefined &&
4097
+ input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
4098
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
4099
+ ...(input.repositoryName !== undefined &&
4100
+ input.repositoryName !== null && { repositoryName: input.repositoryName }),
4101
+ };
4102
+ };
4103
+
3959
4104
  const serializeAws_json1_1DescribeImageScanFindingsRequest = (
3960
4105
  input: DescribeImageScanFindingsRequest,
3961
4106
  context: __SerdeContext
@@ -4310,6 +4455,10 @@ const serializeAws_json1_1ReplicationRule = (input: ReplicationRule, context: __
4310
4455
  input.destinations !== null && {
4311
4456
  destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
4312
4457
  }),
4458
+ ...(input.repositoryFilters !== undefined &&
4459
+ input.repositoryFilters !== null && {
4460
+ repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
4461
+ }),
4313
4462
  };
4314
4463
  };
4315
4464
 
@@ -4324,6 +4473,24 @@ const serializeAws_json1_1ReplicationRuleList = (input: ReplicationRule[], conte
4324
4473
  });
4325
4474
  };
4326
4475
 
4476
+ const serializeAws_json1_1RepositoryFilter = (input: RepositoryFilter, context: __SerdeContext): any => {
4477
+ return {
4478
+ ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
4479
+ ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }),
4480
+ };
4481
+ };
4482
+
4483
+ const serializeAws_json1_1RepositoryFilterList = (input: RepositoryFilter[], context: __SerdeContext): any => {
4484
+ return input
4485
+ .filter((e: any) => e != null)
4486
+ .map((entry) => {
4487
+ if (entry === null) {
4488
+ return null as any;
4489
+ }
4490
+ return serializeAws_json1_1RepositoryFilter(entry, context);
4491
+ });
4492
+ };
4493
+
4327
4494
  const serializeAws_json1_1RepositoryNameList = (input: string[], context: __SerdeContext): any => {
4328
4495
  return input
4329
4496
  .filter((e: any) => e != null)
@@ -4585,6 +4752,23 @@ const deserializeAws_json1_1DeleteRepositoryResponse = (
4585
4752
  } as any;
4586
4753
  };
4587
4754
 
4755
+ const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (
4756
+ output: any,
4757
+ context: __SerdeContext
4758
+ ): DescribeImageReplicationStatusResponse => {
4759
+ return {
4760
+ imageId:
4761
+ output.imageId !== undefined && output.imageId !== null
4762
+ ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4763
+ : undefined,
4764
+ replicationStatuses:
4765
+ output.replicationStatuses !== undefined && output.replicationStatuses !== null
4766
+ ? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
4767
+ : undefined,
4768
+ repositoryName: __expectString(output.repositoryName),
4769
+ } as any;
4770
+ };
4771
+
4588
4772
  const deserializeAws_json1_1DescribeImageScanFindingsResponse = (
4589
4773
  output: any,
4590
4774
  context: __SerdeContext
@@ -4883,6 +5067,29 @@ const deserializeAws_json1_1ImageNotFoundException = (output: any, context: __Se
4883
5067
  } as any;
4884
5068
  };
4885
5069
 
5070
+ const deserializeAws_json1_1ImageReplicationStatus = (output: any, context: __SerdeContext): ImageReplicationStatus => {
5071
+ return {
5072
+ failureCode: __expectString(output.failureCode),
5073
+ region: __expectString(output.region),
5074
+ registryId: __expectString(output.registryId),
5075
+ status: __expectString(output.status),
5076
+ } as any;
5077
+ };
5078
+
5079
+ const deserializeAws_json1_1ImageReplicationStatusList = (
5080
+ output: any,
5081
+ context: __SerdeContext
5082
+ ): ImageReplicationStatus[] => {
5083
+ return (output || [])
5084
+ .filter((e: any) => e != null)
5085
+ .map((entry: any) => {
5086
+ if (entry === null) {
5087
+ return null as any;
5088
+ }
5089
+ return deserializeAws_json1_1ImageReplicationStatus(entry, context);
5090
+ });
5091
+ };
5092
+
4886
5093
  const deserializeAws_json1_1ImageScanFinding = (output: any, context: __SerdeContext): ImageScanFinding => {
4887
5094
  return {
4888
5095
  attributes:
@@ -5346,6 +5553,10 @@ const deserializeAws_json1_1ReplicationRule = (output: any, context: __SerdeCont
5346
5553
  output.destinations !== undefined && output.destinations !== null
5347
5554
  ? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
5348
5555
  : undefined,
5556
+ repositoryFilters:
5557
+ output.repositoryFilters !== undefined && output.repositoryFilters !== null
5558
+ ? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
5559
+ : undefined,
5349
5560
  } as any;
5350
5561
  };
5351
5562
 
@@ -5391,6 +5602,24 @@ const deserializeAws_json1_1RepositoryAlreadyExistsException = (
5391
5602
  } as any;
5392
5603
  };
5393
5604
 
5605
+ const deserializeAws_json1_1RepositoryFilter = (output: any, context: __SerdeContext): RepositoryFilter => {
5606
+ return {
5607
+ filter: __expectString(output.filter),
5608
+ filterType: __expectString(output.filterType),
5609
+ } as any;
5610
+ };
5611
+
5612
+ const deserializeAws_json1_1RepositoryFilterList = (output: any, context: __SerdeContext): RepositoryFilter[] => {
5613
+ return (output || [])
5614
+ .filter((e: any) => e != null)
5615
+ .map((entry: any) => {
5616
+ if (entry === null) {
5617
+ return null as any;
5618
+ }
5619
+ return deserializeAws_json1_1RepositoryFilter(entry, context);
5620
+ });
5621
+ };
5622
+
5394
5623
  const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeContext): Repository[] => {
5395
5624
  return (output || [])
5396
5625
  .filter((e: any) => e != null)
package/tsconfig.es.json CHANGED
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,8 +11,8 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs"
14
+ "outDir": "dist/cjs",
15
+ "removeComments": true
17
16
  },
18
17
  "typedocOptions": {
19
18
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -23,9 +22,9 @@
23
22
  "ignoreCompilerErrors": true,
24
23
  "includeDeclarations": true,
25
24
  "stripInternal": true,
26
- "readme": "./README.md",
25
+ "readme": "README.md",
27
26
  "mode": "file",
28
- "out": "./docs",
27
+ "out": "docs",
29
28
  "theme": "minimal",
30
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
31
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }