@aws-sdk/client-ecr-public 3.31.0 → 3.35.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/{dist/cjs → dist-cjs}/ECRPUBLIC.js +2 -2
- package/dist-cjs/ECRPUBLIC.js.map +1 -0
- package/{dist/cjs → dist-cjs}/ECRPUBLICClient.js +14 -14
- package/dist-cjs/ECRPUBLICClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/BatchCheckLayerAvailabilityCommand.js +5 -5
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/BatchDeleteImageCommand.js +5 -5
- package/dist-cjs/commands/BatchDeleteImageCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CompleteLayerUploadCommand.js +5 -5
- package/dist-cjs/commands/CompleteLayerUploadCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateRepositoryCommand.js +5 -5
- package/dist-cjs/commands/CreateRepositoryCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteRepositoryCommand.js +5 -5
- package/dist-cjs/commands/DeleteRepositoryCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteRepositoryPolicyCommand.js +5 -5
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeImageTagsCommand.js +5 -5
- package/dist-cjs/commands/DescribeImageTagsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeImagesCommand.js +5 -5
- package/dist-cjs/commands/DescribeImagesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeRegistriesCommand.js +5 -5
- package/dist-cjs/commands/DescribeRegistriesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeRepositoriesCommand.js +5 -5
- package/dist-cjs/commands/DescribeRepositoriesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAuthorizationTokenCommand.js +5 -5
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRegistryCatalogDataCommand.js +5 -5
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRepositoryCatalogDataCommand.js +5 -5
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetRepositoryPolicyCommand.js +5 -5
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/InitiateLayerUploadCommand.js +5 -5
- package/dist-cjs/commands/InitiateLayerUploadCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutImageCommand.js +5 -5
- package/dist-cjs/commands/PutImageCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutRegistryCatalogDataCommand.js +5 -5
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutRepositoryCatalogDataCommand.js +5 -5
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/SetRepositoryPolicyCommand.js +5 -5
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UploadLayerPartCommand.js +5 -5
- package/dist-cjs/commands/UploadLayerPartCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +35 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeImageTagsPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeImageTagsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeImagesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeImagesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeRegistriesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeRegistriesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeRepositoriesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +105 -105
- package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/ECRPUBLIC.js +3 -12
- package/dist-es/ECRPUBLIC.js.map +1 -0
- package/{dist/es → dist-es}/ECRPUBLICClient.js +2 -16
- package/dist-es/ECRPUBLICClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/BatchCheckLayerAvailabilityCommand.js +4 -35
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/BatchDeleteImageCommand.js +4 -34
- package/dist-es/commands/BatchDeleteImageCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CompleteLayerUploadCommand.js +4 -36
- package/dist-es/commands/CompleteLayerUploadCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateRepositoryCommand.js +4 -30
- package/dist-es/commands/CreateRepositoryCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteRepositoryCommand.js +4 -31
- package/dist-es/commands/DeleteRepositoryCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteRepositoryPolicyCommand.js +4 -29
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeImageTagsCommand.js +4 -29
- package/dist-es/commands/DescribeImageTagsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeImagesCommand.js +4 -35
- package/dist-es/commands/DescribeImagesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeRegistriesCommand.js +4 -29
- package/dist-es/commands/DescribeRegistriesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeRepositoriesCommand.js +4 -29
- package/dist-es/commands/DescribeRepositoriesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAuthorizationTokenCommand.js +4 -33
- package/dist-es/commands/GetAuthorizationTokenCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRegistryCatalogDataCommand.js +4 -29
- package/dist-es/commands/GetRegistryCatalogDataCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRepositoryCatalogDataCommand.js +4 -30
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetRepositoryPolicyCommand.js +4 -29
- package/dist-es/commands/GetRepositoryPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/InitiateLayerUploadCommand.js +4 -35
- package/dist-es/commands/InitiateLayerUploadCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutImageCommand.js +4 -36
- package/dist-es/commands/PutImageCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutRegistryCatalogDataCommand.js +4 -29
- package/dist-es/commands/PutRegistryCatalogDataCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutRepositoryCatalogDataCommand.js +4 -29
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/SetRepositoryPolicyCommand.js +4 -31
- package/dist-es/commands/SetRepositoryPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -32
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UploadLayerPartCommand.js +4 -35
- package/dist-es/commands/UploadLayerPartCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -255
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeImageTagsPaginator.js +17 -29
- package/dist-es/pagination/DescribeImageTagsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeImagesPaginator.js +17 -29
- package/dist-es/pagination/DescribeImagesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeRegistriesPaginator.js +17 -29
- package/dist-es/pagination/DescribeRegistriesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeRepositoriesPaginator.js +17 -29
- package/dist-es/pagination/DescribeRepositoriesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +590 -595
- package/dist-es/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/ECRPUBLIC.d.ts +3 -3
- package/{dist/types → dist-types}/ECRPUBLICClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchDeleteImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CompleteLayerUploadCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeImageTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeImagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRegistriesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRepositoriesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAuthorizationTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRegistryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRepositoryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/InitiateLayerUploadCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRegistryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRepositoryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UploadLayerPartCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeImageTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeImagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeRegistriesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ECRPUBLIC.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/ECRPUBLICClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/BatchDeleteImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CompleteLayerUploadCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeImageTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeImagesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRegistriesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRepositoriesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetRegistryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetRepositoryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/InitiateLayerUploadCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutImageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutRegistryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutRepositoryCatalogDataCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UploadLayerPartCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeImageTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeImagesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeRegistriesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{ECRPUBLIC.ts → src/ECRPUBLIC.ts} +8 -7
- package/{ECRPUBLICClient.ts → src/ECRPUBLICClient.ts} +59 -58
- package/{commands → src/commands}/BatchCheckLayerAvailabilityCommand.ts +8 -7
- package/{commands → src/commands}/BatchDeleteImageCommand.ts +8 -7
- package/{commands → src/commands}/CompleteLayerUploadCommand.ts +8 -7
- package/{commands → src/commands}/CreateRepositoryCommand.ts +8 -7
- package/{commands → src/commands}/DeleteRepositoryCommand.ts +8 -7
- package/{commands → src/commands}/DeleteRepositoryPolicyCommand.ts +8 -7
- package/{commands → src/commands}/DescribeImageTagsCommand.ts +8 -7
- package/{commands → src/commands}/DescribeImagesCommand.ts +8 -7
- package/{commands → src/commands}/DescribeRegistriesCommand.ts +8 -7
- package/{commands → src/commands}/DescribeRepositoriesCommand.ts +8 -7
- package/{commands → src/commands}/GetAuthorizationTokenCommand.ts +8 -7
- package/{commands → src/commands}/GetRegistryCatalogDataCommand.ts +8 -7
- package/{commands → src/commands}/GetRepositoryCatalogDataCommand.ts +8 -7
- package/{commands → src/commands}/GetRepositoryPolicyCommand.ts +8 -7
- package/{commands → src/commands}/InitiateLayerUploadCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/PutImageCommand.ts +5 -4
- package/{commands → src/commands}/PutRegistryCatalogDataCommand.ts +8 -7
- package/{commands → src/commands}/PutRepositoryCatalogDataCommand.ts +8 -7
- package/{commands → src/commands}/SetRepositoryPolicyCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UploadLayerPartCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/DescribeImageTagsPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeImagesPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeRegistriesPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeRepositoriesPaginator.ts +4 -3
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{protocols → src/protocols}/Aws_json1_1.ts +44 -43
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/ECRPUBLIC.js.map +0 -1
- package/dist/cjs/ECRPUBLICClient.js.map +0 -1
- package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
- package/dist/cjs/commands/BatchDeleteImageCommand.js.map +0 -1
- package/dist/cjs/commands/CompleteLayerUploadCommand.js.map +0 -1
- package/dist/cjs/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeImageTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeImagesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRegistriesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist/cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist/cjs/commands/GetRegistryCatalogDataCommand.js.map +0 -1
- package/dist/cjs/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
- package/dist/cjs/commands/GetRepositoryPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/InitiateLayerUploadCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PutImageCommand.js.map +0 -1
- package/dist/cjs/commands/PutRegistryCatalogDataCommand.js.map +0 -1
- package/dist/cjs/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
- package/dist/cjs/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UploadLayerPartCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -35
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeImageTagsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeRegistriesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ECRPUBLIC.js.map +0 -1
- package/dist/es/ECRPUBLICClient.js.map +0 -1
- package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
- package/dist/es/commands/BatchDeleteImageCommand.js.map +0 -1
- package/dist/es/commands/CompleteLayerUploadCommand.js.map +0 -1
- package/dist/es/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist/es/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeImageTagsCommand.js.map +0 -1
- package/dist/es/commands/DescribeImagesCommand.js.map +0 -1
- package/dist/es/commands/DescribeRegistriesCommand.js.map +0 -1
- package/dist/es/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist/es/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist/es/commands/GetRegistryCatalogDataCommand.js.map +0 -1
- package/dist/es/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
- package/dist/es/commands/GetRepositoryPolicyCommand.js.map +0 -1
- package/dist/es/commands/InitiateLayerUploadCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PutImageCommand.js.map +0 -1
- package/dist/es/commands/PutRegistryCatalogDataCommand.js.map +0 -1
- package/dist/es/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
- package/dist/es/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UploadLayerPartCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeImageTagsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeRegistriesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (in
|
|
|
9
9
|
"x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1BatchDeleteImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1BatchDeleteImageCommand = function (input, contex
|
|
|
20
20
|
"x-amz-target": "SpencerFrontendService.BatchDeleteImage",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, con
|
|
|
31
31
|
"x-amz-target": "SpencerFrontendService.CompleteLayerUpload",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateRepositoryCommand = function (input, contex
|
|
|
42
42
|
"x-amz-target": "SpencerFrontendService.CreateRepository",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeleteRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteRepositoryCommand = function (input, contex
|
|
|
53
53
|
"x-amz-target": "SpencerFrontendService.DeleteRepository",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteRepositoryPolicyCommand = function (input,
|
|
|
64
64
|
"x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribeImagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribeImagesCommand = function (input, context)
|
|
|
75
75
|
"x-amz-target": "SpencerFrontendService.DescribeImages",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribeImagesRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DescribeImageTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DescribeImageTagsCommand = function (input, conte
|
|
|
86
86
|
"x-amz-target": "SpencerFrontendService.DescribeImageTags",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeRegistriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeRegistriesCommand = function (input, cont
|
|
|
97
97
|
"x-amz-target": "SpencerFrontendService.DescribeRegistries",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DescribeRepositoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DescribeRepositoriesCommand = function (input, co
|
|
|
108
108
|
"x-amz-target": "SpencerFrontendService.DescribeRepositories",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1GetAuthorizationTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1GetAuthorizationTokenCommand = function (input, c
|
|
|
119
119
|
"x-amz-target": "SpencerFrontendService.GetAuthorizationToken",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1GetRegistryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1GetRegistryCatalogDataCommand = function (input,
|
|
|
130
130
|
"x-amz-target": "SpencerFrontendService.GetRegistryCatalogData",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1GetRepositoryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1GetRepositoryCatalogDataCommand = function (input
|
|
|
141
141
|
"x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1GetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1GetRepositoryPolicyCommand = function (input, con
|
|
|
152
152
|
"x-amz-target": "SpencerFrontendService.GetRepositoryPolicy",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1InitiateLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1InitiateLayerUploadCommand = function (input, con
|
|
|
163
163
|
"x-amz-target": "SpencerFrontendService.InitiateLayerUpload",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
174
174
|
"x-amz-target": "SpencerFrontendService.ListTagsForResource",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1PutImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1PutImageCommand = function (input, context) { ret
|
|
|
185
185
|
"x-amz-target": "SpencerFrontendService.PutImage",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1PutImageRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1PutRegistryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1PutRegistryCatalogDataCommand = function (input,
|
|
|
196
196
|
"x-amz-target": "SpencerFrontendService.PutRegistryCatalogData",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1PutRepositoryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1PutRepositoryCatalogDataCommand = function (input
|
|
|
207
207
|
"x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1SetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1SetRepositoryPolicyCommand = function (input, con
|
|
|
218
218
|
"x-amz-target": "SpencerFrontendService.SetRepositoryPolicy",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
229
229
|
"x-amz-target": "SpencerFrontendService.TagResource",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
240
240
|
"x-amz-target": "SpencerFrontendService.UntagResource",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1UploadLayerPartCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1UploadLayerPartCommand = function (input, context
|
|
|
251
251
|
"x-amz-target": "SpencerFrontendService.UploadLayerPart",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -260,15 +260,15 @@ export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (
|
|
|
260
260
|
switch (_a.label) {
|
|
261
261
|
case 0:
|
|
262
262
|
if (output.statusCode >= 300) {
|
|
263
|
-
return [2
|
|
263
|
+
return [2, deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(output, context)];
|
|
264
264
|
}
|
|
265
|
-
return [4
|
|
265
|
+
return [4, parseBody(output.body, context)];
|
|
266
266
|
case 1:
|
|
267
267
|
data = _a.sent();
|
|
268
268
|
contents = {};
|
|
269
269
|
contents = deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(data, context);
|
|
270
270
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
271
|
-
return [2
|
|
271
|
+
return [2, Promise.resolve(response)];
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
}); };
|
|
@@ -280,47 +280,47 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
|
|
|
280
280
|
case 0:
|
|
281
281
|
_a = [__assign({}, output)];
|
|
282
282
|
_g = {};
|
|
283
|
-
return [4
|
|
283
|
+
return [4, parseBody(output.body, context)];
|
|
284
284
|
case 1:
|
|
285
285
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
286
286
|
errorCode = "UnknownError";
|
|
287
287
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
288
|
_b = errorCode;
|
|
289
289
|
switch (_b) {
|
|
290
|
-
case "InvalidParameterException": return [3
|
|
291
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
292
|
-
case "RegistryNotFoundException": return [3
|
|
293
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3
|
|
294
|
-
case "RepositoryNotFoundException": return [3
|
|
295
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
296
|
-
case "ServerException": return [3
|
|
297
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
290
|
+
case "InvalidParameterException": return [3, 2];
|
|
291
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
292
|
+
case "RegistryNotFoundException": return [3, 4];
|
|
293
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 4];
|
|
294
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
295
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
296
|
+
case "ServerException": return [3, 8];
|
|
297
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
298
298
|
}
|
|
299
|
-
return [3
|
|
299
|
+
return [3, 10];
|
|
300
300
|
case 2:
|
|
301
301
|
_c = [{}];
|
|
302
|
-
return [4
|
|
302
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
303
303
|
case 3:
|
|
304
304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
305
|
-
return [3
|
|
305
|
+
return [3, 11];
|
|
306
306
|
case 4:
|
|
307
307
|
_d = [{}];
|
|
308
|
-
return [4
|
|
308
|
+
return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
309
309
|
case 5:
|
|
310
310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
311
|
-
return [3
|
|
311
|
+
return [3, 11];
|
|
312
312
|
case 6:
|
|
313
313
|
_e = [{}];
|
|
314
|
-
return [4
|
|
314
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
315
315
|
case 7:
|
|
316
316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
317
|
-
return [3
|
|
317
|
+
return [3, 11];
|
|
318
318
|
case 8:
|
|
319
319
|
_f = [{}];
|
|
320
|
-
return [4
|
|
320
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
321
321
|
case 9:
|
|
322
322
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
323
|
-
return [3
|
|
323
|
+
return [3, 11];
|
|
324
324
|
case 10:
|
|
325
325
|
parsedBody = parsedOutput.body;
|
|
326
326
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -330,7 +330,7 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
|
|
|
330
330
|
message = response.message || response.Message || errorCode;
|
|
331
331
|
response.message = message;
|
|
332
332
|
delete response.Message;
|
|
333
|
-
return [2
|
|
333
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
336
|
}); };
|
|
@@ -340,15 +340,15 @@ export var deserializeAws_json1_1BatchDeleteImageCommand = function (output, con
|
|
|
340
340
|
switch (_a.label) {
|
|
341
341
|
case 0:
|
|
342
342
|
if (output.statusCode >= 300) {
|
|
343
|
-
return [2
|
|
343
|
+
return [2, deserializeAws_json1_1BatchDeleteImageCommandError(output, context)];
|
|
344
344
|
}
|
|
345
|
-
return [4
|
|
345
|
+
return [4, parseBody(output.body, context)];
|
|
346
346
|
case 1:
|
|
347
347
|
data = _a.sent();
|
|
348
348
|
contents = {};
|
|
349
349
|
contents = deserializeAws_json1_1BatchDeleteImageResponse(data, context);
|
|
350
350
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
351
|
-
return [2
|
|
351
|
+
return [2, Promise.resolve(response)];
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}); };
|
|
@@ -360,39 +360,39 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
|
|
|
360
360
|
case 0:
|
|
361
361
|
_a = [__assign({}, output)];
|
|
362
362
|
_f = {};
|
|
363
|
-
return [4
|
|
363
|
+
return [4, parseBody(output.body, context)];
|
|
364
364
|
case 1:
|
|
365
365
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
366
366
|
errorCode = "UnknownError";
|
|
367
367
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
368
|
_b = errorCode;
|
|
369
369
|
switch (_b) {
|
|
370
|
-
case "InvalidParameterException": return [3
|
|
371
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
372
|
-
case "RepositoryNotFoundException": return [3
|
|
373
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
374
|
-
case "ServerException": return [3
|
|
375
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
370
|
+
case "InvalidParameterException": return [3, 2];
|
|
371
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
372
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
373
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
374
|
+
case "ServerException": return [3, 6];
|
|
375
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
376
376
|
}
|
|
377
|
-
return [3
|
|
377
|
+
return [3, 8];
|
|
378
378
|
case 2:
|
|
379
379
|
_c = [{}];
|
|
380
|
-
return [4
|
|
380
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
381
381
|
case 3:
|
|
382
382
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
383
|
-
return [3
|
|
383
|
+
return [3, 9];
|
|
384
384
|
case 4:
|
|
385
385
|
_d = [{}];
|
|
386
|
-
return [4
|
|
386
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
387
387
|
case 5:
|
|
388
388
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
389
|
-
return [3
|
|
389
|
+
return [3, 9];
|
|
390
390
|
case 6:
|
|
391
391
|
_e = [{}];
|
|
392
|
-
return [4
|
|
392
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
393
393
|
case 7:
|
|
394
394
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
395
|
-
return [3
|
|
395
|
+
return [3, 9];
|
|
396
396
|
case 8:
|
|
397
397
|
parsedBody = parsedOutput.body;
|
|
398
398
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -402,7 +402,7 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
|
|
|
402
402
|
message = response.message || response.Message || errorCode;
|
|
403
403
|
response.message = message;
|
|
404
404
|
delete response.Message;
|
|
405
|
-
return [2
|
|
405
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
}); };
|
|
@@ -412,15 +412,15 @@ export var deserializeAws_json1_1CompleteLayerUploadCommand = function (output,
|
|
|
412
412
|
switch (_a.label) {
|
|
413
413
|
case 0:
|
|
414
414
|
if (output.statusCode >= 300) {
|
|
415
|
-
return [2
|
|
415
|
+
return [2, deserializeAws_json1_1CompleteLayerUploadCommandError(output, context)];
|
|
416
416
|
}
|
|
417
|
-
return [4
|
|
417
|
+
return [4, parseBody(output.body, context)];
|
|
418
418
|
case 1:
|
|
419
419
|
data = _a.sent();
|
|
420
420
|
contents = {};
|
|
421
421
|
contents = deserializeAws_json1_1CompleteLayerUploadResponse(data, context);
|
|
422
422
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
423
|
-
return [2
|
|
423
|
+
return [2, Promise.resolve(response)];
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
}); };
|
|
@@ -432,95 +432,95 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
|
|
|
432
432
|
case 0:
|
|
433
433
|
_a = [__assign({}, output)];
|
|
434
434
|
_o = {};
|
|
435
|
-
return [4
|
|
435
|
+
return [4, parseBody(output.body, context)];
|
|
436
436
|
case 1:
|
|
437
437
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
438
438
|
errorCode = "UnknownError";
|
|
439
439
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
440
440
|
_b = errorCode;
|
|
441
441
|
switch (_b) {
|
|
442
|
-
case "EmptyUploadException": return [3
|
|
443
|
-
case "com.amazonaws.ecrpublic#EmptyUploadException": return [3
|
|
444
|
-
case "InvalidLayerException": return [3
|
|
445
|
-
case "com.amazonaws.ecrpublic#InvalidLayerException": return [3
|
|
446
|
-
case "InvalidParameterException": return [3
|
|
447
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
448
|
-
case "LayerAlreadyExistsException": return [3
|
|
449
|
-
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException": return [3
|
|
450
|
-
case "LayerPartTooSmallException": return [3
|
|
451
|
-
case "com.amazonaws.ecrpublic#LayerPartTooSmallException": return [3
|
|
452
|
-
case "RegistryNotFoundException": return [3
|
|
453
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3
|
|
454
|
-
case "RepositoryNotFoundException": return [3
|
|
455
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
456
|
-
case "ServerException": return [3
|
|
457
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
458
|
-
case "UnsupportedCommandException": return [3
|
|
459
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
460
|
-
case "UploadNotFoundException": return [3
|
|
461
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException": return [3
|
|
442
|
+
case "EmptyUploadException": return [3, 2];
|
|
443
|
+
case "com.amazonaws.ecrpublic#EmptyUploadException": return [3, 2];
|
|
444
|
+
case "InvalidLayerException": return [3, 4];
|
|
445
|
+
case "com.amazonaws.ecrpublic#InvalidLayerException": return [3, 4];
|
|
446
|
+
case "InvalidParameterException": return [3, 6];
|
|
447
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 6];
|
|
448
|
+
case "LayerAlreadyExistsException": return [3, 8];
|
|
449
|
+
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException": return [3, 8];
|
|
450
|
+
case "LayerPartTooSmallException": return [3, 10];
|
|
451
|
+
case "com.amazonaws.ecrpublic#LayerPartTooSmallException": return [3, 10];
|
|
452
|
+
case "RegistryNotFoundException": return [3, 12];
|
|
453
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 12];
|
|
454
|
+
case "RepositoryNotFoundException": return [3, 14];
|
|
455
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 14];
|
|
456
|
+
case "ServerException": return [3, 16];
|
|
457
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 16];
|
|
458
|
+
case "UnsupportedCommandException": return [3, 18];
|
|
459
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 18];
|
|
460
|
+
case "UploadNotFoundException": return [3, 20];
|
|
461
|
+
case "com.amazonaws.ecrpublic#UploadNotFoundException": return [3, 20];
|
|
462
462
|
}
|
|
463
|
-
return [3
|
|
463
|
+
return [3, 22];
|
|
464
464
|
case 2:
|
|
465
465
|
_c = [{}];
|
|
466
|
-
return [4
|
|
466
|
+
return [4, deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)];
|
|
467
467
|
case 3:
|
|
468
468
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
469
|
-
return [3
|
|
469
|
+
return [3, 23];
|
|
470
470
|
case 4:
|
|
471
471
|
_d = [{}];
|
|
472
|
-
return [4
|
|
472
|
+
return [4, deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)];
|
|
473
473
|
case 5:
|
|
474
474
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
475
|
-
return [3
|
|
475
|
+
return [3, 23];
|
|
476
476
|
case 6:
|
|
477
477
|
_e = [{}];
|
|
478
|
-
return [4
|
|
478
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
479
479
|
case 7:
|
|
480
480
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
481
|
-
return [3
|
|
481
|
+
return [3, 23];
|
|
482
482
|
case 8:
|
|
483
483
|
_f = [{}];
|
|
484
|
-
return [4
|
|
484
|
+
return [4, deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
485
485
|
case 9:
|
|
486
486
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
487
|
-
return [3
|
|
487
|
+
return [3, 23];
|
|
488
488
|
case 10:
|
|
489
489
|
_g = [{}];
|
|
490
|
-
return [4
|
|
490
|
+
return [4, deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)];
|
|
491
491
|
case 11:
|
|
492
492
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
493
|
-
return [3
|
|
493
|
+
return [3, 23];
|
|
494
494
|
case 12:
|
|
495
495
|
_h = [{}];
|
|
496
|
-
return [4
|
|
496
|
+
return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
497
497
|
case 13:
|
|
498
498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
499
|
-
return [3
|
|
499
|
+
return [3, 23];
|
|
500
500
|
case 14:
|
|
501
501
|
_j = [{}];
|
|
502
|
-
return [4
|
|
502
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
503
503
|
case 15:
|
|
504
504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
505
|
-
return [3
|
|
505
|
+
return [3, 23];
|
|
506
506
|
case 16:
|
|
507
507
|
_k = [{}];
|
|
508
|
-
return [4
|
|
508
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
509
509
|
case 17:
|
|
510
510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
511
|
-
return [3
|
|
511
|
+
return [3, 23];
|
|
512
512
|
case 18:
|
|
513
513
|
_l = [{}];
|
|
514
|
-
return [4
|
|
514
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
515
515
|
case 19:
|
|
516
516
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
517
|
-
return [3
|
|
517
|
+
return [3, 23];
|
|
518
518
|
case 20:
|
|
519
519
|
_m = [{}];
|
|
520
|
-
return [4
|
|
520
|
+
return [4, deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)];
|
|
521
521
|
case 21:
|
|
522
522
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
523
|
-
return [3
|
|
523
|
+
return [3, 23];
|
|
524
524
|
case 22:
|
|
525
525
|
parsedBody = parsedOutput.body;
|
|
526
526
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -530,7 +530,7 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
|
|
|
530
530
|
message = response.message || response.Message || errorCode;
|
|
531
531
|
response.message = message;
|
|
532
532
|
delete response.Message;
|
|
533
|
-
return [2
|
|
533
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
536
|
}); };
|
|
@@ -540,15 +540,15 @@ export var deserializeAws_json1_1CreateRepositoryCommand = function (output, con
|
|
|
540
540
|
switch (_a.label) {
|
|
541
541
|
case 0:
|
|
542
542
|
if (output.statusCode >= 300) {
|
|
543
|
-
return [2
|
|
543
|
+
return [2, deserializeAws_json1_1CreateRepositoryCommandError(output, context)];
|
|
544
544
|
}
|
|
545
|
-
return [4
|
|
545
|
+
return [4, parseBody(output.body, context)];
|
|
546
546
|
case 1:
|
|
547
547
|
data = _a.sent();
|
|
548
548
|
contents = {};
|
|
549
549
|
contents = deserializeAws_json1_1CreateRepositoryResponse(data, context);
|
|
550
550
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
551
|
-
return [2
|
|
551
|
+
return [2, Promise.resolve(response)];
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
554
|
}); };
|
|
@@ -560,63 +560,63 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
|
|
|
560
560
|
case 0:
|
|
561
561
|
_a = [__assign({}, output)];
|
|
562
562
|
_j = {};
|
|
563
|
-
return [4
|
|
563
|
+
return [4, parseBody(output.body, context)];
|
|
564
564
|
case 1:
|
|
565
565
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
566
566
|
errorCode = "UnknownError";
|
|
567
567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
568
|
_b = errorCode;
|
|
569
569
|
switch (_b) {
|
|
570
|
-
case "InvalidParameterException": return [3
|
|
571
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
572
|
-
case "InvalidTagParameterException": return [3
|
|
573
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3
|
|
574
|
-
case "LimitExceededException": return [3
|
|
575
|
-
case "com.amazonaws.ecrpublic#LimitExceededException": return [3
|
|
576
|
-
case "RepositoryAlreadyExistsException": return [3
|
|
577
|
-
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException": return [3
|
|
578
|
-
case "ServerException": return [3
|
|
579
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
580
|
-
case "TooManyTagsException": return [3
|
|
581
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3
|
|
570
|
+
case "InvalidParameterException": return [3, 2];
|
|
571
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
572
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
573
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3, 4];
|
|
574
|
+
case "LimitExceededException": return [3, 6];
|
|
575
|
+
case "com.amazonaws.ecrpublic#LimitExceededException": return [3, 6];
|
|
576
|
+
case "RepositoryAlreadyExistsException": return [3, 8];
|
|
577
|
+
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException": return [3, 8];
|
|
578
|
+
case "ServerException": return [3, 10];
|
|
579
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 10];
|
|
580
|
+
case "TooManyTagsException": return [3, 12];
|
|
581
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3, 12];
|
|
582
582
|
}
|
|
583
|
-
return [3
|
|
583
|
+
return [3, 14];
|
|
584
584
|
case 2:
|
|
585
585
|
_c = [{}];
|
|
586
|
-
return [4
|
|
586
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
587
587
|
case 3:
|
|
588
588
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
589
|
-
return [3
|
|
589
|
+
return [3, 15];
|
|
590
590
|
case 4:
|
|
591
591
|
_d = [{}];
|
|
592
|
-
return [4
|
|
592
|
+
return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
593
593
|
case 5:
|
|
594
594
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
595
|
-
return [3
|
|
595
|
+
return [3, 15];
|
|
596
596
|
case 6:
|
|
597
597
|
_e = [{}];
|
|
598
|
-
return [4
|
|
598
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
599
599
|
case 7:
|
|
600
600
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
601
|
-
return [3
|
|
601
|
+
return [3, 15];
|
|
602
602
|
case 8:
|
|
603
603
|
_f = [{}];
|
|
604
|
-
return [4
|
|
604
|
+
return [4, deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
605
605
|
case 9:
|
|
606
606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
607
|
-
return [3
|
|
607
|
+
return [3, 15];
|
|
608
608
|
case 10:
|
|
609
609
|
_g = [{}];
|
|
610
|
-
return [4
|
|
610
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
611
611
|
case 11:
|
|
612
612
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
613
|
-
return [3
|
|
613
|
+
return [3, 15];
|
|
614
614
|
case 12:
|
|
615
615
|
_h = [{}];
|
|
616
|
-
return [4
|
|
616
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
617
617
|
case 13:
|
|
618
618
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
619
|
-
return [3
|
|
619
|
+
return [3, 15];
|
|
620
620
|
case 14:
|
|
621
621
|
parsedBody = parsedOutput.body;
|
|
622
622
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -626,7 +626,7 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
|
|
|
626
626
|
message = response.message || response.Message || errorCode;
|
|
627
627
|
response.message = message;
|
|
628
628
|
delete response.Message;
|
|
629
|
-
return [2
|
|
629
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
}); };
|
|
@@ -636,15 +636,15 @@ export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, con
|
|
|
636
636
|
switch (_a.label) {
|
|
637
637
|
case 0:
|
|
638
638
|
if (output.statusCode >= 300) {
|
|
639
|
-
return [2
|
|
639
|
+
return [2, deserializeAws_json1_1DeleteRepositoryCommandError(output, context)];
|
|
640
640
|
}
|
|
641
|
-
return [4
|
|
641
|
+
return [4, parseBody(output.body, context)];
|
|
642
642
|
case 1:
|
|
643
643
|
data = _a.sent();
|
|
644
644
|
contents = {};
|
|
645
645
|
contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context);
|
|
646
646
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
647
|
-
return [2
|
|
647
|
+
return [2, Promise.resolve(response)];
|
|
648
648
|
}
|
|
649
649
|
});
|
|
650
650
|
}); };
|
|
@@ -656,47 +656,47 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
|
|
|
656
656
|
case 0:
|
|
657
657
|
_a = [__assign({}, output)];
|
|
658
658
|
_g = {};
|
|
659
|
-
return [4
|
|
659
|
+
return [4, parseBody(output.body, context)];
|
|
660
660
|
case 1:
|
|
661
661
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
662
662
|
errorCode = "UnknownError";
|
|
663
663
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
664
|
_b = errorCode;
|
|
665
665
|
switch (_b) {
|
|
666
|
-
case "InvalidParameterException": return [3
|
|
667
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
668
|
-
case "RepositoryNotEmptyException": return [3
|
|
669
|
-
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException": return [3
|
|
670
|
-
case "RepositoryNotFoundException": return [3
|
|
671
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
672
|
-
case "ServerException": return [3
|
|
673
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
666
|
+
case "InvalidParameterException": return [3, 2];
|
|
667
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
668
|
+
case "RepositoryNotEmptyException": return [3, 4];
|
|
669
|
+
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException": return [3, 4];
|
|
670
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
671
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
672
|
+
case "ServerException": return [3, 8];
|
|
673
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
674
674
|
}
|
|
675
|
-
return [3
|
|
675
|
+
return [3, 10];
|
|
676
676
|
case 2:
|
|
677
677
|
_c = [{}];
|
|
678
|
-
return [4
|
|
678
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
679
679
|
case 3:
|
|
680
680
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
681
|
-
return [3
|
|
681
|
+
return [3, 11];
|
|
682
682
|
case 4:
|
|
683
683
|
_d = [{}];
|
|
684
|
-
return [4
|
|
684
|
+
return [4, deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)];
|
|
685
685
|
case 5:
|
|
686
686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
687
|
-
return [3
|
|
687
|
+
return [3, 11];
|
|
688
688
|
case 6:
|
|
689
689
|
_e = [{}];
|
|
690
|
-
return [4
|
|
690
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
691
691
|
case 7:
|
|
692
692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3
|
|
693
|
+
return [3, 11];
|
|
694
694
|
case 8:
|
|
695
695
|
_f = [{}];
|
|
696
|
-
return [4
|
|
696
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
697
697
|
case 9:
|
|
698
698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
699
|
-
return [3
|
|
699
|
+
return [3, 11];
|
|
700
700
|
case 10:
|
|
701
701
|
parsedBody = parsedOutput.body;
|
|
702
702
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -706,7 +706,7 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
|
|
|
706
706
|
message = response.message || response.Message || errorCode;
|
|
707
707
|
response.message = message;
|
|
708
708
|
delete response.Message;
|
|
709
|
-
return [2
|
|
709
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
}); };
|
|
@@ -716,15 +716,15 @@ export var deserializeAws_json1_1DeleteRepositoryPolicyCommand = function (outpu
|
|
|
716
716
|
switch (_a.label) {
|
|
717
717
|
case 0:
|
|
718
718
|
if (output.statusCode >= 300) {
|
|
719
|
-
return [2
|
|
719
|
+
return [2, deserializeAws_json1_1DeleteRepositoryPolicyCommandError(output, context)];
|
|
720
720
|
}
|
|
721
|
-
return [4
|
|
721
|
+
return [4, parseBody(output.body, context)];
|
|
722
722
|
case 1:
|
|
723
723
|
data = _a.sent();
|
|
724
724
|
contents = {};
|
|
725
725
|
contents = deserializeAws_json1_1DeleteRepositoryPolicyResponse(data, context);
|
|
726
726
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
727
|
-
return [2
|
|
727
|
+
return [2, Promise.resolve(response)];
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
}); };
|
|
@@ -736,47 +736,47 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
|
|
|
736
736
|
case 0:
|
|
737
737
|
_a = [__assign({}, output)];
|
|
738
738
|
_g = {};
|
|
739
|
-
return [4
|
|
739
|
+
return [4, parseBody(output.body, context)];
|
|
740
740
|
case 1:
|
|
741
741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
742
742
|
errorCode = "UnknownError";
|
|
743
743
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
744
|
_b = errorCode;
|
|
745
745
|
switch (_b) {
|
|
746
|
-
case "InvalidParameterException": return [3
|
|
747
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
748
|
-
case "RepositoryNotFoundException": return [3
|
|
749
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
750
|
-
case "RepositoryPolicyNotFoundException": return [3
|
|
751
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": return [3
|
|
752
|
-
case "ServerException": return [3
|
|
753
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
746
|
+
case "InvalidParameterException": return [3, 2];
|
|
747
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
748
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
749
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
750
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
751
|
+
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": return [3, 6];
|
|
752
|
+
case "ServerException": return [3, 8];
|
|
753
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
754
754
|
}
|
|
755
|
-
return [3
|
|
755
|
+
return [3, 10];
|
|
756
756
|
case 2:
|
|
757
757
|
_c = [{}];
|
|
758
|
-
return [4
|
|
758
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
759
759
|
case 3:
|
|
760
760
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
761
|
-
return [3
|
|
761
|
+
return [3, 11];
|
|
762
762
|
case 4:
|
|
763
763
|
_d = [{}];
|
|
764
|
-
return [4
|
|
764
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
765
765
|
case 5:
|
|
766
766
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
767
|
-
return [3
|
|
767
|
+
return [3, 11];
|
|
768
768
|
case 6:
|
|
769
769
|
_e = [{}];
|
|
770
|
-
return [4
|
|
770
|
+
return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
771
771
|
case 7:
|
|
772
772
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
773
|
-
return [3
|
|
773
|
+
return [3, 11];
|
|
774
774
|
case 8:
|
|
775
775
|
_f = [{}];
|
|
776
|
-
return [4
|
|
776
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
777
777
|
case 9:
|
|
778
778
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
779
|
-
return [3
|
|
779
|
+
return [3, 11];
|
|
780
780
|
case 10:
|
|
781
781
|
parsedBody = parsedOutput.body;
|
|
782
782
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -786,7 +786,7 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
|
|
|
786
786
|
message = response.message || response.Message || errorCode;
|
|
787
787
|
response.message = message;
|
|
788
788
|
delete response.Message;
|
|
789
|
-
return [2
|
|
789
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
790
790
|
}
|
|
791
791
|
});
|
|
792
792
|
}); };
|
|
@@ -796,15 +796,15 @@ export var deserializeAws_json1_1DescribeImagesCommand = function (output, conte
|
|
|
796
796
|
switch (_a.label) {
|
|
797
797
|
case 0:
|
|
798
798
|
if (output.statusCode >= 300) {
|
|
799
|
-
return [2
|
|
799
|
+
return [2, deserializeAws_json1_1DescribeImagesCommandError(output, context)];
|
|
800
800
|
}
|
|
801
|
-
return [4
|
|
801
|
+
return [4, parseBody(output.body, context)];
|
|
802
802
|
case 1:
|
|
803
803
|
data = _a.sent();
|
|
804
804
|
contents = {};
|
|
805
805
|
contents = deserializeAws_json1_1DescribeImagesResponse(data, context);
|
|
806
806
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
807
|
-
return [2
|
|
807
|
+
return [2, Promise.resolve(response)];
|
|
808
808
|
}
|
|
809
809
|
});
|
|
810
810
|
}); };
|
|
@@ -816,47 +816,47 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
|
|
|
816
816
|
case 0:
|
|
817
817
|
_a = [__assign({}, output)];
|
|
818
818
|
_g = {};
|
|
819
|
-
return [4
|
|
819
|
+
return [4, parseBody(output.body, context)];
|
|
820
820
|
case 1:
|
|
821
821
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
822
822
|
errorCode = "UnknownError";
|
|
823
823
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
824
|
_b = errorCode;
|
|
825
825
|
switch (_b) {
|
|
826
|
-
case "ImageNotFoundException": return [3
|
|
827
|
-
case "com.amazonaws.ecrpublic#ImageNotFoundException": return [3
|
|
828
|
-
case "InvalidParameterException": return [3
|
|
829
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
830
|
-
case "RepositoryNotFoundException": return [3
|
|
831
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
832
|
-
case "ServerException": return [3
|
|
833
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
826
|
+
case "ImageNotFoundException": return [3, 2];
|
|
827
|
+
case "com.amazonaws.ecrpublic#ImageNotFoundException": return [3, 2];
|
|
828
|
+
case "InvalidParameterException": return [3, 4];
|
|
829
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 4];
|
|
830
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
831
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
832
|
+
case "ServerException": return [3, 8];
|
|
833
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
834
834
|
}
|
|
835
|
-
return [3
|
|
835
|
+
return [3, 10];
|
|
836
836
|
case 2:
|
|
837
837
|
_c = [{}];
|
|
838
|
-
return [4
|
|
838
|
+
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
839
839
|
case 3:
|
|
840
840
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
841
|
-
return [3
|
|
841
|
+
return [3, 11];
|
|
842
842
|
case 4:
|
|
843
843
|
_d = [{}];
|
|
844
|
-
return [4
|
|
844
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
845
845
|
case 5:
|
|
846
846
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
847
|
-
return [3
|
|
847
|
+
return [3, 11];
|
|
848
848
|
case 6:
|
|
849
849
|
_e = [{}];
|
|
850
|
-
return [4
|
|
850
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
851
851
|
case 7:
|
|
852
852
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
853
|
-
return [3
|
|
853
|
+
return [3, 11];
|
|
854
854
|
case 8:
|
|
855
855
|
_f = [{}];
|
|
856
|
-
return [4
|
|
856
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
857
857
|
case 9:
|
|
858
858
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
859
|
-
return [3
|
|
859
|
+
return [3, 11];
|
|
860
860
|
case 10:
|
|
861
861
|
parsedBody = parsedOutput.body;
|
|
862
862
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -866,7 +866,7 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
|
|
|
866
866
|
message = response.message || response.Message || errorCode;
|
|
867
867
|
response.message = message;
|
|
868
868
|
delete response.Message;
|
|
869
|
-
return [2
|
|
869
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
870
870
|
}
|
|
871
871
|
});
|
|
872
872
|
}); };
|
|
@@ -876,15 +876,15 @@ export var deserializeAws_json1_1DescribeImageTagsCommand = function (output, co
|
|
|
876
876
|
switch (_a.label) {
|
|
877
877
|
case 0:
|
|
878
878
|
if (output.statusCode >= 300) {
|
|
879
|
-
return [2
|
|
879
|
+
return [2, deserializeAws_json1_1DescribeImageTagsCommandError(output, context)];
|
|
880
880
|
}
|
|
881
|
-
return [4
|
|
881
|
+
return [4, parseBody(output.body, context)];
|
|
882
882
|
case 1:
|
|
883
883
|
data = _a.sent();
|
|
884
884
|
contents = {};
|
|
885
885
|
contents = deserializeAws_json1_1DescribeImageTagsResponse(data, context);
|
|
886
886
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
887
|
-
return [2
|
|
887
|
+
return [2, Promise.resolve(response)];
|
|
888
888
|
}
|
|
889
889
|
});
|
|
890
890
|
}); };
|
|
@@ -896,39 +896,39 @@ var deserializeAws_json1_1DescribeImageTagsCommandError = function (output, cont
|
|
|
896
896
|
case 0:
|
|
897
897
|
_a = [__assign({}, output)];
|
|
898
898
|
_f = {};
|
|
899
|
-
return [4
|
|
899
|
+
return [4, parseBody(output.body, context)];
|
|
900
900
|
case 1:
|
|
901
901
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
902
902
|
errorCode = "UnknownError";
|
|
903
903
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
904
|
_b = errorCode;
|
|
905
905
|
switch (_b) {
|
|
906
|
-
case "InvalidParameterException": return [3
|
|
907
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
908
|
-
case "RepositoryNotFoundException": return [3
|
|
909
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
910
|
-
case "ServerException": return [3
|
|
911
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
906
|
+
case "InvalidParameterException": return [3, 2];
|
|
907
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
908
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
909
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
910
|
+
case "ServerException": return [3, 6];
|
|
911
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
912
912
|
}
|
|
913
|
-
return [3
|
|
913
|
+
return [3, 8];
|
|
914
914
|
case 2:
|
|
915
915
|
_c = [{}];
|
|
916
|
-
return [4
|
|
916
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
917
917
|
case 3:
|
|
918
918
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
919
|
-
return [3
|
|
919
|
+
return [3, 9];
|
|
920
920
|
case 4:
|
|
921
921
|
_d = [{}];
|
|
922
|
-
return [4
|
|
922
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
923
923
|
case 5:
|
|
924
924
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
925
|
-
return [3
|
|
925
|
+
return [3, 9];
|
|
926
926
|
case 6:
|
|
927
927
|
_e = [{}];
|
|
928
|
-
return [4
|
|
928
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
929
929
|
case 7:
|
|
930
930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
931
|
-
return [3
|
|
931
|
+
return [3, 9];
|
|
932
932
|
case 8:
|
|
933
933
|
parsedBody = parsedOutput.body;
|
|
934
934
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -938,7 +938,7 @@ var deserializeAws_json1_1DescribeImageTagsCommandError = function (output, cont
|
|
|
938
938
|
message = response.message || response.Message || errorCode;
|
|
939
939
|
response.message = message;
|
|
940
940
|
delete response.Message;
|
|
941
|
-
return [2
|
|
941
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
944
|
}); };
|
|
@@ -948,15 +948,15 @@ export var deserializeAws_json1_1DescribeRegistriesCommand = function (output, c
|
|
|
948
948
|
switch (_a.label) {
|
|
949
949
|
case 0:
|
|
950
950
|
if (output.statusCode >= 300) {
|
|
951
|
-
return [2
|
|
951
|
+
return [2, deserializeAws_json1_1DescribeRegistriesCommandError(output, context)];
|
|
952
952
|
}
|
|
953
|
-
return [4
|
|
953
|
+
return [4, parseBody(output.body, context)];
|
|
954
954
|
case 1:
|
|
955
955
|
data = _a.sent();
|
|
956
956
|
contents = {};
|
|
957
957
|
contents = deserializeAws_json1_1DescribeRegistriesResponse(data, context);
|
|
958
958
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
959
|
-
return [2
|
|
959
|
+
return [2, Promise.resolve(response)];
|
|
960
960
|
}
|
|
961
961
|
});
|
|
962
962
|
}); };
|
|
@@ -968,39 +968,39 @@ var deserializeAws_json1_1DescribeRegistriesCommandError = function (output, con
|
|
|
968
968
|
case 0:
|
|
969
969
|
_a = [__assign({}, output)];
|
|
970
970
|
_f = {};
|
|
971
|
-
return [4
|
|
971
|
+
return [4, parseBody(output.body, context)];
|
|
972
972
|
case 1:
|
|
973
973
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
974
974
|
errorCode = "UnknownError";
|
|
975
975
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
976
|
_b = errorCode;
|
|
977
977
|
switch (_b) {
|
|
978
|
-
case "InvalidParameterException": return [3
|
|
979
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
980
|
-
case "ServerException": return [3
|
|
981
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
982
|
-
case "UnsupportedCommandException": return [3
|
|
983
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
978
|
+
case "InvalidParameterException": return [3, 2];
|
|
979
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
980
|
+
case "ServerException": return [3, 4];
|
|
981
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 4];
|
|
982
|
+
case "UnsupportedCommandException": return [3, 6];
|
|
983
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 6];
|
|
984
984
|
}
|
|
985
|
-
return [3
|
|
985
|
+
return [3, 8];
|
|
986
986
|
case 2:
|
|
987
987
|
_c = [{}];
|
|
988
|
-
return [4
|
|
988
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
989
989
|
case 3:
|
|
990
990
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
991
|
-
return [3
|
|
991
|
+
return [3, 9];
|
|
992
992
|
case 4:
|
|
993
993
|
_d = [{}];
|
|
994
|
-
return [4
|
|
994
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
995
995
|
case 5:
|
|
996
996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
997
|
-
return [3
|
|
997
|
+
return [3, 9];
|
|
998
998
|
case 6:
|
|
999
999
|
_e = [{}];
|
|
1000
|
-
return [4
|
|
1000
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1001
1001
|
case 7:
|
|
1002
1002
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1003
|
-
return [3
|
|
1003
|
+
return [3, 9];
|
|
1004
1004
|
case 8:
|
|
1005
1005
|
parsedBody = parsedOutput.body;
|
|
1006
1006
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1010,7 +1010,7 @@ var deserializeAws_json1_1DescribeRegistriesCommandError = function (output, con
|
|
|
1010
1010
|
message = response.message || response.Message || errorCode;
|
|
1011
1011
|
response.message = message;
|
|
1012
1012
|
delete response.Message;
|
|
1013
|
-
return [2
|
|
1013
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
1016
1016
|
}); };
|
|
@@ -1020,15 +1020,15 @@ export var deserializeAws_json1_1DescribeRepositoriesCommand = function (output,
|
|
|
1020
1020
|
switch (_a.label) {
|
|
1021
1021
|
case 0:
|
|
1022
1022
|
if (output.statusCode >= 300) {
|
|
1023
|
-
return [2
|
|
1023
|
+
return [2, deserializeAws_json1_1DescribeRepositoriesCommandError(output, context)];
|
|
1024
1024
|
}
|
|
1025
|
-
return [4
|
|
1025
|
+
return [4, parseBody(output.body, context)];
|
|
1026
1026
|
case 1:
|
|
1027
1027
|
data = _a.sent();
|
|
1028
1028
|
contents = {};
|
|
1029
1029
|
contents = deserializeAws_json1_1DescribeRepositoriesResponse(data, context);
|
|
1030
1030
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1031
|
-
return [2
|
|
1031
|
+
return [2, Promise.resolve(response)];
|
|
1032
1032
|
}
|
|
1033
1033
|
});
|
|
1034
1034
|
}); };
|
|
@@ -1040,39 +1040,39 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
|
|
|
1040
1040
|
case 0:
|
|
1041
1041
|
_a = [__assign({}, output)];
|
|
1042
1042
|
_f = {};
|
|
1043
|
-
return [4
|
|
1043
|
+
return [4, parseBody(output.body, context)];
|
|
1044
1044
|
case 1:
|
|
1045
1045
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1046
1046
|
errorCode = "UnknownError";
|
|
1047
1047
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1048
|
_b = errorCode;
|
|
1049
1049
|
switch (_b) {
|
|
1050
|
-
case "InvalidParameterException": return [3
|
|
1051
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1052
|
-
case "RepositoryNotFoundException": return [3
|
|
1053
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1054
|
-
case "ServerException": return [3
|
|
1055
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1050
|
+
case "InvalidParameterException": return [3, 2];
|
|
1051
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1052
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1053
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1054
|
+
case "ServerException": return [3, 6];
|
|
1055
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1056
1056
|
}
|
|
1057
|
-
return [3
|
|
1057
|
+
return [3, 8];
|
|
1058
1058
|
case 2:
|
|
1059
1059
|
_c = [{}];
|
|
1060
|
-
return [4
|
|
1060
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1061
1061
|
case 3:
|
|
1062
1062
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1063
|
-
return [3
|
|
1063
|
+
return [3, 9];
|
|
1064
1064
|
case 4:
|
|
1065
1065
|
_d = [{}];
|
|
1066
|
-
return [4
|
|
1066
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1067
1067
|
case 5:
|
|
1068
1068
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1069
|
-
return [3
|
|
1069
|
+
return [3, 9];
|
|
1070
1070
|
case 6:
|
|
1071
1071
|
_e = [{}];
|
|
1072
|
-
return [4
|
|
1072
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1073
1073
|
case 7:
|
|
1074
1074
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1075
|
-
return [3
|
|
1075
|
+
return [3, 9];
|
|
1076
1076
|
case 8:
|
|
1077
1077
|
parsedBody = parsedOutput.body;
|
|
1078
1078
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1082,7 +1082,7 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
|
|
|
1082
1082
|
message = response.message || response.Message || errorCode;
|
|
1083
1083
|
response.message = message;
|
|
1084
1084
|
delete response.Message;
|
|
1085
|
-
return [2
|
|
1085
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1086
1086
|
}
|
|
1087
1087
|
});
|
|
1088
1088
|
}); };
|
|
@@ -1092,15 +1092,15 @@ export var deserializeAws_json1_1GetAuthorizationTokenCommand = function (output
|
|
|
1092
1092
|
switch (_a.label) {
|
|
1093
1093
|
case 0:
|
|
1094
1094
|
if (output.statusCode >= 300) {
|
|
1095
|
-
return [2
|
|
1095
|
+
return [2, deserializeAws_json1_1GetAuthorizationTokenCommandError(output, context)];
|
|
1096
1096
|
}
|
|
1097
|
-
return [4
|
|
1097
|
+
return [4, parseBody(output.body, context)];
|
|
1098
1098
|
case 1:
|
|
1099
1099
|
data = _a.sent();
|
|
1100
1100
|
contents = {};
|
|
1101
1101
|
contents = deserializeAws_json1_1GetAuthorizationTokenResponse(data, context);
|
|
1102
1102
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1103
|
-
return [2
|
|
1103
|
+
return [2, Promise.resolve(response)];
|
|
1104
1104
|
}
|
|
1105
1105
|
});
|
|
1106
1106
|
}); };
|
|
@@ -1112,31 +1112,31 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
|
|
|
1112
1112
|
case 0:
|
|
1113
1113
|
_a = [__assign({}, output)];
|
|
1114
1114
|
_e = {};
|
|
1115
|
-
return [4
|
|
1115
|
+
return [4, parseBody(output.body, context)];
|
|
1116
1116
|
case 1:
|
|
1117
1117
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1118
1118
|
errorCode = "UnknownError";
|
|
1119
1119
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1120
|
_b = errorCode;
|
|
1121
1121
|
switch (_b) {
|
|
1122
|
-
case "InvalidParameterException": return [3
|
|
1123
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1124
|
-
case "ServerException": return [3
|
|
1125
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1122
|
+
case "InvalidParameterException": return [3, 2];
|
|
1123
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1124
|
+
case "ServerException": return [3, 4];
|
|
1125
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 4];
|
|
1126
1126
|
}
|
|
1127
|
-
return [3
|
|
1127
|
+
return [3, 6];
|
|
1128
1128
|
case 2:
|
|
1129
1129
|
_c = [{}];
|
|
1130
|
-
return [4
|
|
1130
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1131
1131
|
case 3:
|
|
1132
1132
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1133
|
-
return [3
|
|
1133
|
+
return [3, 7];
|
|
1134
1134
|
case 4:
|
|
1135
1135
|
_d = [{}];
|
|
1136
|
-
return [4
|
|
1136
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1137
1137
|
case 5:
|
|
1138
1138
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1139
|
-
return [3
|
|
1139
|
+
return [3, 7];
|
|
1140
1140
|
case 6:
|
|
1141
1141
|
parsedBody = parsedOutput.body;
|
|
1142
1142
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1146,7 +1146,7 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
|
|
|
1146
1146
|
message = response.message || response.Message || errorCode;
|
|
1147
1147
|
response.message = message;
|
|
1148
1148
|
delete response.Message;
|
|
1149
|
-
return [2
|
|
1149
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1150
1150
|
}
|
|
1151
1151
|
});
|
|
1152
1152
|
}); };
|
|
@@ -1156,15 +1156,15 @@ export var deserializeAws_json1_1GetRegistryCatalogDataCommand = function (outpu
|
|
|
1156
1156
|
switch (_a.label) {
|
|
1157
1157
|
case 0:
|
|
1158
1158
|
if (output.statusCode >= 300) {
|
|
1159
|
-
return [2
|
|
1159
|
+
return [2, deserializeAws_json1_1GetRegistryCatalogDataCommandError(output, context)];
|
|
1160
1160
|
}
|
|
1161
|
-
return [4
|
|
1161
|
+
return [4, parseBody(output.body, context)];
|
|
1162
1162
|
case 1:
|
|
1163
1163
|
data = _a.sent();
|
|
1164
1164
|
contents = {};
|
|
1165
1165
|
contents = deserializeAws_json1_1GetRegistryCatalogDataResponse(data, context);
|
|
1166
1166
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1167
|
-
return [2
|
|
1167
|
+
return [2, Promise.resolve(response)];
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
1170
|
}); };
|
|
@@ -1176,31 +1176,31 @@ var deserializeAws_json1_1GetRegistryCatalogDataCommandError = function (output,
|
|
|
1176
1176
|
case 0:
|
|
1177
1177
|
_a = [__assign({}, output)];
|
|
1178
1178
|
_e = {};
|
|
1179
|
-
return [4
|
|
1179
|
+
return [4, parseBody(output.body, context)];
|
|
1180
1180
|
case 1:
|
|
1181
1181
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1182
1182
|
errorCode = "UnknownError";
|
|
1183
1183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
1184
|
_b = errorCode;
|
|
1185
1185
|
switch (_b) {
|
|
1186
|
-
case "ServerException": return [3
|
|
1187
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1188
|
-
case "UnsupportedCommandException": return [3
|
|
1189
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
1186
|
+
case "ServerException": return [3, 2];
|
|
1187
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 2];
|
|
1188
|
+
case "UnsupportedCommandException": return [3, 4];
|
|
1189
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 4];
|
|
1190
1190
|
}
|
|
1191
|
-
return [3
|
|
1191
|
+
return [3, 6];
|
|
1192
1192
|
case 2:
|
|
1193
1193
|
_c = [{}];
|
|
1194
|
-
return [4
|
|
1194
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1195
1195
|
case 3:
|
|
1196
1196
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1197
|
-
return [3
|
|
1197
|
+
return [3, 7];
|
|
1198
1198
|
case 4:
|
|
1199
1199
|
_d = [{}];
|
|
1200
|
-
return [4
|
|
1200
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1201
1201
|
case 5:
|
|
1202
1202
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1203
|
-
return [3
|
|
1203
|
+
return [3, 7];
|
|
1204
1204
|
case 6:
|
|
1205
1205
|
parsedBody = parsedOutput.body;
|
|
1206
1206
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1210,7 +1210,7 @@ var deserializeAws_json1_1GetRegistryCatalogDataCommandError = function (output,
|
|
|
1210
1210
|
message = response.message || response.Message || errorCode;
|
|
1211
1211
|
response.message = message;
|
|
1212
1212
|
delete response.Message;
|
|
1213
|
-
return [2
|
|
1213
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1214
1214
|
}
|
|
1215
1215
|
});
|
|
1216
1216
|
}); };
|
|
@@ -1220,15 +1220,15 @@ export var deserializeAws_json1_1GetRepositoryCatalogDataCommand = function (out
|
|
|
1220
1220
|
switch (_a.label) {
|
|
1221
1221
|
case 0:
|
|
1222
1222
|
if (output.statusCode >= 300) {
|
|
1223
|
-
return [2
|
|
1223
|
+
return [2, deserializeAws_json1_1GetRepositoryCatalogDataCommandError(output, context)];
|
|
1224
1224
|
}
|
|
1225
|
-
return [4
|
|
1225
|
+
return [4, parseBody(output.body, context)];
|
|
1226
1226
|
case 1:
|
|
1227
1227
|
data = _a.sent();
|
|
1228
1228
|
contents = {};
|
|
1229
1229
|
contents = deserializeAws_json1_1GetRepositoryCatalogDataResponse(data, context);
|
|
1230
1230
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1231
|
-
return [2
|
|
1231
|
+
return [2, Promise.resolve(response)];
|
|
1232
1232
|
}
|
|
1233
1233
|
});
|
|
1234
1234
|
}); };
|
|
@@ -1240,39 +1240,39 @@ var deserializeAws_json1_1GetRepositoryCatalogDataCommandError = function (outpu
|
|
|
1240
1240
|
case 0:
|
|
1241
1241
|
_a = [__assign({}, output)];
|
|
1242
1242
|
_f = {};
|
|
1243
|
-
return [4
|
|
1243
|
+
return [4, parseBody(output.body, context)];
|
|
1244
1244
|
case 1:
|
|
1245
1245
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1246
1246
|
errorCode = "UnknownError";
|
|
1247
1247
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
1248
|
_b = errorCode;
|
|
1249
1249
|
switch (_b) {
|
|
1250
|
-
case "InvalidParameterException": return [3
|
|
1251
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1252
|
-
case "RepositoryNotFoundException": return [3
|
|
1253
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1254
|
-
case "ServerException": return [3
|
|
1255
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1250
|
+
case "InvalidParameterException": return [3, 2];
|
|
1251
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1252
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1253
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1254
|
+
case "ServerException": return [3, 6];
|
|
1255
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1256
1256
|
}
|
|
1257
|
-
return [3
|
|
1257
|
+
return [3, 8];
|
|
1258
1258
|
case 2:
|
|
1259
1259
|
_c = [{}];
|
|
1260
|
-
return [4
|
|
1260
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1261
1261
|
case 3:
|
|
1262
1262
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1263
|
-
return [3
|
|
1263
|
+
return [3, 9];
|
|
1264
1264
|
case 4:
|
|
1265
1265
|
_d = [{}];
|
|
1266
|
-
return [4
|
|
1266
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1267
1267
|
case 5:
|
|
1268
1268
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1269
|
-
return [3
|
|
1269
|
+
return [3, 9];
|
|
1270
1270
|
case 6:
|
|
1271
1271
|
_e = [{}];
|
|
1272
|
-
return [4
|
|
1272
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1273
1273
|
case 7:
|
|
1274
1274
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1275
|
-
return [3
|
|
1275
|
+
return [3, 9];
|
|
1276
1276
|
case 8:
|
|
1277
1277
|
parsedBody = parsedOutput.body;
|
|
1278
1278
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1282,7 +1282,7 @@ var deserializeAws_json1_1GetRepositoryCatalogDataCommandError = function (outpu
|
|
|
1282
1282
|
message = response.message || response.Message || errorCode;
|
|
1283
1283
|
response.message = message;
|
|
1284
1284
|
delete response.Message;
|
|
1285
|
-
return [2
|
|
1285
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1286
1286
|
}
|
|
1287
1287
|
});
|
|
1288
1288
|
}); };
|
|
@@ -1292,15 +1292,15 @@ export var deserializeAws_json1_1GetRepositoryPolicyCommand = function (output,
|
|
|
1292
1292
|
switch (_a.label) {
|
|
1293
1293
|
case 0:
|
|
1294
1294
|
if (output.statusCode >= 300) {
|
|
1295
|
-
return [2
|
|
1295
|
+
return [2, deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context)];
|
|
1296
1296
|
}
|
|
1297
|
-
return [4
|
|
1297
|
+
return [4, parseBody(output.body, context)];
|
|
1298
1298
|
case 1:
|
|
1299
1299
|
data = _a.sent();
|
|
1300
1300
|
contents = {};
|
|
1301
1301
|
contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context);
|
|
1302
1302
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1303
|
-
return [2
|
|
1303
|
+
return [2, Promise.resolve(response)];
|
|
1304
1304
|
}
|
|
1305
1305
|
});
|
|
1306
1306
|
}); };
|
|
@@ -1312,47 +1312,47 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
|
|
|
1312
1312
|
case 0:
|
|
1313
1313
|
_a = [__assign({}, output)];
|
|
1314
1314
|
_g = {};
|
|
1315
|
-
return [4
|
|
1315
|
+
return [4, parseBody(output.body, context)];
|
|
1316
1316
|
case 1:
|
|
1317
1317
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1318
1318
|
errorCode = "UnknownError";
|
|
1319
1319
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
_b = errorCode;
|
|
1321
1321
|
switch (_b) {
|
|
1322
|
-
case "InvalidParameterException": return [3
|
|
1323
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1324
|
-
case "RepositoryNotFoundException": return [3
|
|
1325
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1326
|
-
case "RepositoryPolicyNotFoundException": return [3
|
|
1327
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": return [3
|
|
1328
|
-
case "ServerException": return [3
|
|
1329
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1322
|
+
case "InvalidParameterException": return [3, 2];
|
|
1323
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1324
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1325
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1326
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
1327
|
+
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": return [3, 6];
|
|
1328
|
+
case "ServerException": return [3, 8];
|
|
1329
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1330
1330
|
}
|
|
1331
|
-
return [3
|
|
1331
|
+
return [3, 10];
|
|
1332
1332
|
case 2:
|
|
1333
1333
|
_c = [{}];
|
|
1334
|
-
return [4
|
|
1334
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1335
1335
|
case 3:
|
|
1336
1336
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1337
|
-
return [3
|
|
1337
|
+
return [3, 11];
|
|
1338
1338
|
case 4:
|
|
1339
1339
|
_d = [{}];
|
|
1340
|
-
return [4
|
|
1340
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1341
1341
|
case 5:
|
|
1342
1342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1343
|
-
return [3
|
|
1343
|
+
return [3, 11];
|
|
1344
1344
|
case 6:
|
|
1345
1345
|
_e = [{}];
|
|
1346
|
-
return [4
|
|
1346
|
+
return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1347
1347
|
case 7:
|
|
1348
1348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1349
|
-
return [3
|
|
1349
|
+
return [3, 11];
|
|
1350
1350
|
case 8:
|
|
1351
1351
|
_f = [{}];
|
|
1352
|
-
return [4
|
|
1352
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1353
1353
|
case 9:
|
|
1354
1354
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1355
|
-
return [3
|
|
1355
|
+
return [3, 11];
|
|
1356
1356
|
case 10:
|
|
1357
1357
|
parsedBody = parsedOutput.body;
|
|
1358
1358
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1362,7 +1362,7 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
|
|
|
1362
1362
|
message = response.message || response.Message || errorCode;
|
|
1363
1363
|
response.message = message;
|
|
1364
1364
|
delete response.Message;
|
|
1365
|
-
return [2
|
|
1365
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1366
1366
|
}
|
|
1367
1367
|
});
|
|
1368
1368
|
}); };
|
|
@@ -1372,15 +1372,15 @@ export var deserializeAws_json1_1InitiateLayerUploadCommand = function (output,
|
|
|
1372
1372
|
switch (_a.label) {
|
|
1373
1373
|
case 0:
|
|
1374
1374
|
if (output.statusCode >= 300) {
|
|
1375
|
-
return [2
|
|
1375
|
+
return [2, deserializeAws_json1_1InitiateLayerUploadCommandError(output, context)];
|
|
1376
1376
|
}
|
|
1377
|
-
return [4
|
|
1377
|
+
return [4, parseBody(output.body, context)];
|
|
1378
1378
|
case 1:
|
|
1379
1379
|
data = _a.sent();
|
|
1380
1380
|
contents = {};
|
|
1381
1381
|
contents = deserializeAws_json1_1InitiateLayerUploadResponse(data, context);
|
|
1382
1382
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1383
|
-
return [2
|
|
1383
|
+
return [2, Promise.resolve(response)];
|
|
1384
1384
|
}
|
|
1385
1385
|
});
|
|
1386
1386
|
}); };
|
|
@@ -1392,55 +1392,55 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
|
|
|
1392
1392
|
case 0:
|
|
1393
1393
|
_a = [__assign({}, output)];
|
|
1394
1394
|
_h = {};
|
|
1395
|
-
return [4
|
|
1395
|
+
return [4, parseBody(output.body, context)];
|
|
1396
1396
|
case 1:
|
|
1397
1397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1398
1398
|
errorCode = "UnknownError";
|
|
1399
1399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
1400
|
_b = errorCode;
|
|
1401
1401
|
switch (_b) {
|
|
1402
|
-
case "InvalidParameterException": return [3
|
|
1403
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1404
|
-
case "RegistryNotFoundException": return [3
|
|
1405
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3
|
|
1406
|
-
case "RepositoryNotFoundException": return [3
|
|
1407
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1408
|
-
case "ServerException": return [3
|
|
1409
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1410
|
-
case "UnsupportedCommandException": return [3
|
|
1411
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
1402
|
+
case "InvalidParameterException": return [3, 2];
|
|
1403
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1404
|
+
case "RegistryNotFoundException": return [3, 4];
|
|
1405
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 4];
|
|
1406
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1407
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
1408
|
+
case "ServerException": return [3, 8];
|
|
1409
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1410
|
+
case "UnsupportedCommandException": return [3, 10];
|
|
1411
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 10];
|
|
1412
1412
|
}
|
|
1413
|
-
return [3
|
|
1413
|
+
return [3, 12];
|
|
1414
1414
|
case 2:
|
|
1415
1415
|
_c = [{}];
|
|
1416
|
-
return [4
|
|
1416
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1417
1417
|
case 3:
|
|
1418
1418
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1419
|
-
return [3
|
|
1419
|
+
return [3, 13];
|
|
1420
1420
|
case 4:
|
|
1421
1421
|
_d = [{}];
|
|
1422
|
-
return [4
|
|
1422
|
+
return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1423
1423
|
case 5:
|
|
1424
1424
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1425
|
-
return [3
|
|
1425
|
+
return [3, 13];
|
|
1426
1426
|
case 6:
|
|
1427
1427
|
_e = [{}];
|
|
1428
|
-
return [4
|
|
1428
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1429
1429
|
case 7:
|
|
1430
1430
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1431
|
-
return [3
|
|
1431
|
+
return [3, 13];
|
|
1432
1432
|
case 8:
|
|
1433
1433
|
_f = [{}];
|
|
1434
|
-
return [4
|
|
1434
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1435
1435
|
case 9:
|
|
1436
1436
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1437
|
-
return [3
|
|
1437
|
+
return [3, 13];
|
|
1438
1438
|
case 10:
|
|
1439
1439
|
_g = [{}];
|
|
1440
|
-
return [4
|
|
1440
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1441
1441
|
case 11:
|
|
1442
1442
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1443
|
-
return [3
|
|
1443
|
+
return [3, 13];
|
|
1444
1444
|
case 12:
|
|
1445
1445
|
parsedBody = parsedOutput.body;
|
|
1446
1446
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1450,7 +1450,7 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
|
|
|
1450
1450
|
message = response.message || response.Message || errorCode;
|
|
1451
1451
|
response.message = message;
|
|
1452
1452
|
delete response.Message;
|
|
1453
|
-
return [2
|
|
1453
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
1456
|
}); };
|
|
@@ -1460,15 +1460,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1460
1460
|
switch (_a.label) {
|
|
1461
1461
|
case 0:
|
|
1462
1462
|
if (output.statusCode >= 300) {
|
|
1463
|
-
return [2
|
|
1463
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1464
1464
|
}
|
|
1465
|
-
return [4
|
|
1465
|
+
return [4, parseBody(output.body, context)];
|
|
1466
1466
|
case 1:
|
|
1467
1467
|
data = _a.sent();
|
|
1468
1468
|
contents = {};
|
|
1469
1469
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1470
1470
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1471
|
-
return [2
|
|
1471
|
+
return [2, Promise.resolve(response)];
|
|
1472
1472
|
}
|
|
1473
1473
|
});
|
|
1474
1474
|
}); };
|
|
@@ -1480,39 +1480,39 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1480
1480
|
case 0:
|
|
1481
1481
|
_a = [__assign({}, output)];
|
|
1482
1482
|
_f = {};
|
|
1483
|
-
return [4
|
|
1483
|
+
return [4, parseBody(output.body, context)];
|
|
1484
1484
|
case 1:
|
|
1485
1485
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1486
1486
|
errorCode = "UnknownError";
|
|
1487
1487
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1488
|
_b = errorCode;
|
|
1489
1489
|
switch (_b) {
|
|
1490
|
-
case "InvalidParameterException": return [3
|
|
1491
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1492
|
-
case "RepositoryNotFoundException": return [3
|
|
1493
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1494
|
-
case "ServerException": return [3
|
|
1495
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1490
|
+
case "InvalidParameterException": return [3, 2];
|
|
1491
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1492
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1493
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1494
|
+
case "ServerException": return [3, 6];
|
|
1495
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1496
1496
|
}
|
|
1497
|
-
return [3
|
|
1497
|
+
return [3, 8];
|
|
1498
1498
|
case 2:
|
|
1499
1499
|
_c = [{}];
|
|
1500
|
-
return [4
|
|
1500
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1501
1501
|
case 3:
|
|
1502
1502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1503
|
-
return [3
|
|
1503
|
+
return [3, 9];
|
|
1504
1504
|
case 4:
|
|
1505
1505
|
_d = [{}];
|
|
1506
|
-
return [4
|
|
1506
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1507
1507
|
case 5:
|
|
1508
1508
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1509
|
-
return [3
|
|
1509
|
+
return [3, 9];
|
|
1510
1510
|
case 6:
|
|
1511
1511
|
_e = [{}];
|
|
1512
|
-
return [4
|
|
1512
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1513
1513
|
case 7:
|
|
1514
1514
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1515
|
-
return [3
|
|
1515
|
+
return [3, 9];
|
|
1516
1516
|
case 8:
|
|
1517
1517
|
parsedBody = parsedOutput.body;
|
|
1518
1518
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1522,7 +1522,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1522
1522
|
message = response.message || response.Message || errorCode;
|
|
1523
1523
|
response.message = message;
|
|
1524
1524
|
delete response.Message;
|
|
1525
|
-
return [2
|
|
1525
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1526
1526
|
}
|
|
1527
1527
|
});
|
|
1528
1528
|
}); };
|
|
@@ -1532,15 +1532,15 @@ export var deserializeAws_json1_1PutImageCommand = function (output, context) {
|
|
|
1532
1532
|
switch (_a.label) {
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
if (output.statusCode >= 300) {
|
|
1535
|
-
return [2
|
|
1535
|
+
return [2, deserializeAws_json1_1PutImageCommandError(output, context)];
|
|
1536
1536
|
}
|
|
1537
|
-
return [4
|
|
1537
|
+
return [4, parseBody(output.body, context)];
|
|
1538
1538
|
case 1:
|
|
1539
1539
|
data = _a.sent();
|
|
1540
1540
|
contents = {};
|
|
1541
1541
|
contents = deserializeAws_json1_1PutImageResponse(data, context);
|
|
1542
1542
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1543
|
-
return [2
|
|
1543
|
+
return [2, Promise.resolve(response)];
|
|
1544
1544
|
}
|
|
1545
1545
|
});
|
|
1546
1546
|
}); };
|
|
@@ -1552,103 +1552,103 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
|
|
|
1552
1552
|
case 0:
|
|
1553
1553
|
_a = [__assign({}, output)];
|
|
1554
1554
|
_p = {};
|
|
1555
|
-
return [4
|
|
1555
|
+
return [4, parseBody(output.body, context)];
|
|
1556
1556
|
case 1:
|
|
1557
1557
|
parsedOutput = __assign.apply(void 0, _a.concat([(_p.body = _q.sent(), _p)]));
|
|
1558
1558
|
errorCode = "UnknownError";
|
|
1559
1559
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1560
|
_b = errorCode;
|
|
1561
1561
|
switch (_b) {
|
|
1562
|
-
case "ImageAlreadyExistsException": return [3
|
|
1563
|
-
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException": return [3
|
|
1564
|
-
case "ImageDigestDoesNotMatchException": return [3
|
|
1565
|
-
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException": return [3
|
|
1566
|
-
case "ImageTagAlreadyExistsException": return [3
|
|
1567
|
-
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException": return [3
|
|
1568
|
-
case "InvalidParameterException": return [3
|
|
1569
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1570
|
-
case "LayersNotFoundException": return [3
|
|
1571
|
-
case "com.amazonaws.ecrpublic#LayersNotFoundException": return [3
|
|
1572
|
-
case "LimitExceededException": return [3
|
|
1573
|
-
case "com.amazonaws.ecrpublic#LimitExceededException": return [3
|
|
1574
|
-
case "ReferencedImagesNotFoundException": return [3
|
|
1575
|
-
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException": return [3
|
|
1576
|
-
case "RegistryNotFoundException": return [3
|
|
1577
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3
|
|
1578
|
-
case "RepositoryNotFoundException": return [3
|
|
1579
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1580
|
-
case "ServerException": return [3
|
|
1581
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1582
|
-
case "UnsupportedCommandException": return [3
|
|
1583
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
1562
|
+
case "ImageAlreadyExistsException": return [3, 2];
|
|
1563
|
+
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException": return [3, 2];
|
|
1564
|
+
case "ImageDigestDoesNotMatchException": return [3, 4];
|
|
1565
|
+
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException": return [3, 4];
|
|
1566
|
+
case "ImageTagAlreadyExistsException": return [3, 6];
|
|
1567
|
+
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException": return [3, 6];
|
|
1568
|
+
case "InvalidParameterException": return [3, 8];
|
|
1569
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 8];
|
|
1570
|
+
case "LayersNotFoundException": return [3, 10];
|
|
1571
|
+
case "com.amazonaws.ecrpublic#LayersNotFoundException": return [3, 10];
|
|
1572
|
+
case "LimitExceededException": return [3, 12];
|
|
1573
|
+
case "com.amazonaws.ecrpublic#LimitExceededException": return [3, 12];
|
|
1574
|
+
case "ReferencedImagesNotFoundException": return [3, 14];
|
|
1575
|
+
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException": return [3, 14];
|
|
1576
|
+
case "RegistryNotFoundException": return [3, 16];
|
|
1577
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 16];
|
|
1578
|
+
case "RepositoryNotFoundException": return [3, 18];
|
|
1579
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 18];
|
|
1580
|
+
case "ServerException": return [3, 20];
|
|
1581
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 20];
|
|
1582
|
+
case "UnsupportedCommandException": return [3, 22];
|
|
1583
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 22];
|
|
1584
1584
|
}
|
|
1585
|
-
return [3
|
|
1585
|
+
return [3, 24];
|
|
1586
1586
|
case 2:
|
|
1587
1587
|
_c = [{}];
|
|
1588
|
-
return [4
|
|
1588
|
+
return [4, deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1589
1589
|
case 3:
|
|
1590
1590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
-
return [3
|
|
1591
|
+
return [3, 25];
|
|
1592
1592
|
case 4:
|
|
1593
1593
|
_d = [{}];
|
|
1594
|
-
return [4
|
|
1594
|
+
return [4, deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)];
|
|
1595
1595
|
case 5:
|
|
1596
1596
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1597
|
-
return [3
|
|
1597
|
+
return [3, 25];
|
|
1598
1598
|
case 6:
|
|
1599
1599
|
_e = [{}];
|
|
1600
|
-
return [4
|
|
1600
|
+
return [4, deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1601
1601
|
case 7:
|
|
1602
1602
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1603
|
-
return [3
|
|
1603
|
+
return [3, 25];
|
|
1604
1604
|
case 8:
|
|
1605
1605
|
_f = [{}];
|
|
1606
|
-
return [4
|
|
1606
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1607
1607
|
case 9:
|
|
1608
1608
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1609
|
-
return [3
|
|
1609
|
+
return [3, 25];
|
|
1610
1610
|
case 10:
|
|
1611
1611
|
_g = [{}];
|
|
1612
|
-
return [4
|
|
1612
|
+
return [4, deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)];
|
|
1613
1613
|
case 11:
|
|
1614
1614
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1615
|
-
return [3
|
|
1615
|
+
return [3, 25];
|
|
1616
1616
|
case 12:
|
|
1617
1617
|
_h = [{}];
|
|
1618
|
-
return [4
|
|
1618
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1619
1619
|
case 13:
|
|
1620
1620
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1621
|
-
return [3
|
|
1621
|
+
return [3, 25];
|
|
1622
1622
|
case 14:
|
|
1623
1623
|
_j = [{}];
|
|
1624
|
-
return [4
|
|
1624
|
+
return [4, deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)];
|
|
1625
1625
|
case 15:
|
|
1626
1626
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1627
|
-
return [3
|
|
1627
|
+
return [3, 25];
|
|
1628
1628
|
case 16:
|
|
1629
1629
|
_k = [{}];
|
|
1630
|
-
return [4
|
|
1630
|
+
return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1631
1631
|
case 17:
|
|
1632
1632
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1633
|
-
return [3
|
|
1633
|
+
return [3, 25];
|
|
1634
1634
|
case 18:
|
|
1635
1635
|
_l = [{}];
|
|
1636
|
-
return [4
|
|
1636
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1637
1637
|
case 19:
|
|
1638
1638
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1639
|
-
return [3
|
|
1639
|
+
return [3, 25];
|
|
1640
1640
|
case 20:
|
|
1641
1641
|
_m = [{}];
|
|
1642
|
-
return [4
|
|
1642
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1643
1643
|
case 21:
|
|
1644
1644
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1645
|
-
return [3
|
|
1645
|
+
return [3, 25];
|
|
1646
1646
|
case 22:
|
|
1647
1647
|
_o = [{}];
|
|
1648
|
-
return [4
|
|
1648
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1649
1649
|
case 23:
|
|
1650
1650
|
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1651
|
-
return [3
|
|
1651
|
+
return [3, 25];
|
|
1652
1652
|
case 24:
|
|
1653
1653
|
parsedBody = parsedOutput.body;
|
|
1654
1654
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1658,7 +1658,7 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
|
|
|
1658
1658
|
message = response.message || response.Message || errorCode;
|
|
1659
1659
|
response.message = message;
|
|
1660
1660
|
delete response.Message;
|
|
1661
|
-
return [2
|
|
1661
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1662
1662
|
}
|
|
1663
1663
|
});
|
|
1664
1664
|
}); };
|
|
@@ -1668,15 +1668,15 @@ export var deserializeAws_json1_1PutRegistryCatalogDataCommand = function (outpu
|
|
|
1668
1668
|
switch (_a.label) {
|
|
1669
1669
|
case 0:
|
|
1670
1670
|
if (output.statusCode >= 300) {
|
|
1671
|
-
return [2
|
|
1671
|
+
return [2, deserializeAws_json1_1PutRegistryCatalogDataCommandError(output, context)];
|
|
1672
1672
|
}
|
|
1673
|
-
return [4
|
|
1673
|
+
return [4, parseBody(output.body, context)];
|
|
1674
1674
|
case 1:
|
|
1675
1675
|
data = _a.sent();
|
|
1676
1676
|
contents = {};
|
|
1677
1677
|
contents = deserializeAws_json1_1PutRegistryCatalogDataResponse(data, context);
|
|
1678
1678
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1679
|
-
return [2
|
|
1679
|
+
return [2, Promise.resolve(response)];
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
1682
|
}); };
|
|
@@ -1688,39 +1688,39 @@ var deserializeAws_json1_1PutRegistryCatalogDataCommandError = function (output,
|
|
|
1688
1688
|
case 0:
|
|
1689
1689
|
_a = [__assign({}, output)];
|
|
1690
1690
|
_f = {};
|
|
1691
|
-
return [4
|
|
1691
|
+
return [4, parseBody(output.body, context)];
|
|
1692
1692
|
case 1:
|
|
1693
1693
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1694
1694
|
errorCode = "UnknownError";
|
|
1695
1695
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
1696
|
_b = errorCode;
|
|
1697
1697
|
switch (_b) {
|
|
1698
|
-
case "InvalidParameterException": return [3
|
|
1699
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1700
|
-
case "ServerException": return [3
|
|
1701
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1702
|
-
case "UnsupportedCommandException": return [3
|
|
1703
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
1698
|
+
case "InvalidParameterException": return [3, 2];
|
|
1699
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1700
|
+
case "ServerException": return [3, 4];
|
|
1701
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 4];
|
|
1702
|
+
case "UnsupportedCommandException": return [3, 6];
|
|
1703
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 6];
|
|
1704
1704
|
}
|
|
1705
|
-
return [3
|
|
1705
|
+
return [3, 8];
|
|
1706
1706
|
case 2:
|
|
1707
1707
|
_c = [{}];
|
|
1708
|
-
return [4
|
|
1708
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1709
1709
|
case 3:
|
|
1710
1710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1711
|
-
return [3
|
|
1711
|
+
return [3, 9];
|
|
1712
1712
|
case 4:
|
|
1713
1713
|
_d = [{}];
|
|
1714
|
-
return [4
|
|
1714
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1715
1715
|
case 5:
|
|
1716
1716
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1717
|
-
return [3
|
|
1717
|
+
return [3, 9];
|
|
1718
1718
|
case 6:
|
|
1719
1719
|
_e = [{}];
|
|
1720
|
-
return [4
|
|
1720
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1721
1721
|
case 7:
|
|
1722
1722
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1723
|
-
return [3
|
|
1723
|
+
return [3, 9];
|
|
1724
1724
|
case 8:
|
|
1725
1725
|
parsedBody = parsedOutput.body;
|
|
1726
1726
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1730,7 +1730,7 @@ var deserializeAws_json1_1PutRegistryCatalogDataCommandError = function (output,
|
|
|
1730
1730
|
message = response.message || response.Message || errorCode;
|
|
1731
1731
|
response.message = message;
|
|
1732
1732
|
delete response.Message;
|
|
1733
|
-
return [2
|
|
1733
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1734
1734
|
}
|
|
1735
1735
|
});
|
|
1736
1736
|
}); };
|
|
@@ -1740,15 +1740,15 @@ export var deserializeAws_json1_1PutRepositoryCatalogDataCommand = function (out
|
|
|
1740
1740
|
switch (_a.label) {
|
|
1741
1741
|
case 0:
|
|
1742
1742
|
if (output.statusCode >= 300) {
|
|
1743
|
-
return [2
|
|
1743
|
+
return [2, deserializeAws_json1_1PutRepositoryCatalogDataCommandError(output, context)];
|
|
1744
1744
|
}
|
|
1745
|
-
return [4
|
|
1745
|
+
return [4, parseBody(output.body, context)];
|
|
1746
1746
|
case 1:
|
|
1747
1747
|
data = _a.sent();
|
|
1748
1748
|
contents = {};
|
|
1749
1749
|
contents = deserializeAws_json1_1PutRepositoryCatalogDataResponse(data, context);
|
|
1750
1750
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1751
|
-
return [2
|
|
1751
|
+
return [2, Promise.resolve(response)];
|
|
1752
1752
|
}
|
|
1753
1753
|
});
|
|
1754
1754
|
}); };
|
|
@@ -1760,39 +1760,39 @@ var deserializeAws_json1_1PutRepositoryCatalogDataCommandError = function (outpu
|
|
|
1760
1760
|
case 0:
|
|
1761
1761
|
_a = [__assign({}, output)];
|
|
1762
1762
|
_f = {};
|
|
1763
|
-
return [4
|
|
1763
|
+
return [4, parseBody(output.body, context)];
|
|
1764
1764
|
case 1:
|
|
1765
1765
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1766
1766
|
errorCode = "UnknownError";
|
|
1767
1767
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1768
|
_b = errorCode;
|
|
1769
1769
|
switch (_b) {
|
|
1770
|
-
case "InvalidParameterException": return [3
|
|
1771
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1772
|
-
case "RepositoryNotFoundException": return [3
|
|
1773
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1774
|
-
case "ServerException": return [3
|
|
1775
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1770
|
+
case "InvalidParameterException": return [3, 2];
|
|
1771
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1772
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1773
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1774
|
+
case "ServerException": return [3, 6];
|
|
1775
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1776
1776
|
}
|
|
1777
|
-
return [3
|
|
1777
|
+
return [3, 8];
|
|
1778
1778
|
case 2:
|
|
1779
1779
|
_c = [{}];
|
|
1780
|
-
return [4
|
|
1780
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1781
1781
|
case 3:
|
|
1782
1782
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1783
|
-
return [3
|
|
1783
|
+
return [3, 9];
|
|
1784
1784
|
case 4:
|
|
1785
1785
|
_d = [{}];
|
|
1786
|
-
return [4
|
|
1786
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1787
1787
|
case 5:
|
|
1788
1788
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1789
|
-
return [3
|
|
1789
|
+
return [3, 9];
|
|
1790
1790
|
case 6:
|
|
1791
1791
|
_e = [{}];
|
|
1792
|
-
return [4
|
|
1792
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1793
1793
|
case 7:
|
|
1794
1794
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
-
return [3
|
|
1795
|
+
return [3, 9];
|
|
1796
1796
|
case 8:
|
|
1797
1797
|
parsedBody = parsedOutput.body;
|
|
1798
1798
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1802,7 +1802,7 @@ var deserializeAws_json1_1PutRepositoryCatalogDataCommandError = function (outpu
|
|
|
1802
1802
|
message = response.message || response.Message || errorCode;
|
|
1803
1803
|
response.message = message;
|
|
1804
1804
|
delete response.Message;
|
|
1805
|
-
return [2
|
|
1805
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1806
1806
|
}
|
|
1807
1807
|
});
|
|
1808
1808
|
}); };
|
|
@@ -1812,15 +1812,15 @@ export var deserializeAws_json1_1SetRepositoryPolicyCommand = function (output,
|
|
|
1812
1812
|
switch (_a.label) {
|
|
1813
1813
|
case 0:
|
|
1814
1814
|
if (output.statusCode >= 300) {
|
|
1815
|
-
return [2
|
|
1815
|
+
return [2, deserializeAws_json1_1SetRepositoryPolicyCommandError(output, context)];
|
|
1816
1816
|
}
|
|
1817
|
-
return [4
|
|
1817
|
+
return [4, parseBody(output.body, context)];
|
|
1818
1818
|
case 1:
|
|
1819
1819
|
data = _a.sent();
|
|
1820
1820
|
contents = {};
|
|
1821
1821
|
contents = deserializeAws_json1_1SetRepositoryPolicyResponse(data, context);
|
|
1822
1822
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1823
|
-
return [2
|
|
1823
|
+
return [2, Promise.resolve(response)];
|
|
1824
1824
|
}
|
|
1825
1825
|
});
|
|
1826
1826
|
}); };
|
|
@@ -1832,39 +1832,39 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
|
|
|
1832
1832
|
case 0:
|
|
1833
1833
|
_a = [__assign({}, output)];
|
|
1834
1834
|
_f = {};
|
|
1835
|
-
return [4
|
|
1835
|
+
return [4, parseBody(output.body, context)];
|
|
1836
1836
|
case 1:
|
|
1837
1837
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1838
1838
|
errorCode = "UnknownError";
|
|
1839
1839
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1840
|
_b = errorCode;
|
|
1841
1841
|
switch (_b) {
|
|
1842
|
-
case "InvalidParameterException": return [3
|
|
1843
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1844
|
-
case "RepositoryNotFoundException": return [3
|
|
1845
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1846
|
-
case "ServerException": return [3
|
|
1847
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1842
|
+
case "InvalidParameterException": return [3, 2];
|
|
1843
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1844
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1845
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1846
|
+
case "ServerException": return [3, 6];
|
|
1847
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1848
1848
|
}
|
|
1849
|
-
return [3
|
|
1849
|
+
return [3, 8];
|
|
1850
1850
|
case 2:
|
|
1851
1851
|
_c = [{}];
|
|
1852
|
-
return [4
|
|
1852
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1853
1853
|
case 3:
|
|
1854
1854
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1855
|
-
return [3
|
|
1855
|
+
return [3, 9];
|
|
1856
1856
|
case 4:
|
|
1857
1857
|
_d = [{}];
|
|
1858
|
-
return [4
|
|
1858
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1859
1859
|
case 5:
|
|
1860
1860
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1861
|
-
return [3
|
|
1861
|
+
return [3, 9];
|
|
1862
1862
|
case 6:
|
|
1863
1863
|
_e = [{}];
|
|
1864
|
-
return [4
|
|
1864
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1865
1865
|
case 7:
|
|
1866
1866
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1867
|
-
return [3
|
|
1867
|
+
return [3, 9];
|
|
1868
1868
|
case 8:
|
|
1869
1869
|
parsedBody = parsedOutput.body;
|
|
1870
1870
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1874,7 +1874,7 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
|
|
|
1874
1874
|
message = response.message || response.Message || errorCode;
|
|
1875
1875
|
response.message = message;
|
|
1876
1876
|
delete response.Message;
|
|
1877
|
-
return [2
|
|
1877
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1878
1878
|
}
|
|
1879
1879
|
});
|
|
1880
1880
|
}); };
|
|
@@ -1884,15 +1884,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
1884
1884
|
switch (_a.label) {
|
|
1885
1885
|
case 0:
|
|
1886
1886
|
if (output.statusCode >= 300) {
|
|
1887
|
-
return [2
|
|
1887
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1888
1888
|
}
|
|
1889
|
-
return [4
|
|
1889
|
+
return [4, parseBody(output.body, context)];
|
|
1890
1890
|
case 1:
|
|
1891
1891
|
data = _a.sent();
|
|
1892
1892
|
contents = {};
|
|
1893
1893
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1894
1894
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1895
|
-
return [2
|
|
1895
|
+
return [2, Promise.resolve(response)];
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
}); };
|
|
@@ -1904,55 +1904,55 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
1904
1904
|
case 0:
|
|
1905
1905
|
_a = [__assign({}, output)];
|
|
1906
1906
|
_h = {};
|
|
1907
|
-
return [4
|
|
1907
|
+
return [4, parseBody(output.body, context)];
|
|
1908
1908
|
case 1:
|
|
1909
1909
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1910
1910
|
errorCode = "UnknownError";
|
|
1911
1911
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1912
|
_b = errorCode;
|
|
1913
1913
|
switch (_b) {
|
|
1914
|
-
case "InvalidParameterException": return [3
|
|
1915
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
1916
|
-
case "InvalidTagParameterException": return [3
|
|
1917
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3
|
|
1918
|
-
case "RepositoryNotFoundException": return [3
|
|
1919
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
1920
|
-
case "ServerException": return [3
|
|
1921
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
1922
|
-
case "TooManyTagsException": return [3
|
|
1923
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3
|
|
1914
|
+
case "InvalidParameterException": return [3, 2];
|
|
1915
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1916
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
1917
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3, 4];
|
|
1918
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1919
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
1920
|
+
case "ServerException": return [3, 8];
|
|
1921
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1922
|
+
case "TooManyTagsException": return [3, 10];
|
|
1923
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3, 10];
|
|
1924
1924
|
}
|
|
1925
|
-
return [3
|
|
1925
|
+
return [3, 12];
|
|
1926
1926
|
case 2:
|
|
1927
1927
|
_c = [{}];
|
|
1928
|
-
return [4
|
|
1928
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1929
1929
|
case 3:
|
|
1930
1930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1931
|
-
return [3
|
|
1931
|
+
return [3, 13];
|
|
1932
1932
|
case 4:
|
|
1933
1933
|
_d = [{}];
|
|
1934
|
-
return [4
|
|
1934
|
+
return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
1935
1935
|
case 5:
|
|
1936
1936
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1937
|
-
return [3
|
|
1937
|
+
return [3, 13];
|
|
1938
1938
|
case 6:
|
|
1939
1939
|
_e = [{}];
|
|
1940
|
-
return [4
|
|
1940
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1941
1941
|
case 7:
|
|
1942
1942
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1943
|
-
return [3
|
|
1943
|
+
return [3, 13];
|
|
1944
1944
|
case 8:
|
|
1945
1945
|
_f = [{}];
|
|
1946
|
-
return [4
|
|
1946
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1947
1947
|
case 9:
|
|
1948
1948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1949
|
-
return [3
|
|
1949
|
+
return [3, 13];
|
|
1950
1950
|
case 10:
|
|
1951
1951
|
_g = [{}];
|
|
1952
|
-
return [4
|
|
1952
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1953
1953
|
case 11:
|
|
1954
1954
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1955
|
-
return [3
|
|
1955
|
+
return [3, 13];
|
|
1956
1956
|
case 12:
|
|
1957
1957
|
parsedBody = parsedOutput.body;
|
|
1958
1958
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1962,7 +1962,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
1962
1962
|
message = response.message || response.Message || errorCode;
|
|
1963
1963
|
response.message = message;
|
|
1964
1964
|
delete response.Message;
|
|
1965
|
-
return [2
|
|
1965
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1966
1966
|
}
|
|
1967
1967
|
});
|
|
1968
1968
|
}); };
|
|
@@ -1972,15 +1972,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
1972
1972
|
switch (_a.label) {
|
|
1973
1973
|
case 0:
|
|
1974
1974
|
if (output.statusCode >= 300) {
|
|
1975
|
-
return [2
|
|
1975
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1976
1976
|
}
|
|
1977
|
-
return [4
|
|
1977
|
+
return [4, parseBody(output.body, context)];
|
|
1978
1978
|
case 1:
|
|
1979
1979
|
data = _a.sent();
|
|
1980
1980
|
contents = {};
|
|
1981
1981
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1982
1982
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1983
|
-
return [2
|
|
1983
|
+
return [2, Promise.resolve(response)];
|
|
1984
1984
|
}
|
|
1985
1985
|
});
|
|
1986
1986
|
}); };
|
|
@@ -1992,55 +1992,55 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
1992
1992
|
case 0:
|
|
1993
1993
|
_a = [__assign({}, output)];
|
|
1994
1994
|
_h = {};
|
|
1995
|
-
return [4
|
|
1995
|
+
return [4, parseBody(output.body, context)];
|
|
1996
1996
|
case 1:
|
|
1997
1997
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1998
1998
|
errorCode = "UnknownError";
|
|
1999
1999
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
2000
|
_b = errorCode;
|
|
2001
2001
|
switch (_b) {
|
|
2002
|
-
case "InvalidParameterException": return [3
|
|
2003
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
2004
|
-
case "InvalidTagParameterException": return [3
|
|
2005
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3
|
|
2006
|
-
case "RepositoryNotFoundException": return [3
|
|
2007
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
2008
|
-
case "ServerException": return [3
|
|
2009
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
2010
|
-
case "TooManyTagsException": return [3
|
|
2011
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3
|
|
2002
|
+
case "InvalidParameterException": return [3, 2];
|
|
2003
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
2004
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
2005
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3, 4];
|
|
2006
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
2007
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
2008
|
+
case "ServerException": return [3, 8];
|
|
2009
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
2010
|
+
case "TooManyTagsException": return [3, 10];
|
|
2011
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3, 10];
|
|
2012
2012
|
}
|
|
2013
|
-
return [3
|
|
2013
|
+
return [3, 12];
|
|
2014
2014
|
case 2:
|
|
2015
2015
|
_c = [{}];
|
|
2016
|
-
return [4
|
|
2016
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2017
2017
|
case 3:
|
|
2018
2018
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2019
|
-
return [3
|
|
2019
|
+
return [3, 13];
|
|
2020
2020
|
case 4:
|
|
2021
2021
|
_d = [{}];
|
|
2022
|
-
return [4
|
|
2022
|
+
return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
2023
2023
|
case 5:
|
|
2024
2024
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2025
|
-
return [3
|
|
2025
|
+
return [3, 13];
|
|
2026
2026
|
case 6:
|
|
2027
2027
|
_e = [{}];
|
|
2028
|
-
return [4
|
|
2028
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2029
2029
|
case 7:
|
|
2030
2030
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2031
|
-
return [3
|
|
2031
|
+
return [3, 13];
|
|
2032
2032
|
case 8:
|
|
2033
2033
|
_f = [{}];
|
|
2034
|
-
return [4
|
|
2034
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2035
2035
|
case 9:
|
|
2036
2036
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2037
|
-
return [3
|
|
2037
|
+
return [3, 13];
|
|
2038
2038
|
case 10:
|
|
2039
2039
|
_g = [{}];
|
|
2040
|
-
return [4
|
|
2040
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2041
2041
|
case 11:
|
|
2042
2042
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2043
|
-
return [3
|
|
2043
|
+
return [3, 13];
|
|
2044
2044
|
case 12:
|
|
2045
2045
|
parsedBody = parsedOutput.body;
|
|
2046
2046
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2050,7 +2050,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2050
2050
|
message = response.message || response.Message || errorCode;
|
|
2051
2051
|
response.message = message;
|
|
2052
2052
|
delete response.Message;
|
|
2053
|
-
return [2
|
|
2053
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
2056
|
}); };
|
|
@@ -2060,15 +2060,15 @@ export var deserializeAws_json1_1UploadLayerPartCommand = function (output, cont
|
|
|
2060
2060
|
switch (_a.label) {
|
|
2061
2061
|
case 0:
|
|
2062
2062
|
if (output.statusCode >= 300) {
|
|
2063
|
-
return [2
|
|
2063
|
+
return [2, deserializeAws_json1_1UploadLayerPartCommandError(output, context)];
|
|
2064
2064
|
}
|
|
2065
|
-
return [4
|
|
2065
|
+
return [4, parseBody(output.body, context)];
|
|
2066
2066
|
case 1:
|
|
2067
2067
|
data = _a.sent();
|
|
2068
2068
|
contents = {};
|
|
2069
2069
|
contents = deserializeAws_json1_1UploadLayerPartResponse(data, context);
|
|
2070
2070
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2071
|
-
return [2
|
|
2071
|
+
return [2, Promise.resolve(response)];
|
|
2072
2072
|
}
|
|
2073
2073
|
});
|
|
2074
2074
|
}); };
|
|
@@ -2080,79 +2080,79 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
|
|
|
2080
2080
|
case 0:
|
|
2081
2081
|
_a = [__assign({}, output)];
|
|
2082
2082
|
_l = {};
|
|
2083
|
-
return [4
|
|
2083
|
+
return [4, parseBody(output.body, context)];
|
|
2084
2084
|
case 1:
|
|
2085
2085
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
2086
2086
|
errorCode = "UnknownError";
|
|
2087
2087
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
2088
|
_b = errorCode;
|
|
2089
2089
|
switch (_b) {
|
|
2090
|
-
case "InvalidLayerPartException": return [3
|
|
2091
|
-
case "com.amazonaws.ecrpublic#InvalidLayerPartException": return [3
|
|
2092
|
-
case "InvalidParameterException": return [3
|
|
2093
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3
|
|
2094
|
-
case "LimitExceededException": return [3
|
|
2095
|
-
case "com.amazonaws.ecrpublic#LimitExceededException": return [3
|
|
2096
|
-
case "RegistryNotFoundException": return [3
|
|
2097
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3
|
|
2098
|
-
case "RepositoryNotFoundException": return [3
|
|
2099
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3
|
|
2100
|
-
case "ServerException": return [3
|
|
2101
|
-
case "com.amazonaws.ecrpublic#ServerException": return [3
|
|
2102
|
-
case "UnsupportedCommandException": return [3
|
|
2103
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3
|
|
2104
|
-
case "UploadNotFoundException": return [3
|
|
2105
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException": return [3
|
|
2090
|
+
case "InvalidLayerPartException": return [3, 2];
|
|
2091
|
+
case "com.amazonaws.ecrpublic#InvalidLayerPartException": return [3, 2];
|
|
2092
|
+
case "InvalidParameterException": return [3, 4];
|
|
2093
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 4];
|
|
2094
|
+
case "LimitExceededException": return [3, 6];
|
|
2095
|
+
case "com.amazonaws.ecrpublic#LimitExceededException": return [3, 6];
|
|
2096
|
+
case "RegistryNotFoundException": return [3, 8];
|
|
2097
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 8];
|
|
2098
|
+
case "RepositoryNotFoundException": return [3, 10];
|
|
2099
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 10];
|
|
2100
|
+
case "ServerException": return [3, 12];
|
|
2101
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 12];
|
|
2102
|
+
case "UnsupportedCommandException": return [3, 14];
|
|
2103
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 14];
|
|
2104
|
+
case "UploadNotFoundException": return [3, 16];
|
|
2105
|
+
case "com.amazonaws.ecrpublic#UploadNotFoundException": return [3, 16];
|
|
2106
2106
|
}
|
|
2107
|
-
return [3
|
|
2107
|
+
return [3, 18];
|
|
2108
2108
|
case 2:
|
|
2109
2109
|
_c = [{}];
|
|
2110
|
-
return [4
|
|
2110
|
+
return [4, deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)];
|
|
2111
2111
|
case 3:
|
|
2112
2112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2113
|
-
return [3
|
|
2113
|
+
return [3, 19];
|
|
2114
2114
|
case 4:
|
|
2115
2115
|
_d = [{}];
|
|
2116
|
-
return [4
|
|
2116
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2117
2117
|
case 5:
|
|
2118
2118
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2119
|
-
return [3
|
|
2119
|
+
return [3, 19];
|
|
2120
2120
|
case 6:
|
|
2121
2121
|
_e = [{}];
|
|
2122
|
-
return [4
|
|
2122
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2123
2123
|
case 7:
|
|
2124
2124
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2125
|
-
return [3
|
|
2125
|
+
return [3, 19];
|
|
2126
2126
|
case 8:
|
|
2127
2127
|
_f = [{}];
|
|
2128
|
-
return [4
|
|
2128
|
+
return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2129
2129
|
case 9:
|
|
2130
2130
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2131
|
-
return [3
|
|
2131
|
+
return [3, 19];
|
|
2132
2132
|
case 10:
|
|
2133
2133
|
_g = [{}];
|
|
2134
|
-
return [4
|
|
2134
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2135
2135
|
case 11:
|
|
2136
2136
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2137
|
-
return [3
|
|
2137
|
+
return [3, 19];
|
|
2138
2138
|
case 12:
|
|
2139
2139
|
_h = [{}];
|
|
2140
|
-
return [4
|
|
2140
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2141
2141
|
case 13:
|
|
2142
2142
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2143
|
-
return [3
|
|
2143
|
+
return [3, 19];
|
|
2144
2144
|
case 14:
|
|
2145
2145
|
_j = [{}];
|
|
2146
|
-
return [4
|
|
2146
|
+
return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
2147
2147
|
case 15:
|
|
2148
2148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2149
|
-
return [3
|
|
2149
|
+
return [3, 19];
|
|
2150
2150
|
case 16:
|
|
2151
2151
|
_k = [{}];
|
|
2152
|
-
return [4
|
|
2152
|
+
return [4, deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)];
|
|
2153
2153
|
case 17:
|
|
2154
2154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2155
|
-
return [3
|
|
2155
|
+
return [3, 19];
|
|
2156
2156
|
case 18:
|
|
2157
2157
|
parsedBody = parsedOutput.body;
|
|
2158
2158
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2162,7 +2162,7 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
|
|
|
2162
2162
|
message = response.message || response.Message || errorCode;
|
|
2163
2163
|
response.message = message;
|
|
2164
2164
|
delete response.Message;
|
|
2165
|
-
return [2
|
|
2165
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
2168
|
}); };
|
|
@@ -2172,7 +2172,7 @@ var deserializeAws_json1_1EmptyUploadExceptionResponse = function (parsedOutput,
|
|
|
2172
2172
|
body = parsedOutput.body;
|
|
2173
2173
|
deserialized = deserializeAws_json1_1EmptyUploadException(body, context);
|
|
2174
2174
|
contents = __assign({ name: "EmptyUploadException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2175
|
-
return [2
|
|
2175
|
+
return [2, contents];
|
|
2176
2176
|
});
|
|
2177
2177
|
}); };
|
|
2178
2178
|
var deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2181,7 +2181,7 @@ var deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = function (parsed
|
|
|
2181
2181
|
body = parsedOutput.body;
|
|
2182
2182
|
deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context);
|
|
2183
2183
|
contents = __assign({ name: "ImageAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2184
|
-
return [2
|
|
2184
|
+
return [2, contents];
|
|
2185
2185
|
});
|
|
2186
2186
|
}); };
|
|
2187
2187
|
var deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2190,7 +2190,7 @@ var deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = function (p
|
|
|
2190
2190
|
body = parsedOutput.body;
|
|
2191
2191
|
deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context);
|
|
2192
2192
|
contents = __assign({ name: "ImageDigestDoesNotMatchException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2193
|
-
return [2
|
|
2193
|
+
return [2, contents];
|
|
2194
2194
|
});
|
|
2195
2195
|
}); };
|
|
2196
2196
|
var deserializeAws_json1_1ImageNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2199,7 +2199,7 @@ var deserializeAws_json1_1ImageNotFoundExceptionResponse = function (parsedOutpu
|
|
|
2199
2199
|
body = parsedOutput.body;
|
|
2200
2200
|
deserialized = deserializeAws_json1_1ImageNotFoundException(body, context);
|
|
2201
2201
|
contents = __assign({ name: "ImageNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2202
|
-
return [2
|
|
2202
|
+
return [2, contents];
|
|
2203
2203
|
});
|
|
2204
2204
|
}); };
|
|
2205
2205
|
var deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2208,7 +2208,7 @@ var deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = function (par
|
|
|
2208
2208
|
body = parsedOutput.body;
|
|
2209
2209
|
deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context);
|
|
2210
2210
|
contents = __assign({ name: "ImageTagAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2211
|
-
return [2
|
|
2211
|
+
return [2, contents];
|
|
2212
2212
|
});
|
|
2213
2213
|
}); };
|
|
2214
2214
|
var deserializeAws_json1_1InvalidLayerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2217,7 +2217,7 @@ var deserializeAws_json1_1InvalidLayerExceptionResponse = function (parsedOutput
|
|
|
2217
2217
|
body = parsedOutput.body;
|
|
2218
2218
|
deserialized = deserializeAws_json1_1InvalidLayerException(body, context);
|
|
2219
2219
|
contents = __assign({ name: "InvalidLayerException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2220
|
-
return [2
|
|
2220
|
+
return [2, contents];
|
|
2221
2221
|
});
|
|
2222
2222
|
}); };
|
|
2223
2223
|
var deserializeAws_json1_1InvalidLayerPartExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2226,7 +2226,7 @@ var deserializeAws_json1_1InvalidLayerPartExceptionResponse = function (parsedOu
|
|
|
2226
2226
|
body = parsedOutput.body;
|
|
2227
2227
|
deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context);
|
|
2228
2228
|
contents = __assign({ name: "InvalidLayerPartException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2229
|
-
return [2
|
|
2229
|
+
return [2, contents];
|
|
2230
2230
|
});
|
|
2231
2231
|
}); };
|
|
2232
2232
|
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2235,7 +2235,7 @@ var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOu
|
|
|
2235
2235
|
body = parsedOutput.body;
|
|
2236
2236
|
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2237
2237
|
contents = __assign({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2238
|
-
return [2
|
|
2238
|
+
return [2, contents];
|
|
2239
2239
|
});
|
|
2240
2240
|
}); };
|
|
2241
2241
|
var deserializeAws_json1_1InvalidTagParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2244,7 +2244,7 @@ var deserializeAws_json1_1InvalidTagParameterExceptionResponse = function (parse
|
|
|
2244
2244
|
body = parsedOutput.body;
|
|
2245
2245
|
deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
2246
2246
|
contents = __assign({ name: "InvalidTagParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2247
|
-
return [2
|
|
2247
|
+
return [2, contents];
|
|
2248
2248
|
});
|
|
2249
2249
|
}); };
|
|
2250
2250
|
var deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2253,7 +2253,7 @@ var deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = function (parsed
|
|
|
2253
2253
|
body = parsedOutput.body;
|
|
2254
2254
|
deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context);
|
|
2255
2255
|
contents = __assign({ name: "LayerAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2256
|
-
return [2
|
|
2256
|
+
return [2, contents];
|
|
2257
2257
|
});
|
|
2258
2258
|
}); };
|
|
2259
2259
|
var deserializeAws_json1_1LayerPartTooSmallExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2262,7 +2262,7 @@ var deserializeAws_json1_1LayerPartTooSmallExceptionResponse = function (parsedO
|
|
|
2262
2262
|
body = parsedOutput.body;
|
|
2263
2263
|
deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context);
|
|
2264
2264
|
contents = __assign({ name: "LayerPartTooSmallException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2265
|
-
return [2
|
|
2265
|
+
return [2, contents];
|
|
2266
2266
|
});
|
|
2267
2267
|
}); };
|
|
2268
2268
|
var deserializeAws_json1_1LayersNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2271,7 +2271,7 @@ var deserializeAws_json1_1LayersNotFoundExceptionResponse = function (parsedOutp
|
|
|
2271
2271
|
body = parsedOutput.body;
|
|
2272
2272
|
deserialized = deserializeAws_json1_1LayersNotFoundException(body, context);
|
|
2273
2273
|
contents = __assign({ name: "LayersNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2274
|
-
return [2
|
|
2274
|
+
return [2, contents];
|
|
2275
2275
|
});
|
|
2276
2276
|
}); };
|
|
2277
2277
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2280,7 +2280,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2280
2280
|
body = parsedOutput.body;
|
|
2281
2281
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2282
2282
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2283
|
-
return [2
|
|
2283
|
+
return [2, contents];
|
|
2284
2284
|
});
|
|
2285
2285
|
}); };
|
|
2286
2286
|
var deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2289,7 +2289,7 @@ var deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = function (
|
|
|
2289
2289
|
body = parsedOutput.body;
|
|
2290
2290
|
deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
|
|
2291
2291
|
contents = __assign({ name: "ReferencedImagesNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2292
|
-
return [2
|
|
2292
|
+
return [2, contents];
|
|
2293
2293
|
});
|
|
2294
2294
|
}); };
|
|
2295
2295
|
var deserializeAws_json1_1RegistryNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2298,7 +2298,7 @@ var deserializeAws_json1_1RegistryNotFoundExceptionResponse = function (parsedOu
|
|
|
2298
2298
|
body = parsedOutput.body;
|
|
2299
2299
|
deserialized = deserializeAws_json1_1RegistryNotFoundException(body, context);
|
|
2300
2300
|
contents = __assign({ name: "RegistryNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2301
|
-
return [2
|
|
2301
|
+
return [2, contents];
|
|
2302
2302
|
});
|
|
2303
2303
|
}); };
|
|
2304
2304
|
var deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2307,7 +2307,7 @@ var deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = function (p
|
|
|
2307
2307
|
body = parsedOutput.body;
|
|
2308
2308
|
deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context);
|
|
2309
2309
|
contents = __assign({ name: "RepositoryAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2310
|
-
return [2
|
|
2310
|
+
return [2, contents];
|
|
2311
2311
|
});
|
|
2312
2312
|
}); };
|
|
2313
2313
|
var deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2316,7 +2316,7 @@ var deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = function (parsed
|
|
|
2316
2316
|
body = parsedOutput.body;
|
|
2317
2317
|
deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
2318
2318
|
contents = __assign({ name: "RepositoryNotEmptyException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2319
|
-
return [2
|
|
2319
|
+
return [2, contents];
|
|
2320
2320
|
});
|
|
2321
2321
|
}); };
|
|
2322
2322
|
var deserializeAws_json1_1RepositoryNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2325,7 +2325,7 @@ var deserializeAws_json1_1RepositoryNotFoundExceptionResponse = function (parsed
|
|
|
2325
2325
|
body = parsedOutput.body;
|
|
2326
2326
|
deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context);
|
|
2327
2327
|
contents = __assign({ name: "RepositoryNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2328
|
-
return [2
|
|
2328
|
+
return [2, contents];
|
|
2329
2329
|
});
|
|
2330
2330
|
}); };
|
|
2331
2331
|
var deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2334,7 +2334,7 @@ var deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = function (
|
|
|
2334
2334
|
body = parsedOutput.body;
|
|
2335
2335
|
deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context);
|
|
2336
2336
|
contents = __assign({ name: "RepositoryPolicyNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2337
|
-
return [2
|
|
2337
|
+
return [2, contents];
|
|
2338
2338
|
});
|
|
2339
2339
|
}); };
|
|
2340
2340
|
var deserializeAws_json1_1ServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2343,7 +2343,7 @@ var deserializeAws_json1_1ServerExceptionResponse = function (parsedOutput, cont
|
|
|
2343
2343
|
body = parsedOutput.body;
|
|
2344
2344
|
deserialized = deserializeAws_json1_1ServerException(body, context);
|
|
2345
2345
|
contents = __assign({ name: "ServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2346
|
-
return [2
|
|
2346
|
+
return [2, contents];
|
|
2347
2347
|
});
|
|
2348
2348
|
}); };
|
|
2349
2349
|
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2352,7 +2352,7 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
2352
2352
|
body = parsedOutput.body;
|
|
2353
2353
|
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2354
2354
|
contents = __assign({ name: "TooManyTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2355
|
-
return [2
|
|
2355
|
+
return [2, contents];
|
|
2356
2356
|
});
|
|
2357
2357
|
}); };
|
|
2358
2358
|
var deserializeAws_json1_1UnsupportedCommandExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2361,7 +2361,7 @@ var deserializeAws_json1_1UnsupportedCommandExceptionResponse = function (parsed
|
|
|
2361
2361
|
body = parsedOutput.body;
|
|
2362
2362
|
deserialized = deserializeAws_json1_1UnsupportedCommandException(body, context);
|
|
2363
2363
|
contents = __assign({ name: "UnsupportedCommandException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2364
|
-
return [2
|
|
2364
|
+
return [2, contents];
|
|
2365
2365
|
});
|
|
2366
2366
|
}); };
|
|
2367
2367
|
var deserializeAws_json1_1UploadNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2370,7 +2370,7 @@ var deserializeAws_json1_1UploadNotFoundExceptionResponse = function (parsedOutp
|
|
|
2370
2370
|
body = parsedOutput.body;
|
|
2371
2371
|
deserialized = deserializeAws_json1_1UploadNotFoundException(body, context);
|
|
2372
2372
|
contents = __assign({ name: "UploadNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2373
|
-
return [2
|
|
2373
|
+
return [2, contents];
|
|
2374
2374
|
});
|
|
2375
2375
|
}); };
|
|
2376
2376
|
var serializeAws_json1_1ArchitectureList = function (input, context) {
|
|
@@ -3141,7 +3141,6 @@ var deserializeMetadata = function (output) {
|
|
|
3141
3141
|
cfId: output.headers["x-amz-cf-id"],
|
|
3142
3142
|
});
|
|
3143
3143
|
};
|
|
3144
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3145
3144
|
var collectBody = function (streamBody, context) {
|
|
3146
3145
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3147
3146
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3149,7 +3148,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3149
3148
|
}
|
|
3150
3149
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3151
3150
|
};
|
|
3152
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3153
3151
|
var collectBodyString = function (streamBody, context) {
|
|
3154
3152
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3155
3153
|
};
|
|
@@ -3157,7 +3155,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3157
3155
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3158
3156
|
return __generator(this, function (_c) {
|
|
3159
3157
|
switch (_c.label) {
|
|
3160
|
-
case 0: return [4
|
|
3158
|
+
case 0: return [4, context.endpoint()];
|
|
3161
3159
|
case 1:
|
|
3162
3160
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3163
3161
|
contents = {
|
|
@@ -3174,7 +3172,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3174
3172
|
if (body !== undefined) {
|
|
3175
3173
|
contents.body = body;
|
|
3176
3174
|
}
|
|
3177
|
-
return [2
|
|
3175
|
+
return [2, new __HttpRequest(contents)];
|
|
3178
3176
|
}
|
|
3179
3177
|
});
|
|
3180
3178
|
}); };
|
|
@@ -3186,9 +3184,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3186
3184
|
return {};
|
|
3187
3185
|
});
|
|
3188
3186
|
};
|
|
3189
|
-
/**
|
|
3190
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3191
|
-
*/
|
|
3192
3187
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3193
3188
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3194
3189
|
var sanitizeErrorCode = function (rawValue) {
|