@aws-sdk/client-mediastore 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}/MediaStore.js +1 -1
- package/dist-cjs/MediaStore.js.map +1 -0
- package/{dist/cjs → dist-cjs}/MediaStoreClient.js +14 -14
- package/dist-cjs/MediaStoreClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateContainerCommand.js +5 -5
- package/dist-cjs/commands/CreateContainerCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteContainerCommand.js +5 -5
- package/dist-cjs/commands/DeleteContainerCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteContainerPolicyCommand.js +5 -5
- package/dist-cjs/commands/DeleteContainerPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteCorsPolicyCommand.js +5 -5
- package/dist-cjs/commands/DeleteCorsPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteLifecyclePolicyCommand.js +5 -5
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteMetricPolicyCommand.js +5 -5
- package/dist-cjs/commands/DeleteMetricPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeContainerCommand.js +5 -5
- package/dist-cjs/commands/DescribeContainerCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetContainerPolicyCommand.js +5 -5
- package/dist-cjs/commands/GetContainerPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetCorsPolicyCommand.js +5 -5
- package/dist-cjs/commands/GetCorsPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetLifecyclePolicyCommand.js +5 -5
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetMetricPolicyCommand.js +5 -5
- package/dist-cjs/commands/GetMetricPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListContainersCommand.js +5 -5
- package/dist-cjs/commands/ListContainersCommand.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/PutContainerPolicyCommand.js +5 -5
- package/dist-cjs/commands/PutContainerPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutCorsPolicyCommand.js +5 -5
- package/dist-cjs/commands/PutCorsPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutLifecyclePolicyCommand.js +5 -5
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutMetricPolicyCommand.js +5 -5
- package/dist-cjs/commands/PutMetricPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartAccessLoggingCommand.js +5 -5
- package/dist-cjs/commands/StartAccessLoggingCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StopAccessLoggingCommand.js +5 -5
- package/dist-cjs/commands/StopAccessLoggingCommand.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}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +30 -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/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListContainersPaginator.js +1 -1
- package/dist-cjs/pagination/ListContainersPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +25 -25
- 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}/MediaStore.js +2 -6
- package/dist-es/MediaStore.js.map +1 -0
- package/{dist/es → dist-es}/MediaStoreClient.js +2 -11
- package/dist-es/MediaStoreClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateContainerCommand.js +4 -30
- package/dist-es/commands/CreateContainerCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteContainerCommand.js +4 -31
- package/dist-es/commands/DeleteContainerCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteContainerPolicyCommand.js +4 -29
- package/dist-es/commands/DeleteContainerPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteCorsPolicyCommand.js +4 -33
- package/dist-es/commands/DeleteCorsPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteLifecyclePolicyCommand.js +4 -29
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteMetricPolicyCommand.js +4 -29
- package/dist-es/commands/DeleteMetricPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeContainerCommand.js +4 -35
- package/dist-es/commands/DescribeContainerCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetContainerPolicyCommand.js +4 -31
- package/dist-es/commands/GetContainerPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetCorsPolicyCommand.js +4 -33
- package/dist-es/commands/GetCorsPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetLifecyclePolicyCommand.js +4 -29
- package/dist-es/commands/GetLifecyclePolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetMetricPolicyCommand.js +4 -29
- package/dist-es/commands/GetMetricPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListContainersCommand.js +4 -37
- package/dist-es/commands/ListContainersCommand.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/PutContainerPolicyCommand.js +4 -35
- package/dist-es/commands/PutContainerPolicyCommand.js.map +1 -0
- package/dist-es/commands/PutCorsPolicyCommand.js +40 -0
- package/dist-es/commands/PutCorsPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutLifecyclePolicyCommand.js +4 -30
- package/dist-es/commands/PutLifecyclePolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutMetricPolicyCommand.js +4 -29
- package/dist-es/commands/PutMetricPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartAccessLoggingCommand.js +4 -29
- package/dist-es/commands/StartAccessLoggingCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StopAccessLoggingCommand.js +4 -29
- package/dist-es/commands/StopAccessLoggingCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -31
- 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}/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 -159
- package/dist-es/models/models_0.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}/pagination/ListContainersPaginator.js +17 -29
- package/dist-es/pagination/ListContainersPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +427 -432
- 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}/MediaStore.d.ts +2 -2
- package/{dist/types → dist-types}/MediaStoreClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateContainerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteContainerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteContainerPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteCorsPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteMetricPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeContainerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetContainerPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCorsPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetMetricPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListContainersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutContainerPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutCorsPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutMetricPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartAccessLoggingCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopAccessLoggingCommand.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}/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/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListContainersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/MediaStore.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/MediaStoreClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateContainerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteContainerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteContainerPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteCorsPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteMetricPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeContainerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetContainerPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetCorsPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetMetricPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListContainersCommand.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/PutContainerPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutCorsPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutMetricPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartAccessLoggingCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopAccessLoggingCommand.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/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/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListContainersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{MediaStore.ts → src/MediaStore.ts} +3 -2
- package/{MediaStoreClient.ts → src/MediaStoreClient.ts} +45 -44
- package/{commands → src/commands}/CreateContainerCommand.ts +8 -7
- package/{commands → src/commands}/DeleteContainerCommand.ts +8 -7
- package/{commands → src/commands}/DeleteContainerPolicyCommand.ts +8 -7
- package/{commands → src/commands}/DeleteCorsPolicyCommand.ts +8 -7
- package/{commands → src/commands}/DeleteLifecyclePolicyCommand.ts +8 -7
- package/{commands → src/commands}/DeleteMetricPolicyCommand.ts +8 -7
- package/{commands → src/commands}/DescribeContainerCommand.ts +8 -7
- package/{commands → src/commands}/GetContainerPolicyCommand.ts +8 -7
- package/{commands → src/commands}/GetCorsPolicyCommand.ts +8 -7
- package/{commands → src/commands}/GetLifecyclePolicyCommand.ts +8 -7
- package/{commands → src/commands}/GetMetricPolicyCommand.ts +8 -7
- package/{commands → src/commands}/ListContainersCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/PutContainerPolicyCommand.ts +8 -7
- package/{commands → src/commands}/PutCorsPolicyCommand.ts +8 -7
- package/{commands → src/commands}/PutLifecyclePolicyCommand.ts +8 -7
- package/{commands → src/commands}/PutMetricPolicyCommand.ts +8 -7
- package/{commands → src/commands}/StartAccessLoggingCommand.ts +8 -7
- package/{commands → src/commands}/StopAccessLoggingCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.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}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListContainersPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_json1_1.ts +39 -38
- 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/MediaStore.js.map +0 -1
- package/dist/cjs/MediaStoreClient.js.map +0 -1
- package/dist/cjs/commands/CreateContainerCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteContainerCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteContainerPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteCorsPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteMetricPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeContainerCommand.js.map +0 -1
- package/dist/cjs/commands/GetContainerPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetCorsPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetLifecyclePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetMetricPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/ListContainersCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PutContainerPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutCorsPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutLifecyclePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutMetricPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/StartAccessLoggingCommand.js.map +0 -1
- package/dist/cjs/commands/StopAccessLoggingCommand.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/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -30
- 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/ListContainersPaginator.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/MediaStore.js.map +0 -1
- package/dist/es/MediaStoreClient.js.map +0 -1
- package/dist/es/commands/CreateContainerCommand.js.map +0 -1
- package/dist/es/commands/DeleteContainerCommand.js.map +0 -1
- package/dist/es/commands/DeleteContainerPolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteCorsPolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteMetricPolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeContainerCommand.js.map +0 -1
- package/dist/es/commands/GetContainerPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetCorsPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetLifecyclePolicyCommand.js.map +0 -1
- package/dist/es/commands/GetMetricPolicyCommand.js.map +0 -1
- package/dist/es/commands/ListContainersCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PutContainerPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutCorsPolicyCommand.js +0 -75
- package/dist/es/commands/PutCorsPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutLifecyclePolicyCommand.js.map +0 -1
- package/dist/es/commands/PutMetricPolicyCommand.js.map +0 -1
- package/dist/es/commands/StartAccessLoggingCommand.js.map +0 -1
- package/dist/es/commands/StopAccessLoggingCommand.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/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/ListContainersPaginator.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_1CreateContainerCommand = function (input, context
|
|
|
9
9
|
"x-amz-target": "MediaStore_20170901.CreateContainer",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CreateContainerInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1DeleteContainerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1DeleteContainerCommand = function (input, context
|
|
|
20
20
|
"x-amz-target": "MediaStore_20170901.DeleteContainer",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1DeleteContainerInput(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1DeleteContainerPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1DeleteContainerPolicyCommand = function (input, c
|
|
|
31
31
|
"x-amz-target": "MediaStore_20170901.DeleteContainerPolicy",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1DeleteContainerPolicyInput(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DeleteCorsPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DeleteCorsPolicyCommand = function (input, contex
|
|
|
42
42
|
"x-amz-target": "MediaStore_20170901.DeleteCorsPolicy",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DeleteCorsPolicyInput(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeleteLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteLifecyclePolicyCommand = function (input, c
|
|
|
53
53
|
"x-amz-target": "MediaStore_20170901.DeleteLifecyclePolicy",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyInput(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteMetricPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteMetricPolicyCommand = function (input, cont
|
|
|
64
64
|
"x-amz-target": "MediaStore_20170901.DeleteMetricPolicy",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteMetricPolicyInput(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribeContainerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribeContainerCommand = function (input, conte
|
|
|
75
75
|
"x-amz-target": "MediaStore_20170901.DescribeContainer",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribeContainerInput(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1GetContainerPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1GetContainerPolicyCommand = function (input, cont
|
|
|
86
86
|
"x-amz-target": "MediaStore_20170901.GetContainerPolicy",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1GetContainerPolicyInput(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1GetCorsPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1GetCorsPolicyCommand = function (input, context)
|
|
|
97
97
|
"x-amz-target": "MediaStore_20170901.GetCorsPolicy",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1GetCorsPolicyInput(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1GetLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1GetLifecyclePolicyCommand = function (input, cont
|
|
|
108
108
|
"x-amz-target": "MediaStore_20170901.GetLifecyclePolicy",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1GetLifecyclePolicyInput(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1GetMetricPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1GetMetricPolicyCommand = function (input, context
|
|
|
119
119
|
"x-amz-target": "MediaStore_20170901.GetMetricPolicy",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1GetMetricPolicyInput(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1ListContainersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1ListContainersCommand = function (input, context)
|
|
|
130
130
|
"x-amz-target": "MediaStore_20170901.ListContainers",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1ListContainersInput(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
141
141
|
"x-amz-target": "MediaStore_20170901.ListTagsForResource",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1PutContainerPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1PutContainerPolicyCommand = function (input, cont
|
|
|
152
152
|
"x-amz-target": "MediaStore_20170901.PutContainerPolicy",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1PutContainerPolicyInput(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1PutCorsPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1PutCorsPolicyCommand = function (input, context)
|
|
|
163
163
|
"x-amz-target": "MediaStore_20170901.PutCorsPolicy",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1PutCorsPolicyInput(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1PutLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1PutLifecyclePolicyCommand = function (input, cont
|
|
|
174
174
|
"x-amz-target": "MediaStore_20170901.PutLifecyclePolicy",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1PutLifecyclePolicyInput(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1PutMetricPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1PutMetricPolicyCommand = function (input, context
|
|
|
185
185
|
"x-amz-target": "MediaStore_20170901.PutMetricPolicy",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1PutMetricPolicyInput(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1StartAccessLoggingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1StartAccessLoggingCommand = function (input, cont
|
|
|
196
196
|
"x-amz-target": "MediaStore_20170901.StartAccessLogging",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1StartAccessLoggingInput(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1StopAccessLoggingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1StopAccessLoggingCommand = function (input, conte
|
|
|
207
207
|
"x-amz-target": "MediaStore_20170901.StopAccessLogging",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1StopAccessLoggingInput(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
218
218
|
"x-amz-target": "MediaStore_20170901.TagResource",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
229
229
|
"x-amz-target": "MediaStore_20170901.UntagResource",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var deserializeAws_json1_1CreateContainerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -238,15 +238,15 @@ export var deserializeAws_json1_1CreateContainerCommand = function (output, cont
|
|
|
238
238
|
switch (_a.label) {
|
|
239
239
|
case 0:
|
|
240
240
|
if (output.statusCode >= 300) {
|
|
241
|
-
return [2
|
|
241
|
+
return [2, deserializeAws_json1_1CreateContainerCommandError(output, context)];
|
|
242
242
|
}
|
|
243
|
-
return [4
|
|
243
|
+
return [4, parseBody(output.body, context)];
|
|
244
244
|
case 1:
|
|
245
245
|
data = _a.sent();
|
|
246
246
|
contents = {};
|
|
247
247
|
contents = deserializeAws_json1_1CreateContainerOutput(data, context);
|
|
248
248
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
249
|
-
return [2
|
|
249
|
+
return [2, Promise.resolve(response)];
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}); };
|
|
@@ -258,39 +258,39 @@ var deserializeAws_json1_1CreateContainerCommandError = function (output, contex
|
|
|
258
258
|
case 0:
|
|
259
259
|
_a = [__assign({}, output)];
|
|
260
260
|
_f = {};
|
|
261
|
-
return [4
|
|
261
|
+
return [4, parseBody(output.body, context)];
|
|
262
262
|
case 1:
|
|
263
263
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
264
264
|
errorCode = "UnknownError";
|
|
265
265
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
266
266
|
_b = errorCode;
|
|
267
267
|
switch (_b) {
|
|
268
|
-
case "ContainerInUseException": return [3
|
|
269
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
270
|
-
case "InternalServerError": return [3
|
|
271
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
272
|
-
case "LimitExceededException": return [3
|
|
273
|
-
case "com.amazonaws.mediastore#LimitExceededException": return [3
|
|
268
|
+
case "ContainerInUseException": return [3, 2];
|
|
269
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
270
|
+
case "InternalServerError": return [3, 4];
|
|
271
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 4];
|
|
272
|
+
case "LimitExceededException": return [3, 6];
|
|
273
|
+
case "com.amazonaws.mediastore#LimitExceededException": return [3, 6];
|
|
274
274
|
}
|
|
275
|
-
return [3
|
|
275
|
+
return [3, 8];
|
|
276
276
|
case 2:
|
|
277
277
|
_c = [{}];
|
|
278
|
-
return [4
|
|
278
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
279
279
|
case 3:
|
|
280
280
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
281
|
-
return [3
|
|
281
|
+
return [3, 9];
|
|
282
282
|
case 4:
|
|
283
283
|
_d = [{}];
|
|
284
|
-
return [4
|
|
284
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
285
285
|
case 5:
|
|
286
286
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
287
|
-
return [3
|
|
287
|
+
return [3, 9];
|
|
288
288
|
case 6:
|
|
289
289
|
_e = [{}];
|
|
290
|
-
return [4
|
|
290
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
291
291
|
case 7:
|
|
292
292
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
293
|
-
return [3
|
|
293
|
+
return [3, 9];
|
|
294
294
|
case 8:
|
|
295
295
|
parsedBody = parsedOutput.body;
|
|
296
296
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -300,7 +300,7 @@ var deserializeAws_json1_1CreateContainerCommandError = function (output, contex
|
|
|
300
300
|
message = response.message || response.Message || errorCode;
|
|
301
301
|
response.message = message;
|
|
302
302
|
delete response.Message;
|
|
303
|
-
return [2
|
|
303
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
306
|
}); };
|
|
@@ -310,15 +310,15 @@ export var deserializeAws_json1_1DeleteContainerCommand = function (output, cont
|
|
|
310
310
|
switch (_a.label) {
|
|
311
311
|
case 0:
|
|
312
312
|
if (output.statusCode >= 300) {
|
|
313
|
-
return [2
|
|
313
|
+
return [2, deserializeAws_json1_1DeleteContainerCommandError(output, context)];
|
|
314
314
|
}
|
|
315
|
-
return [4
|
|
315
|
+
return [4, parseBody(output.body, context)];
|
|
316
316
|
case 1:
|
|
317
317
|
data = _a.sent();
|
|
318
318
|
contents = {};
|
|
319
319
|
contents = deserializeAws_json1_1DeleteContainerOutput(data, context);
|
|
320
320
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
321
|
-
return [2
|
|
321
|
+
return [2, Promise.resolve(response)];
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}); };
|
|
@@ -330,39 +330,39 @@ var deserializeAws_json1_1DeleteContainerCommandError = function (output, contex
|
|
|
330
330
|
case 0:
|
|
331
331
|
_a = [__assign({}, output)];
|
|
332
332
|
_f = {};
|
|
333
|
-
return [4
|
|
333
|
+
return [4, parseBody(output.body, context)];
|
|
334
334
|
case 1:
|
|
335
335
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
336
336
|
errorCode = "UnknownError";
|
|
337
337
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
338
338
|
_b = errorCode;
|
|
339
339
|
switch (_b) {
|
|
340
|
-
case "ContainerInUseException": return [3
|
|
341
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
342
|
-
case "ContainerNotFoundException": return [3
|
|
343
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
344
|
-
case "InternalServerError": return [3
|
|
345
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
340
|
+
case "ContainerInUseException": return [3, 2];
|
|
341
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
342
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
343
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
344
|
+
case "InternalServerError": return [3, 6];
|
|
345
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
346
346
|
}
|
|
347
|
-
return [3
|
|
347
|
+
return [3, 8];
|
|
348
348
|
case 2:
|
|
349
349
|
_c = [{}];
|
|
350
|
-
return [4
|
|
350
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
351
351
|
case 3:
|
|
352
352
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
353
|
-
return [3
|
|
353
|
+
return [3, 9];
|
|
354
354
|
case 4:
|
|
355
355
|
_d = [{}];
|
|
356
|
-
return [4
|
|
356
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
357
357
|
case 5:
|
|
358
358
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
359
|
-
return [3
|
|
359
|
+
return [3, 9];
|
|
360
360
|
case 6:
|
|
361
361
|
_e = [{}];
|
|
362
|
-
return [4
|
|
362
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
363
363
|
case 7:
|
|
364
364
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
365
|
-
return [3
|
|
365
|
+
return [3, 9];
|
|
366
366
|
case 8:
|
|
367
367
|
parsedBody = parsedOutput.body;
|
|
368
368
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -372,7 +372,7 @@ var deserializeAws_json1_1DeleteContainerCommandError = function (output, contex
|
|
|
372
372
|
message = response.message || response.Message || errorCode;
|
|
373
373
|
response.message = message;
|
|
374
374
|
delete response.Message;
|
|
375
|
-
return [2
|
|
375
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
}); };
|
|
@@ -382,15 +382,15 @@ export var deserializeAws_json1_1DeleteContainerPolicyCommand = function (output
|
|
|
382
382
|
switch (_a.label) {
|
|
383
383
|
case 0:
|
|
384
384
|
if (output.statusCode >= 300) {
|
|
385
|
-
return [2
|
|
385
|
+
return [2, deserializeAws_json1_1DeleteContainerPolicyCommandError(output, context)];
|
|
386
386
|
}
|
|
387
|
-
return [4
|
|
387
|
+
return [4, parseBody(output.body, context)];
|
|
388
388
|
case 1:
|
|
389
389
|
data = _a.sent();
|
|
390
390
|
contents = {};
|
|
391
391
|
contents = deserializeAws_json1_1DeleteContainerPolicyOutput(data, context);
|
|
392
392
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
393
|
-
return [2
|
|
393
|
+
return [2, Promise.resolve(response)];
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
396
|
}); };
|
|
@@ -402,47 +402,47 @@ var deserializeAws_json1_1DeleteContainerPolicyCommandError = function (output,
|
|
|
402
402
|
case 0:
|
|
403
403
|
_a = [__assign({}, output)];
|
|
404
404
|
_g = {};
|
|
405
|
-
return [4
|
|
405
|
+
return [4, parseBody(output.body, context)];
|
|
406
406
|
case 1:
|
|
407
407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
408
408
|
errorCode = "UnknownError";
|
|
409
409
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
410
|
_b = errorCode;
|
|
411
411
|
switch (_b) {
|
|
412
|
-
case "ContainerInUseException": return [3
|
|
413
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
414
|
-
case "ContainerNotFoundException": return [3
|
|
415
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
416
|
-
case "InternalServerError": return [3
|
|
417
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
418
|
-
case "PolicyNotFoundException": return [3
|
|
419
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3
|
|
412
|
+
case "ContainerInUseException": return [3, 2];
|
|
413
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
414
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
415
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
416
|
+
case "InternalServerError": return [3, 6];
|
|
417
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
418
|
+
case "PolicyNotFoundException": return [3, 8];
|
|
419
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3, 8];
|
|
420
420
|
}
|
|
421
|
-
return [3
|
|
421
|
+
return [3, 10];
|
|
422
422
|
case 2:
|
|
423
423
|
_c = [{}];
|
|
424
|
-
return [4
|
|
424
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
425
425
|
case 3:
|
|
426
426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
427
|
-
return [3
|
|
427
|
+
return [3, 11];
|
|
428
428
|
case 4:
|
|
429
429
|
_d = [{}];
|
|
430
|
-
return [4
|
|
430
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
431
431
|
case 5:
|
|
432
432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
433
|
-
return [3
|
|
433
|
+
return [3, 11];
|
|
434
434
|
case 6:
|
|
435
435
|
_e = [{}];
|
|
436
|
-
return [4
|
|
436
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
437
437
|
case 7:
|
|
438
438
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
439
|
-
return [3
|
|
439
|
+
return [3, 11];
|
|
440
440
|
case 8:
|
|
441
441
|
_f = [{}];
|
|
442
|
-
return [4
|
|
442
|
+
return [4, deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
443
443
|
case 9:
|
|
444
444
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
445
|
-
return [3
|
|
445
|
+
return [3, 11];
|
|
446
446
|
case 10:
|
|
447
447
|
parsedBody = parsedOutput.body;
|
|
448
448
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -452,7 +452,7 @@ var deserializeAws_json1_1DeleteContainerPolicyCommandError = function (output,
|
|
|
452
452
|
message = response.message || response.Message || errorCode;
|
|
453
453
|
response.message = message;
|
|
454
454
|
delete response.Message;
|
|
455
|
-
return [2
|
|
455
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
456
456
|
}
|
|
457
457
|
});
|
|
458
458
|
}); };
|
|
@@ -462,15 +462,15 @@ export var deserializeAws_json1_1DeleteCorsPolicyCommand = function (output, con
|
|
|
462
462
|
switch (_a.label) {
|
|
463
463
|
case 0:
|
|
464
464
|
if (output.statusCode >= 300) {
|
|
465
|
-
return [2
|
|
465
|
+
return [2, deserializeAws_json1_1DeleteCorsPolicyCommandError(output, context)];
|
|
466
466
|
}
|
|
467
|
-
return [4
|
|
467
|
+
return [4, parseBody(output.body, context)];
|
|
468
468
|
case 1:
|
|
469
469
|
data = _a.sent();
|
|
470
470
|
contents = {};
|
|
471
471
|
contents = deserializeAws_json1_1DeleteCorsPolicyOutput(data, context);
|
|
472
472
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
473
|
-
return [2
|
|
473
|
+
return [2, Promise.resolve(response)];
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
}); };
|
|
@@ -482,47 +482,47 @@ var deserializeAws_json1_1DeleteCorsPolicyCommandError = function (output, conte
|
|
|
482
482
|
case 0:
|
|
483
483
|
_a = [__assign({}, output)];
|
|
484
484
|
_g = {};
|
|
485
|
-
return [4
|
|
485
|
+
return [4, parseBody(output.body, context)];
|
|
486
486
|
case 1:
|
|
487
487
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
488
488
|
errorCode = "UnknownError";
|
|
489
489
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
490
|
_b = errorCode;
|
|
491
491
|
switch (_b) {
|
|
492
|
-
case "ContainerInUseException": return [3
|
|
493
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
494
|
-
case "ContainerNotFoundException": return [3
|
|
495
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
496
|
-
case "CorsPolicyNotFoundException": return [3
|
|
497
|
-
case "com.amazonaws.mediastore#CorsPolicyNotFoundException": return [3
|
|
498
|
-
case "InternalServerError": return [3
|
|
499
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
492
|
+
case "ContainerInUseException": return [3, 2];
|
|
493
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
494
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
495
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
496
|
+
case "CorsPolicyNotFoundException": return [3, 6];
|
|
497
|
+
case "com.amazonaws.mediastore#CorsPolicyNotFoundException": return [3, 6];
|
|
498
|
+
case "InternalServerError": return [3, 8];
|
|
499
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 8];
|
|
500
500
|
}
|
|
501
|
-
return [3
|
|
501
|
+
return [3, 10];
|
|
502
502
|
case 2:
|
|
503
503
|
_c = [{}];
|
|
504
|
-
return [4
|
|
504
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
505
505
|
case 3:
|
|
506
506
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
507
|
-
return [3
|
|
507
|
+
return [3, 11];
|
|
508
508
|
case 4:
|
|
509
509
|
_d = [{}];
|
|
510
|
-
return [4
|
|
510
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
511
511
|
case 5:
|
|
512
512
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
513
|
-
return [3
|
|
513
|
+
return [3, 11];
|
|
514
514
|
case 6:
|
|
515
515
|
_e = [{}];
|
|
516
|
-
return [4
|
|
516
|
+
return [4, deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
517
517
|
case 7:
|
|
518
518
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
519
|
-
return [3
|
|
519
|
+
return [3, 11];
|
|
520
520
|
case 8:
|
|
521
521
|
_f = [{}];
|
|
522
|
-
return [4
|
|
522
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
523
523
|
case 9:
|
|
524
524
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
525
|
-
return [3
|
|
525
|
+
return [3, 11];
|
|
526
526
|
case 10:
|
|
527
527
|
parsedBody = parsedOutput.body;
|
|
528
528
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -532,7 +532,7 @@ var deserializeAws_json1_1DeleteCorsPolicyCommandError = function (output, conte
|
|
|
532
532
|
message = response.message || response.Message || errorCode;
|
|
533
533
|
response.message = message;
|
|
534
534
|
delete response.Message;
|
|
535
|
-
return [2
|
|
535
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
538
|
}); };
|
|
@@ -542,15 +542,15 @@ export var deserializeAws_json1_1DeleteLifecyclePolicyCommand = function (output
|
|
|
542
542
|
switch (_a.label) {
|
|
543
543
|
case 0:
|
|
544
544
|
if (output.statusCode >= 300) {
|
|
545
|
-
return [2
|
|
545
|
+
return [2, deserializeAws_json1_1DeleteLifecyclePolicyCommandError(output, context)];
|
|
546
546
|
}
|
|
547
|
-
return [4
|
|
547
|
+
return [4, parseBody(output.body, context)];
|
|
548
548
|
case 1:
|
|
549
549
|
data = _a.sent();
|
|
550
550
|
contents = {};
|
|
551
551
|
contents = deserializeAws_json1_1DeleteLifecyclePolicyOutput(data, context);
|
|
552
552
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
553
|
-
return [2
|
|
553
|
+
return [2, Promise.resolve(response)];
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
556
|
}); };
|
|
@@ -562,47 +562,47 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
|
|
|
562
562
|
case 0:
|
|
563
563
|
_a = [__assign({}, output)];
|
|
564
564
|
_g = {};
|
|
565
|
-
return [4
|
|
565
|
+
return [4, parseBody(output.body, context)];
|
|
566
566
|
case 1:
|
|
567
567
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
568
568
|
errorCode = "UnknownError";
|
|
569
569
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
570
|
_b = errorCode;
|
|
571
571
|
switch (_b) {
|
|
572
|
-
case "ContainerInUseException": return [3
|
|
573
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
574
|
-
case "ContainerNotFoundException": return [3
|
|
575
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
576
|
-
case "InternalServerError": return [3
|
|
577
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
578
|
-
case "PolicyNotFoundException": return [3
|
|
579
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3
|
|
572
|
+
case "ContainerInUseException": return [3, 2];
|
|
573
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
574
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
575
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
576
|
+
case "InternalServerError": return [3, 6];
|
|
577
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
578
|
+
case "PolicyNotFoundException": return [3, 8];
|
|
579
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3, 8];
|
|
580
580
|
}
|
|
581
|
-
return [3
|
|
581
|
+
return [3, 10];
|
|
582
582
|
case 2:
|
|
583
583
|
_c = [{}];
|
|
584
|
-
return [4
|
|
584
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
585
585
|
case 3:
|
|
586
586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
587
|
-
return [3
|
|
587
|
+
return [3, 11];
|
|
588
588
|
case 4:
|
|
589
589
|
_d = [{}];
|
|
590
|
-
return [4
|
|
590
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
591
591
|
case 5:
|
|
592
592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
593
|
-
return [3
|
|
593
|
+
return [3, 11];
|
|
594
594
|
case 6:
|
|
595
595
|
_e = [{}];
|
|
596
|
-
return [4
|
|
596
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
597
597
|
case 7:
|
|
598
598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
599
|
-
return [3
|
|
599
|
+
return [3, 11];
|
|
600
600
|
case 8:
|
|
601
601
|
_f = [{}];
|
|
602
|
-
return [4
|
|
602
|
+
return [4, deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
603
603
|
case 9:
|
|
604
604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 11];
|
|
606
606
|
case 10:
|
|
607
607
|
parsedBody = parsedOutput.body;
|
|
608
608
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -612,7 +612,7 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
|
|
|
612
612
|
message = response.message || response.Message || errorCode;
|
|
613
613
|
response.message = message;
|
|
614
614
|
delete response.Message;
|
|
615
|
-
return [2
|
|
615
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
}); };
|
|
@@ -622,15 +622,15 @@ export var deserializeAws_json1_1DeleteMetricPolicyCommand = function (output, c
|
|
|
622
622
|
switch (_a.label) {
|
|
623
623
|
case 0:
|
|
624
624
|
if (output.statusCode >= 300) {
|
|
625
|
-
return [2
|
|
625
|
+
return [2, deserializeAws_json1_1DeleteMetricPolicyCommandError(output, context)];
|
|
626
626
|
}
|
|
627
|
-
return [4
|
|
627
|
+
return [4, parseBody(output.body, context)];
|
|
628
628
|
case 1:
|
|
629
629
|
data = _a.sent();
|
|
630
630
|
contents = {};
|
|
631
631
|
contents = deserializeAws_json1_1DeleteMetricPolicyOutput(data, context);
|
|
632
632
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
633
|
-
return [2
|
|
633
|
+
return [2, Promise.resolve(response)];
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
}); };
|
|
@@ -642,47 +642,47 @@ var deserializeAws_json1_1DeleteMetricPolicyCommandError = function (output, con
|
|
|
642
642
|
case 0:
|
|
643
643
|
_a = [__assign({}, output)];
|
|
644
644
|
_g = {};
|
|
645
|
-
return [4
|
|
645
|
+
return [4, parseBody(output.body, context)];
|
|
646
646
|
case 1:
|
|
647
647
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
648
648
|
errorCode = "UnknownError";
|
|
649
649
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
650
|
_b = errorCode;
|
|
651
651
|
switch (_b) {
|
|
652
|
-
case "ContainerInUseException": return [3
|
|
653
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
654
|
-
case "ContainerNotFoundException": return [3
|
|
655
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
656
|
-
case "InternalServerError": return [3
|
|
657
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
658
|
-
case "PolicyNotFoundException": return [3
|
|
659
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3
|
|
652
|
+
case "ContainerInUseException": return [3, 2];
|
|
653
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
654
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
655
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
656
|
+
case "InternalServerError": return [3, 6];
|
|
657
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
658
|
+
case "PolicyNotFoundException": return [3, 8];
|
|
659
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3, 8];
|
|
660
660
|
}
|
|
661
|
-
return [3
|
|
661
|
+
return [3, 10];
|
|
662
662
|
case 2:
|
|
663
663
|
_c = [{}];
|
|
664
|
-
return [4
|
|
664
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
665
665
|
case 3:
|
|
666
666
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
667
|
-
return [3
|
|
667
|
+
return [3, 11];
|
|
668
668
|
case 4:
|
|
669
669
|
_d = [{}];
|
|
670
|
-
return [4
|
|
670
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
671
671
|
case 5:
|
|
672
672
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
673
|
-
return [3
|
|
673
|
+
return [3, 11];
|
|
674
674
|
case 6:
|
|
675
675
|
_e = [{}];
|
|
676
|
-
return [4
|
|
676
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
677
677
|
case 7:
|
|
678
678
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
679
|
-
return [3
|
|
679
|
+
return [3, 11];
|
|
680
680
|
case 8:
|
|
681
681
|
_f = [{}];
|
|
682
|
-
return [4
|
|
682
|
+
return [4, deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
683
683
|
case 9:
|
|
684
684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
685
|
-
return [3
|
|
685
|
+
return [3, 11];
|
|
686
686
|
case 10:
|
|
687
687
|
parsedBody = parsedOutput.body;
|
|
688
688
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -692,7 +692,7 @@ var deserializeAws_json1_1DeleteMetricPolicyCommandError = function (output, con
|
|
|
692
692
|
message = response.message || response.Message || errorCode;
|
|
693
693
|
response.message = message;
|
|
694
694
|
delete response.Message;
|
|
695
|
-
return [2
|
|
695
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
696
696
|
}
|
|
697
697
|
});
|
|
698
698
|
}); };
|
|
@@ -702,15 +702,15 @@ export var deserializeAws_json1_1DescribeContainerCommand = function (output, co
|
|
|
702
702
|
switch (_a.label) {
|
|
703
703
|
case 0:
|
|
704
704
|
if (output.statusCode >= 300) {
|
|
705
|
-
return [2
|
|
705
|
+
return [2, deserializeAws_json1_1DescribeContainerCommandError(output, context)];
|
|
706
706
|
}
|
|
707
|
-
return [4
|
|
707
|
+
return [4, parseBody(output.body, context)];
|
|
708
708
|
case 1:
|
|
709
709
|
data = _a.sent();
|
|
710
710
|
contents = {};
|
|
711
711
|
contents = deserializeAws_json1_1DescribeContainerOutput(data, context);
|
|
712
712
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
713
|
-
return [2
|
|
713
|
+
return [2, Promise.resolve(response)];
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
}); };
|
|
@@ -722,31 +722,31 @@ var deserializeAws_json1_1DescribeContainerCommandError = function (output, cont
|
|
|
722
722
|
case 0:
|
|
723
723
|
_a = [__assign({}, output)];
|
|
724
724
|
_e = {};
|
|
725
|
-
return [4
|
|
725
|
+
return [4, parseBody(output.body, context)];
|
|
726
726
|
case 1:
|
|
727
727
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
728
728
|
errorCode = "UnknownError";
|
|
729
729
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
730
|
_b = errorCode;
|
|
731
731
|
switch (_b) {
|
|
732
|
-
case "ContainerNotFoundException": return [3
|
|
733
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
734
|
-
case "InternalServerError": return [3
|
|
735
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
732
|
+
case "ContainerNotFoundException": return [3, 2];
|
|
733
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 2];
|
|
734
|
+
case "InternalServerError": return [3, 4];
|
|
735
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 4];
|
|
736
736
|
}
|
|
737
|
-
return [3
|
|
737
|
+
return [3, 6];
|
|
738
738
|
case 2:
|
|
739
739
|
_c = [{}];
|
|
740
|
-
return [4
|
|
740
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
741
741
|
case 3:
|
|
742
742
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
743
|
-
return [3
|
|
743
|
+
return [3, 7];
|
|
744
744
|
case 4:
|
|
745
745
|
_d = [{}];
|
|
746
|
-
return [4
|
|
746
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
747
747
|
case 5:
|
|
748
748
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
749
|
-
return [3
|
|
749
|
+
return [3, 7];
|
|
750
750
|
case 6:
|
|
751
751
|
parsedBody = parsedOutput.body;
|
|
752
752
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -756,7 +756,7 @@ var deserializeAws_json1_1DescribeContainerCommandError = function (output, cont
|
|
|
756
756
|
message = response.message || response.Message || errorCode;
|
|
757
757
|
response.message = message;
|
|
758
758
|
delete response.Message;
|
|
759
|
-
return [2
|
|
759
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
760
760
|
}
|
|
761
761
|
});
|
|
762
762
|
}); };
|
|
@@ -766,15 +766,15 @@ export var deserializeAws_json1_1GetContainerPolicyCommand = function (output, c
|
|
|
766
766
|
switch (_a.label) {
|
|
767
767
|
case 0:
|
|
768
768
|
if (output.statusCode >= 300) {
|
|
769
|
-
return [2
|
|
769
|
+
return [2, deserializeAws_json1_1GetContainerPolicyCommandError(output, context)];
|
|
770
770
|
}
|
|
771
|
-
return [4
|
|
771
|
+
return [4, parseBody(output.body, context)];
|
|
772
772
|
case 1:
|
|
773
773
|
data = _a.sent();
|
|
774
774
|
contents = {};
|
|
775
775
|
contents = deserializeAws_json1_1GetContainerPolicyOutput(data, context);
|
|
776
776
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
777
|
-
return [2
|
|
777
|
+
return [2, Promise.resolve(response)];
|
|
778
778
|
}
|
|
779
779
|
});
|
|
780
780
|
}); };
|
|
@@ -786,47 +786,47 @@ var deserializeAws_json1_1GetContainerPolicyCommandError = function (output, con
|
|
|
786
786
|
case 0:
|
|
787
787
|
_a = [__assign({}, output)];
|
|
788
788
|
_g = {};
|
|
789
|
-
return [4
|
|
789
|
+
return [4, parseBody(output.body, context)];
|
|
790
790
|
case 1:
|
|
791
791
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
792
792
|
errorCode = "UnknownError";
|
|
793
793
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
794
|
_b = errorCode;
|
|
795
795
|
switch (_b) {
|
|
796
|
-
case "ContainerInUseException": return [3
|
|
797
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
798
|
-
case "ContainerNotFoundException": return [3
|
|
799
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
800
|
-
case "InternalServerError": return [3
|
|
801
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
802
|
-
case "PolicyNotFoundException": return [3
|
|
803
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3
|
|
796
|
+
case "ContainerInUseException": return [3, 2];
|
|
797
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
798
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
799
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
800
|
+
case "InternalServerError": return [3, 6];
|
|
801
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
802
|
+
case "PolicyNotFoundException": return [3, 8];
|
|
803
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3, 8];
|
|
804
804
|
}
|
|
805
|
-
return [3
|
|
805
|
+
return [3, 10];
|
|
806
806
|
case 2:
|
|
807
807
|
_c = [{}];
|
|
808
|
-
return [4
|
|
808
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
809
809
|
case 3:
|
|
810
810
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
811
|
-
return [3
|
|
811
|
+
return [3, 11];
|
|
812
812
|
case 4:
|
|
813
813
|
_d = [{}];
|
|
814
|
-
return [4
|
|
814
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
815
815
|
case 5:
|
|
816
816
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
817
|
-
return [3
|
|
817
|
+
return [3, 11];
|
|
818
818
|
case 6:
|
|
819
819
|
_e = [{}];
|
|
820
|
-
return [4
|
|
820
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
821
821
|
case 7:
|
|
822
822
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
823
|
-
return [3
|
|
823
|
+
return [3, 11];
|
|
824
824
|
case 8:
|
|
825
825
|
_f = [{}];
|
|
826
|
-
return [4
|
|
826
|
+
return [4, deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
827
827
|
case 9:
|
|
828
828
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
829
|
-
return [3
|
|
829
|
+
return [3, 11];
|
|
830
830
|
case 10:
|
|
831
831
|
parsedBody = parsedOutput.body;
|
|
832
832
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -836,7 +836,7 @@ var deserializeAws_json1_1GetContainerPolicyCommandError = function (output, con
|
|
|
836
836
|
message = response.message || response.Message || errorCode;
|
|
837
837
|
response.message = message;
|
|
838
838
|
delete response.Message;
|
|
839
|
-
return [2
|
|
839
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
}); };
|
|
@@ -846,15 +846,15 @@ export var deserializeAws_json1_1GetCorsPolicyCommand = function (output, contex
|
|
|
846
846
|
switch (_a.label) {
|
|
847
847
|
case 0:
|
|
848
848
|
if (output.statusCode >= 300) {
|
|
849
|
-
return [2
|
|
849
|
+
return [2, deserializeAws_json1_1GetCorsPolicyCommandError(output, context)];
|
|
850
850
|
}
|
|
851
|
-
return [4
|
|
851
|
+
return [4, parseBody(output.body, context)];
|
|
852
852
|
case 1:
|
|
853
853
|
data = _a.sent();
|
|
854
854
|
contents = {};
|
|
855
855
|
contents = deserializeAws_json1_1GetCorsPolicyOutput(data, context);
|
|
856
856
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
857
|
-
return [2
|
|
857
|
+
return [2, Promise.resolve(response)];
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
}); };
|
|
@@ -866,47 +866,47 @@ var deserializeAws_json1_1GetCorsPolicyCommandError = function (output, context)
|
|
|
866
866
|
case 0:
|
|
867
867
|
_a = [__assign({}, output)];
|
|
868
868
|
_g = {};
|
|
869
|
-
return [4
|
|
869
|
+
return [4, parseBody(output.body, context)];
|
|
870
870
|
case 1:
|
|
871
871
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
872
872
|
errorCode = "UnknownError";
|
|
873
873
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
874
|
_b = errorCode;
|
|
875
875
|
switch (_b) {
|
|
876
|
-
case "ContainerInUseException": return [3
|
|
877
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
878
|
-
case "ContainerNotFoundException": return [3
|
|
879
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
880
|
-
case "CorsPolicyNotFoundException": return [3
|
|
881
|
-
case "com.amazonaws.mediastore#CorsPolicyNotFoundException": return [3
|
|
882
|
-
case "InternalServerError": return [3
|
|
883
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
876
|
+
case "ContainerInUseException": return [3, 2];
|
|
877
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
878
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
879
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
880
|
+
case "CorsPolicyNotFoundException": return [3, 6];
|
|
881
|
+
case "com.amazonaws.mediastore#CorsPolicyNotFoundException": return [3, 6];
|
|
882
|
+
case "InternalServerError": return [3, 8];
|
|
883
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 8];
|
|
884
884
|
}
|
|
885
|
-
return [3
|
|
885
|
+
return [3, 10];
|
|
886
886
|
case 2:
|
|
887
887
|
_c = [{}];
|
|
888
|
-
return [4
|
|
888
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
889
889
|
case 3:
|
|
890
890
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
891
|
-
return [3
|
|
891
|
+
return [3, 11];
|
|
892
892
|
case 4:
|
|
893
893
|
_d = [{}];
|
|
894
|
-
return [4
|
|
894
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
895
895
|
case 5:
|
|
896
896
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
897
|
-
return [3
|
|
897
|
+
return [3, 11];
|
|
898
898
|
case 6:
|
|
899
899
|
_e = [{}];
|
|
900
|
-
return [4
|
|
900
|
+
return [4, deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
901
901
|
case 7:
|
|
902
902
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
903
|
-
return [3
|
|
903
|
+
return [3, 11];
|
|
904
904
|
case 8:
|
|
905
905
|
_f = [{}];
|
|
906
|
-
return [4
|
|
906
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
907
907
|
case 9:
|
|
908
908
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
909
|
-
return [3
|
|
909
|
+
return [3, 11];
|
|
910
910
|
case 10:
|
|
911
911
|
parsedBody = parsedOutput.body;
|
|
912
912
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -916,7 +916,7 @@ var deserializeAws_json1_1GetCorsPolicyCommandError = function (output, context)
|
|
|
916
916
|
message = response.message || response.Message || errorCode;
|
|
917
917
|
response.message = message;
|
|
918
918
|
delete response.Message;
|
|
919
|
-
return [2
|
|
919
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}); };
|
|
@@ -926,15 +926,15 @@ export var deserializeAws_json1_1GetLifecyclePolicyCommand = function (output, c
|
|
|
926
926
|
switch (_a.label) {
|
|
927
927
|
case 0:
|
|
928
928
|
if (output.statusCode >= 300) {
|
|
929
|
-
return [2
|
|
929
|
+
return [2, deserializeAws_json1_1GetLifecyclePolicyCommandError(output, context)];
|
|
930
930
|
}
|
|
931
|
-
return [4
|
|
931
|
+
return [4, parseBody(output.body, context)];
|
|
932
932
|
case 1:
|
|
933
933
|
data = _a.sent();
|
|
934
934
|
contents = {};
|
|
935
935
|
contents = deserializeAws_json1_1GetLifecyclePolicyOutput(data, context);
|
|
936
936
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
937
|
-
return [2
|
|
937
|
+
return [2, Promise.resolve(response)];
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
940
|
}); };
|
|
@@ -946,47 +946,47 @@ var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, con
|
|
|
946
946
|
case 0:
|
|
947
947
|
_a = [__assign({}, output)];
|
|
948
948
|
_g = {};
|
|
949
|
-
return [4
|
|
949
|
+
return [4, parseBody(output.body, context)];
|
|
950
950
|
case 1:
|
|
951
951
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
952
952
|
errorCode = "UnknownError";
|
|
953
953
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
954
|
_b = errorCode;
|
|
955
955
|
switch (_b) {
|
|
956
|
-
case "ContainerInUseException": return [3
|
|
957
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
958
|
-
case "ContainerNotFoundException": return [3
|
|
959
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
960
|
-
case "InternalServerError": return [3
|
|
961
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
962
|
-
case "PolicyNotFoundException": return [3
|
|
963
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3
|
|
956
|
+
case "ContainerInUseException": return [3, 2];
|
|
957
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
958
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
959
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
960
|
+
case "InternalServerError": return [3, 6];
|
|
961
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
962
|
+
case "PolicyNotFoundException": return [3, 8];
|
|
963
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3, 8];
|
|
964
964
|
}
|
|
965
|
-
return [3
|
|
965
|
+
return [3, 10];
|
|
966
966
|
case 2:
|
|
967
967
|
_c = [{}];
|
|
968
|
-
return [4
|
|
968
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
969
969
|
case 3:
|
|
970
970
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
971
|
-
return [3
|
|
971
|
+
return [3, 11];
|
|
972
972
|
case 4:
|
|
973
973
|
_d = [{}];
|
|
974
|
-
return [4
|
|
974
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
975
975
|
case 5:
|
|
976
976
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
977
|
-
return [3
|
|
977
|
+
return [3, 11];
|
|
978
978
|
case 6:
|
|
979
979
|
_e = [{}];
|
|
980
|
-
return [4
|
|
980
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
981
981
|
case 7:
|
|
982
982
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
983
|
-
return [3
|
|
983
|
+
return [3, 11];
|
|
984
984
|
case 8:
|
|
985
985
|
_f = [{}];
|
|
986
|
-
return [4
|
|
986
|
+
return [4, deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
987
987
|
case 9:
|
|
988
988
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
989
|
-
return [3
|
|
989
|
+
return [3, 11];
|
|
990
990
|
case 10:
|
|
991
991
|
parsedBody = parsedOutput.body;
|
|
992
992
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -996,7 +996,7 @@ var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, con
|
|
|
996
996
|
message = response.message || response.Message || errorCode;
|
|
997
997
|
response.message = message;
|
|
998
998
|
delete response.Message;
|
|
999
|
-
return [2
|
|
999
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1000
1000
|
}
|
|
1001
1001
|
});
|
|
1002
1002
|
}); };
|
|
@@ -1006,15 +1006,15 @@ export var deserializeAws_json1_1GetMetricPolicyCommand = function (output, cont
|
|
|
1006
1006
|
switch (_a.label) {
|
|
1007
1007
|
case 0:
|
|
1008
1008
|
if (output.statusCode >= 300) {
|
|
1009
|
-
return [2
|
|
1009
|
+
return [2, deserializeAws_json1_1GetMetricPolicyCommandError(output, context)];
|
|
1010
1010
|
}
|
|
1011
|
-
return [4
|
|
1011
|
+
return [4, parseBody(output.body, context)];
|
|
1012
1012
|
case 1:
|
|
1013
1013
|
data = _a.sent();
|
|
1014
1014
|
contents = {};
|
|
1015
1015
|
contents = deserializeAws_json1_1GetMetricPolicyOutput(data, context);
|
|
1016
1016
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1017
|
-
return [2
|
|
1017
|
+
return [2, Promise.resolve(response)];
|
|
1018
1018
|
}
|
|
1019
1019
|
});
|
|
1020
1020
|
}); };
|
|
@@ -1026,47 +1026,47 @@ var deserializeAws_json1_1GetMetricPolicyCommandError = function (output, contex
|
|
|
1026
1026
|
case 0:
|
|
1027
1027
|
_a = [__assign({}, output)];
|
|
1028
1028
|
_g = {};
|
|
1029
|
-
return [4
|
|
1029
|
+
return [4, parseBody(output.body, context)];
|
|
1030
1030
|
case 1:
|
|
1031
1031
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1032
1032
|
errorCode = "UnknownError";
|
|
1033
1033
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1034
|
_b = errorCode;
|
|
1035
1035
|
switch (_b) {
|
|
1036
|
-
case "ContainerInUseException": return [3
|
|
1037
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1038
|
-
case "ContainerNotFoundException": return [3
|
|
1039
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1040
|
-
case "InternalServerError": return [3
|
|
1041
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1042
|
-
case "PolicyNotFoundException": return [3
|
|
1043
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3
|
|
1036
|
+
case "ContainerInUseException": return [3, 2];
|
|
1037
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1038
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1039
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1040
|
+
case "InternalServerError": return [3, 6];
|
|
1041
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1042
|
+
case "PolicyNotFoundException": return [3, 8];
|
|
1043
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException": return [3, 8];
|
|
1044
1044
|
}
|
|
1045
|
-
return [3
|
|
1045
|
+
return [3, 10];
|
|
1046
1046
|
case 2:
|
|
1047
1047
|
_c = [{}];
|
|
1048
|
-
return [4
|
|
1048
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1049
1049
|
case 3:
|
|
1050
1050
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1051
|
-
return [3
|
|
1051
|
+
return [3, 11];
|
|
1052
1052
|
case 4:
|
|
1053
1053
|
_d = [{}];
|
|
1054
|
-
return [4
|
|
1054
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1055
1055
|
case 5:
|
|
1056
1056
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1057
|
-
return [3
|
|
1057
|
+
return [3, 11];
|
|
1058
1058
|
case 6:
|
|
1059
1059
|
_e = [{}];
|
|
1060
|
-
return [4
|
|
1060
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1061
1061
|
case 7:
|
|
1062
1062
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1063
|
-
return [3
|
|
1063
|
+
return [3, 11];
|
|
1064
1064
|
case 8:
|
|
1065
1065
|
_f = [{}];
|
|
1066
|
-
return [4
|
|
1066
|
+
return [4, deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1067
1067
|
case 9:
|
|
1068
1068
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1069
|
-
return [3
|
|
1069
|
+
return [3, 11];
|
|
1070
1070
|
case 10:
|
|
1071
1071
|
parsedBody = parsedOutput.body;
|
|
1072
1072
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1076,7 +1076,7 @@ var deserializeAws_json1_1GetMetricPolicyCommandError = function (output, contex
|
|
|
1076
1076
|
message = response.message || response.Message || errorCode;
|
|
1077
1077
|
response.message = message;
|
|
1078
1078
|
delete response.Message;
|
|
1079
|
-
return [2
|
|
1079
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
}); };
|
|
@@ -1086,15 +1086,15 @@ export var deserializeAws_json1_1ListContainersCommand = function (output, conte
|
|
|
1086
1086
|
switch (_a.label) {
|
|
1087
1087
|
case 0:
|
|
1088
1088
|
if (output.statusCode >= 300) {
|
|
1089
|
-
return [2
|
|
1089
|
+
return [2, deserializeAws_json1_1ListContainersCommandError(output, context)];
|
|
1090
1090
|
}
|
|
1091
|
-
return [4
|
|
1091
|
+
return [4, parseBody(output.body, context)];
|
|
1092
1092
|
case 1:
|
|
1093
1093
|
data = _a.sent();
|
|
1094
1094
|
contents = {};
|
|
1095
1095
|
contents = deserializeAws_json1_1ListContainersOutput(data, context);
|
|
1096
1096
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1097
|
-
return [2
|
|
1097
|
+
return [2, Promise.resolve(response)];
|
|
1098
1098
|
}
|
|
1099
1099
|
});
|
|
1100
1100
|
}); };
|
|
@@ -1106,23 +1106,23 @@ var deserializeAws_json1_1ListContainersCommandError = function (output, context
|
|
|
1106
1106
|
case 0:
|
|
1107
1107
|
_a = [__assign({}, output)];
|
|
1108
1108
|
_d = {};
|
|
1109
|
-
return [4
|
|
1109
|
+
return [4, parseBody(output.body, context)];
|
|
1110
1110
|
case 1:
|
|
1111
1111
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
1112
1112
|
errorCode = "UnknownError";
|
|
1113
1113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1114
|
_b = errorCode;
|
|
1115
1115
|
switch (_b) {
|
|
1116
|
-
case "InternalServerError": return [3
|
|
1117
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1116
|
+
case "InternalServerError": return [3, 2];
|
|
1117
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 2];
|
|
1118
1118
|
}
|
|
1119
|
-
return [3
|
|
1119
|
+
return [3, 4];
|
|
1120
1120
|
case 2:
|
|
1121
1121
|
_c = [{}];
|
|
1122
|
-
return [4
|
|
1122
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1123
1123
|
case 3:
|
|
1124
1124
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1125
|
-
return [3
|
|
1125
|
+
return [3, 5];
|
|
1126
1126
|
case 4:
|
|
1127
1127
|
parsedBody = parsedOutput.body;
|
|
1128
1128
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1132,7 +1132,7 @@ var deserializeAws_json1_1ListContainersCommandError = function (output, context
|
|
|
1132
1132
|
message = response.message || response.Message || errorCode;
|
|
1133
1133
|
response.message = message;
|
|
1134
1134
|
delete response.Message;
|
|
1135
|
-
return [2
|
|
1135
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1136
1136
|
}
|
|
1137
1137
|
});
|
|
1138
1138
|
}); };
|
|
@@ -1142,15 +1142,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1142
1142
|
switch (_a.label) {
|
|
1143
1143
|
case 0:
|
|
1144
1144
|
if (output.statusCode >= 300) {
|
|
1145
|
-
return [2
|
|
1145
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1146
1146
|
}
|
|
1147
|
-
return [4
|
|
1147
|
+
return [4, parseBody(output.body, context)];
|
|
1148
1148
|
case 1:
|
|
1149
1149
|
data = _a.sent();
|
|
1150
1150
|
contents = {};
|
|
1151
1151
|
contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context);
|
|
1152
1152
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1153
|
-
return [2
|
|
1153
|
+
return [2, Promise.resolve(response)];
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
1156
|
}); };
|
|
@@ -1162,39 +1162,39 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1162
1162
|
case 0:
|
|
1163
1163
|
_a = [__assign({}, output)];
|
|
1164
1164
|
_f = {};
|
|
1165
|
-
return [4
|
|
1165
|
+
return [4, parseBody(output.body, context)];
|
|
1166
1166
|
case 1:
|
|
1167
1167
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1168
1168
|
errorCode = "UnknownError";
|
|
1169
1169
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1170
|
_b = errorCode;
|
|
1171
1171
|
switch (_b) {
|
|
1172
|
-
case "ContainerInUseException": return [3
|
|
1173
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1174
|
-
case "ContainerNotFoundException": return [3
|
|
1175
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1176
|
-
case "InternalServerError": return [3
|
|
1177
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1172
|
+
case "ContainerInUseException": return [3, 2];
|
|
1173
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1174
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1175
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1176
|
+
case "InternalServerError": return [3, 6];
|
|
1177
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1178
1178
|
}
|
|
1179
|
-
return [3
|
|
1179
|
+
return [3, 8];
|
|
1180
1180
|
case 2:
|
|
1181
1181
|
_c = [{}];
|
|
1182
|
-
return [4
|
|
1182
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1183
1183
|
case 3:
|
|
1184
1184
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1185
|
-
return [3
|
|
1185
|
+
return [3, 9];
|
|
1186
1186
|
case 4:
|
|
1187
1187
|
_d = [{}];
|
|
1188
|
-
return [4
|
|
1188
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1189
1189
|
case 5:
|
|
1190
1190
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1191
|
-
return [3
|
|
1191
|
+
return [3, 9];
|
|
1192
1192
|
case 6:
|
|
1193
1193
|
_e = [{}];
|
|
1194
|
-
return [4
|
|
1194
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1195
1195
|
case 7:
|
|
1196
1196
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1197
|
-
return [3
|
|
1197
|
+
return [3, 9];
|
|
1198
1198
|
case 8:
|
|
1199
1199
|
parsedBody = parsedOutput.body;
|
|
1200
1200
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1204,7 +1204,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1204
1204
|
message = response.message || response.Message || errorCode;
|
|
1205
1205
|
response.message = message;
|
|
1206
1206
|
delete response.Message;
|
|
1207
|
-
return [2
|
|
1207
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1208
1208
|
}
|
|
1209
1209
|
});
|
|
1210
1210
|
}); };
|
|
@@ -1214,15 +1214,15 @@ export var deserializeAws_json1_1PutContainerPolicyCommand = function (output, c
|
|
|
1214
1214
|
switch (_a.label) {
|
|
1215
1215
|
case 0:
|
|
1216
1216
|
if (output.statusCode >= 300) {
|
|
1217
|
-
return [2
|
|
1217
|
+
return [2, deserializeAws_json1_1PutContainerPolicyCommandError(output, context)];
|
|
1218
1218
|
}
|
|
1219
|
-
return [4
|
|
1219
|
+
return [4, parseBody(output.body, context)];
|
|
1220
1220
|
case 1:
|
|
1221
1221
|
data = _a.sent();
|
|
1222
1222
|
contents = {};
|
|
1223
1223
|
contents = deserializeAws_json1_1PutContainerPolicyOutput(data, context);
|
|
1224
1224
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1225
|
-
return [2
|
|
1225
|
+
return [2, Promise.resolve(response)];
|
|
1226
1226
|
}
|
|
1227
1227
|
});
|
|
1228
1228
|
}); };
|
|
@@ -1234,39 +1234,39 @@ var deserializeAws_json1_1PutContainerPolicyCommandError = function (output, con
|
|
|
1234
1234
|
case 0:
|
|
1235
1235
|
_a = [__assign({}, output)];
|
|
1236
1236
|
_f = {};
|
|
1237
|
-
return [4
|
|
1237
|
+
return [4, parseBody(output.body, context)];
|
|
1238
1238
|
case 1:
|
|
1239
1239
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1240
1240
|
errorCode = "UnknownError";
|
|
1241
1241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
1242
|
_b = errorCode;
|
|
1243
1243
|
switch (_b) {
|
|
1244
|
-
case "ContainerInUseException": return [3
|
|
1245
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1246
|
-
case "ContainerNotFoundException": return [3
|
|
1247
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1248
|
-
case "InternalServerError": return [3
|
|
1249
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1244
|
+
case "ContainerInUseException": return [3, 2];
|
|
1245
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1246
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1247
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1248
|
+
case "InternalServerError": return [3, 6];
|
|
1249
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1250
1250
|
}
|
|
1251
|
-
return [3
|
|
1251
|
+
return [3, 8];
|
|
1252
1252
|
case 2:
|
|
1253
1253
|
_c = [{}];
|
|
1254
|
-
return [4
|
|
1254
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1255
1255
|
case 3:
|
|
1256
1256
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1257
|
-
return [3
|
|
1257
|
+
return [3, 9];
|
|
1258
1258
|
case 4:
|
|
1259
1259
|
_d = [{}];
|
|
1260
|
-
return [4
|
|
1260
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1261
1261
|
case 5:
|
|
1262
1262
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1263
|
-
return [3
|
|
1263
|
+
return [3, 9];
|
|
1264
1264
|
case 6:
|
|
1265
1265
|
_e = [{}];
|
|
1266
|
-
return [4
|
|
1266
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1267
1267
|
case 7:
|
|
1268
1268
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1269
|
-
return [3
|
|
1269
|
+
return [3, 9];
|
|
1270
1270
|
case 8:
|
|
1271
1271
|
parsedBody = parsedOutput.body;
|
|
1272
1272
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1276,7 +1276,7 @@ var deserializeAws_json1_1PutContainerPolicyCommandError = function (output, con
|
|
|
1276
1276
|
message = response.message || response.Message || errorCode;
|
|
1277
1277
|
response.message = message;
|
|
1278
1278
|
delete response.Message;
|
|
1279
|
-
return [2
|
|
1279
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1280
1280
|
}
|
|
1281
1281
|
});
|
|
1282
1282
|
}); };
|
|
@@ -1286,15 +1286,15 @@ export var deserializeAws_json1_1PutCorsPolicyCommand = function (output, contex
|
|
|
1286
1286
|
switch (_a.label) {
|
|
1287
1287
|
case 0:
|
|
1288
1288
|
if (output.statusCode >= 300) {
|
|
1289
|
-
return [2
|
|
1289
|
+
return [2, deserializeAws_json1_1PutCorsPolicyCommandError(output, context)];
|
|
1290
1290
|
}
|
|
1291
|
-
return [4
|
|
1291
|
+
return [4, parseBody(output.body, context)];
|
|
1292
1292
|
case 1:
|
|
1293
1293
|
data = _a.sent();
|
|
1294
1294
|
contents = {};
|
|
1295
1295
|
contents = deserializeAws_json1_1PutCorsPolicyOutput(data, context);
|
|
1296
1296
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1297
|
-
return [2
|
|
1297
|
+
return [2, Promise.resolve(response)];
|
|
1298
1298
|
}
|
|
1299
1299
|
});
|
|
1300
1300
|
}); };
|
|
@@ -1306,39 +1306,39 @@ var deserializeAws_json1_1PutCorsPolicyCommandError = function (output, context)
|
|
|
1306
1306
|
case 0:
|
|
1307
1307
|
_a = [__assign({}, output)];
|
|
1308
1308
|
_f = {};
|
|
1309
|
-
return [4
|
|
1309
|
+
return [4, parseBody(output.body, context)];
|
|
1310
1310
|
case 1:
|
|
1311
1311
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1312
1312
|
errorCode = "UnknownError";
|
|
1313
1313
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
1314
|
_b = errorCode;
|
|
1315
1315
|
switch (_b) {
|
|
1316
|
-
case "ContainerInUseException": return [3
|
|
1317
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1318
|
-
case "ContainerNotFoundException": return [3
|
|
1319
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1320
|
-
case "InternalServerError": return [3
|
|
1321
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1316
|
+
case "ContainerInUseException": return [3, 2];
|
|
1317
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1318
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1319
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1320
|
+
case "InternalServerError": return [3, 6];
|
|
1321
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1322
1322
|
}
|
|
1323
|
-
return [3
|
|
1323
|
+
return [3, 8];
|
|
1324
1324
|
case 2:
|
|
1325
1325
|
_c = [{}];
|
|
1326
|
-
return [4
|
|
1326
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1327
1327
|
case 3:
|
|
1328
1328
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1329
|
-
return [3
|
|
1329
|
+
return [3, 9];
|
|
1330
1330
|
case 4:
|
|
1331
1331
|
_d = [{}];
|
|
1332
|
-
return [4
|
|
1332
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1333
1333
|
case 5:
|
|
1334
1334
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1335
|
-
return [3
|
|
1335
|
+
return [3, 9];
|
|
1336
1336
|
case 6:
|
|
1337
1337
|
_e = [{}];
|
|
1338
|
-
return [4
|
|
1338
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1339
1339
|
case 7:
|
|
1340
1340
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1341
|
-
return [3
|
|
1341
|
+
return [3, 9];
|
|
1342
1342
|
case 8:
|
|
1343
1343
|
parsedBody = parsedOutput.body;
|
|
1344
1344
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1348,7 +1348,7 @@ var deserializeAws_json1_1PutCorsPolicyCommandError = function (output, context)
|
|
|
1348
1348
|
message = response.message || response.Message || errorCode;
|
|
1349
1349
|
response.message = message;
|
|
1350
1350
|
delete response.Message;
|
|
1351
|
-
return [2
|
|
1351
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1352
1352
|
}
|
|
1353
1353
|
});
|
|
1354
1354
|
}); };
|
|
@@ -1358,15 +1358,15 @@ export var deserializeAws_json1_1PutLifecyclePolicyCommand = function (output, c
|
|
|
1358
1358
|
switch (_a.label) {
|
|
1359
1359
|
case 0:
|
|
1360
1360
|
if (output.statusCode >= 300) {
|
|
1361
|
-
return [2
|
|
1361
|
+
return [2, deserializeAws_json1_1PutLifecyclePolicyCommandError(output, context)];
|
|
1362
1362
|
}
|
|
1363
|
-
return [4
|
|
1363
|
+
return [4, parseBody(output.body, context)];
|
|
1364
1364
|
case 1:
|
|
1365
1365
|
data = _a.sent();
|
|
1366
1366
|
contents = {};
|
|
1367
1367
|
contents = deserializeAws_json1_1PutLifecyclePolicyOutput(data, context);
|
|
1368
1368
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1369
|
-
return [2
|
|
1369
|
+
return [2, Promise.resolve(response)];
|
|
1370
1370
|
}
|
|
1371
1371
|
});
|
|
1372
1372
|
}); };
|
|
@@ -1378,39 +1378,39 @@ var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, con
|
|
|
1378
1378
|
case 0:
|
|
1379
1379
|
_a = [__assign({}, output)];
|
|
1380
1380
|
_f = {};
|
|
1381
|
-
return [4
|
|
1381
|
+
return [4, parseBody(output.body, context)];
|
|
1382
1382
|
case 1:
|
|
1383
1383
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1384
1384
|
errorCode = "UnknownError";
|
|
1385
1385
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
1386
|
_b = errorCode;
|
|
1387
1387
|
switch (_b) {
|
|
1388
|
-
case "ContainerInUseException": return [3
|
|
1389
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1390
|
-
case "ContainerNotFoundException": return [3
|
|
1391
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1392
|
-
case "InternalServerError": return [3
|
|
1393
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1388
|
+
case "ContainerInUseException": return [3, 2];
|
|
1389
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1390
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1391
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1392
|
+
case "InternalServerError": return [3, 6];
|
|
1393
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1394
1394
|
}
|
|
1395
|
-
return [3
|
|
1395
|
+
return [3, 8];
|
|
1396
1396
|
case 2:
|
|
1397
1397
|
_c = [{}];
|
|
1398
|
-
return [4
|
|
1398
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1399
1399
|
case 3:
|
|
1400
1400
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1401
|
-
return [3
|
|
1401
|
+
return [3, 9];
|
|
1402
1402
|
case 4:
|
|
1403
1403
|
_d = [{}];
|
|
1404
|
-
return [4
|
|
1404
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1405
1405
|
case 5:
|
|
1406
1406
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1407
|
-
return [3
|
|
1407
|
+
return [3, 9];
|
|
1408
1408
|
case 6:
|
|
1409
1409
|
_e = [{}];
|
|
1410
|
-
return [4
|
|
1410
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1411
1411
|
case 7:
|
|
1412
1412
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1413
|
-
return [3
|
|
1413
|
+
return [3, 9];
|
|
1414
1414
|
case 8:
|
|
1415
1415
|
parsedBody = parsedOutput.body;
|
|
1416
1416
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1420,7 +1420,7 @@ var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, con
|
|
|
1420
1420
|
message = response.message || response.Message || errorCode;
|
|
1421
1421
|
response.message = message;
|
|
1422
1422
|
delete response.Message;
|
|
1423
|
-
return [2
|
|
1423
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1424
1424
|
}
|
|
1425
1425
|
});
|
|
1426
1426
|
}); };
|
|
@@ -1430,15 +1430,15 @@ export var deserializeAws_json1_1PutMetricPolicyCommand = function (output, cont
|
|
|
1430
1430
|
switch (_a.label) {
|
|
1431
1431
|
case 0:
|
|
1432
1432
|
if (output.statusCode >= 300) {
|
|
1433
|
-
return [2
|
|
1433
|
+
return [2, deserializeAws_json1_1PutMetricPolicyCommandError(output, context)];
|
|
1434
1434
|
}
|
|
1435
|
-
return [4
|
|
1435
|
+
return [4, parseBody(output.body, context)];
|
|
1436
1436
|
case 1:
|
|
1437
1437
|
data = _a.sent();
|
|
1438
1438
|
contents = {};
|
|
1439
1439
|
contents = deserializeAws_json1_1PutMetricPolicyOutput(data, context);
|
|
1440
1440
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1441
|
-
return [2
|
|
1441
|
+
return [2, Promise.resolve(response)];
|
|
1442
1442
|
}
|
|
1443
1443
|
});
|
|
1444
1444
|
}); };
|
|
@@ -1450,39 +1450,39 @@ var deserializeAws_json1_1PutMetricPolicyCommandError = function (output, contex
|
|
|
1450
1450
|
case 0:
|
|
1451
1451
|
_a = [__assign({}, output)];
|
|
1452
1452
|
_f = {};
|
|
1453
|
-
return [4
|
|
1453
|
+
return [4, parseBody(output.body, context)];
|
|
1454
1454
|
case 1:
|
|
1455
1455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1456
1456
|
errorCode = "UnknownError";
|
|
1457
1457
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1458
|
_b = errorCode;
|
|
1459
1459
|
switch (_b) {
|
|
1460
|
-
case "ContainerInUseException": return [3
|
|
1461
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1462
|
-
case "ContainerNotFoundException": return [3
|
|
1463
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1464
|
-
case "InternalServerError": return [3
|
|
1465
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1460
|
+
case "ContainerInUseException": return [3, 2];
|
|
1461
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1462
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1463
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1464
|
+
case "InternalServerError": return [3, 6];
|
|
1465
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1466
1466
|
}
|
|
1467
|
-
return [3
|
|
1467
|
+
return [3, 8];
|
|
1468
1468
|
case 2:
|
|
1469
1469
|
_c = [{}];
|
|
1470
|
-
return [4
|
|
1470
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1471
1471
|
case 3:
|
|
1472
1472
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1473
|
-
return [3
|
|
1473
|
+
return [3, 9];
|
|
1474
1474
|
case 4:
|
|
1475
1475
|
_d = [{}];
|
|
1476
|
-
return [4
|
|
1476
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1477
1477
|
case 5:
|
|
1478
1478
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1479
|
-
return [3
|
|
1479
|
+
return [3, 9];
|
|
1480
1480
|
case 6:
|
|
1481
1481
|
_e = [{}];
|
|
1482
|
-
return [4
|
|
1482
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1483
1483
|
case 7:
|
|
1484
1484
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1485
|
-
return [3
|
|
1485
|
+
return [3, 9];
|
|
1486
1486
|
case 8:
|
|
1487
1487
|
parsedBody = parsedOutput.body;
|
|
1488
1488
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1492,7 +1492,7 @@ var deserializeAws_json1_1PutMetricPolicyCommandError = function (output, contex
|
|
|
1492
1492
|
message = response.message || response.Message || errorCode;
|
|
1493
1493
|
response.message = message;
|
|
1494
1494
|
delete response.Message;
|
|
1495
|
-
return [2
|
|
1495
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1496
1496
|
}
|
|
1497
1497
|
});
|
|
1498
1498
|
}); };
|
|
@@ -1502,15 +1502,15 @@ export var deserializeAws_json1_1StartAccessLoggingCommand = function (output, c
|
|
|
1502
1502
|
switch (_a.label) {
|
|
1503
1503
|
case 0:
|
|
1504
1504
|
if (output.statusCode >= 300) {
|
|
1505
|
-
return [2
|
|
1505
|
+
return [2, deserializeAws_json1_1StartAccessLoggingCommandError(output, context)];
|
|
1506
1506
|
}
|
|
1507
|
-
return [4
|
|
1507
|
+
return [4, parseBody(output.body, context)];
|
|
1508
1508
|
case 1:
|
|
1509
1509
|
data = _a.sent();
|
|
1510
1510
|
contents = {};
|
|
1511
1511
|
contents = deserializeAws_json1_1StartAccessLoggingOutput(data, context);
|
|
1512
1512
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1513
|
-
return [2
|
|
1513
|
+
return [2, Promise.resolve(response)];
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
1516
|
}); };
|
|
@@ -1522,39 +1522,39 @@ var deserializeAws_json1_1StartAccessLoggingCommandError = function (output, con
|
|
|
1522
1522
|
case 0:
|
|
1523
1523
|
_a = [__assign({}, output)];
|
|
1524
1524
|
_f = {};
|
|
1525
|
-
return [4
|
|
1525
|
+
return [4, parseBody(output.body, context)];
|
|
1526
1526
|
case 1:
|
|
1527
1527
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1528
1528
|
errorCode = "UnknownError";
|
|
1529
1529
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
1530
|
_b = errorCode;
|
|
1531
1531
|
switch (_b) {
|
|
1532
|
-
case "ContainerInUseException": return [3
|
|
1533
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1534
|
-
case "ContainerNotFoundException": return [3
|
|
1535
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1536
|
-
case "InternalServerError": return [3
|
|
1537
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1532
|
+
case "ContainerInUseException": return [3, 2];
|
|
1533
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1534
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1535
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1536
|
+
case "InternalServerError": return [3, 6];
|
|
1537
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1538
1538
|
}
|
|
1539
|
-
return [3
|
|
1539
|
+
return [3, 8];
|
|
1540
1540
|
case 2:
|
|
1541
1541
|
_c = [{}];
|
|
1542
|
-
return [4
|
|
1542
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1543
1543
|
case 3:
|
|
1544
1544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1545
|
-
return [3
|
|
1545
|
+
return [3, 9];
|
|
1546
1546
|
case 4:
|
|
1547
1547
|
_d = [{}];
|
|
1548
|
-
return [4
|
|
1548
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1549
1549
|
case 5:
|
|
1550
1550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3
|
|
1551
|
+
return [3, 9];
|
|
1552
1552
|
case 6:
|
|
1553
1553
|
_e = [{}];
|
|
1554
|
-
return [4
|
|
1554
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1555
1555
|
case 7:
|
|
1556
1556
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1557
|
-
return [3
|
|
1557
|
+
return [3, 9];
|
|
1558
1558
|
case 8:
|
|
1559
1559
|
parsedBody = parsedOutput.body;
|
|
1560
1560
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1564,7 +1564,7 @@ var deserializeAws_json1_1StartAccessLoggingCommandError = function (output, con
|
|
|
1564
1564
|
message = response.message || response.Message || errorCode;
|
|
1565
1565
|
response.message = message;
|
|
1566
1566
|
delete response.Message;
|
|
1567
|
-
return [2
|
|
1567
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1568
1568
|
}
|
|
1569
1569
|
});
|
|
1570
1570
|
}); };
|
|
@@ -1574,15 +1574,15 @@ export var deserializeAws_json1_1StopAccessLoggingCommand = function (output, co
|
|
|
1574
1574
|
switch (_a.label) {
|
|
1575
1575
|
case 0:
|
|
1576
1576
|
if (output.statusCode >= 300) {
|
|
1577
|
-
return [2
|
|
1577
|
+
return [2, deserializeAws_json1_1StopAccessLoggingCommandError(output, context)];
|
|
1578
1578
|
}
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, parseBody(output.body, context)];
|
|
1580
1580
|
case 1:
|
|
1581
1581
|
data = _a.sent();
|
|
1582
1582
|
contents = {};
|
|
1583
1583
|
contents = deserializeAws_json1_1StopAccessLoggingOutput(data, context);
|
|
1584
1584
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1585
|
-
return [2
|
|
1585
|
+
return [2, Promise.resolve(response)];
|
|
1586
1586
|
}
|
|
1587
1587
|
});
|
|
1588
1588
|
}); };
|
|
@@ -1594,39 +1594,39 @@ var deserializeAws_json1_1StopAccessLoggingCommandError = function (output, cont
|
|
|
1594
1594
|
case 0:
|
|
1595
1595
|
_a = [__assign({}, output)];
|
|
1596
1596
|
_f = {};
|
|
1597
|
-
return [4
|
|
1597
|
+
return [4, parseBody(output.body, context)];
|
|
1598
1598
|
case 1:
|
|
1599
1599
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1600
1600
|
errorCode = "UnknownError";
|
|
1601
1601
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
1602
|
_b = errorCode;
|
|
1603
1603
|
switch (_b) {
|
|
1604
|
-
case "ContainerInUseException": return [3
|
|
1605
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1606
|
-
case "ContainerNotFoundException": return [3
|
|
1607
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1608
|
-
case "InternalServerError": return [3
|
|
1609
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1604
|
+
case "ContainerInUseException": return [3, 2];
|
|
1605
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1606
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1607
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1608
|
+
case "InternalServerError": return [3, 6];
|
|
1609
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1610
1610
|
}
|
|
1611
|
-
return [3
|
|
1611
|
+
return [3, 8];
|
|
1612
1612
|
case 2:
|
|
1613
1613
|
_c = [{}];
|
|
1614
|
-
return [4
|
|
1614
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1615
1615
|
case 3:
|
|
1616
1616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1617
|
-
return [3
|
|
1617
|
+
return [3, 9];
|
|
1618
1618
|
case 4:
|
|
1619
1619
|
_d = [{}];
|
|
1620
|
-
return [4
|
|
1620
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1621
1621
|
case 5:
|
|
1622
1622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1623
|
-
return [3
|
|
1623
|
+
return [3, 9];
|
|
1624
1624
|
case 6:
|
|
1625
1625
|
_e = [{}];
|
|
1626
|
-
return [4
|
|
1626
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1627
1627
|
case 7:
|
|
1628
1628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1629
|
-
return [3
|
|
1629
|
+
return [3, 9];
|
|
1630
1630
|
case 8:
|
|
1631
1631
|
parsedBody = parsedOutput.body;
|
|
1632
1632
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1636,7 +1636,7 @@ var deserializeAws_json1_1StopAccessLoggingCommandError = function (output, cont
|
|
|
1636
1636
|
message = response.message || response.Message || errorCode;
|
|
1637
1637
|
response.message = message;
|
|
1638
1638
|
delete response.Message;
|
|
1639
|
-
return [2
|
|
1639
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
1642
|
}); };
|
|
@@ -1646,15 +1646,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
1646
1646
|
switch (_a.label) {
|
|
1647
1647
|
case 0:
|
|
1648
1648
|
if (output.statusCode >= 300) {
|
|
1649
|
-
return [2
|
|
1649
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1650
1650
|
}
|
|
1651
|
-
return [4
|
|
1651
|
+
return [4, parseBody(output.body, context)];
|
|
1652
1652
|
case 1:
|
|
1653
1653
|
data = _a.sent();
|
|
1654
1654
|
contents = {};
|
|
1655
1655
|
contents = deserializeAws_json1_1TagResourceOutput(data, context);
|
|
1656
1656
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1657
|
-
return [2
|
|
1657
|
+
return [2, Promise.resolve(response)];
|
|
1658
1658
|
}
|
|
1659
1659
|
});
|
|
1660
1660
|
}); };
|
|
@@ -1666,39 +1666,39 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
1666
1666
|
case 0:
|
|
1667
1667
|
_a = [__assign({}, output)];
|
|
1668
1668
|
_f = {};
|
|
1669
|
-
return [4
|
|
1669
|
+
return [4, parseBody(output.body, context)];
|
|
1670
1670
|
case 1:
|
|
1671
1671
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1672
1672
|
errorCode = "UnknownError";
|
|
1673
1673
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1674
|
_b = errorCode;
|
|
1675
1675
|
switch (_b) {
|
|
1676
|
-
case "ContainerInUseException": return [3
|
|
1677
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1678
|
-
case "ContainerNotFoundException": return [3
|
|
1679
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1680
|
-
case "InternalServerError": return [3
|
|
1681
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1676
|
+
case "ContainerInUseException": return [3, 2];
|
|
1677
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1678
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1679
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1680
|
+
case "InternalServerError": return [3, 6];
|
|
1681
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1682
1682
|
}
|
|
1683
|
-
return [3
|
|
1683
|
+
return [3, 8];
|
|
1684
1684
|
case 2:
|
|
1685
1685
|
_c = [{}];
|
|
1686
|
-
return [4
|
|
1686
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1687
1687
|
case 3:
|
|
1688
1688
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1689
|
-
return [3
|
|
1689
|
+
return [3, 9];
|
|
1690
1690
|
case 4:
|
|
1691
1691
|
_d = [{}];
|
|
1692
|
-
return [4
|
|
1692
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1693
1693
|
case 5:
|
|
1694
1694
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1695
|
-
return [3
|
|
1695
|
+
return [3, 9];
|
|
1696
1696
|
case 6:
|
|
1697
1697
|
_e = [{}];
|
|
1698
|
-
return [4
|
|
1698
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1699
1699
|
case 7:
|
|
1700
1700
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1701
|
-
return [3
|
|
1701
|
+
return [3, 9];
|
|
1702
1702
|
case 8:
|
|
1703
1703
|
parsedBody = parsedOutput.body;
|
|
1704
1704
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1708,7 +1708,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
1708
1708
|
message = response.message || response.Message || errorCode;
|
|
1709
1709
|
response.message = message;
|
|
1710
1710
|
delete response.Message;
|
|
1711
|
-
return [2
|
|
1711
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1712
1712
|
}
|
|
1713
1713
|
});
|
|
1714
1714
|
}); };
|
|
@@ -1718,15 +1718,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
1718
1718
|
switch (_a.label) {
|
|
1719
1719
|
case 0:
|
|
1720
1720
|
if (output.statusCode >= 300) {
|
|
1721
|
-
return [2
|
|
1721
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1722
1722
|
}
|
|
1723
|
-
return [4
|
|
1723
|
+
return [4, parseBody(output.body, context)];
|
|
1724
1724
|
case 1:
|
|
1725
1725
|
data = _a.sent();
|
|
1726
1726
|
contents = {};
|
|
1727
1727
|
contents = deserializeAws_json1_1UntagResourceOutput(data, context);
|
|
1728
1728
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1729
|
-
return [2
|
|
1729
|
+
return [2, Promise.resolve(response)];
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
1732
|
}); };
|
|
@@ -1738,39 +1738,39 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
1738
1738
|
case 0:
|
|
1739
1739
|
_a = [__assign({}, output)];
|
|
1740
1740
|
_f = {};
|
|
1741
|
-
return [4
|
|
1741
|
+
return [4, parseBody(output.body, context)];
|
|
1742
1742
|
case 1:
|
|
1743
1743
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1744
1744
|
errorCode = "UnknownError";
|
|
1745
1745
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
1746
|
_b = errorCode;
|
|
1747
1747
|
switch (_b) {
|
|
1748
|
-
case "ContainerInUseException": return [3
|
|
1749
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3
|
|
1750
|
-
case "ContainerNotFoundException": return [3
|
|
1751
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3
|
|
1752
|
-
case "InternalServerError": return [3
|
|
1753
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3
|
|
1748
|
+
case "ContainerInUseException": return [3, 2];
|
|
1749
|
+
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1750
|
+
case "ContainerNotFoundException": return [3, 4];
|
|
1751
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1752
|
+
case "InternalServerError": return [3, 6];
|
|
1753
|
+
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1754
1754
|
}
|
|
1755
|
-
return [3
|
|
1755
|
+
return [3, 8];
|
|
1756
1756
|
case 2:
|
|
1757
1757
|
_c = [{}];
|
|
1758
|
-
return [4
|
|
1758
|
+
return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1759
1759
|
case 3:
|
|
1760
1760
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1761
|
-
return [3
|
|
1761
|
+
return [3, 9];
|
|
1762
1762
|
case 4:
|
|
1763
1763
|
_d = [{}];
|
|
1764
|
-
return [4
|
|
1764
|
+
return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1765
1765
|
case 5:
|
|
1766
1766
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1767
|
-
return [3
|
|
1767
|
+
return [3, 9];
|
|
1768
1768
|
case 6:
|
|
1769
1769
|
_e = [{}];
|
|
1770
|
-
return [4
|
|
1770
|
+
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1771
1771
|
case 7:
|
|
1772
1772
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1773
|
-
return [3
|
|
1773
|
+
return [3, 9];
|
|
1774
1774
|
case 8:
|
|
1775
1775
|
parsedBody = parsedOutput.body;
|
|
1776
1776
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1780,7 +1780,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
1780
1780
|
message = response.message || response.Message || errorCode;
|
|
1781
1781
|
response.message = message;
|
|
1782
1782
|
delete response.Message;
|
|
1783
|
-
return [2
|
|
1783
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1784
1784
|
}
|
|
1785
1785
|
});
|
|
1786
1786
|
}); };
|
|
@@ -1790,7 +1790,7 @@ var deserializeAws_json1_1ContainerInUseExceptionResponse = function (parsedOutp
|
|
|
1790
1790
|
body = parsedOutput.body;
|
|
1791
1791
|
deserialized = deserializeAws_json1_1ContainerInUseException(body, context);
|
|
1792
1792
|
contents = __assign({ name: "ContainerInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1793
|
-
return [2
|
|
1793
|
+
return [2, contents];
|
|
1794
1794
|
});
|
|
1795
1795
|
}); };
|
|
1796
1796
|
var deserializeAws_json1_1ContainerNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1799,7 +1799,7 @@ var deserializeAws_json1_1ContainerNotFoundExceptionResponse = function (parsedO
|
|
|
1799
1799
|
body = parsedOutput.body;
|
|
1800
1800
|
deserialized = deserializeAws_json1_1ContainerNotFoundException(body, context);
|
|
1801
1801
|
contents = __assign({ name: "ContainerNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1802
|
-
return [2
|
|
1802
|
+
return [2, contents];
|
|
1803
1803
|
});
|
|
1804
1804
|
}); };
|
|
1805
1805
|
var deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1808,7 +1808,7 @@ var deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse = function (parsed
|
|
|
1808
1808
|
body = parsedOutput.body;
|
|
1809
1809
|
deserialized = deserializeAws_json1_1CorsPolicyNotFoundException(body, context);
|
|
1810
1810
|
contents = __assign({ name: "CorsPolicyNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1811
|
-
return [2
|
|
1811
|
+
return [2, contents];
|
|
1812
1812
|
});
|
|
1813
1813
|
}); };
|
|
1814
1814
|
var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1817,7 +1817,7 @@ var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput,
|
|
|
1817
1817
|
body = parsedOutput.body;
|
|
1818
1818
|
deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
1819
1819
|
contents = __assign({ name: "InternalServerError", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1820
|
-
return [2
|
|
1820
|
+
return [2, contents];
|
|
1821
1821
|
});
|
|
1822
1822
|
}); };
|
|
1823
1823
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1826,7 +1826,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
1826
1826
|
body = parsedOutput.body;
|
|
1827
1827
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1828
1828
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1829
|
-
return [2
|
|
1829
|
+
return [2, contents];
|
|
1830
1830
|
});
|
|
1831
1831
|
}); };
|
|
1832
1832
|
var deserializeAws_json1_1PolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1835,7 +1835,7 @@ var deserializeAws_json1_1PolicyNotFoundExceptionResponse = function (parsedOutp
|
|
|
1835
1835
|
body = parsedOutput.body;
|
|
1836
1836
|
deserialized = deserializeAws_json1_1PolicyNotFoundException(body, context);
|
|
1837
1837
|
contents = __assign({ name: "PolicyNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1838
|
-
return [2
|
|
1838
|
+
return [2, contents];
|
|
1839
1839
|
});
|
|
1840
1840
|
}); };
|
|
1841
1841
|
var serializeAws_json1_1AllowedHeaders = function (input, context) {
|
|
@@ -2274,7 +2274,6 @@ var deserializeMetadata = function (output) {
|
|
|
2274
2274
|
cfId: output.headers["x-amz-cf-id"],
|
|
2275
2275
|
});
|
|
2276
2276
|
};
|
|
2277
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2278
2277
|
var collectBody = function (streamBody, context) {
|
|
2279
2278
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2280
2279
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2282,7 +2281,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2282
2281
|
}
|
|
2283
2282
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2284
2283
|
};
|
|
2285
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2286
2284
|
var collectBodyString = function (streamBody, context) {
|
|
2287
2285
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2288
2286
|
};
|
|
@@ -2290,7 +2288,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2290
2288
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2291
2289
|
return __generator(this, function (_c) {
|
|
2292
2290
|
switch (_c.label) {
|
|
2293
|
-
case 0: return [4
|
|
2291
|
+
case 0: return [4, context.endpoint()];
|
|
2294
2292
|
case 1:
|
|
2295
2293
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2296
2294
|
contents = {
|
|
@@ -2307,7 +2305,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2307
2305
|
if (body !== undefined) {
|
|
2308
2306
|
contents.body = body;
|
|
2309
2307
|
}
|
|
2310
|
-
return [2
|
|
2308
|
+
return [2, new __HttpRequest(contents)];
|
|
2311
2309
|
}
|
|
2312
2310
|
});
|
|
2313
2311
|
}); };
|
|
@@ -2319,9 +2317,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2319
2317
|
return {};
|
|
2320
2318
|
});
|
|
2321
2319
|
};
|
|
2322
|
-
/**
|
|
2323
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2324
|
-
*/
|
|
2325
2320
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2326
2321
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2327
2322
|
var sanitizeErrorCode = function (rawValue) {
|