@aws-sdk/client-ecr 3.30.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.
- package/CHANGELOG.md +39 -0
- package/ECR.ts +54 -15
- package/ECRClient.ts +8 -0
- package/README.md +2 -0
- package/commands/CreateRepositoryCommand.ts +1 -1
- package/commands/DescribeImageReplicationStatusCommand.ts +102 -0
- package/commands/GetAuthorizationTokenCommand.ts +2 -2
- package/commands/GetDownloadUrlForLayerCommand.ts +2 -2
- package/commands/PutImageTagMutabilityCommand.ts +2 -2
- package/commands/PutLifecyclePolicyCommand.ts +2 -2
- package/commands/PutRegistryPolicyCommand.ts +1 -1
- package/commands/PutReplicationConfigurationCommand.ts +1 -1
- package/commands/SetRepositoryPolicyCommand.ts +1 -1
- package/commands/StartImageScanCommand.ts +3 -3
- package/dist/cjs/ECR.js +17 -0
- package/dist/cjs/ECR.js.map +1 -1
- package/dist/cjs/ECRClient.js +15 -13
- package/dist/cjs/ECRClient.js.map +1 -1
- package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js +3 -3
- package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
- package/dist/cjs/commands/BatchDeleteImageCommand.js +3 -3
- package/dist/cjs/commands/BatchDeleteImageCommand.js.map +1 -1
- package/dist/cjs/commands/BatchGetImageCommand.js +3 -3
- package/dist/cjs/commands/BatchGetImageCommand.js.map +1 -1
- package/dist/cjs/commands/CompleteLayerUploadCommand.js +3 -3
- package/dist/cjs/commands/CompleteLayerUploadCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRepositoryCommand.js +4 -4
- package/dist/cjs/commands/CreateRepositoryCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRegistryPolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteRegistryPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRepositoryCommand.js +3 -3
- package/dist/cjs/commands/DeleteRepositoryCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js +61 -0
- package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
- package/dist/cjs/commands/DescribeImageScanFindingsCommand.js +3 -3
- package/dist/cjs/commands/DescribeImageScanFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeImagesCommand.js +3 -3
- package/dist/cjs/commands/DescribeImagesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeRegistryCommand.js +3 -3
- package/dist/cjs/commands/DescribeRegistryCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeRepositoriesCommand.js +3 -3
- package/dist/cjs/commands/DescribeRepositoriesCommand.js.map +1 -1
- package/dist/cjs/commands/GetAuthorizationTokenCommand.js +5 -5
- package/dist/cjs/commands/GetAuthorizationTokenCommand.js.map +1 -1
- package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js +5 -5
- package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
- package/dist/cjs/commands/GetLifecyclePolicyCommand.js +3 -3
- package/dist/cjs/commands/GetLifecyclePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js +3 -3
- package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
- package/dist/cjs/commands/GetRegistryPolicyCommand.js +3 -3
- package/dist/cjs/commands/GetRegistryPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetRepositoryPolicyCommand.js +3 -3
- package/dist/cjs/commands/GetRepositoryPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/InitiateLayerUploadCommand.js +3 -3
- package/dist/cjs/commands/InitiateLayerUploadCommand.js.map +1 -1
- package/dist/cjs/commands/ListImagesCommand.js +3 -3
- package/dist/cjs/commands/ListImagesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/PutImageCommand.js +3 -3
- package/dist/cjs/commands/PutImageCommand.js.map +1 -1
- package/dist/cjs/commands/PutImageScanningConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutImageScanningConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/PutImageTagMutabilityCommand.js +5 -5
- package/dist/cjs/commands/PutImageTagMutabilityCommand.js.map +1 -1
- package/dist/cjs/commands/PutLifecyclePolicyCommand.js +5 -5
- package/dist/cjs/commands/PutLifecyclePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutRegistryPolicyCommand.js +4 -4
- package/dist/cjs/commands/PutRegistryPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutReplicationConfigurationCommand.js +4 -4
- package/dist/cjs/commands/PutReplicationConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/SetRepositoryPolicyCommand.js +4 -4
- package/dist/cjs/commands/SetRepositoryPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/StartImageScanCommand.js +6 -6
- package/dist/cjs/commands/StartImageScanCommand.js.map +1 -1
- package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js +3 -3
- package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UploadLayerPartCommand.js +3 -3
- package/dist/cjs/commands/UploadLayerPartCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +46 -45
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +67 -21
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +40 -40
- package/dist/cjs/protocols/Aws_json1_1.js +346 -155
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForImageScanComplete.js +3 -3
- package/dist/cjs/waiters/waitForImageScanComplete.js.map +1 -1
- package/dist/cjs/waiters/waitForLifecyclePolicyPreviewComplete.js +3 -3
- package/dist/cjs/waiters/waitForLifecyclePolicyPreviewComplete.js.map +1 -1
- package/dist/es/ECR.js +16 -10
- package/dist/es/ECR.js.map +1 -1
- package/dist/es/ECRClient.js +1 -15
- package/dist/es/ECRClient.js.map +1 -1
- package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js +2 -34
- package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
- package/dist/es/commands/BatchDeleteImageCommand.js +2 -32
- package/dist/es/commands/BatchDeleteImageCommand.js.map +1 -1
- package/dist/es/commands/BatchGetImageCommand.js +2 -30
- package/dist/es/commands/BatchGetImageCommand.js.map +1 -1
- package/dist/es/commands/CompleteLayerUploadCommand.js +2 -35
- package/dist/es/commands/CompleteLayerUploadCommand.js.map +1 -1
- package/dist/es/commands/CreateRepositoryCommand.js +2 -28
- package/dist/es/commands/CreateRepositoryCommand.js.map +1 -1
- package/dist/es/commands/DeleteLifecyclePolicyCommand.js +2 -27
- package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteRegistryPolicyCommand.js +2 -27
- package/dist/es/commands/DeleteRegistryPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteRepositoryCommand.js +2 -29
- package/dist/es/commands/DeleteRepositoryCommand.js.map +1 -1
- package/dist/es/commands/DeleteRepositoryPolicyCommand.js +2 -27
- package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
- package/dist/es/commands/DescribeImageReplicationStatusCommand.js +40 -0
- package/dist/es/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
- package/dist/es/commands/DescribeImageScanFindingsCommand.js +2 -27
- package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +1 -1
- package/dist/es/commands/DescribeImagesCommand.js +2 -33
- package/dist/es/commands/DescribeImagesCommand.js.map +1 -1
- package/dist/es/commands/DescribeRegistryCommand.js +2 -29
- package/dist/es/commands/DescribeRegistryCommand.js.map +1 -1
- package/dist/es/commands/DescribeRepositoriesCommand.js +2 -27
- package/dist/es/commands/DescribeRepositoriesCommand.js.map +1 -1
- package/dist/es/commands/GetAuthorizationTokenCommand.js +2 -34
- package/dist/es/commands/GetAuthorizationTokenCommand.js.map +1 -1
- package/dist/es/commands/GetDownloadUrlForLayerCommand.js +2 -34
- package/dist/es/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
- package/dist/es/commands/GetLifecyclePolicyCommand.js +2 -27
- package/dist/es/commands/GetLifecyclePolicyCommand.js.map +1 -1
- package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js +2 -28
- package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
- package/dist/es/commands/GetRegistryPolicyCommand.js +2 -27
- package/dist/es/commands/GetRegistryPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetRepositoryPolicyCommand.js +2 -27
- package/dist/es/commands/GetRepositoryPolicyCommand.js.map +1 -1
- package/dist/es/commands/InitiateLayerUploadCommand.js +2 -34
- package/dist/es/commands/InitiateLayerUploadCommand.js.map +1 -1
- package/dist/es/commands/ListImagesCommand.js +2 -33
- package/dist/es/commands/ListImagesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/PutImageCommand.js +2 -35
- package/dist/es/commands/PutImageCommand.js.map +1 -1
- package/dist/es/commands/PutImageScanningConfigurationCommand.js +2 -27
- package/dist/es/commands/PutImageScanningConfigurationCommand.js.map +1 -1
- package/dist/es/commands/PutImageTagMutabilityCommand.js +2 -29
- package/dist/es/commands/PutImageTagMutabilityCommand.js.map +1 -1
- package/dist/es/commands/PutLifecyclePolicyCommand.js +2 -29
- package/dist/es/commands/PutLifecyclePolicyCommand.js.map +1 -1
- package/dist/es/commands/PutRegistryPolicyCommand.js +2 -29
- package/dist/es/commands/PutRegistryPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutReplicationConfigurationCommand.js +2 -37
- package/dist/es/commands/PutReplicationConfigurationCommand.js.map +1 -1
- package/dist/es/commands/SetRepositoryPolicyCommand.js +2 -29
- package/dist/es/commands/SetRepositoryPolicyCommand.js.map +1 -1
- package/dist/es/commands/StartImageScanCommand.js +2 -30
- package/dist/es/commands/StartImageScanCommand.js.map +1 -1
- package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js +2 -28
- package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -28
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UploadLayerPartCommand.js +2 -34
- package/dist/es/commands/UploadLayerPartCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +34 -377
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +40 -40
- package/dist/es/pagination/DescribeImageScanFindingsPaginator.js +16 -28
- package/dist/es/pagination/DescribeImageScanFindingsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeImagesPaginator.js +16 -28
- package/dist/es/pagination/DescribeImagesPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeRepositoriesPaginator.js +16 -28
- package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +1 -1
- package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js +16 -28
- package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js.map +1 -1
- package/dist/es/pagination/ListImagesPaginator.js +16 -28
- package/dist/es/pagination/ListImagesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +1080 -893
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForImageScanComplete.js +9 -18
- package/dist/es/waiters/waitForImageScanComplete.js.map +1 -1
- package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js +9 -18
- package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js.map +1 -1
- package/dist/types/ECR.d.ts +24 -15
- package/dist/types/ECRClient.d.ts +5 -2
- package/dist/types/commands/CreateRepositoryCommand.d.ts +1 -1
- package/dist/types/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
- package/dist/types/commands/GetAuthorizationTokenCommand.d.ts +2 -2
- package/dist/types/commands/GetDownloadUrlForLayerCommand.d.ts +2 -2
- package/dist/types/commands/PutImageTagMutabilityCommand.d.ts +2 -2
- package/dist/types/commands/PutLifecyclePolicyCommand.d.ts +2 -2
- package/dist/types/commands/PutRegistryPolicyCommand.d.ts +1 -1
- package/dist/types/commands/PutReplicationConfigurationCommand.d.ts +1 -1
- package/dist/types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
- package/dist/types/commands/StartImageScanCommand.d.ts +3 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/models_0.d.ts +210 -100
- package/dist/types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/ECR.d.ts +24 -15
- package/dist/types/ts3.4/ECRClient.d.ts +5 -2
- package/dist/types/ts3.4/commands/CreateRepositoryCommand.d.ts +1 -1
- package/dist/types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
- package/dist/types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +1 -1
- package/dist/types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +1 -1
- package/dist/types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +1 -1
- package/dist/types/ts3.4/commands/StartImageScanCommand.d.ts +3 -3
- package/dist/types/ts3.4/index.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +210 -100
- package/dist/types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/index.ts +1 -0
- package/models/models_0.ts +246 -108
- package/package.json +40 -40
- package/protocols/Aws_json1_1.ts +242 -10
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1StartImageScanCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutReplicationConfigurationCommand = exports.deserializeAws_json1_1PutRegistryPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutImageTagMutabilityCommand = exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListImagesCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRegistryPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistryCommand = exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = exports.deserializeAws_json1_1CreateRepositoryCommand = exports.deserializeAws_json1_1CompleteLayerUploadCommand = exports.deserializeAws_json1_1BatchGetImageCommand = exports.deserializeAws_json1_1BatchDeleteImageCommand = exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = exports.serializeAws_json1_1UploadLayerPartCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1StartImageScanCommand = exports.serializeAws_json1_1SetRepositoryPolicyCommand = exports.serializeAws_json1_1PutReplicationConfigurationCommand = exports.serializeAws_json1_1PutRegistryPolicyCommand = exports.serializeAws_json1_1PutLifecyclePolicyCommand = exports.serializeAws_json1_1PutImageTagMutabilityCommand = exports.serializeAws_json1_1PutImageScanningConfigurationCommand = exports.serializeAws_json1_1PutImageCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListImagesCommand = exports.serializeAws_json1_1InitiateLayerUploadCommand = exports.serializeAws_json1_1GetRepositoryPolicyCommand = exports.serializeAws_json1_1GetRegistryPolicyCommand = exports.serializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1GetLifecyclePolicyCommand = exports.serializeAws_json1_1GetDownloadUrlForLayerCommand = exports.serializeAws_json1_1GetAuthorizationTokenCommand = exports.serializeAws_json1_1DescribeRepositoriesCommand = exports.serializeAws_json1_1DescribeRegistryCommand = exports.serializeAws_json1_1DescribeImageScanFindingsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DescribeImageReplicationStatusCommand = exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = exports.serializeAws_json1_1DeleteRepositoryCommand = exports.serializeAws_json1_1DeleteRegistryPolicyCommand = exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = exports.serializeAws_json1_1CreateRepositoryCommand = exports.serializeAws_json1_1CompleteLayerUploadCommand = exports.serializeAws_json1_1BatchGetImageCommand = exports.serializeAws_json1_1BatchDeleteImageCommand = exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1StartImageScanCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutReplicationConfigurationCommand = exports.deserializeAws_json1_1PutRegistryPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutImageTagMutabilityCommand = exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListImagesCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRegistryPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1GetLifecyclePolicyCommand = exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
@@ -94,6 +94,16 @@ const serializeAws_json1_1DeleteRepositoryPolicyCommand = async (input, context)
|
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
96
|
exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = serializeAws_json1_1DeleteRepositoryPolicyCommand;
|
|
97
|
+
const serializeAws_json1_1DescribeImageReplicationStatusCommand = async (input, context) => {
|
|
98
|
+
const headers = {
|
|
99
|
+
"content-type": "application/x-amz-json-1.1",
|
|
100
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus",
|
|
101
|
+
};
|
|
102
|
+
let body;
|
|
103
|
+
body = JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(input, context));
|
|
104
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
+
};
|
|
106
|
+
exports.serializeAws_json1_1DescribeImageReplicationStatusCommand = serializeAws_json1_1DescribeImageReplicationStatusCommand;
|
|
97
107
|
const serializeAws_json1_1DescribeImagesCommand = async (input, context) => {
|
|
98
108
|
const headers = {
|
|
99
109
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -857,6 +867,14 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, co
|
|
|
857
867
|
$metadata: deserializeMetadata(output),
|
|
858
868
|
};
|
|
859
869
|
break;
|
|
870
|
+
case "ValidationException":
|
|
871
|
+
case "com.amazonaws.ecr#ValidationException":
|
|
872
|
+
response = {
|
|
873
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
874
|
+
name: errorCode,
|
|
875
|
+
$metadata: deserializeMetadata(output),
|
|
876
|
+
};
|
|
877
|
+
break;
|
|
860
878
|
default:
|
|
861
879
|
const parsedBody = parsedOutput.body;
|
|
862
880
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1023,6 +1041,85 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
1023
1041
|
delete response.Message;
|
|
1024
1042
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1025
1043
|
};
|
|
1044
|
+
const deserializeAws_json1_1DescribeImageReplicationStatusCommand = async (output, context) => {
|
|
1045
|
+
if (output.statusCode >= 300) {
|
|
1046
|
+
return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(output, context);
|
|
1047
|
+
}
|
|
1048
|
+
const data = await parseBody(output.body, context);
|
|
1049
|
+
let contents = {};
|
|
1050
|
+
contents = deserializeAws_json1_1DescribeImageReplicationStatusResponse(data, context);
|
|
1051
|
+
const response = {
|
|
1052
|
+
$metadata: deserializeMetadata(output),
|
|
1053
|
+
...contents,
|
|
1054
|
+
};
|
|
1055
|
+
return Promise.resolve(response);
|
|
1056
|
+
};
|
|
1057
|
+
exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = deserializeAws_json1_1DescribeImageReplicationStatusCommand;
|
|
1058
|
+
const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (output, context) => {
|
|
1059
|
+
const parsedOutput = {
|
|
1060
|
+
...output,
|
|
1061
|
+
body: await parseBody(output.body, context),
|
|
1062
|
+
};
|
|
1063
|
+
let response;
|
|
1064
|
+
let errorCode = "UnknownError";
|
|
1065
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
switch (errorCode) {
|
|
1067
|
+
case "ImageNotFoundException":
|
|
1068
|
+
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1069
|
+
response = {
|
|
1070
|
+
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1071
|
+
name: errorCode,
|
|
1072
|
+
$metadata: deserializeMetadata(output),
|
|
1073
|
+
};
|
|
1074
|
+
break;
|
|
1075
|
+
case "InvalidParameterException":
|
|
1076
|
+
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1077
|
+
response = {
|
|
1078
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1079
|
+
name: errorCode,
|
|
1080
|
+
$metadata: deserializeMetadata(output),
|
|
1081
|
+
};
|
|
1082
|
+
break;
|
|
1083
|
+
case "RepositoryNotFoundException":
|
|
1084
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1085
|
+
response = {
|
|
1086
|
+
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1087
|
+
name: errorCode,
|
|
1088
|
+
$metadata: deserializeMetadata(output),
|
|
1089
|
+
};
|
|
1090
|
+
break;
|
|
1091
|
+
case "ServerException":
|
|
1092
|
+
case "com.amazonaws.ecr#ServerException":
|
|
1093
|
+
response = {
|
|
1094
|
+
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1095
|
+
name: errorCode,
|
|
1096
|
+
$metadata: deserializeMetadata(output),
|
|
1097
|
+
};
|
|
1098
|
+
break;
|
|
1099
|
+
case "ValidationException":
|
|
1100
|
+
case "com.amazonaws.ecr#ValidationException":
|
|
1101
|
+
response = {
|
|
1102
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1103
|
+
name: errorCode,
|
|
1104
|
+
$metadata: deserializeMetadata(output),
|
|
1105
|
+
};
|
|
1106
|
+
break;
|
|
1107
|
+
default:
|
|
1108
|
+
const parsedBody = parsedOutput.body;
|
|
1109
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1110
|
+
response = {
|
|
1111
|
+
...parsedBody,
|
|
1112
|
+
name: `${errorCode}`,
|
|
1113
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1114
|
+
$fault: "client",
|
|
1115
|
+
$metadata: deserializeMetadata(output),
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
const message = response.message || response.Message || errorCode;
|
|
1119
|
+
response.message = message;
|
|
1120
|
+
delete response.Message;
|
|
1121
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1122
|
+
};
|
|
1026
1123
|
const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => {
|
|
1027
1124
|
if (output.statusCode >= 300) {
|
|
1028
1125
|
return deserializeAws_json1_1DescribeImagesCommandError(output, context);
|
|
@@ -1622,6 +1719,14 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
|
|
|
1622
1719
|
$metadata: deserializeMetadata(output),
|
|
1623
1720
|
};
|
|
1624
1721
|
break;
|
|
1722
|
+
case "ValidationException":
|
|
1723
|
+
case "com.amazonaws.ecr#ValidationException":
|
|
1724
|
+
response = {
|
|
1725
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1726
|
+
name: errorCode,
|
|
1727
|
+
$metadata: deserializeMetadata(output),
|
|
1728
|
+
};
|
|
1729
|
+
break;
|
|
1625
1730
|
default:
|
|
1626
1731
|
const parsedBody = parsedOutput.body;
|
|
1627
1732
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2253,6 +2358,14 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
|
|
|
2253
2358
|
$metadata: deserializeMetadata(output),
|
|
2254
2359
|
};
|
|
2255
2360
|
break;
|
|
2361
|
+
case "ValidationException":
|
|
2362
|
+
case "com.amazonaws.ecr#ValidationException":
|
|
2363
|
+
response = {
|
|
2364
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2365
|
+
name: errorCode,
|
|
2366
|
+
$metadata: deserializeMetadata(output),
|
|
2367
|
+
};
|
|
2368
|
+
break;
|
|
2256
2369
|
default:
|
|
2257
2370
|
const parsedBody = parsedOutput.body;
|
|
2258
2371
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3211,6 +3324,7 @@ const serializeAws_json1_1CreateRepositoryRequest = (input, context) => {
|
|
|
3211
3324
|
}),
|
|
3212
3325
|
...(input.imageTagMutability !== undefined &&
|
|
3213
3326
|
input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }),
|
|
3327
|
+
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
3214
3328
|
...(input.repositoryName !== undefined &&
|
|
3215
3329
|
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3216
3330
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
@@ -3241,6 +3355,15 @@ const serializeAws_json1_1DeleteRepositoryRequest = (input, context) => {
|
|
|
3241
3355
|
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3242
3356
|
};
|
|
3243
3357
|
};
|
|
3358
|
+
const serializeAws_json1_1DescribeImageReplicationStatusRequest = (input, context) => {
|
|
3359
|
+
return {
|
|
3360
|
+
...(input.imageId !== undefined &&
|
|
3361
|
+
input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
|
|
3362
|
+
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
3363
|
+
...(input.repositoryName !== undefined &&
|
|
3364
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3365
|
+
};
|
|
3366
|
+
};
|
|
3244
3367
|
const serializeAws_json1_1DescribeImageScanFindingsRequest = (input, context) => {
|
|
3245
3368
|
return {
|
|
3246
3369
|
...(input.imageId !== undefined &&
|
|
@@ -3503,6 +3626,10 @@ const serializeAws_json1_1ReplicationRule = (input, context) => {
|
|
|
3503
3626
|
input.destinations !== null && {
|
|
3504
3627
|
destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
|
|
3505
3628
|
}),
|
|
3629
|
+
...(input.repositoryFilters !== undefined &&
|
|
3630
|
+
input.repositoryFilters !== null && {
|
|
3631
|
+
repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
|
|
3632
|
+
}),
|
|
3506
3633
|
};
|
|
3507
3634
|
};
|
|
3508
3635
|
const serializeAws_json1_1ReplicationRuleList = (input, context) => {
|
|
@@ -3515,6 +3642,22 @@ const serializeAws_json1_1ReplicationRuleList = (input, context) => {
|
|
|
3515
3642
|
return serializeAws_json1_1ReplicationRule(entry, context);
|
|
3516
3643
|
});
|
|
3517
3644
|
};
|
|
3645
|
+
const serializeAws_json1_1RepositoryFilter = (input, context) => {
|
|
3646
|
+
return {
|
|
3647
|
+
...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
|
|
3648
|
+
...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }),
|
|
3649
|
+
};
|
|
3650
|
+
};
|
|
3651
|
+
const serializeAws_json1_1RepositoryFilterList = (input, context) => {
|
|
3652
|
+
return input
|
|
3653
|
+
.filter((e) => e != null)
|
|
3654
|
+
.map((entry) => {
|
|
3655
|
+
if (entry === null) {
|
|
3656
|
+
return null;
|
|
3657
|
+
}
|
|
3658
|
+
return serializeAws_json1_1RepositoryFilter(entry, context);
|
|
3659
|
+
});
|
|
3660
|
+
};
|
|
3518
3661
|
const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
3519
3662
|
return input
|
|
3520
3663
|
.filter((e) => e != null)
|
|
@@ -3605,8 +3748,8 @@ const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
|
|
|
3605
3748
|
};
|
|
3606
3749
|
const deserializeAws_json1_1Attribute = (output, context) => {
|
|
3607
3750
|
return {
|
|
3608
|
-
key:
|
|
3609
|
-
value:
|
|
3751
|
+
key: smithy_client_1.expectString(output.key),
|
|
3752
|
+
value: smithy_client_1.expectString(output.value),
|
|
3610
3753
|
};
|
|
3611
3754
|
};
|
|
3612
3755
|
const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
@@ -3621,11 +3764,11 @@ const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
|
3621
3764
|
};
|
|
3622
3765
|
const deserializeAws_json1_1AuthorizationData = (output, context) => {
|
|
3623
3766
|
return {
|
|
3624
|
-
authorizationToken:
|
|
3767
|
+
authorizationToken: smithy_client_1.expectString(output.authorizationToken),
|
|
3625
3768
|
expiresAt: output.expiresAt !== undefined && output.expiresAt !== null
|
|
3626
|
-
?
|
|
3769
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.expiresAt)))
|
|
3627
3770
|
: undefined,
|
|
3628
|
-
proxyEndpoint:
|
|
3771
|
+
proxyEndpoint: smithy_client_1.expectString(output.proxyEndpoint),
|
|
3629
3772
|
};
|
|
3630
3773
|
};
|
|
3631
3774
|
const deserializeAws_json1_1AuthorizationDataList = (output, context) => {
|
|
@@ -3670,10 +3813,10 @@ const deserializeAws_json1_1BatchGetImageResponse = (output, context) => {
|
|
|
3670
3813
|
};
|
|
3671
3814
|
const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
3672
3815
|
return {
|
|
3673
|
-
layerDigest:
|
|
3674
|
-
registryId:
|
|
3675
|
-
repositoryName:
|
|
3676
|
-
uploadId:
|
|
3816
|
+
layerDigest: smithy_client_1.expectString(output.layerDigest),
|
|
3817
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3818
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3819
|
+
uploadId: smithy_client_1.expectString(output.uploadId),
|
|
3677
3820
|
};
|
|
3678
3821
|
};
|
|
3679
3822
|
const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
|
|
@@ -3686,24 +3829,24 @@ const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
|
|
|
3686
3829
|
const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) => {
|
|
3687
3830
|
return {
|
|
3688
3831
|
lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
|
|
3689
|
-
?
|
|
3832
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastEvaluatedAt)))
|
|
3690
3833
|
: undefined,
|
|
3691
|
-
lifecyclePolicyText:
|
|
3692
|
-
registryId:
|
|
3693
|
-
repositoryName:
|
|
3834
|
+
lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText),
|
|
3835
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3836
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3694
3837
|
};
|
|
3695
3838
|
};
|
|
3696
3839
|
const deserializeAws_json1_1DeleteRegistryPolicyResponse = (output, context) => {
|
|
3697
3840
|
return {
|
|
3698
|
-
policyText:
|
|
3699
|
-
registryId:
|
|
3841
|
+
policyText: smithy_client_1.expectString(output.policyText),
|
|
3842
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3700
3843
|
};
|
|
3701
3844
|
};
|
|
3702
3845
|
const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) => {
|
|
3703
3846
|
return {
|
|
3704
|
-
policyText:
|
|
3705
|
-
registryId:
|
|
3706
|
-
repositoryName:
|
|
3847
|
+
policyText: smithy_client_1.expectString(output.policyText),
|
|
3848
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3849
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3707
3850
|
};
|
|
3708
3851
|
};
|
|
3709
3852
|
const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => {
|
|
@@ -3713,6 +3856,17 @@ const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => {
|
|
|
3713
3856
|
: undefined,
|
|
3714
3857
|
};
|
|
3715
3858
|
};
|
|
3859
|
+
const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (output, context) => {
|
|
3860
|
+
return {
|
|
3861
|
+
imageId: output.imageId !== undefined && output.imageId !== null
|
|
3862
|
+
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3863
|
+
: undefined,
|
|
3864
|
+
replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null
|
|
3865
|
+
? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
|
|
3866
|
+
: undefined,
|
|
3867
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3868
|
+
};
|
|
3869
|
+
};
|
|
3716
3870
|
const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context) => {
|
|
3717
3871
|
return {
|
|
3718
3872
|
imageId: output.imageId !== undefined && output.imageId !== null
|
|
@@ -3724,9 +3878,9 @@ const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context
|
|
|
3724
3878
|
imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
|
|
3725
3879
|
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
3726
3880
|
: undefined,
|
|
3727
|
-
nextToken:
|
|
3728
|
-
registryId:
|
|
3729
|
-
repositoryName:
|
|
3881
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
3882
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3883
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3730
3884
|
};
|
|
3731
3885
|
};
|
|
3732
3886
|
const deserializeAws_json1_1DescribeImagesResponse = (output, context) => {
|
|
@@ -3734,12 +3888,12 @@ const deserializeAws_json1_1DescribeImagesResponse = (output, context) => {
|
|
|
3734
3888
|
imageDetails: output.imageDetails !== undefined && output.imageDetails !== null
|
|
3735
3889
|
? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
|
|
3736
3890
|
: undefined,
|
|
3737
|
-
nextToken:
|
|
3891
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
3738
3892
|
};
|
|
3739
3893
|
};
|
|
3740
3894
|
const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
|
|
3741
3895
|
return {
|
|
3742
|
-
registryId:
|
|
3896
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3743
3897
|
replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
|
|
3744
3898
|
? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
|
|
3745
3899
|
: undefined,
|
|
@@ -3747,7 +3901,7 @@ const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
|
|
|
3747
3901
|
};
|
|
3748
3902
|
const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) => {
|
|
3749
3903
|
return {
|
|
3750
|
-
nextToken:
|
|
3904
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
3751
3905
|
repositories: output.repositories !== undefined && output.repositories !== null
|
|
3752
3906
|
? deserializeAws_json1_1RepositoryList(output.repositories, context)
|
|
3753
3907
|
: undefined,
|
|
@@ -3755,13 +3909,13 @@ const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) =>
|
|
|
3755
3909
|
};
|
|
3756
3910
|
const deserializeAws_json1_1EmptyUploadException = (output, context) => {
|
|
3757
3911
|
return {
|
|
3758
|
-
message:
|
|
3912
|
+
message: smithy_client_1.expectString(output.message),
|
|
3759
3913
|
};
|
|
3760
3914
|
};
|
|
3761
3915
|
const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
|
|
3762
3916
|
return {
|
|
3763
|
-
encryptionType:
|
|
3764
|
-
kmsKey:
|
|
3917
|
+
encryptionType: smithy_client_1.expectString(output.encryptionType),
|
|
3918
|
+
kmsKey: smithy_client_1.expectString(output.kmsKey),
|
|
3765
3919
|
};
|
|
3766
3920
|
};
|
|
3767
3921
|
const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
|
|
@@ -3771,7 +3925,7 @@ const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
|
|
|
3771
3925
|
}
|
|
3772
3926
|
return {
|
|
3773
3927
|
...acc,
|
|
3774
|
-
[key]:
|
|
3928
|
+
[key]: smithy_client_1.expectInt32(value),
|
|
3775
3929
|
};
|
|
3776
3930
|
}, {});
|
|
3777
3931
|
};
|
|
@@ -3784,20 +3938,20 @@ const deserializeAws_json1_1GetAuthorizationTokenResponse = (output, context) =>
|
|
|
3784
3938
|
};
|
|
3785
3939
|
const deserializeAws_json1_1GetDownloadUrlForLayerResponse = (output, context) => {
|
|
3786
3940
|
return {
|
|
3787
|
-
downloadUrl:
|
|
3788
|
-
layerDigest:
|
|
3941
|
+
downloadUrl: smithy_client_1.expectString(output.downloadUrl),
|
|
3942
|
+
layerDigest: smithy_client_1.expectString(output.layerDigest),
|
|
3789
3943
|
};
|
|
3790
3944
|
};
|
|
3791
3945
|
const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = (output, context) => {
|
|
3792
3946
|
return {
|
|
3793
|
-
lifecyclePolicyText:
|
|
3794
|
-
nextToken:
|
|
3947
|
+
lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText),
|
|
3948
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
3795
3949
|
previewResults: output.previewResults !== undefined && output.previewResults !== null
|
|
3796
3950
|
? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context)
|
|
3797
3951
|
: undefined,
|
|
3798
|
-
registryId:
|
|
3799
|
-
repositoryName:
|
|
3800
|
-
status:
|
|
3952
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3953
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3954
|
+
status: smithy_client_1.expectString(output.status),
|
|
3801
3955
|
summary: output.summary !== undefined && output.summary !== null
|
|
3802
3956
|
? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context)
|
|
3803
3957
|
: undefined,
|
|
@@ -3806,24 +3960,24 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = (output, context
|
|
|
3806
3960
|
const deserializeAws_json1_1GetLifecyclePolicyResponse = (output, context) => {
|
|
3807
3961
|
return {
|
|
3808
3962
|
lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
|
|
3809
|
-
?
|
|
3963
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastEvaluatedAt)))
|
|
3810
3964
|
: undefined,
|
|
3811
|
-
lifecyclePolicyText:
|
|
3812
|
-
registryId:
|
|
3813
|
-
repositoryName:
|
|
3965
|
+
lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText),
|
|
3966
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3967
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3814
3968
|
};
|
|
3815
3969
|
};
|
|
3816
3970
|
const deserializeAws_json1_1GetRegistryPolicyResponse = (output, context) => {
|
|
3817
3971
|
return {
|
|
3818
|
-
policyText:
|
|
3819
|
-
registryId:
|
|
3972
|
+
policyText: smithy_client_1.expectString(output.policyText),
|
|
3973
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3820
3974
|
};
|
|
3821
3975
|
};
|
|
3822
3976
|
const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => {
|
|
3823
3977
|
return {
|
|
3824
|
-
policyText:
|
|
3825
|
-
registryId:
|
|
3826
|
-
repositoryName:
|
|
3978
|
+
policyText: smithy_client_1.expectString(output.policyText),
|
|
3979
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3980
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3827
3981
|
};
|
|
3828
3982
|
};
|
|
3829
3983
|
const deserializeAws_json1_1Image = (output, context) => {
|
|
@@ -3831,24 +3985,24 @@ const deserializeAws_json1_1Image = (output, context) => {
|
|
|
3831
3985
|
imageId: output.imageId !== undefined && output.imageId !== null
|
|
3832
3986
|
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3833
3987
|
: undefined,
|
|
3834
|
-
imageManifest:
|
|
3835
|
-
imageManifestMediaType:
|
|
3836
|
-
registryId:
|
|
3837
|
-
repositoryName:
|
|
3988
|
+
imageManifest: smithy_client_1.expectString(output.imageManifest),
|
|
3989
|
+
imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType),
|
|
3990
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
3991
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3838
3992
|
};
|
|
3839
3993
|
};
|
|
3840
3994
|
const deserializeAws_json1_1ImageAlreadyExistsException = (output, context) => {
|
|
3841
3995
|
return {
|
|
3842
|
-
message:
|
|
3996
|
+
message: smithy_client_1.expectString(output.message),
|
|
3843
3997
|
};
|
|
3844
3998
|
};
|
|
3845
3999
|
const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
3846
4000
|
return {
|
|
3847
|
-
artifactMediaType:
|
|
3848
|
-
imageDigest:
|
|
3849
|
-
imageManifestMediaType:
|
|
4001
|
+
artifactMediaType: smithy_client_1.expectString(output.artifactMediaType),
|
|
4002
|
+
imageDigest: smithy_client_1.expectString(output.imageDigest),
|
|
4003
|
+
imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType),
|
|
3850
4004
|
imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
|
|
3851
|
-
?
|
|
4005
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imagePushedAt)))
|
|
3852
4006
|
: undefined,
|
|
3853
4007
|
imageScanFindingsSummary: output.imageScanFindingsSummary !== undefined && output.imageScanFindingsSummary !== null
|
|
3854
4008
|
? deserializeAws_json1_1ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
|
|
@@ -3856,12 +4010,12 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
3856
4010
|
imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
|
|
3857
4011
|
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
3858
4012
|
: undefined,
|
|
3859
|
-
imageSizeInBytes:
|
|
4013
|
+
imageSizeInBytes: smithy_client_1.expectLong(output.imageSizeInBytes),
|
|
3860
4014
|
imageTags: output.imageTags !== undefined && output.imageTags !== null
|
|
3861
4015
|
? deserializeAws_json1_1ImageTagList(output.imageTags, context)
|
|
3862
4016
|
: undefined,
|
|
3863
|
-
registryId:
|
|
3864
|
-
repositoryName:
|
|
4017
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4018
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
3865
4019
|
};
|
|
3866
4020
|
};
|
|
3867
4021
|
const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
@@ -3876,13 +4030,13 @@ const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
|
3876
4030
|
};
|
|
3877
4031
|
const deserializeAws_json1_1ImageDigestDoesNotMatchException = (output, context) => {
|
|
3878
4032
|
return {
|
|
3879
|
-
message:
|
|
4033
|
+
message: smithy_client_1.expectString(output.message),
|
|
3880
4034
|
};
|
|
3881
4035
|
};
|
|
3882
4036
|
const deserializeAws_json1_1ImageFailure = (output, context) => {
|
|
3883
4037
|
return {
|
|
3884
|
-
failureCode:
|
|
3885
|
-
failureReason:
|
|
4038
|
+
failureCode: smithy_client_1.expectString(output.failureCode),
|
|
4039
|
+
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
3886
4040
|
imageId: output.imageId !== undefined && output.imageId !== null
|
|
3887
4041
|
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3888
4042
|
: undefined,
|
|
@@ -3900,8 +4054,8 @@ const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
|
3900
4054
|
};
|
|
3901
4055
|
const deserializeAws_json1_1ImageIdentifier = (output, context) => {
|
|
3902
4056
|
return {
|
|
3903
|
-
imageDigest:
|
|
3904
|
-
imageTag:
|
|
4057
|
+
imageDigest: smithy_client_1.expectString(output.imageDigest),
|
|
4058
|
+
imageTag: smithy_client_1.expectString(output.imageTag),
|
|
3905
4059
|
};
|
|
3906
4060
|
};
|
|
3907
4061
|
const deserializeAws_json1_1ImageIdentifierList = (output, context) => {
|
|
@@ -3926,18 +4080,36 @@ const deserializeAws_json1_1ImageList = (output, context) => {
|
|
|
3926
4080
|
};
|
|
3927
4081
|
const deserializeAws_json1_1ImageNotFoundException = (output, context) => {
|
|
3928
4082
|
return {
|
|
3929
|
-
message:
|
|
4083
|
+
message: smithy_client_1.expectString(output.message),
|
|
3930
4084
|
};
|
|
3931
4085
|
};
|
|
4086
|
+
const deserializeAws_json1_1ImageReplicationStatus = (output, context) => {
|
|
4087
|
+
return {
|
|
4088
|
+
failureCode: smithy_client_1.expectString(output.failureCode),
|
|
4089
|
+
region: smithy_client_1.expectString(output.region),
|
|
4090
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4091
|
+
status: smithy_client_1.expectString(output.status),
|
|
4092
|
+
};
|
|
4093
|
+
};
|
|
4094
|
+
const deserializeAws_json1_1ImageReplicationStatusList = (output, context) => {
|
|
4095
|
+
return (output || [])
|
|
4096
|
+
.filter((e) => e != null)
|
|
4097
|
+
.map((entry) => {
|
|
4098
|
+
if (entry === null) {
|
|
4099
|
+
return null;
|
|
4100
|
+
}
|
|
4101
|
+
return deserializeAws_json1_1ImageReplicationStatus(entry, context);
|
|
4102
|
+
});
|
|
4103
|
+
};
|
|
3932
4104
|
const deserializeAws_json1_1ImageScanFinding = (output, context) => {
|
|
3933
4105
|
return {
|
|
3934
4106
|
attributes: output.attributes !== undefined && output.attributes !== null
|
|
3935
4107
|
? deserializeAws_json1_1AttributeList(output.attributes, context)
|
|
3936
4108
|
: undefined,
|
|
3937
|
-
description:
|
|
3938
|
-
name:
|
|
3939
|
-
severity:
|
|
3940
|
-
uri:
|
|
4109
|
+
description: smithy_client_1.expectString(output.description),
|
|
4110
|
+
name: smithy_client_1.expectString(output.name),
|
|
4111
|
+
severity: smithy_client_1.expectString(output.severity),
|
|
4112
|
+
uri: smithy_client_1.expectString(output.uri),
|
|
3941
4113
|
};
|
|
3942
4114
|
};
|
|
3943
4115
|
const deserializeAws_json1_1ImageScanFindingList = (output, context) => {
|
|
@@ -3959,10 +4131,10 @@ const deserializeAws_json1_1ImageScanFindings = (output, context) => {
|
|
|
3959
4131
|
? deserializeAws_json1_1ImageScanFindingList(output.findings, context)
|
|
3960
4132
|
: undefined,
|
|
3961
4133
|
imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
|
|
3962
|
-
?
|
|
4134
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imageScanCompletedAt)))
|
|
3963
4135
|
: undefined,
|
|
3964
4136
|
vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
|
|
3965
|
-
?
|
|
4137
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vulnerabilitySourceUpdatedAt)))
|
|
3966
4138
|
: undefined,
|
|
3967
4139
|
};
|
|
3968
4140
|
};
|
|
@@ -3972,27 +4144,27 @@ const deserializeAws_json1_1ImageScanFindingsSummary = (output, context) => {
|
|
|
3972
4144
|
? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
|
|
3973
4145
|
: undefined,
|
|
3974
4146
|
imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
|
|
3975
|
-
?
|
|
4147
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imageScanCompletedAt)))
|
|
3976
4148
|
: undefined,
|
|
3977
4149
|
vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
|
|
3978
|
-
?
|
|
4150
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vulnerabilitySourceUpdatedAt)))
|
|
3979
4151
|
: undefined,
|
|
3980
4152
|
};
|
|
3981
4153
|
};
|
|
3982
4154
|
const deserializeAws_json1_1ImageScanningConfiguration = (output, context) => {
|
|
3983
4155
|
return {
|
|
3984
|
-
scanOnPush:
|
|
4156
|
+
scanOnPush: smithy_client_1.expectBoolean(output.scanOnPush),
|
|
3985
4157
|
};
|
|
3986
4158
|
};
|
|
3987
4159
|
const deserializeAws_json1_1ImageScanStatus = (output, context) => {
|
|
3988
4160
|
return {
|
|
3989
|
-
description:
|
|
3990
|
-
status:
|
|
4161
|
+
description: smithy_client_1.expectString(output.description),
|
|
4162
|
+
status: smithy_client_1.expectString(output.status),
|
|
3991
4163
|
};
|
|
3992
4164
|
};
|
|
3993
4165
|
const deserializeAws_json1_1ImageTagAlreadyExistsException = (output, context) => {
|
|
3994
4166
|
return {
|
|
3995
|
-
message:
|
|
4167
|
+
message: smithy_client_1.expectString(output.message),
|
|
3996
4168
|
};
|
|
3997
4169
|
};
|
|
3998
4170
|
const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
@@ -4002,63 +4174,63 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
|
4002
4174
|
if (entry === null) {
|
|
4003
4175
|
return null;
|
|
4004
4176
|
}
|
|
4005
|
-
return
|
|
4177
|
+
return smithy_client_1.expectString(entry);
|
|
4006
4178
|
});
|
|
4007
4179
|
};
|
|
4008
4180
|
const deserializeAws_json1_1InitiateLayerUploadResponse = (output, context) => {
|
|
4009
4181
|
return {
|
|
4010
|
-
partSize:
|
|
4011
|
-
uploadId:
|
|
4182
|
+
partSize: smithy_client_1.expectLong(output.partSize),
|
|
4183
|
+
uploadId: smithy_client_1.expectString(output.uploadId),
|
|
4012
4184
|
};
|
|
4013
4185
|
};
|
|
4014
4186
|
const deserializeAws_json1_1InvalidLayerException = (output, context) => {
|
|
4015
4187
|
return {
|
|
4016
|
-
message:
|
|
4188
|
+
message: smithy_client_1.expectString(output.message),
|
|
4017
4189
|
};
|
|
4018
4190
|
};
|
|
4019
4191
|
const deserializeAws_json1_1InvalidLayerPartException = (output, context) => {
|
|
4020
4192
|
return {
|
|
4021
|
-
lastValidByteReceived:
|
|
4022
|
-
message:
|
|
4023
|
-
registryId:
|
|
4024
|
-
repositoryName:
|
|
4025
|
-
uploadId:
|
|
4193
|
+
lastValidByteReceived: smithy_client_1.expectLong(output.lastValidByteReceived),
|
|
4194
|
+
message: smithy_client_1.expectString(output.message),
|
|
4195
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4196
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4197
|
+
uploadId: smithy_client_1.expectString(output.uploadId),
|
|
4026
4198
|
};
|
|
4027
4199
|
};
|
|
4028
4200
|
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
4029
4201
|
return {
|
|
4030
|
-
message:
|
|
4202
|
+
message: smithy_client_1.expectString(output.message),
|
|
4031
4203
|
};
|
|
4032
4204
|
};
|
|
4033
4205
|
const deserializeAws_json1_1InvalidTagParameterException = (output, context) => {
|
|
4034
4206
|
return {
|
|
4035
|
-
message:
|
|
4207
|
+
message: smithy_client_1.expectString(output.message),
|
|
4036
4208
|
};
|
|
4037
4209
|
};
|
|
4038
4210
|
const deserializeAws_json1_1KmsException = (output, context) => {
|
|
4039
4211
|
return {
|
|
4040
|
-
kmsError:
|
|
4041
|
-
message:
|
|
4212
|
+
kmsError: smithy_client_1.expectString(output.kmsError),
|
|
4213
|
+
message: smithy_client_1.expectString(output.message),
|
|
4042
4214
|
};
|
|
4043
4215
|
};
|
|
4044
4216
|
const deserializeAws_json1_1Layer = (output, context) => {
|
|
4045
4217
|
return {
|
|
4046
|
-
layerAvailability:
|
|
4047
|
-
layerDigest:
|
|
4048
|
-
layerSize:
|
|
4049
|
-
mediaType:
|
|
4218
|
+
layerAvailability: smithy_client_1.expectString(output.layerAvailability),
|
|
4219
|
+
layerDigest: smithy_client_1.expectString(output.layerDigest),
|
|
4220
|
+
layerSize: smithy_client_1.expectLong(output.layerSize),
|
|
4221
|
+
mediaType: smithy_client_1.expectString(output.mediaType),
|
|
4050
4222
|
};
|
|
4051
4223
|
};
|
|
4052
4224
|
const deserializeAws_json1_1LayerAlreadyExistsException = (output, context) => {
|
|
4053
4225
|
return {
|
|
4054
|
-
message:
|
|
4226
|
+
message: smithy_client_1.expectString(output.message),
|
|
4055
4227
|
};
|
|
4056
4228
|
};
|
|
4057
4229
|
const deserializeAws_json1_1LayerFailure = (output, context) => {
|
|
4058
4230
|
return {
|
|
4059
|
-
failureCode:
|
|
4060
|
-
failureReason:
|
|
4061
|
-
layerDigest:
|
|
4231
|
+
failureCode: smithy_client_1.expectString(output.failureCode),
|
|
4232
|
+
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
4233
|
+
layerDigest: smithy_client_1.expectString(output.layerDigest),
|
|
4062
4234
|
};
|
|
4063
4235
|
};
|
|
4064
4236
|
const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
@@ -4073,7 +4245,7 @@ const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
|
4073
4245
|
};
|
|
4074
4246
|
const deserializeAws_json1_1LayerInaccessibleException = (output, context) => {
|
|
4075
4247
|
return {
|
|
4076
|
-
message:
|
|
4248
|
+
message: smithy_client_1.expectString(output.message),
|
|
4077
4249
|
};
|
|
4078
4250
|
};
|
|
4079
4251
|
const deserializeAws_json1_1LayerList = (output, context) => {
|
|
@@ -4088,27 +4260,27 @@ const deserializeAws_json1_1LayerList = (output, context) => {
|
|
|
4088
4260
|
};
|
|
4089
4261
|
const deserializeAws_json1_1LayerPartTooSmallException = (output, context) => {
|
|
4090
4262
|
return {
|
|
4091
|
-
message:
|
|
4263
|
+
message: smithy_client_1.expectString(output.message),
|
|
4092
4264
|
};
|
|
4093
4265
|
};
|
|
4094
4266
|
const deserializeAws_json1_1LayersNotFoundException = (output, context) => {
|
|
4095
4267
|
return {
|
|
4096
|
-
message:
|
|
4268
|
+
message: smithy_client_1.expectString(output.message),
|
|
4097
4269
|
};
|
|
4098
4270
|
};
|
|
4099
4271
|
const deserializeAws_json1_1LifecyclePolicyNotFoundException = (output, context) => {
|
|
4100
4272
|
return {
|
|
4101
|
-
message:
|
|
4273
|
+
message: smithy_client_1.expectString(output.message),
|
|
4102
4274
|
};
|
|
4103
4275
|
};
|
|
4104
4276
|
const deserializeAws_json1_1LifecyclePolicyPreviewInProgressException = (output, context) => {
|
|
4105
4277
|
return {
|
|
4106
|
-
message:
|
|
4278
|
+
message: smithy_client_1.expectString(output.message),
|
|
4107
4279
|
};
|
|
4108
4280
|
};
|
|
4109
4281
|
const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException = (output, context) => {
|
|
4110
4282
|
return {
|
|
4111
|
-
message:
|
|
4283
|
+
message: smithy_client_1.expectString(output.message),
|
|
4112
4284
|
};
|
|
4113
4285
|
};
|
|
4114
4286
|
const deserializeAws_json1_1LifecyclePolicyPreviewResult = (output, context) => {
|
|
@@ -4116,10 +4288,10 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResult = (output, context) =>
|
|
|
4116
4288
|
action: output.action !== undefined && output.action !== null
|
|
4117
4289
|
? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context)
|
|
4118
4290
|
: undefined,
|
|
4119
|
-
appliedRulePriority:
|
|
4120
|
-
imageDigest:
|
|
4291
|
+
appliedRulePriority: smithy_client_1.expectInt32(output.appliedRulePriority),
|
|
4292
|
+
imageDigest: smithy_client_1.expectString(output.imageDigest),
|
|
4121
4293
|
imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
|
|
4122
|
-
?
|
|
4294
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imagePushedAt)))
|
|
4123
4295
|
: undefined,
|
|
4124
4296
|
imageTags: output.imageTags !== undefined && output.imageTags !== null
|
|
4125
4297
|
? deserializeAws_json1_1ImageTagList(output.imageTags, context)
|
|
@@ -4138,17 +4310,17 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResultList = (output, context)
|
|
|
4138
4310
|
};
|
|
4139
4311
|
const deserializeAws_json1_1LifecyclePolicyPreviewSummary = (output, context) => {
|
|
4140
4312
|
return {
|
|
4141
|
-
expiringImageTotalCount:
|
|
4313
|
+
expiringImageTotalCount: smithy_client_1.expectInt32(output.expiringImageTotalCount),
|
|
4142
4314
|
};
|
|
4143
4315
|
};
|
|
4144
4316
|
const deserializeAws_json1_1LifecyclePolicyRuleAction = (output, context) => {
|
|
4145
4317
|
return {
|
|
4146
|
-
type:
|
|
4318
|
+
type: smithy_client_1.expectString(output.type),
|
|
4147
4319
|
};
|
|
4148
4320
|
};
|
|
4149
4321
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
4150
4322
|
return {
|
|
4151
|
-
message:
|
|
4323
|
+
message: smithy_client_1.expectString(output.message),
|
|
4152
4324
|
};
|
|
4153
4325
|
};
|
|
4154
4326
|
const deserializeAws_json1_1ListImagesResponse = (output, context) => {
|
|
@@ -4156,7 +4328,7 @@ const deserializeAws_json1_1ListImagesResponse = (output, context) => {
|
|
|
4156
4328
|
imageIds: output.imageIds !== undefined && output.imageIds !== null
|
|
4157
4329
|
? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
|
|
4158
4330
|
: undefined,
|
|
4159
|
-
nextToken:
|
|
4331
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
4160
4332
|
};
|
|
4161
4333
|
};
|
|
4162
4334
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
@@ -4178,28 +4350,28 @@ const deserializeAws_json1_1PutImageScanningConfigurationResponse = (output, con
|
|
|
4178
4350
|
imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
|
|
4179
4351
|
? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
|
|
4180
4352
|
: undefined,
|
|
4181
|
-
registryId:
|
|
4182
|
-
repositoryName:
|
|
4353
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4354
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4183
4355
|
};
|
|
4184
4356
|
};
|
|
4185
4357
|
const deserializeAws_json1_1PutImageTagMutabilityResponse = (output, context) => {
|
|
4186
4358
|
return {
|
|
4187
|
-
imageTagMutability:
|
|
4188
|
-
registryId:
|
|
4189
|
-
repositoryName:
|
|
4359
|
+
imageTagMutability: smithy_client_1.expectString(output.imageTagMutability),
|
|
4360
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4361
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4190
4362
|
};
|
|
4191
4363
|
};
|
|
4192
4364
|
const deserializeAws_json1_1PutLifecyclePolicyResponse = (output, context) => {
|
|
4193
4365
|
return {
|
|
4194
|
-
lifecyclePolicyText:
|
|
4195
|
-
registryId:
|
|
4196
|
-
repositoryName:
|
|
4366
|
+
lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText),
|
|
4367
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4368
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4197
4369
|
};
|
|
4198
4370
|
};
|
|
4199
4371
|
const deserializeAws_json1_1PutRegistryPolicyResponse = (output, context) => {
|
|
4200
4372
|
return {
|
|
4201
|
-
policyText:
|
|
4202
|
-
registryId:
|
|
4373
|
+
policyText: smithy_client_1.expectString(output.policyText),
|
|
4374
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4203
4375
|
};
|
|
4204
4376
|
};
|
|
4205
4377
|
const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, context) => {
|
|
@@ -4211,12 +4383,12 @@ const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, conte
|
|
|
4211
4383
|
};
|
|
4212
4384
|
const deserializeAws_json1_1ReferencedImagesNotFoundException = (output, context) => {
|
|
4213
4385
|
return {
|
|
4214
|
-
message:
|
|
4386
|
+
message: smithy_client_1.expectString(output.message),
|
|
4215
4387
|
};
|
|
4216
4388
|
};
|
|
4217
4389
|
const deserializeAws_json1_1RegistryPolicyNotFoundException = (output, context) => {
|
|
4218
4390
|
return {
|
|
4219
|
-
message:
|
|
4391
|
+
message: smithy_client_1.expectString(output.message),
|
|
4220
4392
|
};
|
|
4221
4393
|
};
|
|
4222
4394
|
const deserializeAws_json1_1ReplicationConfiguration = (output, context) => {
|
|
@@ -4228,8 +4400,8 @@ const deserializeAws_json1_1ReplicationConfiguration = (output, context) => {
|
|
|
4228
4400
|
};
|
|
4229
4401
|
const deserializeAws_json1_1ReplicationDestination = (output, context) => {
|
|
4230
4402
|
return {
|
|
4231
|
-
region:
|
|
4232
|
-
registryId:
|
|
4403
|
+
region: smithy_client_1.expectString(output.region),
|
|
4404
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4233
4405
|
};
|
|
4234
4406
|
};
|
|
4235
4407
|
const deserializeAws_json1_1ReplicationDestinationList = (output, context) => {
|
|
@@ -4247,6 +4419,9 @@ const deserializeAws_json1_1ReplicationRule = (output, context) => {
|
|
|
4247
4419
|
destinations: output.destinations !== undefined && output.destinations !== null
|
|
4248
4420
|
? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
|
|
4249
4421
|
: undefined,
|
|
4422
|
+
repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
|
|
4423
|
+
? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
|
|
4424
|
+
: undefined,
|
|
4250
4425
|
};
|
|
4251
4426
|
};
|
|
4252
4427
|
const deserializeAws_json1_1ReplicationRuleList = (output, context) => {
|
|
@@ -4262,7 +4437,7 @@ const deserializeAws_json1_1ReplicationRuleList = (output, context) => {
|
|
|
4262
4437
|
const deserializeAws_json1_1Repository = (output, context) => {
|
|
4263
4438
|
return {
|
|
4264
4439
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4265
|
-
?
|
|
4440
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4266
4441
|
: undefined,
|
|
4267
4442
|
encryptionConfiguration: output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null
|
|
4268
4443
|
? deserializeAws_json1_1EncryptionConfiguration(output.encryptionConfiguration, context)
|
|
@@ -4270,18 +4445,34 @@ const deserializeAws_json1_1Repository = (output, context) => {
|
|
|
4270
4445
|
imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
|
|
4271
4446
|
? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
|
|
4272
4447
|
: undefined,
|
|
4273
|
-
imageTagMutability:
|
|
4274
|
-
registryId:
|
|
4275
|
-
repositoryArn:
|
|
4276
|
-
repositoryName:
|
|
4277
|
-
repositoryUri:
|
|
4448
|
+
imageTagMutability: smithy_client_1.expectString(output.imageTagMutability),
|
|
4449
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4450
|
+
repositoryArn: smithy_client_1.expectString(output.repositoryArn),
|
|
4451
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4452
|
+
repositoryUri: smithy_client_1.expectString(output.repositoryUri),
|
|
4278
4453
|
};
|
|
4279
4454
|
};
|
|
4280
4455
|
const deserializeAws_json1_1RepositoryAlreadyExistsException = (output, context) => {
|
|
4281
4456
|
return {
|
|
4282
|
-
message:
|
|
4457
|
+
message: smithy_client_1.expectString(output.message),
|
|
4283
4458
|
};
|
|
4284
4459
|
};
|
|
4460
|
+
const deserializeAws_json1_1RepositoryFilter = (output, context) => {
|
|
4461
|
+
return {
|
|
4462
|
+
filter: smithy_client_1.expectString(output.filter),
|
|
4463
|
+
filterType: smithy_client_1.expectString(output.filterType),
|
|
4464
|
+
};
|
|
4465
|
+
};
|
|
4466
|
+
const deserializeAws_json1_1RepositoryFilterList = (output, context) => {
|
|
4467
|
+
return (output || [])
|
|
4468
|
+
.filter((e) => e != null)
|
|
4469
|
+
.map((entry) => {
|
|
4470
|
+
if (entry === null) {
|
|
4471
|
+
return null;
|
|
4472
|
+
}
|
|
4473
|
+
return deserializeAws_json1_1RepositoryFilter(entry, context);
|
|
4474
|
+
});
|
|
4475
|
+
};
|
|
4285
4476
|
const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
4286
4477
|
return (output || [])
|
|
4287
4478
|
.filter((e) => e != null)
|
|
@@ -4294,34 +4485,34 @@ const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
|
4294
4485
|
};
|
|
4295
4486
|
const deserializeAws_json1_1RepositoryNotEmptyException = (output, context) => {
|
|
4296
4487
|
return {
|
|
4297
|
-
message:
|
|
4488
|
+
message: smithy_client_1.expectString(output.message),
|
|
4298
4489
|
};
|
|
4299
4490
|
};
|
|
4300
4491
|
const deserializeAws_json1_1RepositoryNotFoundException = (output, context) => {
|
|
4301
4492
|
return {
|
|
4302
|
-
message:
|
|
4493
|
+
message: smithy_client_1.expectString(output.message),
|
|
4303
4494
|
};
|
|
4304
4495
|
};
|
|
4305
4496
|
const deserializeAws_json1_1RepositoryPolicyNotFoundException = (output, context) => {
|
|
4306
4497
|
return {
|
|
4307
|
-
message:
|
|
4498
|
+
message: smithy_client_1.expectString(output.message),
|
|
4308
4499
|
};
|
|
4309
4500
|
};
|
|
4310
4501
|
const deserializeAws_json1_1ScanNotFoundException = (output, context) => {
|
|
4311
4502
|
return {
|
|
4312
|
-
message:
|
|
4503
|
+
message: smithy_client_1.expectString(output.message),
|
|
4313
4504
|
};
|
|
4314
4505
|
};
|
|
4315
4506
|
const deserializeAws_json1_1ServerException = (output, context) => {
|
|
4316
4507
|
return {
|
|
4317
|
-
message:
|
|
4508
|
+
message: smithy_client_1.expectString(output.message),
|
|
4318
4509
|
};
|
|
4319
4510
|
};
|
|
4320
4511
|
const deserializeAws_json1_1SetRepositoryPolicyResponse = (output, context) => {
|
|
4321
4512
|
return {
|
|
4322
|
-
policyText:
|
|
4323
|
-
registryId:
|
|
4324
|
-
repositoryName:
|
|
4513
|
+
policyText: smithy_client_1.expectString(output.policyText),
|
|
4514
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4515
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4325
4516
|
};
|
|
4326
4517
|
};
|
|
4327
4518
|
const deserializeAws_json1_1StartImageScanResponse = (output, context) => {
|
|
@@ -4332,22 +4523,22 @@ const deserializeAws_json1_1StartImageScanResponse = (output, context) => {
|
|
|
4332
4523
|
imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
|
|
4333
4524
|
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
4334
4525
|
: undefined,
|
|
4335
|
-
registryId:
|
|
4336
|
-
repositoryName:
|
|
4526
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4527
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4337
4528
|
};
|
|
4338
4529
|
};
|
|
4339
4530
|
const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse = (output, context) => {
|
|
4340
4531
|
return {
|
|
4341
|
-
lifecyclePolicyText:
|
|
4342
|
-
registryId:
|
|
4343
|
-
repositoryName:
|
|
4344
|
-
status:
|
|
4532
|
+
lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText),
|
|
4533
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4534
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4535
|
+
status: smithy_client_1.expectString(output.status),
|
|
4345
4536
|
};
|
|
4346
4537
|
};
|
|
4347
4538
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
4348
4539
|
return {
|
|
4349
|
-
Key:
|
|
4350
|
-
Value:
|
|
4540
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
4541
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
4351
4542
|
};
|
|
4352
4543
|
};
|
|
4353
4544
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
@@ -4365,12 +4556,12 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
4365
4556
|
};
|
|
4366
4557
|
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
4367
4558
|
return {
|
|
4368
|
-
message:
|
|
4559
|
+
message: smithy_client_1.expectString(output.message),
|
|
4369
4560
|
};
|
|
4370
4561
|
};
|
|
4371
4562
|
const deserializeAws_json1_1UnsupportedImageTypeException = (output, context) => {
|
|
4372
4563
|
return {
|
|
4373
|
-
message:
|
|
4564
|
+
message: smithy_client_1.expectString(output.message),
|
|
4374
4565
|
};
|
|
4375
4566
|
};
|
|
4376
4567
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
@@ -4378,20 +4569,20 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
4378
4569
|
};
|
|
4379
4570
|
const deserializeAws_json1_1UploadLayerPartResponse = (output, context) => {
|
|
4380
4571
|
return {
|
|
4381
|
-
lastByteReceived:
|
|
4382
|
-
registryId:
|
|
4383
|
-
repositoryName:
|
|
4384
|
-
uploadId:
|
|
4572
|
+
lastByteReceived: smithy_client_1.expectLong(output.lastByteReceived),
|
|
4573
|
+
registryId: smithy_client_1.expectString(output.registryId),
|
|
4574
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
4575
|
+
uploadId: smithy_client_1.expectString(output.uploadId),
|
|
4385
4576
|
};
|
|
4386
4577
|
};
|
|
4387
4578
|
const deserializeAws_json1_1UploadNotFoundException = (output, context) => {
|
|
4388
4579
|
return {
|
|
4389
|
-
message:
|
|
4580
|
+
message: smithy_client_1.expectString(output.message),
|
|
4390
4581
|
};
|
|
4391
4582
|
};
|
|
4392
4583
|
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
4393
4584
|
return {
|
|
4394
|
-
message:
|
|
4585
|
+
message: smithy_client_1.expectString(output.message),
|
|
4395
4586
|
};
|
|
4396
4587
|
};
|
|
4397
4588
|
const deserializeMetadata = (output) => {
|