@aws-sdk/client-s3-control 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/S3Control.spec.js +23 -23
- package/dist/cjs/S3Control.spec.js.map +1 -1
- package/dist/cjs/S3ControlClient.js +14 -14
- package/dist/cjs/S3ControlClient.js.map +1 -1
- package/dist/cjs/commands/CreateAccessPointCommand.js +4 -4
- package/dist/cjs/commands/CreateAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAccessPointForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/CreateAccessPointForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBucketCommand.js +5 -5
- package/dist/cjs/commands/CreateBucketCommand.js.map +1 -1
- package/dist/cjs/commands/CreateJobCommand.js +4 -4
- package/dist/cjs/commands/CreateJobCommand.js.map +1 -1
- package/dist/cjs/commands/CreateMultiRegionAccessPointCommand.js +5 -5
- package/dist/cjs/commands/CreateMultiRegionAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAccessPointCommand.js +4 -4
- package/dist/cjs/commands/DeleteAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAccessPointForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/DeleteAccessPointForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAccessPointPolicyCommand.js +4 -4
- package/dist/cjs/commands/DeleteAccessPointPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAccessPointPolicyForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/DeleteAccessPointPolicyForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBucketCommand.js +4 -4
- package/dist/cjs/commands/DeleteBucketCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBucketLifecycleConfigurationCommand.js +4 -4
- package/dist/cjs/commands/DeleteBucketLifecycleConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBucketPolicyCommand.js +4 -4
- package/dist/cjs/commands/DeleteBucketPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBucketTaggingCommand.js +4 -4
- package/dist/cjs/commands/DeleteBucketTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteJobTaggingCommand.js +4 -4
- package/dist/cjs/commands/DeleteJobTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMultiRegionAccessPointCommand.js +5 -5
- package/dist/cjs/commands/DeleteMultiRegionAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/DeletePublicAccessBlockCommand.js +4 -4
- package/dist/cjs/commands/DeletePublicAccessBlockCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteStorageLensConfigurationCommand.js +4 -4
- package/dist/cjs/commands/DeleteStorageLensConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteStorageLensConfigurationTaggingCommand.js +4 -4
- package/dist/cjs/commands/DeleteStorageLensConfigurationTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeJobCommand.js +4 -4
- package/dist/cjs/commands/DescribeJobCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeMultiRegionAccessPointOperationCommand.js +5 -5
- package/dist/cjs/commands/DescribeMultiRegionAccessPointOperationCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointConfigurationForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointConfigurationForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointPolicyCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointPolicyForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointPolicyForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointPolicyStatusCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointPolicyStatusCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPointPolicyStatusForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/GetAccessPointPolicyStatusForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/GetBucketCommand.js +4 -4
- package/dist/cjs/commands/GetBucketCommand.js.map +1 -1
- package/dist/cjs/commands/GetBucketLifecycleConfigurationCommand.js +4 -4
- package/dist/cjs/commands/GetBucketLifecycleConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/GetBucketPolicyCommand.js +4 -4
- package/dist/cjs/commands/GetBucketPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetBucketTaggingCommand.js +4 -4
- package/dist/cjs/commands/GetBucketTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/GetJobTaggingCommand.js +4 -4
- package/dist/cjs/commands/GetJobTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/GetMultiRegionAccessPointCommand.js +5 -5
- package/dist/cjs/commands/GetMultiRegionAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/GetMultiRegionAccessPointPolicyCommand.js +5 -5
- package/dist/cjs/commands/GetMultiRegionAccessPointPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/GetMultiRegionAccessPointPolicyStatusCommand.js +5 -5
- package/dist/cjs/commands/GetMultiRegionAccessPointPolicyStatusCommand.js.map +1 -1
- package/dist/cjs/commands/GetPublicAccessBlockCommand.js +4 -4
- package/dist/cjs/commands/GetPublicAccessBlockCommand.js.map +1 -1
- package/dist/cjs/commands/GetStorageLensConfigurationCommand.js +4 -4
- package/dist/cjs/commands/GetStorageLensConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/GetStorageLensConfigurationTaggingCommand.js +4 -4
- package/dist/cjs/commands/GetStorageLensConfigurationTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/ListAccessPointsCommand.js +4 -4
- package/dist/cjs/commands/ListAccessPointsCommand.js.map +1 -1
- package/dist/cjs/commands/ListAccessPointsForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/ListAccessPointsForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/ListJobsCommand.js +4 -4
- package/dist/cjs/commands/ListJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListMultiRegionAccessPointsCommand.js +5 -5
- package/dist/cjs/commands/ListMultiRegionAccessPointsCommand.js.map +1 -1
- package/dist/cjs/commands/ListRegionalBucketsCommand.js +4 -4
- package/dist/cjs/commands/ListRegionalBucketsCommand.js.map +1 -1
- package/dist/cjs/commands/ListStorageLensConfigurationsCommand.js +4 -4
- package/dist/cjs/commands/ListStorageLensConfigurationsCommand.js.map +1 -1
- package/dist/cjs/commands/PutAccessPointConfigurationForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/PutAccessPointConfigurationForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/PutAccessPointPolicyCommand.js +4 -4
- package/dist/cjs/commands/PutAccessPointPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutAccessPointPolicyForObjectLambdaCommand.js +4 -4
- package/dist/cjs/commands/PutAccessPointPolicyForObjectLambdaCommand.js.map +1 -1
- package/dist/cjs/commands/PutBucketLifecycleConfigurationCommand.js +5 -5
- package/dist/cjs/commands/PutBucketLifecycleConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/PutBucketPolicyCommand.js +5 -5
- package/dist/cjs/commands/PutBucketPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutBucketTaggingCommand.js +5 -5
- package/dist/cjs/commands/PutBucketTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/PutJobTaggingCommand.js +4 -4
- package/dist/cjs/commands/PutJobTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/PutMultiRegionAccessPointPolicyCommand.js +5 -5
- package/dist/cjs/commands/PutMultiRegionAccessPointPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutPublicAccessBlockCommand.js +4 -4
- package/dist/cjs/commands/PutPublicAccessBlockCommand.js.map +1 -1
- package/dist/cjs/commands/PutStorageLensConfigurationCommand.js +4 -4
- package/dist/cjs/commands/PutStorageLensConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/PutStorageLensConfigurationTaggingCommand.js +4 -4
- package/dist/cjs/commands/PutStorageLensConfigurationTaggingCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateJobPriorityCommand.js +4 -4
- package/dist/cjs/commands/UpdateJobPriorityCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateJobStatusCommand.js +4 -4
- package/dist/cjs/commands/UpdateJobStatusCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +67 -67
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +46 -46
- package/dist/cjs/protocols/Aws_restXml.js +377 -377
- package/dist/cjs/protocols/Aws_restXml.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/S3Control.js +1 -7
- package/dist/es/S3Control.js.map +1 -1
- package/dist/es/S3Control.spec.js +16 -21
- package/dist/es/S3Control.spec.js.map +1 -1
- package/dist/es/S3ControlClient.js +1 -12
- package/dist/es/S3ControlClient.js.map +1 -1
- package/dist/es/commands/CreateAccessPointCommand.js +2 -57
- package/dist/es/commands/CreateAccessPointCommand.js.map +1 -1
- package/dist/es/commands/CreateAccessPointForObjectLambdaCommand.js +2 -46
- package/dist/es/commands/CreateAccessPointForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/CreateBucketCommand.js +2 -76
- package/dist/es/commands/CreateBucketCommand.js.map +1 -1
- package/dist/es/commands/CreateJobCommand.js +2 -60
- package/dist/es/commands/CreateJobCommand.js.map +1 -1
- package/dist/es/commands/CreateMultiRegionAccessPointCommand.js +2 -60
- package/dist/es/commands/CreateMultiRegionAccessPointCommand.js.map +1 -1
- package/dist/es/commands/DeleteAccessPointCommand.js +2 -47
- package/dist/es/commands/DeleteAccessPointCommand.js.map +1 -1
- package/dist/es/commands/DeleteAccessPointForObjectLambdaCommand.js +2 -45
- package/dist/es/commands/DeleteAccessPointForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/DeleteAccessPointPolicyCommand.js +2 -42
- package/dist/es/commands/DeleteAccessPointPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteAccessPointPolicyForObjectLambdaCommand.js +2 -40
- package/dist/es/commands/DeleteAccessPointPolicyForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/DeleteBucketCommand.js +2 -55
- package/dist/es/commands/DeleteBucketCommand.js.map +1 -1
- package/dist/es/commands/DeleteBucketLifecycleConfigurationCommand.js +2 -55
- package/dist/es/commands/DeleteBucketLifecycleConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DeleteBucketPolicyCommand.js +2 -67
- package/dist/es/commands/DeleteBucketPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteBucketTaggingCommand.js +2 -53
- package/dist/es/commands/DeleteBucketTaggingCommand.js.map +1 -1
- package/dist/es/commands/DeleteJobTaggingCommand.js +2 -49
- package/dist/es/commands/DeleteJobTaggingCommand.js.map +1 -1
- package/dist/es/commands/DeleteMultiRegionAccessPointCommand.js +2 -59
- package/dist/es/commands/DeleteMultiRegionAccessPointCommand.js.map +1 -1
- package/dist/es/commands/DeletePublicAccessBlockCommand.js +2 -42
- package/dist/es/commands/DeletePublicAccessBlockCommand.js.map +1 -1
- package/dist/es/commands/DeleteStorageLensConfigurationCommand.js +2 -36
- package/dist/es/commands/DeleteStorageLensConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DeleteStorageLensConfigurationTaggingCommand.js +2 -36
- package/dist/es/commands/DeleteStorageLensConfigurationTaggingCommand.js.map +1 -1
- package/dist/es/commands/DescribeJobCommand.js +2 -53
- package/dist/es/commands/DescribeJobCommand.js.map +1 -1
- package/dist/es/commands/DescribeMultiRegionAccessPointOperationCommand.js +2 -53
- package/dist/es/commands/DescribeMultiRegionAccessPointOperationCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointCommand.js +2 -48
- package/dist/es/commands/GetAccessPointCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointConfigurationForObjectLambdaCommand.js +2 -35
- package/dist/es/commands/GetAccessPointConfigurationForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointForObjectLambdaCommand.js +2 -45
- package/dist/es/commands/GetAccessPointForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointPolicyCommand.js +2 -40
- package/dist/es/commands/GetAccessPointPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointPolicyForObjectLambdaCommand.js +2 -40
- package/dist/es/commands/GetAccessPointPolicyForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointPolicyStatusCommand.js +2 -27
- package/dist/es/commands/GetAccessPointPolicyStatusCommand.js.map +1 -1
- package/dist/es/commands/GetAccessPointPolicyStatusForObjectLambdaCommand.js +2 -27
- package/dist/es/commands/GetAccessPointPolicyStatusForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/GetBucketCommand.js +2 -57
- package/dist/es/commands/GetBucketCommand.js.map +1 -1
- package/dist/es/commands/GetBucketLifecycleConfigurationCommand.js +2 -75
- package/dist/es/commands/GetBucketLifecycleConfigurationCommand.js.map +1 -1
- package/dist/es/commands/GetBucketPolicyCommand.js +2 -67
- package/dist/es/commands/GetBucketPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetBucketTaggingCommand.js +2 -65
- package/dist/es/commands/GetBucketTaggingCommand.js.map +1 -1
- package/dist/es/commands/GetJobTaggingCommand.js +2 -50
- package/dist/es/commands/GetJobTaggingCommand.js.map +1 -1
- package/dist/es/commands/GetMultiRegionAccessPointCommand.js +2 -54
- package/dist/es/commands/GetMultiRegionAccessPointCommand.js.map +1 -1
- package/dist/es/commands/GetMultiRegionAccessPointPolicyCommand.js +2 -44
- package/dist/es/commands/GetMultiRegionAccessPointPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetMultiRegionAccessPointPolicyStatusCommand.js +2 -45
- package/dist/es/commands/GetMultiRegionAccessPointPolicyStatusCommand.js.map +1 -1
- package/dist/es/commands/GetPublicAccessBlockCommand.js +2 -42
- package/dist/es/commands/GetPublicAccessBlockCommand.js.map +1 -1
- package/dist/es/commands/GetStorageLensConfigurationCommand.js +2 -36
- package/dist/es/commands/GetStorageLensConfigurationCommand.js.map +1 -1
- package/dist/es/commands/GetStorageLensConfigurationTaggingCommand.js +2 -35
- package/dist/es/commands/GetStorageLensConfigurationTaggingCommand.js.map +1 -1
- package/dist/es/commands/ListAccessPointsCommand.js +2 -50
- package/dist/es/commands/ListAccessPointsCommand.js.map +1 -1
- package/dist/es/commands/ListAccessPointsForObjectLambdaCommand.js +2 -48
- package/dist/es/commands/ListAccessPointsForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/ListJobsCommand.js +2 -53
- package/dist/es/commands/ListJobsCommand.js.map +1 -1
- package/dist/es/commands/ListMultiRegionAccessPointsCommand.js +2 -56
- package/dist/es/commands/ListMultiRegionAccessPointsCommand.js.map +1 -1
- package/dist/es/commands/ListRegionalBucketsCommand.js +2 -31
- package/dist/es/commands/ListRegionalBucketsCommand.js.map +1 -1
- package/dist/es/commands/ListStorageLensConfigurationsCommand.js +2 -36
- package/dist/es/commands/ListStorageLensConfigurationsCommand.js.map +1 -1
- package/dist/es/commands/PutAccessPointConfigurationForObjectLambdaCommand.js +2 -35
- package/dist/es/commands/PutAccessPointConfigurationForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/PutAccessPointPolicyCommand.js +2 -43
- package/dist/es/commands/PutAccessPointPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutAccessPointPolicyForObjectLambdaCommand.js +2 -41
- package/dist/es/commands/PutAccessPointPolicyForObjectLambdaCommand.js.map +1 -1
- package/dist/es/commands/PutBucketLifecycleConfigurationCommand.js +2 -49
- package/dist/es/commands/PutBucketLifecycleConfigurationCommand.js.map +1 -1
- package/dist/es/commands/PutBucketPolicyCommand.js +2 -65
- package/dist/es/commands/PutBucketPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutBucketTaggingCommand.js +2 -110
- package/dist/es/commands/PutBucketTaggingCommand.js.map +1 -1
- package/dist/es/commands/PutJobTaggingCommand.js +2 -89
- package/dist/es/commands/PutJobTaggingCommand.js.map +1 -1
- package/dist/es/commands/PutMultiRegionAccessPointPolicyCommand.js +2 -46
- package/dist/es/commands/PutMultiRegionAccessPointPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutPublicAccessBlockCommand.js +2 -42
- package/dist/es/commands/PutPublicAccessBlockCommand.js.map +1 -1
- package/dist/es/commands/PutStorageLensConfigurationCommand.js +2 -34
- package/dist/es/commands/PutStorageLensConfigurationCommand.js.map +1 -1
- package/dist/es/commands/PutStorageLensConfigurationTaggingCommand.js +2 -36
- package/dist/es/commands/PutStorageLensConfigurationTaggingCommand.js.map +1 -1
- package/dist/es/commands/UpdateJobPriorityCommand.js +2 -52
- package/dist/es/commands/UpdateJobPriorityCommand.js.map +1 -1
- package/dist/es/commands/UpdateJobStatusCommand.js +2 -53
- package/dist/es/commands/UpdateJobStatusCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -561
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +46 -46
- package/dist/es/pagination/ListAccessPointsForObjectLambdaPaginator.js +16 -28
- package/dist/es/pagination/ListAccessPointsForObjectLambdaPaginator.js.map +1 -1
- package/dist/es/pagination/ListAccessPointsPaginator.js +16 -28
- package/dist/es/pagination/ListAccessPointsPaginator.js.map +1 -1
- package/dist/es/pagination/ListJobsPaginator.js +16 -28
- package/dist/es/pagination/ListJobsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMultiRegionAccessPointsPaginator.js +16 -28
- package/dist/es/pagination/ListMultiRegionAccessPointsPaginator.js.map +1 -1
- package/dist/es/pagination/ListRegionalBucketsPaginator.js +16 -28
- package/dist/es/pagination/ListRegionalBucketsPaginator.js.map +1 -1
- package/dist/es/pagination/ListStorageLensConfigurationsPaginator.js +16 -28
- package/dist/es/pagination/ListStorageLensConfigurationsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restXml.js +637 -639
- package/dist/es/protocols/Aws_restXml.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +46 -46
- package/protocols/Aws_restXml.ts +23 -21
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { ObjectLambdaContentTransformation, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
4
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
5
5
|
import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder";
|
|
6
6
|
import { decodeHTML } from "entities";
|
|
7
7
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
@@ -10,7 +10,7 @@ export var serializeAws_restXmlCreateAccessPointCommand = function (input, conte
|
|
|
10
10
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, node, node, resolvedHostname;
|
|
11
11
|
return __generator(this, function (_c) {
|
|
12
12
|
switch (_c.label) {
|
|
13
|
-
case 0: return [4
|
|
13
|
+
case 0: return [4, context.endpoint()];
|
|
14
14
|
case 1:
|
|
15
15
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
16
16
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -41,7 +41,7 @@ export var serializeAws_restXmlCreateAccessPointCommand = function (input, conte
|
|
|
41
41
|
bodyNode.addChildNode(node);
|
|
42
42
|
}
|
|
43
43
|
body += bodyNode.toString();
|
|
44
|
-
return [4
|
|
44
|
+
return [4, context.endpoint()];
|
|
45
45
|
case 2:
|
|
46
46
|
resolvedHostname = (_c.sent()).hostname;
|
|
47
47
|
if (context.disableHostPrefix !== true) {
|
|
@@ -54,7 +54,7 @@ export var serializeAws_restXmlCreateAccessPointCommand = function (input, conte
|
|
|
54
54
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
return [2
|
|
57
|
+
return [2, new __HttpRequest({
|
|
58
58
|
protocol: protocol,
|
|
59
59
|
hostname: resolvedHostname,
|
|
60
60
|
port: port,
|
|
@@ -70,7 +70,7 @@ export var serializeAws_restXmlCreateAccessPointForObjectLambdaCommand = functio
|
|
|
70
70
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, resolvedHostname;
|
|
71
71
|
return __generator(this, function (_c) {
|
|
72
72
|
switch (_c.label) {
|
|
73
|
-
case 0: return [4
|
|
73
|
+
case 0: return [4, context.endpoint()];
|
|
74
74
|
case 1:
|
|
75
75
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
76
76
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -94,7 +94,7 @@ export var serializeAws_restXmlCreateAccessPointForObjectLambdaCommand = functio
|
|
|
94
94
|
bodyNode.addChildNode(node);
|
|
95
95
|
}
|
|
96
96
|
body += bodyNode.toString();
|
|
97
|
-
return [4
|
|
97
|
+
return [4, context.endpoint()];
|
|
98
98
|
case 2:
|
|
99
99
|
resolvedHostname = (_c.sent()).hostname;
|
|
100
100
|
if (context.disableHostPrefix !== true) {
|
|
@@ -107,7 +107,7 @@ export var serializeAws_restXmlCreateAccessPointForObjectLambdaCommand = functio
|
|
|
107
107
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
return [2
|
|
110
|
+
return [2, new __HttpRequest({
|
|
111
111
|
protocol: protocol,
|
|
112
112
|
hostname: resolvedHostname,
|
|
113
113
|
port: port,
|
|
@@ -123,7 +123,7 @@ export var serializeAws_restXmlCreateBucketCommand = function (input, context) {
|
|
|
123
123
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, contents;
|
|
124
124
|
return __generator(this, function (_c) {
|
|
125
125
|
switch (_c.label) {
|
|
126
|
-
case 0: return [4
|
|
126
|
+
case 0: return [4, context.endpoint()];
|
|
127
127
|
case 1:
|
|
128
128
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
129
129
|
headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.ACL) && { "x-amz-acl": input.ACL })), (isSerializableHeaderValue(input.GrantFullControl) && { "x-amz-grant-full-control": input.GrantFullControl })), (isSerializableHeaderValue(input.GrantRead) && { "x-amz-grant-read": input.GrantRead })), (isSerializableHeaderValue(input.GrantReadACP) && { "x-amz-grant-read-acp": input.GrantReadACP })), (isSerializableHeaderValue(input.GrantWrite) && { "x-amz-grant-write": input.GrantWrite })), (isSerializableHeaderValue(input.GrantWriteACP) && { "x-amz-grant-write-acp": input.GrantWriteACP })), (isSerializableHeaderValue(input.ObjectLockEnabledForBucket) && {
|
|
@@ -149,7 +149,7 @@ export var serializeAws_restXmlCreateBucketCommand = function (input, context) {
|
|
|
149
149
|
contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
150
150
|
body += contents.toString();
|
|
151
151
|
}
|
|
152
|
-
return [2
|
|
152
|
+
return [2, new __HttpRequest({
|
|
153
153
|
protocol: protocol,
|
|
154
154
|
hostname: hostname,
|
|
155
155
|
port: port,
|
|
@@ -165,7 +165,7 @@ export var serializeAws_restXmlCreateJobCommand = function (input, context) { re
|
|
|
165
165
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, bodyNode, node, node, node, node, node, node, node, node, nodes, containerNode_1, resolvedHostname;
|
|
166
166
|
return __generator(this, function (_c) {
|
|
167
167
|
switch (_c.label) {
|
|
168
|
-
case 0: return [4
|
|
168
|
+
case 0: return [4, context.endpoint()];
|
|
169
169
|
case 1:
|
|
170
170
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
171
171
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -223,7 +223,7 @@ export var serializeAws_restXmlCreateJobCommand = function (input, context) { re
|
|
|
223
223
|
bodyNode.addChildNode(containerNode_1);
|
|
224
224
|
}
|
|
225
225
|
body += bodyNode.toString();
|
|
226
|
-
return [4
|
|
226
|
+
return [4, context.endpoint()];
|
|
227
227
|
case 2:
|
|
228
228
|
resolvedHostname = (_c.sent()).hostname;
|
|
229
229
|
if (context.disableHostPrefix !== true) {
|
|
@@ -236,7 +236,7 @@ export var serializeAws_restXmlCreateJobCommand = function (input, context) { re
|
|
|
236
236
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
return [2
|
|
239
|
+
return [2, new __HttpRequest({
|
|
240
240
|
protocol: protocol,
|
|
241
241
|
hostname: resolvedHostname,
|
|
242
242
|
port: port,
|
|
@@ -252,7 +252,7 @@ export var serializeAws_restXmlCreateMultiRegionAccessPointCommand = function (i
|
|
|
252
252
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, bodyNode, node, node, resolvedHostname;
|
|
253
253
|
return __generator(this, function (_c) {
|
|
254
254
|
switch (_c.label) {
|
|
255
|
-
case 0: return [4
|
|
255
|
+
case 0: return [4, context.endpoint()];
|
|
256
256
|
case 1:
|
|
257
257
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
258
258
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -274,7 +274,7 @@ export var serializeAws_restXmlCreateMultiRegionAccessPointCommand = function (i
|
|
|
274
274
|
bodyNode.addChildNode(node);
|
|
275
275
|
}
|
|
276
276
|
body += bodyNode.toString();
|
|
277
|
-
return [4
|
|
277
|
+
return [4, context.endpoint()];
|
|
278
278
|
case 2:
|
|
279
279
|
resolvedHostname = (_c.sent()).hostname;
|
|
280
280
|
if (context.disableHostPrefix !== true) {
|
|
@@ -287,7 +287,7 @@ export var serializeAws_restXmlCreateMultiRegionAccessPointCommand = function (i
|
|
|
287
287
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
return [2
|
|
290
|
+
return [2, new __HttpRequest({
|
|
291
291
|
protocol: protocol,
|
|
292
292
|
hostname: resolvedHostname,
|
|
293
293
|
port: port,
|
|
@@ -303,7 +303,7 @@ export var serializeAws_restXmlDeleteAccessPointCommand = function (input, conte
|
|
|
303
303
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
304
304
|
return __generator(this, function (_c) {
|
|
305
305
|
switch (_c.label) {
|
|
306
|
-
case 0: return [4
|
|
306
|
+
case 0: return [4, context.endpoint()];
|
|
307
307
|
case 1:
|
|
308
308
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
309
309
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -318,7 +318,7 @@ export var serializeAws_restXmlDeleteAccessPointCommand = function (input, conte
|
|
|
318
318
|
else {
|
|
319
319
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
320
320
|
}
|
|
321
|
-
return [4
|
|
321
|
+
return [4, context.endpoint()];
|
|
322
322
|
case 2:
|
|
323
323
|
resolvedHostname = (_c.sent()).hostname;
|
|
324
324
|
if (context.disableHostPrefix !== true) {
|
|
@@ -331,7 +331,7 @@ export var serializeAws_restXmlDeleteAccessPointCommand = function (input, conte
|
|
|
331
331
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
return [2
|
|
334
|
+
return [2, new __HttpRequest({
|
|
335
335
|
protocol: protocol,
|
|
336
336
|
hostname: resolvedHostname,
|
|
337
337
|
port: port,
|
|
@@ -347,7 +347,7 @@ export var serializeAws_restXmlDeleteAccessPointForObjectLambdaCommand = functio
|
|
|
347
347
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
348
348
|
return __generator(this, function (_c) {
|
|
349
349
|
switch (_c.label) {
|
|
350
|
-
case 0: return [4
|
|
350
|
+
case 0: return [4, context.endpoint()];
|
|
351
351
|
case 1:
|
|
352
352
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
353
353
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -363,7 +363,7 @@ export var serializeAws_restXmlDeleteAccessPointForObjectLambdaCommand = functio
|
|
|
363
363
|
else {
|
|
364
364
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
365
365
|
}
|
|
366
|
-
return [4
|
|
366
|
+
return [4, context.endpoint()];
|
|
367
367
|
case 2:
|
|
368
368
|
resolvedHostname = (_c.sent()).hostname;
|
|
369
369
|
if (context.disableHostPrefix !== true) {
|
|
@@ -376,7 +376,7 @@ export var serializeAws_restXmlDeleteAccessPointForObjectLambdaCommand = functio
|
|
|
376
376
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
return [2
|
|
379
|
+
return [2, new __HttpRequest({
|
|
380
380
|
protocol: protocol,
|
|
381
381
|
hostname: resolvedHostname,
|
|
382
382
|
port: port,
|
|
@@ -392,7 +392,7 @@ export var serializeAws_restXmlDeleteAccessPointPolicyCommand = function (input,
|
|
|
392
392
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
393
393
|
return __generator(this, function (_c) {
|
|
394
394
|
switch (_c.label) {
|
|
395
|
-
case 0: return [4
|
|
395
|
+
case 0: return [4, context.endpoint()];
|
|
396
396
|
case 1:
|
|
397
397
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
398
398
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -407,7 +407,7 @@ export var serializeAws_restXmlDeleteAccessPointPolicyCommand = function (input,
|
|
|
407
407
|
else {
|
|
408
408
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
409
409
|
}
|
|
410
|
-
return [4
|
|
410
|
+
return [4, context.endpoint()];
|
|
411
411
|
case 2:
|
|
412
412
|
resolvedHostname = (_c.sent()).hostname;
|
|
413
413
|
if (context.disableHostPrefix !== true) {
|
|
@@ -420,7 +420,7 @@ export var serializeAws_restXmlDeleteAccessPointPolicyCommand = function (input,
|
|
|
420
420
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
return [2
|
|
423
|
+
return [2, new __HttpRequest({
|
|
424
424
|
protocol: protocol,
|
|
425
425
|
hostname: resolvedHostname,
|
|
426
426
|
port: port,
|
|
@@ -436,7 +436,7 @@ export var serializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommand = f
|
|
|
436
436
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
437
437
|
return __generator(this, function (_c) {
|
|
438
438
|
switch (_c.label) {
|
|
439
|
-
case 0: return [4
|
|
439
|
+
case 0: return [4, context.endpoint()];
|
|
440
440
|
case 1:
|
|
441
441
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
442
442
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -452,7 +452,7 @@ export var serializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommand = f
|
|
|
452
452
|
else {
|
|
453
453
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
454
454
|
}
|
|
455
|
-
return [4
|
|
455
|
+
return [4, context.endpoint()];
|
|
456
456
|
case 2:
|
|
457
457
|
resolvedHostname = (_c.sent()).hostname;
|
|
458
458
|
if (context.disableHostPrefix !== true) {
|
|
@@ -465,7 +465,7 @@ export var serializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommand = f
|
|
|
465
465
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
return [2
|
|
468
|
+
return [2, new __HttpRequest({
|
|
469
469
|
protocol: protocol,
|
|
470
470
|
hostname: resolvedHostname,
|
|
471
471
|
port: port,
|
|
@@ -481,7 +481,7 @@ export var serializeAws_restXmlDeleteBucketCommand = function (input, context) {
|
|
|
481
481
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
482
482
|
return __generator(this, function (_c) {
|
|
483
483
|
switch (_c.label) {
|
|
484
|
-
case 0: return [4
|
|
484
|
+
case 0: return [4, context.endpoint()];
|
|
485
485
|
case 1:
|
|
486
486
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
487
487
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -496,7 +496,7 @@ export var serializeAws_restXmlDeleteBucketCommand = function (input, context) {
|
|
|
496
496
|
else {
|
|
497
497
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
498
498
|
}
|
|
499
|
-
return [4
|
|
499
|
+
return [4, context.endpoint()];
|
|
500
500
|
case 2:
|
|
501
501
|
resolvedHostname = (_c.sent()).hostname;
|
|
502
502
|
if (context.disableHostPrefix !== true) {
|
|
@@ -509,7 +509,7 @@ export var serializeAws_restXmlDeleteBucketCommand = function (input, context) {
|
|
|
509
509
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
return [2
|
|
512
|
+
return [2, new __HttpRequest({
|
|
513
513
|
protocol: protocol,
|
|
514
514
|
hostname: resolvedHostname,
|
|
515
515
|
port: port,
|
|
@@ -525,7 +525,7 @@ export var serializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = funct
|
|
|
525
525
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
526
526
|
return __generator(this, function (_c) {
|
|
527
527
|
switch (_c.label) {
|
|
528
|
-
case 0: return [4
|
|
528
|
+
case 0: return [4, context.endpoint()];
|
|
529
529
|
case 1:
|
|
530
530
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
531
531
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -541,7 +541,7 @@ export var serializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = funct
|
|
|
541
541
|
else {
|
|
542
542
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
543
543
|
}
|
|
544
|
-
return [4
|
|
544
|
+
return [4, context.endpoint()];
|
|
545
545
|
case 2:
|
|
546
546
|
resolvedHostname = (_c.sent()).hostname;
|
|
547
547
|
if (context.disableHostPrefix !== true) {
|
|
@@ -554,7 +554,7 @@ export var serializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = funct
|
|
|
554
554
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
return [2
|
|
557
|
+
return [2, new __HttpRequest({
|
|
558
558
|
protocol: protocol,
|
|
559
559
|
hostname: resolvedHostname,
|
|
560
560
|
port: port,
|
|
@@ -570,7 +570,7 @@ export var serializeAws_restXmlDeleteBucketPolicyCommand = function (input, cont
|
|
|
570
570
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
571
571
|
return __generator(this, function (_c) {
|
|
572
572
|
switch (_c.label) {
|
|
573
|
-
case 0: return [4
|
|
573
|
+
case 0: return [4, context.endpoint()];
|
|
574
574
|
case 1:
|
|
575
575
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
576
576
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -585,7 +585,7 @@ export var serializeAws_restXmlDeleteBucketPolicyCommand = function (input, cont
|
|
|
585
585
|
else {
|
|
586
586
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
587
587
|
}
|
|
588
|
-
return [4
|
|
588
|
+
return [4, context.endpoint()];
|
|
589
589
|
case 2:
|
|
590
590
|
resolvedHostname = (_c.sent()).hostname;
|
|
591
591
|
if (context.disableHostPrefix !== true) {
|
|
@@ -598,7 +598,7 @@ export var serializeAws_restXmlDeleteBucketPolicyCommand = function (input, cont
|
|
|
598
598
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
return [2
|
|
601
|
+
return [2, new __HttpRequest({
|
|
602
602
|
protocol: protocol,
|
|
603
603
|
hostname: resolvedHostname,
|
|
604
604
|
port: port,
|
|
@@ -614,7 +614,7 @@ export var serializeAws_restXmlDeleteBucketTaggingCommand = function (input, con
|
|
|
614
614
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
615
615
|
return __generator(this, function (_c) {
|
|
616
616
|
switch (_c.label) {
|
|
617
|
-
case 0: return [4
|
|
617
|
+
case 0: return [4, context.endpoint()];
|
|
618
618
|
case 1:
|
|
619
619
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
620
620
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -629,7 +629,7 @@ export var serializeAws_restXmlDeleteBucketTaggingCommand = function (input, con
|
|
|
629
629
|
else {
|
|
630
630
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
631
631
|
}
|
|
632
|
-
return [4
|
|
632
|
+
return [4, context.endpoint()];
|
|
633
633
|
case 2:
|
|
634
634
|
resolvedHostname = (_c.sent()).hostname;
|
|
635
635
|
if (context.disableHostPrefix !== true) {
|
|
@@ -642,7 +642,7 @@ export var serializeAws_restXmlDeleteBucketTaggingCommand = function (input, con
|
|
|
642
642
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
return [2
|
|
645
|
+
return [2, new __HttpRequest({
|
|
646
646
|
protocol: protocol,
|
|
647
647
|
hostname: resolvedHostname,
|
|
648
648
|
port: port,
|
|
@@ -658,7 +658,7 @@ export var serializeAws_restXmlDeleteJobTaggingCommand = function (input, contex
|
|
|
658
658
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
659
659
|
return __generator(this, function (_c) {
|
|
660
660
|
switch (_c.label) {
|
|
661
|
-
case 0: return [4
|
|
661
|
+
case 0: return [4, context.endpoint()];
|
|
662
662
|
case 1:
|
|
663
663
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
664
664
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -673,7 +673,7 @@ export var serializeAws_restXmlDeleteJobTaggingCommand = function (input, contex
|
|
|
673
673
|
else {
|
|
674
674
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
675
675
|
}
|
|
676
|
-
return [4
|
|
676
|
+
return [4, context.endpoint()];
|
|
677
677
|
case 2:
|
|
678
678
|
resolvedHostname = (_c.sent()).hostname;
|
|
679
679
|
if (context.disableHostPrefix !== true) {
|
|
@@ -686,7 +686,7 @@ export var serializeAws_restXmlDeleteJobTaggingCommand = function (input, contex
|
|
|
686
686
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
return [2
|
|
689
|
+
return [2, new __HttpRequest({
|
|
690
690
|
protocol: protocol,
|
|
691
691
|
hostname: resolvedHostname,
|
|
692
692
|
port: port,
|
|
@@ -702,7 +702,7 @@ export var serializeAws_restXmlDeleteMultiRegionAccessPointCommand = function (i
|
|
|
702
702
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, bodyNode, node, node, resolvedHostname;
|
|
703
703
|
return __generator(this, function (_c) {
|
|
704
704
|
switch (_c.label) {
|
|
705
|
-
case 0: return [4
|
|
705
|
+
case 0: return [4, context.endpoint()];
|
|
706
706
|
case 1:
|
|
707
707
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
708
708
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -724,7 +724,7 @@ export var serializeAws_restXmlDeleteMultiRegionAccessPointCommand = function (i
|
|
|
724
724
|
bodyNode.addChildNode(node);
|
|
725
725
|
}
|
|
726
726
|
body += bodyNode.toString();
|
|
727
|
-
return [4
|
|
727
|
+
return [4, context.endpoint()];
|
|
728
728
|
case 2:
|
|
729
729
|
resolvedHostname = (_c.sent()).hostname;
|
|
730
730
|
if (context.disableHostPrefix !== true) {
|
|
@@ -737,7 +737,7 @@ export var serializeAws_restXmlDeleteMultiRegionAccessPointCommand = function (i
|
|
|
737
737
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
return [2
|
|
740
|
+
return [2, new __HttpRequest({
|
|
741
741
|
protocol: protocol,
|
|
742
742
|
hostname: resolvedHostname,
|
|
743
743
|
port: port,
|
|
@@ -753,13 +753,13 @@ export var serializeAws_restXmlDeletePublicAccessBlockCommand = function (input,
|
|
|
753
753
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
754
754
|
return __generator(this, function (_c) {
|
|
755
755
|
switch (_c.label) {
|
|
756
|
-
case 0: return [4
|
|
756
|
+
case 0: return [4, context.endpoint()];
|
|
757
757
|
case 1:
|
|
758
758
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
759
759
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
760
760
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
761
761
|
"/v20180820/configuration/publicAccessBlock";
|
|
762
|
-
return [4
|
|
762
|
+
return [4, context.endpoint()];
|
|
763
763
|
case 2:
|
|
764
764
|
resolvedHostname = (_c.sent()).hostname;
|
|
765
765
|
if (context.disableHostPrefix !== true) {
|
|
@@ -772,7 +772,7 @@ export var serializeAws_restXmlDeletePublicAccessBlockCommand = function (input,
|
|
|
772
772
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
return [2
|
|
775
|
+
return [2, new __HttpRequest({
|
|
776
776
|
protocol: protocol,
|
|
777
777
|
hostname: resolvedHostname,
|
|
778
778
|
port: port,
|
|
@@ -788,7 +788,7 @@ export var serializeAws_restXmlDeleteStorageLensConfigurationCommand = function
|
|
|
788
788
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
789
789
|
return __generator(this, function (_c) {
|
|
790
790
|
switch (_c.label) {
|
|
791
|
-
case 0: return [4
|
|
791
|
+
case 0: return [4, context.endpoint()];
|
|
792
792
|
case 1:
|
|
793
793
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
794
794
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -803,7 +803,7 @@ export var serializeAws_restXmlDeleteStorageLensConfigurationCommand = function
|
|
|
803
803
|
else {
|
|
804
804
|
throw new Error("No value provided for input HTTP label: ConfigId.");
|
|
805
805
|
}
|
|
806
|
-
return [4
|
|
806
|
+
return [4, context.endpoint()];
|
|
807
807
|
case 2:
|
|
808
808
|
resolvedHostname = (_c.sent()).hostname;
|
|
809
809
|
if (context.disableHostPrefix !== true) {
|
|
@@ -816,7 +816,7 @@ export var serializeAws_restXmlDeleteStorageLensConfigurationCommand = function
|
|
|
816
816
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
return [2
|
|
819
|
+
return [2, new __HttpRequest({
|
|
820
820
|
protocol: protocol,
|
|
821
821
|
hostname: resolvedHostname,
|
|
822
822
|
port: port,
|
|
@@ -832,7 +832,7 @@ export var serializeAws_restXmlDeleteStorageLensConfigurationTaggingCommand = fu
|
|
|
832
832
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
833
833
|
return __generator(this, function (_c) {
|
|
834
834
|
switch (_c.label) {
|
|
835
|
-
case 0: return [4
|
|
835
|
+
case 0: return [4, context.endpoint()];
|
|
836
836
|
case 1:
|
|
837
837
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
838
838
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -847,7 +847,7 @@ export var serializeAws_restXmlDeleteStorageLensConfigurationTaggingCommand = fu
|
|
|
847
847
|
else {
|
|
848
848
|
throw new Error("No value provided for input HTTP label: ConfigId.");
|
|
849
849
|
}
|
|
850
|
-
return [4
|
|
850
|
+
return [4, context.endpoint()];
|
|
851
851
|
case 2:
|
|
852
852
|
resolvedHostname = (_c.sent()).hostname;
|
|
853
853
|
if (context.disableHostPrefix !== true) {
|
|
@@ -860,7 +860,7 @@ export var serializeAws_restXmlDeleteStorageLensConfigurationTaggingCommand = fu
|
|
|
860
860
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
return [2
|
|
863
|
+
return [2, new __HttpRequest({
|
|
864
864
|
protocol: protocol,
|
|
865
865
|
hostname: resolvedHostname,
|
|
866
866
|
port: port,
|
|
@@ -876,7 +876,7 @@ export var serializeAws_restXmlDescribeJobCommand = function (input, context) {
|
|
|
876
876
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
877
877
|
return __generator(this, function (_c) {
|
|
878
878
|
switch (_c.label) {
|
|
879
|
-
case 0: return [4
|
|
879
|
+
case 0: return [4, context.endpoint()];
|
|
880
880
|
case 1:
|
|
881
881
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
882
882
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -891,7 +891,7 @@ export var serializeAws_restXmlDescribeJobCommand = function (input, context) {
|
|
|
891
891
|
else {
|
|
892
892
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
893
893
|
}
|
|
894
|
-
return [4
|
|
894
|
+
return [4, context.endpoint()];
|
|
895
895
|
case 2:
|
|
896
896
|
resolvedHostname = (_c.sent()).hostname;
|
|
897
897
|
if (context.disableHostPrefix !== true) {
|
|
@@ -904,7 +904,7 @@ export var serializeAws_restXmlDescribeJobCommand = function (input, context) {
|
|
|
904
904
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
return [2
|
|
907
|
+
return [2, new __HttpRequest({
|
|
908
908
|
protocol: protocol,
|
|
909
909
|
hostname: resolvedHostname,
|
|
910
910
|
port: port,
|
|
@@ -920,7 +920,7 @@ export var serializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand =
|
|
|
920
920
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
921
921
|
return __generator(this, function (_c) {
|
|
922
922
|
switch (_c.label) {
|
|
923
|
-
case 0: return [4
|
|
923
|
+
case 0: return [4, context.endpoint()];
|
|
924
924
|
case 1:
|
|
925
925
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
926
926
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -939,7 +939,7 @@ export var serializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand =
|
|
|
939
939
|
else {
|
|
940
940
|
throw new Error("No value provided for input HTTP label: RequestTokenARN.");
|
|
941
941
|
}
|
|
942
|
-
return [4
|
|
942
|
+
return [4, context.endpoint()];
|
|
943
943
|
case 2:
|
|
944
944
|
resolvedHostname = (_c.sent()).hostname;
|
|
945
945
|
if (context.disableHostPrefix !== true) {
|
|
@@ -952,7 +952,7 @@ export var serializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand =
|
|
|
952
952
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
return [2
|
|
955
|
+
return [2, new __HttpRequest({
|
|
956
956
|
protocol: protocol,
|
|
957
957
|
hostname: resolvedHostname,
|
|
958
958
|
port: port,
|
|
@@ -968,7 +968,7 @@ export var serializeAws_restXmlGetAccessPointCommand = function (input, context)
|
|
|
968
968
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
969
969
|
return __generator(this, function (_c) {
|
|
970
970
|
switch (_c.label) {
|
|
971
|
-
case 0: return [4
|
|
971
|
+
case 0: return [4, context.endpoint()];
|
|
972
972
|
case 1:
|
|
973
973
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
974
974
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -983,7 +983,7 @@ export var serializeAws_restXmlGetAccessPointCommand = function (input, context)
|
|
|
983
983
|
else {
|
|
984
984
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
985
985
|
}
|
|
986
|
-
return [4
|
|
986
|
+
return [4, context.endpoint()];
|
|
987
987
|
case 2:
|
|
988
988
|
resolvedHostname = (_c.sent()).hostname;
|
|
989
989
|
if (context.disableHostPrefix !== true) {
|
|
@@ -996,7 +996,7 @@ export var serializeAws_restXmlGetAccessPointCommand = function (input, context)
|
|
|
996
996
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
return [2
|
|
999
|
+
return [2, new __HttpRequest({
|
|
1000
1000
|
protocol: protocol,
|
|
1001
1001
|
hostname: resolvedHostname,
|
|
1002
1002
|
port: port,
|
|
@@ -1012,7 +1012,7 @@ export var serializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommand
|
|
|
1012
1012
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1013
1013
|
return __generator(this, function (_c) {
|
|
1014
1014
|
switch (_c.label) {
|
|
1015
|
-
case 0: return [4
|
|
1015
|
+
case 0: return [4, context.endpoint()];
|
|
1016
1016
|
case 1:
|
|
1017
1017
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1018
1018
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1028,7 +1028,7 @@ export var serializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommand
|
|
|
1028
1028
|
else {
|
|
1029
1029
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1030
1030
|
}
|
|
1031
|
-
return [4
|
|
1031
|
+
return [4, context.endpoint()];
|
|
1032
1032
|
case 2:
|
|
1033
1033
|
resolvedHostname = (_c.sent()).hostname;
|
|
1034
1034
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1041,7 +1041,7 @@ export var serializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommand
|
|
|
1041
1041
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, new __HttpRequest({
|
|
1045
1045
|
protocol: protocol,
|
|
1046
1046
|
hostname: resolvedHostname,
|
|
1047
1047
|
port: port,
|
|
@@ -1057,7 +1057,7 @@ export var serializeAws_restXmlGetAccessPointForObjectLambdaCommand = function (
|
|
|
1057
1057
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1058
1058
|
return __generator(this, function (_c) {
|
|
1059
1059
|
switch (_c.label) {
|
|
1060
|
-
case 0: return [4
|
|
1060
|
+
case 0: return [4, context.endpoint()];
|
|
1061
1061
|
case 1:
|
|
1062
1062
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1063
1063
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1073,7 +1073,7 @@ export var serializeAws_restXmlGetAccessPointForObjectLambdaCommand = function (
|
|
|
1073
1073
|
else {
|
|
1074
1074
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1075
1075
|
}
|
|
1076
|
-
return [4
|
|
1076
|
+
return [4, context.endpoint()];
|
|
1077
1077
|
case 2:
|
|
1078
1078
|
resolvedHostname = (_c.sent()).hostname;
|
|
1079
1079
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1086,7 +1086,7 @@ export var serializeAws_restXmlGetAccessPointForObjectLambdaCommand = function (
|
|
|
1086
1086
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
|
-
return [2
|
|
1089
|
+
return [2, new __HttpRequest({
|
|
1090
1090
|
protocol: protocol,
|
|
1091
1091
|
hostname: resolvedHostname,
|
|
1092
1092
|
port: port,
|
|
@@ -1102,7 +1102,7 @@ export var serializeAws_restXmlGetAccessPointPolicyCommand = function (input, co
|
|
|
1102
1102
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1103
1103
|
return __generator(this, function (_c) {
|
|
1104
1104
|
switch (_c.label) {
|
|
1105
|
-
case 0: return [4
|
|
1105
|
+
case 0: return [4, context.endpoint()];
|
|
1106
1106
|
case 1:
|
|
1107
1107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1108
1108
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1117,7 +1117,7 @@ export var serializeAws_restXmlGetAccessPointPolicyCommand = function (input, co
|
|
|
1117
1117
|
else {
|
|
1118
1118
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1119
1119
|
}
|
|
1120
|
-
return [4
|
|
1120
|
+
return [4, context.endpoint()];
|
|
1121
1121
|
case 2:
|
|
1122
1122
|
resolvedHostname = (_c.sent()).hostname;
|
|
1123
1123
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1130,7 +1130,7 @@ export var serializeAws_restXmlGetAccessPointPolicyCommand = function (input, co
|
|
|
1130
1130
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
return [2
|
|
1133
|
+
return [2, new __HttpRequest({
|
|
1134
1134
|
protocol: protocol,
|
|
1135
1135
|
hostname: resolvedHostname,
|
|
1136
1136
|
port: port,
|
|
@@ -1146,7 +1146,7 @@ export var serializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = func
|
|
|
1146
1146
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1147
1147
|
return __generator(this, function (_c) {
|
|
1148
1148
|
switch (_c.label) {
|
|
1149
|
-
case 0: return [4
|
|
1149
|
+
case 0: return [4, context.endpoint()];
|
|
1150
1150
|
case 1:
|
|
1151
1151
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1152
1152
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1162,7 +1162,7 @@ export var serializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = func
|
|
|
1162
1162
|
else {
|
|
1163
1163
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1164
1164
|
}
|
|
1165
|
-
return [4
|
|
1165
|
+
return [4, context.endpoint()];
|
|
1166
1166
|
case 2:
|
|
1167
1167
|
resolvedHostname = (_c.sent()).hostname;
|
|
1168
1168
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1175,7 +1175,7 @@ export var serializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = func
|
|
|
1175
1175
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
return [2
|
|
1178
|
+
return [2, new __HttpRequest({
|
|
1179
1179
|
protocol: protocol,
|
|
1180
1180
|
hostname: resolvedHostname,
|
|
1181
1181
|
port: port,
|
|
@@ -1191,7 +1191,7 @@ export var serializeAws_restXmlGetAccessPointPolicyStatusCommand = function (inp
|
|
|
1191
1191
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1192
1192
|
return __generator(this, function (_c) {
|
|
1193
1193
|
switch (_c.label) {
|
|
1194
|
-
case 0: return [4
|
|
1194
|
+
case 0: return [4, context.endpoint()];
|
|
1195
1195
|
case 1:
|
|
1196
1196
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1197
1197
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1207,7 +1207,7 @@ export var serializeAws_restXmlGetAccessPointPolicyStatusCommand = function (inp
|
|
|
1207
1207
|
else {
|
|
1208
1208
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1209
1209
|
}
|
|
1210
|
-
return [4
|
|
1210
|
+
return [4, context.endpoint()];
|
|
1211
1211
|
case 2:
|
|
1212
1212
|
resolvedHostname = (_c.sent()).hostname;
|
|
1213
1213
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1220,7 +1220,7 @@ export var serializeAws_restXmlGetAccessPointPolicyStatusCommand = function (inp
|
|
|
1220
1220
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
return [2
|
|
1223
|
+
return [2, new __HttpRequest({
|
|
1224
1224
|
protocol: protocol,
|
|
1225
1225
|
hostname: resolvedHostname,
|
|
1226
1226
|
port: port,
|
|
@@ -1236,7 +1236,7 @@ export var serializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommand
|
|
|
1236
1236
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1237
1237
|
return __generator(this, function (_c) {
|
|
1238
1238
|
switch (_c.label) {
|
|
1239
|
-
case 0: return [4
|
|
1239
|
+
case 0: return [4, context.endpoint()];
|
|
1240
1240
|
case 1:
|
|
1241
1241
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1242
1242
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1252,7 +1252,7 @@ export var serializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommand
|
|
|
1252
1252
|
else {
|
|
1253
1253
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1254
1254
|
}
|
|
1255
|
-
return [4
|
|
1255
|
+
return [4, context.endpoint()];
|
|
1256
1256
|
case 2:
|
|
1257
1257
|
resolvedHostname = (_c.sent()).hostname;
|
|
1258
1258
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1265,7 +1265,7 @@ export var serializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommand
|
|
|
1265
1265
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
|
-
return [2
|
|
1268
|
+
return [2, new __HttpRequest({
|
|
1269
1269
|
protocol: protocol,
|
|
1270
1270
|
hostname: resolvedHostname,
|
|
1271
1271
|
port: port,
|
|
@@ -1281,7 +1281,7 @@ export var serializeAws_restXmlGetBucketCommand = function (input, context) { re
|
|
|
1281
1281
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1282
1282
|
return __generator(this, function (_c) {
|
|
1283
1283
|
switch (_c.label) {
|
|
1284
|
-
case 0: return [4
|
|
1284
|
+
case 0: return [4, context.endpoint()];
|
|
1285
1285
|
case 1:
|
|
1286
1286
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1287
1287
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1296,7 +1296,7 @@ export var serializeAws_restXmlGetBucketCommand = function (input, context) { re
|
|
|
1296
1296
|
else {
|
|
1297
1297
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
1298
1298
|
}
|
|
1299
|
-
return [4
|
|
1299
|
+
return [4, context.endpoint()];
|
|
1300
1300
|
case 2:
|
|
1301
1301
|
resolvedHostname = (_c.sent()).hostname;
|
|
1302
1302
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1309,7 +1309,7 @@ export var serializeAws_restXmlGetBucketCommand = function (input, context) { re
|
|
|
1309
1309
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
return [2
|
|
1312
|
+
return [2, new __HttpRequest({
|
|
1313
1313
|
protocol: protocol,
|
|
1314
1314
|
hostname: resolvedHostname,
|
|
1315
1315
|
port: port,
|
|
@@ -1325,7 +1325,7 @@ export var serializeAws_restXmlGetBucketLifecycleConfigurationCommand = function
|
|
|
1325
1325
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1326
1326
|
return __generator(this, function (_c) {
|
|
1327
1327
|
switch (_c.label) {
|
|
1328
|
-
case 0: return [4
|
|
1328
|
+
case 0: return [4, context.endpoint()];
|
|
1329
1329
|
case 1:
|
|
1330
1330
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1331
1331
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1341,7 +1341,7 @@ export var serializeAws_restXmlGetBucketLifecycleConfigurationCommand = function
|
|
|
1341
1341
|
else {
|
|
1342
1342
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
1343
1343
|
}
|
|
1344
|
-
return [4
|
|
1344
|
+
return [4, context.endpoint()];
|
|
1345
1345
|
case 2:
|
|
1346
1346
|
resolvedHostname = (_c.sent()).hostname;
|
|
1347
1347
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1354,7 +1354,7 @@ export var serializeAws_restXmlGetBucketLifecycleConfigurationCommand = function
|
|
|
1354
1354
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
return [2
|
|
1357
|
+
return [2, new __HttpRequest({
|
|
1358
1358
|
protocol: protocol,
|
|
1359
1359
|
hostname: resolvedHostname,
|
|
1360
1360
|
port: port,
|
|
@@ -1370,7 +1370,7 @@ export var serializeAws_restXmlGetBucketPolicyCommand = function (input, context
|
|
|
1370
1370
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1371
1371
|
return __generator(this, function (_c) {
|
|
1372
1372
|
switch (_c.label) {
|
|
1373
|
-
case 0: return [4
|
|
1373
|
+
case 0: return [4, context.endpoint()];
|
|
1374
1374
|
case 1:
|
|
1375
1375
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1376
1376
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1385,7 +1385,7 @@ export var serializeAws_restXmlGetBucketPolicyCommand = function (input, context
|
|
|
1385
1385
|
else {
|
|
1386
1386
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
1387
1387
|
}
|
|
1388
|
-
return [4
|
|
1388
|
+
return [4, context.endpoint()];
|
|
1389
1389
|
case 2:
|
|
1390
1390
|
resolvedHostname = (_c.sent()).hostname;
|
|
1391
1391
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1398,7 +1398,7 @@ export var serializeAws_restXmlGetBucketPolicyCommand = function (input, context
|
|
|
1398
1398
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
return [2
|
|
1401
|
+
return [2, new __HttpRequest({
|
|
1402
1402
|
protocol: protocol,
|
|
1403
1403
|
hostname: resolvedHostname,
|
|
1404
1404
|
port: port,
|
|
@@ -1414,7 +1414,7 @@ export var serializeAws_restXmlGetBucketTaggingCommand = function (input, contex
|
|
|
1414
1414
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1415
1415
|
return __generator(this, function (_c) {
|
|
1416
1416
|
switch (_c.label) {
|
|
1417
|
-
case 0: return [4
|
|
1417
|
+
case 0: return [4, context.endpoint()];
|
|
1418
1418
|
case 1:
|
|
1419
1419
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1420
1420
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1429,7 +1429,7 @@ export var serializeAws_restXmlGetBucketTaggingCommand = function (input, contex
|
|
|
1429
1429
|
else {
|
|
1430
1430
|
throw new Error("No value provided for input HTTP label: Bucket.");
|
|
1431
1431
|
}
|
|
1432
|
-
return [4
|
|
1432
|
+
return [4, context.endpoint()];
|
|
1433
1433
|
case 2:
|
|
1434
1434
|
resolvedHostname = (_c.sent()).hostname;
|
|
1435
1435
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1442,7 +1442,7 @@ export var serializeAws_restXmlGetBucketTaggingCommand = function (input, contex
|
|
|
1442
1442
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
return [2
|
|
1445
|
+
return [2, new __HttpRequest({
|
|
1446
1446
|
protocol: protocol,
|
|
1447
1447
|
hostname: resolvedHostname,
|
|
1448
1448
|
port: port,
|
|
@@ -1458,7 +1458,7 @@ export var serializeAws_restXmlGetJobTaggingCommand = function (input, context)
|
|
|
1458
1458
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1459
1459
|
return __generator(this, function (_c) {
|
|
1460
1460
|
switch (_c.label) {
|
|
1461
|
-
case 0: return [4
|
|
1461
|
+
case 0: return [4, context.endpoint()];
|
|
1462
1462
|
case 1:
|
|
1463
1463
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1464
1464
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1473,7 +1473,7 @@ export var serializeAws_restXmlGetJobTaggingCommand = function (input, context)
|
|
|
1473
1473
|
else {
|
|
1474
1474
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
1475
1475
|
}
|
|
1476
|
-
return [4
|
|
1476
|
+
return [4, context.endpoint()];
|
|
1477
1477
|
case 2:
|
|
1478
1478
|
resolvedHostname = (_c.sent()).hostname;
|
|
1479
1479
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1486,7 +1486,7 @@ export var serializeAws_restXmlGetJobTaggingCommand = function (input, context)
|
|
|
1486
1486
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
|
-
return [2
|
|
1489
|
+
return [2, new __HttpRequest({
|
|
1490
1490
|
protocol: protocol,
|
|
1491
1491
|
hostname: resolvedHostname,
|
|
1492
1492
|
port: port,
|
|
@@ -1502,7 +1502,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointCommand = function (inpu
|
|
|
1502
1502
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1503
1503
|
return __generator(this, function (_c) {
|
|
1504
1504
|
switch (_c.label) {
|
|
1505
|
-
case 0: return [4
|
|
1505
|
+
case 0: return [4, context.endpoint()];
|
|
1506
1506
|
case 1:
|
|
1507
1507
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1508
1508
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1517,7 +1517,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointCommand = function (inpu
|
|
|
1517
1517
|
else {
|
|
1518
1518
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1519
1519
|
}
|
|
1520
|
-
return [4
|
|
1520
|
+
return [4, context.endpoint()];
|
|
1521
1521
|
case 2:
|
|
1522
1522
|
resolvedHostname = (_c.sent()).hostname;
|
|
1523
1523
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1530,7 +1530,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointCommand = function (inpu
|
|
|
1530
1530
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
return [2
|
|
1533
|
+
return [2, new __HttpRequest({
|
|
1534
1534
|
protocol: protocol,
|
|
1535
1535
|
hostname: resolvedHostname,
|
|
1536
1536
|
port: port,
|
|
@@ -1546,7 +1546,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = function
|
|
|
1546
1546
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1547
1547
|
return __generator(this, function (_c) {
|
|
1548
1548
|
switch (_c.label) {
|
|
1549
|
-
case 0: return [4
|
|
1549
|
+
case 0: return [4, context.endpoint()];
|
|
1550
1550
|
case 1:
|
|
1551
1551
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1552
1552
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1561,7 +1561,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = function
|
|
|
1561
1561
|
else {
|
|
1562
1562
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1563
1563
|
}
|
|
1564
|
-
return [4
|
|
1564
|
+
return [4, context.endpoint()];
|
|
1565
1565
|
case 2:
|
|
1566
1566
|
resolvedHostname = (_c.sent()).hostname;
|
|
1567
1567
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1574,7 +1574,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = function
|
|
|
1574
1574
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
|
-
return [2
|
|
1577
|
+
return [2, new __HttpRequest({
|
|
1578
1578
|
protocol: protocol,
|
|
1579
1579
|
hostname: resolvedHostname,
|
|
1580
1580
|
port: port,
|
|
@@ -1590,7 +1590,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = fu
|
|
|
1590
1590
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1591
1591
|
return __generator(this, function (_c) {
|
|
1592
1592
|
switch (_c.label) {
|
|
1593
|
-
case 0: return [4
|
|
1593
|
+
case 0: return [4, context.endpoint()];
|
|
1594
1594
|
case 1:
|
|
1595
1595
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1596
1596
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1606,7 +1606,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = fu
|
|
|
1606
1606
|
else {
|
|
1607
1607
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
1608
1608
|
}
|
|
1609
|
-
return [4
|
|
1609
|
+
return [4, context.endpoint()];
|
|
1610
1610
|
case 2:
|
|
1611
1611
|
resolvedHostname = (_c.sent()).hostname;
|
|
1612
1612
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1619,7 +1619,7 @@ export var serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = fu
|
|
|
1619
1619
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
|
-
return [2
|
|
1622
|
+
return [2, new __HttpRequest({
|
|
1623
1623
|
protocol: protocol,
|
|
1624
1624
|
hostname: resolvedHostname,
|
|
1625
1625
|
port: port,
|
|
@@ -1635,13 +1635,13 @@ export var serializeAws_restXmlGetPublicAccessBlockCommand = function (input, co
|
|
|
1635
1635
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1636
1636
|
return __generator(this, function (_c) {
|
|
1637
1637
|
switch (_c.label) {
|
|
1638
|
-
case 0: return [4
|
|
1638
|
+
case 0: return [4, context.endpoint()];
|
|
1639
1639
|
case 1:
|
|
1640
1640
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1641
1641
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
1642
1642
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1643
1643
|
"/v20180820/configuration/publicAccessBlock";
|
|
1644
|
-
return [4
|
|
1644
|
+
return [4, context.endpoint()];
|
|
1645
1645
|
case 2:
|
|
1646
1646
|
resolvedHostname = (_c.sent()).hostname;
|
|
1647
1647
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1654,7 +1654,7 @@ export var serializeAws_restXmlGetPublicAccessBlockCommand = function (input, co
|
|
|
1654
1654
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
|
-
return [2
|
|
1657
|
+
return [2, new __HttpRequest({
|
|
1658
1658
|
protocol: protocol,
|
|
1659
1659
|
hostname: resolvedHostname,
|
|
1660
1660
|
port: port,
|
|
@@ -1670,7 +1670,7 @@ export var serializeAws_restXmlGetStorageLensConfigurationCommand = function (in
|
|
|
1670
1670
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1671
1671
|
return __generator(this, function (_c) {
|
|
1672
1672
|
switch (_c.label) {
|
|
1673
|
-
case 0: return [4
|
|
1673
|
+
case 0: return [4, context.endpoint()];
|
|
1674
1674
|
case 1:
|
|
1675
1675
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1676
1676
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1685,7 +1685,7 @@ export var serializeAws_restXmlGetStorageLensConfigurationCommand = function (in
|
|
|
1685
1685
|
else {
|
|
1686
1686
|
throw new Error("No value provided for input HTTP label: ConfigId.");
|
|
1687
1687
|
}
|
|
1688
|
-
return [4
|
|
1688
|
+
return [4, context.endpoint()];
|
|
1689
1689
|
case 2:
|
|
1690
1690
|
resolvedHostname = (_c.sent()).hostname;
|
|
1691
1691
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1698,7 +1698,7 @@ export var serializeAws_restXmlGetStorageLensConfigurationCommand = function (in
|
|
|
1698
1698
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
|
-
return [2
|
|
1701
|
+
return [2, new __HttpRequest({
|
|
1702
1702
|
protocol: protocol,
|
|
1703
1703
|
hostname: resolvedHostname,
|
|
1704
1704
|
port: port,
|
|
@@ -1714,7 +1714,7 @@ export var serializeAws_restXmlGetStorageLensConfigurationTaggingCommand = funct
|
|
|
1714
1714
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1715
1715
|
return __generator(this, function (_c) {
|
|
1716
1716
|
switch (_c.label) {
|
|
1717
|
-
case 0: return [4
|
|
1717
|
+
case 0: return [4, context.endpoint()];
|
|
1718
1718
|
case 1:
|
|
1719
1719
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1720
1720
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1729,7 +1729,7 @@ export var serializeAws_restXmlGetStorageLensConfigurationTaggingCommand = funct
|
|
|
1729
1729
|
else {
|
|
1730
1730
|
throw new Error("No value provided for input HTTP label: ConfigId.");
|
|
1731
1731
|
}
|
|
1732
|
-
return [4
|
|
1732
|
+
return [4, context.endpoint()];
|
|
1733
1733
|
case 2:
|
|
1734
1734
|
resolvedHostname = (_c.sent()).hostname;
|
|
1735
1735
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1742,7 +1742,7 @@ export var serializeAws_restXmlGetStorageLensConfigurationTaggingCommand = funct
|
|
|
1742
1742
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
|
-
return [2
|
|
1745
|
+
return [2, new __HttpRequest({
|
|
1746
1746
|
protocol: protocol,
|
|
1747
1747
|
hostname: resolvedHostname,
|
|
1748
1748
|
port: port,
|
|
@@ -1758,13 +1758,13 @@ export var serializeAws_restXmlListAccessPointsCommand = function (input, contex
|
|
|
1758
1758
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1759
1759
|
return __generator(this, function (_c) {
|
|
1760
1760
|
switch (_c.label) {
|
|
1761
|
-
case 0: return [4
|
|
1761
|
+
case 0: return [4, context.endpoint()];
|
|
1762
1762
|
case 1:
|
|
1763
1763
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1764
1764
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
1765
1765
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20180820/accesspoint";
|
|
1766
1766
|
query = __assign(__assign(__assign({}, (input.Bucket !== undefined && { bucket: input.Bucket })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1767
|
-
return [4
|
|
1767
|
+
return [4, context.endpoint()];
|
|
1768
1768
|
case 2:
|
|
1769
1769
|
resolvedHostname = (_c.sent()).hostname;
|
|
1770
1770
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1777,7 +1777,7 @@ export var serializeAws_restXmlListAccessPointsCommand = function (input, contex
|
|
|
1777
1777
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
return [2
|
|
1780
|
+
return [2, new __HttpRequest({
|
|
1781
1781
|
protocol: protocol,
|
|
1782
1782
|
hostname: resolvedHostname,
|
|
1783
1783
|
port: port,
|
|
@@ -1794,13 +1794,13 @@ export var serializeAws_restXmlListAccessPointsForObjectLambdaCommand = function
|
|
|
1794
1794
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1795
1795
|
return __generator(this, function (_c) {
|
|
1796
1796
|
switch (_c.label) {
|
|
1797
|
-
case 0: return [4
|
|
1797
|
+
case 0: return [4, context.endpoint()];
|
|
1798
1798
|
case 1:
|
|
1799
1799
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1800
1800
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
1801
1801
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20180820/accesspointforobjectlambda";
|
|
1802
1802
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1803
|
-
return [4
|
|
1803
|
+
return [4, context.endpoint()];
|
|
1804
1804
|
case 2:
|
|
1805
1805
|
resolvedHostname = (_c.sent()).hostname;
|
|
1806
1806
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1813,7 +1813,7 @@ export var serializeAws_restXmlListAccessPointsForObjectLambdaCommand = function
|
|
|
1813
1813
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
return [2
|
|
1816
|
+
return [2, new __HttpRequest({
|
|
1817
1817
|
protocol: protocol,
|
|
1818
1818
|
hostname: resolvedHostname,
|
|
1819
1819
|
port: port,
|
|
@@ -1830,13 +1830,13 @@ export var serializeAws_restXmlListJobsCommand = function (input, context) { ret
|
|
|
1830
1830
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1831
1831
|
return __generator(this, function (_c) {
|
|
1832
1832
|
switch (_c.label) {
|
|
1833
|
-
case 0: return [4
|
|
1833
|
+
case 0: return [4, context.endpoint()];
|
|
1834
1834
|
case 1:
|
|
1835
1835
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1836
1836
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
1837
1837
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20180820/jobs";
|
|
1838
1838
|
query = __assign(__assign(__assign({}, (input.JobStatuses !== undefined && { jobStatuses: (input.JobStatuses || []).map(function (_entry) { return _entry; }) })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1839
|
-
return [4
|
|
1839
|
+
return [4, context.endpoint()];
|
|
1840
1840
|
case 2:
|
|
1841
1841
|
resolvedHostname = (_c.sent()).hostname;
|
|
1842
1842
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1849,7 +1849,7 @@ export var serializeAws_restXmlListJobsCommand = function (input, context) { ret
|
|
|
1849
1849
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
|
-
return [2
|
|
1852
|
+
return [2, new __HttpRequest({
|
|
1853
1853
|
protocol: protocol,
|
|
1854
1854
|
hostname: resolvedHostname,
|
|
1855
1855
|
port: port,
|
|
@@ -1866,13 +1866,13 @@ export var serializeAws_restXmlListMultiRegionAccessPointsCommand = function (in
|
|
|
1866
1866
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1867
1867
|
return __generator(this, function (_c) {
|
|
1868
1868
|
switch (_c.label) {
|
|
1869
|
-
case 0: return [4
|
|
1869
|
+
case 0: return [4, context.endpoint()];
|
|
1870
1870
|
case 1:
|
|
1871
1871
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1872
1872
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
1873
1873
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20180820/mrap/instances";
|
|
1874
1874
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1875
|
-
return [4
|
|
1875
|
+
return [4, context.endpoint()];
|
|
1876
1876
|
case 2:
|
|
1877
1877
|
resolvedHostname = (_c.sent()).hostname;
|
|
1878
1878
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1885,7 +1885,7 @@ export var serializeAws_restXmlListMultiRegionAccessPointsCommand = function (in
|
|
|
1885
1885
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
|
-
return [2
|
|
1888
|
+
return [2, new __HttpRequest({
|
|
1889
1889
|
protocol: protocol,
|
|
1890
1890
|
hostname: resolvedHostname,
|
|
1891
1891
|
port: port,
|
|
@@ -1902,13 +1902,13 @@ export var serializeAws_restXmlListRegionalBucketsCommand = function (input, con
|
|
|
1902
1902
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1903
1903
|
return __generator(this, function (_c) {
|
|
1904
1904
|
switch (_c.label) {
|
|
1905
|
-
case 0: return [4
|
|
1905
|
+
case 0: return [4, context.endpoint()];
|
|
1906
1906
|
case 1:
|
|
1907
1907
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1908
1908
|
headers = __assign(__assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId })), (isSerializableHeaderValue(input.OutpostId) && { "x-amz-outpost-id": input.OutpostId }));
|
|
1909
1909
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20180820/bucket";
|
|
1910
1910
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1911
|
-
return [4
|
|
1911
|
+
return [4, context.endpoint()];
|
|
1912
1912
|
case 2:
|
|
1913
1913
|
resolvedHostname = (_c.sent()).hostname;
|
|
1914
1914
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1921,7 +1921,7 @@ export var serializeAws_restXmlListRegionalBucketsCommand = function (input, con
|
|
|
1921
1921
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1922
1922
|
}
|
|
1923
1923
|
}
|
|
1924
|
-
return [2
|
|
1924
|
+
return [2, new __HttpRequest({
|
|
1925
1925
|
protocol: protocol,
|
|
1926
1926
|
hostname: resolvedHostname,
|
|
1927
1927
|
port: port,
|
|
@@ -1938,13 +1938,13 @@ export var serializeAws_restXmlListStorageLensConfigurationsCommand = function (
|
|
|
1938
1938
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1939
1939
|
return __generator(this, function (_c) {
|
|
1940
1940
|
switch (_c.label) {
|
|
1941
|
-
case 0: return [4
|
|
1941
|
+
case 0: return [4, context.endpoint()];
|
|
1942
1942
|
case 1:
|
|
1943
1943
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1944
1944
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
1945
1945
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20180820/storagelens";
|
|
1946
1946
|
query = __assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
1947
|
-
return [4
|
|
1947
|
+
return [4, context.endpoint()];
|
|
1948
1948
|
case 2:
|
|
1949
1949
|
resolvedHostname = (_c.sent()).hostname;
|
|
1950
1950
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1957,7 +1957,7 @@ export var serializeAws_restXmlListStorageLensConfigurationsCommand = function (
|
|
|
1957
1957
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
1960
|
-
return [2
|
|
1960
|
+
return [2, new __HttpRequest({
|
|
1961
1961
|
protocol: protocol,
|
|
1962
1962
|
hostname: resolvedHostname,
|
|
1963
1963
|
port: port,
|
|
@@ -1974,7 +1974,7 @@ export var serializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommand
|
|
|
1974
1974
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, resolvedHostname;
|
|
1975
1975
|
return __generator(this, function (_c) {
|
|
1976
1976
|
switch (_c.label) {
|
|
1977
|
-
case 0: return [4
|
|
1977
|
+
case 0: return [4, context.endpoint()];
|
|
1978
1978
|
case 1:
|
|
1979
1979
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1980
1980
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -1998,7 +1998,7 @@ export var serializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommand
|
|
|
1998
1998
|
bodyNode.addChildNode(node);
|
|
1999
1999
|
}
|
|
2000
2000
|
body += bodyNode.toString();
|
|
2001
|
-
return [4
|
|
2001
|
+
return [4, context.endpoint()];
|
|
2002
2002
|
case 2:
|
|
2003
2003
|
resolvedHostname = (_c.sent()).hostname;
|
|
2004
2004
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2011,7 +2011,7 @@ export var serializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommand
|
|
|
2011
2011
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
|
-
return [2
|
|
2014
|
+
return [2, new __HttpRequest({
|
|
2015
2015
|
protocol: protocol,
|
|
2016
2016
|
hostname: resolvedHostname,
|
|
2017
2017
|
port: port,
|
|
@@ -2027,7 +2027,7 @@ export var serializeAws_restXmlPutAccessPointPolicyCommand = function (input, co
|
|
|
2027
2027
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, resolvedHostname;
|
|
2028
2028
|
return __generator(this, function (_c) {
|
|
2029
2029
|
switch (_c.label) {
|
|
2030
|
-
case 0: return [4
|
|
2030
|
+
case 0: return [4, context.endpoint()];
|
|
2031
2031
|
case 1:
|
|
2032
2032
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2033
2033
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2050,7 +2050,7 @@ export var serializeAws_restXmlPutAccessPointPolicyCommand = function (input, co
|
|
|
2050
2050
|
bodyNode.addChildNode(node);
|
|
2051
2051
|
}
|
|
2052
2052
|
body += bodyNode.toString();
|
|
2053
|
-
return [4
|
|
2053
|
+
return [4, context.endpoint()];
|
|
2054
2054
|
case 2:
|
|
2055
2055
|
resolvedHostname = (_c.sent()).hostname;
|
|
2056
2056
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2063,7 +2063,7 @@ export var serializeAws_restXmlPutAccessPointPolicyCommand = function (input, co
|
|
|
2063
2063
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
|
-
return [2
|
|
2066
|
+
return [2, new __HttpRequest({
|
|
2067
2067
|
protocol: protocol,
|
|
2068
2068
|
hostname: resolvedHostname,
|
|
2069
2069
|
port: port,
|
|
@@ -2079,7 +2079,7 @@ export var serializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = func
|
|
|
2079
2079
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, resolvedHostname;
|
|
2080
2080
|
return __generator(this, function (_c) {
|
|
2081
2081
|
switch (_c.label) {
|
|
2082
|
-
case 0: return [4
|
|
2082
|
+
case 0: return [4, context.endpoint()];
|
|
2083
2083
|
case 1:
|
|
2084
2084
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2085
2085
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2103,7 +2103,7 @@ export var serializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = func
|
|
|
2103
2103
|
bodyNode.addChildNode(node);
|
|
2104
2104
|
}
|
|
2105
2105
|
body += bodyNode.toString();
|
|
2106
|
-
return [4
|
|
2106
|
+
return [4, context.endpoint()];
|
|
2107
2107
|
case 2:
|
|
2108
2108
|
resolvedHostname = (_c.sent()).hostname;
|
|
2109
2109
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2116,7 +2116,7 @@ export var serializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = func
|
|
|
2116
2116
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
return [2
|
|
2119
|
+
return [2, new __HttpRequest({
|
|
2120
2120
|
protocol: protocol,
|
|
2121
2121
|
hostname: resolvedHostname,
|
|
2122
2122
|
port: port,
|
|
@@ -2132,7 +2132,7 @@ export var serializeAws_restXmlPutBucketLifecycleConfigurationCommand = function
|
|
|
2132
2132
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, contents, resolvedHostname;
|
|
2133
2133
|
return __generator(this, function (_c) {
|
|
2134
2134
|
switch (_c.label) {
|
|
2135
|
-
case 0: return [4
|
|
2135
|
+
case 0: return [4, context.endpoint()];
|
|
2136
2136
|
case 1:
|
|
2137
2137
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2138
2138
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2157,7 +2157,7 @@ export var serializeAws_restXmlPutBucketLifecycleConfigurationCommand = function
|
|
|
2157
2157
|
contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2158
2158
|
body += contents.toString();
|
|
2159
2159
|
}
|
|
2160
|
-
return [4
|
|
2160
|
+
return [4, context.endpoint()];
|
|
2161
2161
|
case 2:
|
|
2162
2162
|
resolvedHostname = (_c.sent()).hostname;
|
|
2163
2163
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2170,7 +2170,7 @@ export var serializeAws_restXmlPutBucketLifecycleConfigurationCommand = function
|
|
|
2170
2170
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
-
return [2
|
|
2173
|
+
return [2, new __HttpRequest({
|
|
2174
2174
|
protocol: protocol,
|
|
2175
2175
|
hostname: resolvedHostname,
|
|
2176
2176
|
port: port,
|
|
@@ -2186,7 +2186,7 @@ export var serializeAws_restXmlPutBucketPolicyCommand = function (input, context
|
|
|
2186
2186
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, resolvedHostname;
|
|
2187
2187
|
return __generator(this, function (_c) {
|
|
2188
2188
|
switch (_c.label) {
|
|
2189
|
-
case 0: return [4
|
|
2189
|
+
case 0: return [4, context.endpoint()];
|
|
2190
2190
|
case 1:
|
|
2191
2191
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2192
2192
|
headers = __assign(__assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId })), (isSerializableHeaderValue(input.ConfirmRemoveSelfBucketAccess) && {
|
|
@@ -2211,7 +2211,7 @@ export var serializeAws_restXmlPutBucketPolicyCommand = function (input, context
|
|
|
2211
2211
|
bodyNode.addChildNode(node);
|
|
2212
2212
|
}
|
|
2213
2213
|
body += bodyNode.toString();
|
|
2214
|
-
return [4
|
|
2214
|
+
return [4, context.endpoint()];
|
|
2215
2215
|
case 2:
|
|
2216
2216
|
resolvedHostname = (_c.sent()).hostname;
|
|
2217
2217
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2224,7 +2224,7 @@ export var serializeAws_restXmlPutBucketPolicyCommand = function (input, context
|
|
|
2224
2224
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
|
-
return [2
|
|
2227
|
+
return [2, new __HttpRequest({
|
|
2228
2228
|
protocol: protocol,
|
|
2229
2229
|
hostname: resolvedHostname,
|
|
2230
2230
|
port: port,
|
|
@@ -2240,7 +2240,7 @@ export var serializeAws_restXmlPutBucketTaggingCommand = function (input, contex
|
|
|
2240
2240
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, contents, resolvedHostname;
|
|
2241
2241
|
return __generator(this, function (_c) {
|
|
2242
2242
|
switch (_c.label) {
|
|
2243
|
-
case 0: return [4
|
|
2243
|
+
case 0: return [4, context.endpoint()];
|
|
2244
2244
|
case 1:
|
|
2245
2245
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2246
2246
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2264,7 +2264,7 @@ export var serializeAws_restXmlPutBucketTaggingCommand = function (input, contex
|
|
|
2264
2264
|
contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2265
2265
|
body += contents.toString();
|
|
2266
2266
|
}
|
|
2267
|
-
return [4
|
|
2267
|
+
return [4, context.endpoint()];
|
|
2268
2268
|
case 2:
|
|
2269
2269
|
resolvedHostname = (_c.sent()).hostname;
|
|
2270
2270
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2277,7 +2277,7 @@ export var serializeAws_restXmlPutBucketTaggingCommand = function (input, contex
|
|
|
2277
2277
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
return [2
|
|
2280
|
+
return [2, new __HttpRequest({
|
|
2281
2281
|
protocol: protocol,
|
|
2282
2282
|
hostname: resolvedHostname,
|
|
2283
2283
|
port: port,
|
|
@@ -2293,7 +2293,7 @@ export var serializeAws_restXmlPutJobTaggingCommand = function (input, context)
|
|
|
2293
2293
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, nodes, containerNode_2, resolvedHostname;
|
|
2294
2294
|
return __generator(this, function (_c) {
|
|
2295
2295
|
switch (_c.label) {
|
|
2296
|
-
case 0: return [4
|
|
2296
|
+
case 0: return [4, context.endpoint()];
|
|
2297
2297
|
case 1:
|
|
2298
2298
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2299
2299
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2320,7 +2320,7 @@ export var serializeAws_restXmlPutJobTaggingCommand = function (input, context)
|
|
|
2320
2320
|
bodyNode.addChildNode(containerNode_2);
|
|
2321
2321
|
}
|
|
2322
2322
|
body += bodyNode.toString();
|
|
2323
|
-
return [4
|
|
2323
|
+
return [4, context.endpoint()];
|
|
2324
2324
|
case 2:
|
|
2325
2325
|
resolvedHostname = (_c.sent()).hostname;
|
|
2326
2326
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2333,7 +2333,7 @@ export var serializeAws_restXmlPutJobTaggingCommand = function (input, context)
|
|
|
2333
2333
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
|
-
return [2
|
|
2336
|
+
return [2, new __HttpRequest({
|
|
2337
2337
|
protocol: protocol,
|
|
2338
2338
|
hostname: resolvedHostname,
|
|
2339
2339
|
port: port,
|
|
@@ -2349,7 +2349,7 @@ export var serializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = function
|
|
|
2349
2349
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, bodyNode, node, node, resolvedHostname;
|
|
2350
2350
|
return __generator(this, function (_c) {
|
|
2351
2351
|
switch (_c.label) {
|
|
2352
|
-
case 0: return [4
|
|
2352
|
+
case 0: return [4, context.endpoint()];
|
|
2353
2353
|
case 1:
|
|
2354
2354
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2355
2355
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2371,7 +2371,7 @@ export var serializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = function
|
|
|
2371
2371
|
bodyNode.addChildNode(node);
|
|
2372
2372
|
}
|
|
2373
2373
|
body += bodyNode.toString();
|
|
2374
|
-
return [4
|
|
2374
|
+
return [4, context.endpoint()];
|
|
2375
2375
|
case 2:
|
|
2376
2376
|
resolvedHostname = (_c.sent()).hostname;
|
|
2377
2377
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2384,7 +2384,7 @@ export var serializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = function
|
|
|
2384
2384
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2385
2385
|
}
|
|
2386
2386
|
}
|
|
2387
|
-
return [2
|
|
2387
|
+
return [2, new __HttpRequest({
|
|
2388
2388
|
protocol: protocol,
|
|
2389
2389
|
hostname: resolvedHostname,
|
|
2390
2390
|
port: port,
|
|
@@ -2400,7 +2400,7 @@ export var serializeAws_restXmlPutPublicAccessBlockCommand = function (input, co
|
|
|
2400
2400
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents, resolvedHostname;
|
|
2401
2401
|
return __generator(this, function (_c) {
|
|
2402
2402
|
switch (_c.label) {
|
|
2403
|
-
case 0: return [4
|
|
2403
|
+
case 0: return [4, context.endpoint()];
|
|
2404
2404
|
case 1:
|
|
2405
2405
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2406
2406
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2415,7 +2415,7 @@ export var serializeAws_restXmlPutPublicAccessBlockCommand = function (input, co
|
|
|
2415
2415
|
contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2416
2416
|
body += contents.toString();
|
|
2417
2417
|
}
|
|
2418
|
-
return [4
|
|
2418
|
+
return [4, context.endpoint()];
|
|
2419
2419
|
case 2:
|
|
2420
2420
|
resolvedHostname = (_c.sent()).hostname;
|
|
2421
2421
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2428,7 +2428,7 @@ export var serializeAws_restXmlPutPublicAccessBlockCommand = function (input, co
|
|
|
2428
2428
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
|
-
return [2
|
|
2431
|
+
return [2, new __HttpRequest({
|
|
2432
2432
|
protocol: protocol,
|
|
2433
2433
|
hostname: resolvedHostname,
|
|
2434
2434
|
port: port,
|
|
@@ -2444,7 +2444,7 @@ export var serializeAws_restXmlPutStorageLensConfigurationCommand = function (in
|
|
|
2444
2444
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, node, nodes, containerNode_3, resolvedHostname;
|
|
2445
2445
|
return __generator(this, function (_c) {
|
|
2446
2446
|
switch (_c.label) {
|
|
2447
|
-
case 0: return [4
|
|
2447
|
+
case 0: return [4, context.endpoint()];
|
|
2448
2448
|
case 1:
|
|
2449
2449
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2450
2450
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2475,7 +2475,7 @@ export var serializeAws_restXmlPutStorageLensConfigurationCommand = function (in
|
|
|
2475
2475
|
bodyNode.addChildNode(containerNode_3);
|
|
2476
2476
|
}
|
|
2477
2477
|
body += bodyNode.toString();
|
|
2478
|
-
return [4
|
|
2478
|
+
return [4, context.endpoint()];
|
|
2479
2479
|
case 2:
|
|
2480
2480
|
resolvedHostname = (_c.sent()).hostname;
|
|
2481
2481
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2488,7 +2488,7 @@ export var serializeAws_restXmlPutStorageLensConfigurationCommand = function (in
|
|
|
2488
2488
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
|
-
return [2
|
|
2491
|
+
return [2, new __HttpRequest({
|
|
2492
2492
|
protocol: protocol,
|
|
2493
2493
|
hostname: resolvedHostname,
|
|
2494
2494
|
port: port,
|
|
@@ -2504,7 +2504,7 @@ export var serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = funct
|
|
|
2504
2504
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, bodyNode, nodes, containerNode_4, resolvedHostname;
|
|
2505
2505
|
return __generator(this, function (_c) {
|
|
2506
2506
|
switch (_c.label) {
|
|
2507
|
-
case 0: return [4
|
|
2507
|
+
case 0: return [4, context.endpoint()];
|
|
2508
2508
|
case 1:
|
|
2509
2509
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2510
2510
|
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2531,7 +2531,7 @@ export var serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = funct
|
|
|
2531
2531
|
bodyNode.addChildNode(containerNode_4);
|
|
2532
2532
|
}
|
|
2533
2533
|
body += bodyNode.toString();
|
|
2534
|
-
return [4
|
|
2534
|
+
return [4, context.endpoint()];
|
|
2535
2535
|
case 2:
|
|
2536
2536
|
resolvedHostname = (_c.sent()).hostname;
|
|
2537
2537
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2544,7 +2544,7 @@ export var serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = funct
|
|
|
2544
2544
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
return [2
|
|
2547
|
+
return [2, new __HttpRequest({
|
|
2548
2548
|
protocol: protocol,
|
|
2549
2549
|
hostname: resolvedHostname,
|
|
2550
2550
|
port: port,
|
|
@@ -2560,7 +2560,7 @@ export var serializeAws_restXmlUpdateJobPriorityCommand = function (input, conte
|
|
|
2560
2560
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body, resolvedHostname;
|
|
2561
2561
|
return __generator(this, function (_c) {
|
|
2562
2562
|
switch (_c.label) {
|
|
2563
|
-
case 0: return [4
|
|
2563
|
+
case 0: return [4, context.endpoint()];
|
|
2564
2564
|
case 1:
|
|
2565
2565
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2566
2566
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2576,7 +2576,7 @@ export var serializeAws_restXmlUpdateJobPriorityCommand = function (input, conte
|
|
|
2576
2576
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
2577
2577
|
}
|
|
2578
2578
|
query = __assign({}, (input.Priority !== undefined && { priority: input.Priority.toString() }));
|
|
2579
|
-
return [4
|
|
2579
|
+
return [4, context.endpoint()];
|
|
2580
2580
|
case 2:
|
|
2581
2581
|
resolvedHostname = (_c.sent()).hostname;
|
|
2582
2582
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2589,7 +2589,7 @@ export var serializeAws_restXmlUpdateJobPriorityCommand = function (input, conte
|
|
|
2589
2589
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
return [2
|
|
2592
|
+
return [2, new __HttpRequest({
|
|
2593
2593
|
protocol: protocol,
|
|
2594
2594
|
hostname: resolvedHostname,
|
|
2595
2595
|
port: port,
|
|
@@ -2606,7 +2606,7 @@ export var serializeAws_restXmlUpdateJobStatusCommand = function (input, context
|
|
|
2606
2606
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body, resolvedHostname;
|
|
2607
2607
|
return __generator(this, function (_c) {
|
|
2608
2608
|
switch (_c.label) {
|
|
2609
|
-
case 0: return [4
|
|
2609
|
+
case 0: return [4, context.endpoint()];
|
|
2610
2610
|
case 1:
|
|
2611
2611
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2612
2612
|
headers = __assign({}, (isSerializableHeaderValue(input.AccountId) && { "x-amz-account-id": input.AccountId }));
|
|
@@ -2622,7 +2622,7 @@ export var serializeAws_restXmlUpdateJobStatusCommand = function (input, context
|
|
|
2622
2622
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
2623
2623
|
}
|
|
2624
2624
|
query = __assign(__assign({}, (input.RequestedJobStatus !== undefined && { requestedJobStatus: input.RequestedJobStatus })), (input.StatusUpdateReason !== undefined && { statusUpdateReason: input.StatusUpdateReason }));
|
|
2625
|
-
return [4
|
|
2625
|
+
return [4, context.endpoint()];
|
|
2626
2626
|
case 2:
|
|
2627
2627
|
resolvedHostname = (_c.sent()).hostname;
|
|
2628
2628
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2635,7 +2635,7 @@ export var serializeAws_restXmlUpdateJobStatusCommand = function (input, context
|
|
|
2635
2635
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
|
-
return [2
|
|
2638
|
+
return [2, new __HttpRequest({
|
|
2639
2639
|
protocol: protocol,
|
|
2640
2640
|
hostname: resolvedHostname,
|
|
2641
2641
|
port: port,
|
|
@@ -2654,7 +2654,7 @@ export var deserializeAws_restXmlCreateAccessPointCommand = function (output, co
|
|
|
2654
2654
|
switch (_c.label) {
|
|
2655
2655
|
case 0:
|
|
2656
2656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2657
|
-
return [2
|
|
2657
|
+
return [2, deserializeAws_restXmlCreateAccessPointCommandError(output, context)];
|
|
2658
2658
|
}
|
|
2659
2659
|
contents = {
|
|
2660
2660
|
$metadata: deserializeMetadata(output),
|
|
@@ -2663,7 +2663,7 @@ export var deserializeAws_restXmlCreateAccessPointCommand = function (output, co
|
|
|
2663
2663
|
};
|
|
2664
2664
|
_a = __expectNonNull;
|
|
2665
2665
|
_b = __expectObject;
|
|
2666
|
-
return [4
|
|
2666
|
+
return [4, parseBody(output.body, context)];
|
|
2667
2667
|
case 1:
|
|
2668
2668
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2669
2669
|
if (data["AccessPointArn"] !== undefined) {
|
|
@@ -2672,7 +2672,7 @@ export var deserializeAws_restXmlCreateAccessPointCommand = function (output, co
|
|
|
2672
2672
|
if (data["Alias"] !== undefined) {
|
|
2673
2673
|
contents.Alias = __expectString(data["Alias"]);
|
|
2674
2674
|
}
|
|
2675
|
-
return [2
|
|
2675
|
+
return [2, Promise.resolve(contents)];
|
|
2676
2676
|
}
|
|
2677
2677
|
});
|
|
2678
2678
|
}); };
|
|
@@ -2684,7 +2684,7 @@ var deserializeAws_restXmlCreateAccessPointCommandError = function (output, cont
|
|
|
2684
2684
|
case 0:
|
|
2685
2685
|
_a = [__assign({}, output)];
|
|
2686
2686
|
_b = {};
|
|
2687
|
-
return [4
|
|
2687
|
+
return [4, parseBody(output.body, context)];
|
|
2688
2688
|
case 1:
|
|
2689
2689
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2690
2690
|
errorCode = "UnknownError";
|
|
@@ -2698,7 +2698,7 @@ var deserializeAws_restXmlCreateAccessPointCommandError = function (output, cont
|
|
|
2698
2698
|
message = response.message || response.Message || errorCode;
|
|
2699
2699
|
response.message = message;
|
|
2700
2700
|
delete response.Message;
|
|
2701
|
-
return [2
|
|
2701
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2702
2702
|
}
|
|
2703
2703
|
});
|
|
2704
2704
|
}); };
|
|
@@ -2708,7 +2708,7 @@ export var deserializeAws_restXmlCreateAccessPointForObjectLambdaCommand = funct
|
|
|
2708
2708
|
switch (_c.label) {
|
|
2709
2709
|
case 0:
|
|
2710
2710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2711
|
-
return [2
|
|
2711
|
+
return [2, deserializeAws_restXmlCreateAccessPointForObjectLambdaCommandError(output, context)];
|
|
2712
2712
|
}
|
|
2713
2713
|
contents = {
|
|
2714
2714
|
$metadata: deserializeMetadata(output),
|
|
@@ -2716,13 +2716,13 @@ export var deserializeAws_restXmlCreateAccessPointForObjectLambdaCommand = funct
|
|
|
2716
2716
|
};
|
|
2717
2717
|
_a = __expectNonNull;
|
|
2718
2718
|
_b = __expectObject;
|
|
2719
|
-
return [4
|
|
2719
|
+
return [4, parseBody(output.body, context)];
|
|
2720
2720
|
case 1:
|
|
2721
2721
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2722
2722
|
if (data["ObjectLambdaAccessPointArn"] !== undefined) {
|
|
2723
2723
|
contents.ObjectLambdaAccessPointArn = __expectString(data["ObjectLambdaAccessPointArn"]);
|
|
2724
2724
|
}
|
|
2725
|
-
return [2
|
|
2725
|
+
return [2, Promise.resolve(contents)];
|
|
2726
2726
|
}
|
|
2727
2727
|
});
|
|
2728
2728
|
}); };
|
|
@@ -2734,7 +2734,7 @@ var deserializeAws_restXmlCreateAccessPointForObjectLambdaCommandError = functio
|
|
|
2734
2734
|
case 0:
|
|
2735
2735
|
_a = [__assign({}, output)];
|
|
2736
2736
|
_b = {};
|
|
2737
|
-
return [4
|
|
2737
|
+
return [4, parseBody(output.body, context)];
|
|
2738
2738
|
case 1:
|
|
2739
2739
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2740
2740
|
errorCode = "UnknownError";
|
|
@@ -2748,7 +2748,7 @@ var deserializeAws_restXmlCreateAccessPointForObjectLambdaCommandError = functio
|
|
|
2748
2748
|
message = response.message || response.Message || errorCode;
|
|
2749
2749
|
response.message = message;
|
|
2750
2750
|
delete response.Message;
|
|
2751
|
-
return [2
|
|
2751
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2752
2752
|
}
|
|
2753
2753
|
});
|
|
2754
2754
|
}); };
|
|
@@ -2758,7 +2758,7 @@ export var deserializeAws_restXmlCreateBucketCommand = function (output, context
|
|
|
2758
2758
|
switch (_c.label) {
|
|
2759
2759
|
case 0:
|
|
2760
2760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2761
|
-
return [2
|
|
2761
|
+
return [2, deserializeAws_restXmlCreateBucketCommandError(output, context)];
|
|
2762
2762
|
}
|
|
2763
2763
|
contents = {
|
|
2764
2764
|
$metadata: deserializeMetadata(output),
|
|
@@ -2770,13 +2770,13 @@ export var deserializeAws_restXmlCreateBucketCommand = function (output, context
|
|
|
2770
2770
|
}
|
|
2771
2771
|
_a = __expectNonNull;
|
|
2772
2772
|
_b = __expectObject;
|
|
2773
|
-
return [4
|
|
2773
|
+
return [4, parseBody(output.body, context)];
|
|
2774
2774
|
case 1:
|
|
2775
2775
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2776
2776
|
if (data["BucketArn"] !== undefined) {
|
|
2777
2777
|
contents.BucketArn = __expectString(data["BucketArn"]);
|
|
2778
2778
|
}
|
|
2779
|
-
return [2
|
|
2779
|
+
return [2, Promise.resolve(contents)];
|
|
2780
2780
|
}
|
|
2781
2781
|
});
|
|
2782
2782
|
}); };
|
|
@@ -2788,31 +2788,31 @@ var deserializeAws_restXmlCreateBucketCommandError = function (output, context)
|
|
|
2788
2788
|
case 0:
|
|
2789
2789
|
_a = [__assign({}, output)];
|
|
2790
2790
|
_e = {};
|
|
2791
|
-
return [4
|
|
2791
|
+
return [4, parseBody(output.body, context)];
|
|
2792
2792
|
case 1:
|
|
2793
2793
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2794
2794
|
errorCode = "UnknownError";
|
|
2795
2795
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2796
2796
|
_b = errorCode;
|
|
2797
2797
|
switch (_b) {
|
|
2798
|
-
case "BucketAlreadyExists": return [3
|
|
2799
|
-
case "com.amazonaws.s3control#BucketAlreadyExists": return [3
|
|
2800
|
-
case "BucketAlreadyOwnedByYou": return [3
|
|
2801
|
-
case "com.amazonaws.s3control#BucketAlreadyOwnedByYou": return [3
|
|
2798
|
+
case "BucketAlreadyExists": return [3, 2];
|
|
2799
|
+
case "com.amazonaws.s3control#BucketAlreadyExists": return [3, 2];
|
|
2800
|
+
case "BucketAlreadyOwnedByYou": return [3, 4];
|
|
2801
|
+
case "com.amazonaws.s3control#BucketAlreadyOwnedByYou": return [3, 4];
|
|
2802
2802
|
}
|
|
2803
|
-
return [3
|
|
2803
|
+
return [3, 6];
|
|
2804
2804
|
case 2:
|
|
2805
2805
|
_c = [{}];
|
|
2806
|
-
return [4
|
|
2806
|
+
return [4, deserializeAws_restXmlBucketAlreadyExistsResponse(parsedOutput, context)];
|
|
2807
2807
|
case 3:
|
|
2808
2808
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2809
|
-
return [3
|
|
2809
|
+
return [3, 7];
|
|
2810
2810
|
case 4:
|
|
2811
2811
|
_d = [{}];
|
|
2812
|
-
return [4
|
|
2812
|
+
return [4, deserializeAws_restXmlBucketAlreadyOwnedByYouResponse(parsedOutput, context)];
|
|
2813
2813
|
case 5:
|
|
2814
2814
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2815
|
-
return [3
|
|
2815
|
+
return [3, 7];
|
|
2816
2816
|
case 6:
|
|
2817
2817
|
parsedBody = parsedOutput.body;
|
|
2818
2818
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -2822,7 +2822,7 @@ var deserializeAws_restXmlCreateBucketCommandError = function (output, context)
|
|
|
2822
2822
|
message = response.message || response.Message || errorCode;
|
|
2823
2823
|
response.message = message;
|
|
2824
2824
|
delete response.Message;
|
|
2825
|
-
return [2
|
|
2825
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2826
2826
|
}
|
|
2827
2827
|
});
|
|
2828
2828
|
}); };
|
|
@@ -2832,7 +2832,7 @@ export var deserializeAws_restXmlCreateJobCommand = function (output, context) {
|
|
|
2832
2832
|
switch (_c.label) {
|
|
2833
2833
|
case 0:
|
|
2834
2834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2835
|
-
return [2
|
|
2835
|
+
return [2, deserializeAws_restXmlCreateJobCommandError(output, context)];
|
|
2836
2836
|
}
|
|
2837
2837
|
contents = {
|
|
2838
2838
|
$metadata: deserializeMetadata(output),
|
|
@@ -2840,13 +2840,13 @@ export var deserializeAws_restXmlCreateJobCommand = function (output, context) {
|
|
|
2840
2840
|
};
|
|
2841
2841
|
_a = __expectNonNull;
|
|
2842
2842
|
_b = __expectObject;
|
|
2843
|
-
return [4
|
|
2843
|
+
return [4, parseBody(output.body, context)];
|
|
2844
2844
|
case 1:
|
|
2845
2845
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2846
2846
|
if (data["JobId"] !== undefined) {
|
|
2847
2847
|
contents.JobId = __expectString(data["JobId"]);
|
|
2848
2848
|
}
|
|
2849
|
-
return [2
|
|
2849
|
+
return [2, Promise.resolve(contents)];
|
|
2850
2850
|
}
|
|
2851
2851
|
});
|
|
2852
2852
|
}); };
|
|
@@ -2858,47 +2858,47 @@ var deserializeAws_restXmlCreateJobCommandError = function (output, context) { r
|
|
|
2858
2858
|
case 0:
|
|
2859
2859
|
_a = [__assign({}, output)];
|
|
2860
2860
|
_g = {};
|
|
2861
|
-
return [4
|
|
2861
|
+
return [4, parseBody(output.body, context)];
|
|
2862
2862
|
case 1:
|
|
2863
2863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2864
2864
|
errorCode = "UnknownError";
|
|
2865
2865
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2866
2866
|
_b = errorCode;
|
|
2867
2867
|
switch (_b) {
|
|
2868
|
-
case "BadRequestException": return [3
|
|
2869
|
-
case "com.amazonaws.s3control#BadRequestException": return [3
|
|
2870
|
-
case "IdempotencyException": return [3
|
|
2871
|
-
case "com.amazonaws.s3control#IdempotencyException": return [3
|
|
2872
|
-
case "InternalServiceException": return [3
|
|
2873
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
2874
|
-
case "TooManyRequestsException": return [3
|
|
2875
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
2876
|
-
}
|
|
2877
|
-
return [3
|
|
2868
|
+
case "BadRequestException": return [3, 2];
|
|
2869
|
+
case "com.amazonaws.s3control#BadRequestException": return [3, 2];
|
|
2870
|
+
case "IdempotencyException": return [3, 4];
|
|
2871
|
+
case "com.amazonaws.s3control#IdempotencyException": return [3, 4];
|
|
2872
|
+
case "InternalServiceException": return [3, 6];
|
|
2873
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 6];
|
|
2874
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2875
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 8];
|
|
2876
|
+
}
|
|
2877
|
+
return [3, 10];
|
|
2878
2878
|
case 2:
|
|
2879
2879
|
_c = [{}];
|
|
2880
|
-
return [4
|
|
2880
|
+
return [4, deserializeAws_restXmlBadRequestExceptionResponse(parsedOutput, context)];
|
|
2881
2881
|
case 3:
|
|
2882
2882
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2883
|
-
return [3
|
|
2883
|
+
return [3, 11];
|
|
2884
2884
|
case 4:
|
|
2885
2885
|
_d = [{}];
|
|
2886
|
-
return [4
|
|
2886
|
+
return [4, deserializeAws_restXmlIdempotencyExceptionResponse(parsedOutput, context)];
|
|
2887
2887
|
case 5:
|
|
2888
2888
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2889
|
-
return [3
|
|
2889
|
+
return [3, 11];
|
|
2890
2890
|
case 6:
|
|
2891
2891
|
_e = [{}];
|
|
2892
|
-
return [4
|
|
2892
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
2893
2893
|
case 7:
|
|
2894
2894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2895
|
-
return [3
|
|
2895
|
+
return [3, 11];
|
|
2896
2896
|
case 8:
|
|
2897
2897
|
_f = [{}];
|
|
2898
|
-
return [4
|
|
2898
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2899
2899
|
case 9:
|
|
2900
2900
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2901
|
-
return [3
|
|
2901
|
+
return [3, 11];
|
|
2902
2902
|
case 10:
|
|
2903
2903
|
parsedBody = parsedOutput.body;
|
|
2904
2904
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -2908,7 +2908,7 @@ var deserializeAws_restXmlCreateJobCommandError = function (output, context) { r
|
|
|
2908
2908
|
message = response.message || response.Message || errorCode;
|
|
2909
2909
|
response.message = message;
|
|
2910
2910
|
delete response.Message;
|
|
2911
|
-
return [2
|
|
2911
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2912
2912
|
}
|
|
2913
2913
|
});
|
|
2914
2914
|
}); };
|
|
@@ -2918,7 +2918,7 @@ export var deserializeAws_restXmlCreateMultiRegionAccessPointCommand = function
|
|
|
2918
2918
|
switch (_c.label) {
|
|
2919
2919
|
case 0:
|
|
2920
2920
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2921
|
-
return [2
|
|
2921
|
+
return [2, deserializeAws_restXmlCreateMultiRegionAccessPointCommandError(output, context)];
|
|
2922
2922
|
}
|
|
2923
2923
|
contents = {
|
|
2924
2924
|
$metadata: deserializeMetadata(output),
|
|
@@ -2926,13 +2926,13 @@ export var deserializeAws_restXmlCreateMultiRegionAccessPointCommand = function
|
|
|
2926
2926
|
};
|
|
2927
2927
|
_a = __expectNonNull;
|
|
2928
2928
|
_b = __expectObject;
|
|
2929
|
-
return [4
|
|
2929
|
+
return [4, parseBody(output.body, context)];
|
|
2930
2930
|
case 1:
|
|
2931
2931
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2932
2932
|
if (data["RequestTokenARN"] !== undefined) {
|
|
2933
2933
|
contents.RequestTokenARN = __expectString(data["RequestTokenARN"]);
|
|
2934
2934
|
}
|
|
2935
|
-
return [2
|
|
2935
|
+
return [2, Promise.resolve(contents)];
|
|
2936
2936
|
}
|
|
2937
2937
|
});
|
|
2938
2938
|
}); };
|
|
@@ -2944,7 +2944,7 @@ var deserializeAws_restXmlCreateMultiRegionAccessPointCommandError = function (o
|
|
|
2944
2944
|
case 0:
|
|
2945
2945
|
_a = [__assign({}, output)];
|
|
2946
2946
|
_b = {};
|
|
2947
|
-
return [4
|
|
2947
|
+
return [4, parseBody(output.body, context)];
|
|
2948
2948
|
case 1:
|
|
2949
2949
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2950
2950
|
errorCode = "UnknownError";
|
|
@@ -2958,7 +2958,7 @@ var deserializeAws_restXmlCreateMultiRegionAccessPointCommandError = function (o
|
|
|
2958
2958
|
message = response.message || response.Message || errorCode;
|
|
2959
2959
|
response.message = message;
|
|
2960
2960
|
delete response.Message;
|
|
2961
|
-
return [2
|
|
2961
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2962
2962
|
}
|
|
2963
2963
|
});
|
|
2964
2964
|
}); };
|
|
@@ -2968,15 +2968,15 @@ export var deserializeAws_restXmlDeleteAccessPointCommand = function (output, co
|
|
|
2968
2968
|
switch (_a.label) {
|
|
2969
2969
|
case 0:
|
|
2970
2970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2971
|
-
return [2
|
|
2971
|
+
return [2, deserializeAws_restXmlDeleteAccessPointCommandError(output, context)];
|
|
2972
2972
|
}
|
|
2973
2973
|
contents = {
|
|
2974
2974
|
$metadata: deserializeMetadata(output),
|
|
2975
2975
|
};
|
|
2976
|
-
return [4
|
|
2976
|
+
return [4, collectBody(output.body, context)];
|
|
2977
2977
|
case 1:
|
|
2978
2978
|
_a.sent();
|
|
2979
|
-
return [2
|
|
2979
|
+
return [2, Promise.resolve(contents)];
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
2982
2982
|
}); };
|
|
@@ -2988,7 +2988,7 @@ var deserializeAws_restXmlDeleteAccessPointCommandError = function (output, cont
|
|
|
2988
2988
|
case 0:
|
|
2989
2989
|
_a = [__assign({}, output)];
|
|
2990
2990
|
_b = {};
|
|
2991
|
-
return [4
|
|
2991
|
+
return [4, parseBody(output.body, context)];
|
|
2992
2992
|
case 1:
|
|
2993
2993
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2994
2994
|
errorCode = "UnknownError";
|
|
@@ -3002,7 +3002,7 @@ var deserializeAws_restXmlDeleteAccessPointCommandError = function (output, cont
|
|
|
3002
3002
|
message = response.message || response.Message || errorCode;
|
|
3003
3003
|
response.message = message;
|
|
3004
3004
|
delete response.Message;
|
|
3005
|
-
return [2
|
|
3005
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3006
3006
|
}
|
|
3007
3007
|
});
|
|
3008
3008
|
}); };
|
|
@@ -3012,15 +3012,15 @@ export var deserializeAws_restXmlDeleteAccessPointForObjectLambdaCommand = funct
|
|
|
3012
3012
|
switch (_a.label) {
|
|
3013
3013
|
case 0:
|
|
3014
3014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3015
|
-
return [2
|
|
3015
|
+
return [2, deserializeAws_restXmlDeleteAccessPointForObjectLambdaCommandError(output, context)];
|
|
3016
3016
|
}
|
|
3017
3017
|
contents = {
|
|
3018
3018
|
$metadata: deserializeMetadata(output),
|
|
3019
3019
|
};
|
|
3020
|
-
return [4
|
|
3020
|
+
return [4, collectBody(output.body, context)];
|
|
3021
3021
|
case 1:
|
|
3022
3022
|
_a.sent();
|
|
3023
|
-
return [2
|
|
3023
|
+
return [2, Promise.resolve(contents)];
|
|
3024
3024
|
}
|
|
3025
3025
|
});
|
|
3026
3026
|
}); };
|
|
@@ -3032,7 +3032,7 @@ var deserializeAws_restXmlDeleteAccessPointForObjectLambdaCommandError = functio
|
|
|
3032
3032
|
case 0:
|
|
3033
3033
|
_a = [__assign({}, output)];
|
|
3034
3034
|
_b = {};
|
|
3035
|
-
return [4
|
|
3035
|
+
return [4, parseBody(output.body, context)];
|
|
3036
3036
|
case 1:
|
|
3037
3037
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3038
3038
|
errorCode = "UnknownError";
|
|
@@ -3046,7 +3046,7 @@ var deserializeAws_restXmlDeleteAccessPointForObjectLambdaCommandError = functio
|
|
|
3046
3046
|
message = response.message || response.Message || errorCode;
|
|
3047
3047
|
response.message = message;
|
|
3048
3048
|
delete response.Message;
|
|
3049
|
-
return [2
|
|
3049
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3050
3050
|
}
|
|
3051
3051
|
});
|
|
3052
3052
|
}); };
|
|
@@ -3056,15 +3056,15 @@ export var deserializeAws_restXmlDeleteAccessPointPolicyCommand = function (outp
|
|
|
3056
3056
|
switch (_a.label) {
|
|
3057
3057
|
case 0:
|
|
3058
3058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3059
|
-
return [2
|
|
3059
|
+
return [2, deserializeAws_restXmlDeleteAccessPointPolicyCommandError(output, context)];
|
|
3060
3060
|
}
|
|
3061
3061
|
contents = {
|
|
3062
3062
|
$metadata: deserializeMetadata(output),
|
|
3063
3063
|
};
|
|
3064
|
-
return [4
|
|
3064
|
+
return [4, collectBody(output.body, context)];
|
|
3065
3065
|
case 1:
|
|
3066
3066
|
_a.sent();
|
|
3067
|
-
return [2
|
|
3067
|
+
return [2, Promise.resolve(contents)];
|
|
3068
3068
|
}
|
|
3069
3069
|
});
|
|
3070
3070
|
}); };
|
|
@@ -3076,7 +3076,7 @@ var deserializeAws_restXmlDeleteAccessPointPolicyCommandError = function (output
|
|
|
3076
3076
|
case 0:
|
|
3077
3077
|
_a = [__assign({}, output)];
|
|
3078
3078
|
_b = {};
|
|
3079
|
-
return [4
|
|
3079
|
+
return [4, parseBody(output.body, context)];
|
|
3080
3080
|
case 1:
|
|
3081
3081
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3082
3082
|
errorCode = "UnknownError";
|
|
@@ -3090,7 +3090,7 @@ var deserializeAws_restXmlDeleteAccessPointPolicyCommandError = function (output
|
|
|
3090
3090
|
message = response.message || response.Message || errorCode;
|
|
3091
3091
|
response.message = message;
|
|
3092
3092
|
delete response.Message;
|
|
3093
|
-
return [2
|
|
3093
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3094
3094
|
}
|
|
3095
3095
|
});
|
|
3096
3096
|
}); };
|
|
@@ -3100,15 +3100,15 @@ export var deserializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommand =
|
|
|
3100
3100
|
switch (_a.label) {
|
|
3101
3101
|
case 0:
|
|
3102
3102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3103
|
-
return [2
|
|
3103
|
+
return [2, deserializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommandError(output, context)];
|
|
3104
3104
|
}
|
|
3105
3105
|
contents = {
|
|
3106
3106
|
$metadata: deserializeMetadata(output),
|
|
3107
3107
|
};
|
|
3108
|
-
return [4
|
|
3108
|
+
return [4, collectBody(output.body, context)];
|
|
3109
3109
|
case 1:
|
|
3110
3110
|
_a.sent();
|
|
3111
|
-
return [2
|
|
3111
|
+
return [2, Promise.resolve(contents)];
|
|
3112
3112
|
}
|
|
3113
3113
|
});
|
|
3114
3114
|
}); };
|
|
@@ -3120,7 +3120,7 @@ var deserializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommandError = f
|
|
|
3120
3120
|
case 0:
|
|
3121
3121
|
_a = [__assign({}, output)];
|
|
3122
3122
|
_b = {};
|
|
3123
|
-
return [4
|
|
3123
|
+
return [4, parseBody(output.body, context)];
|
|
3124
3124
|
case 1:
|
|
3125
3125
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3126
3126
|
errorCode = "UnknownError";
|
|
@@ -3134,7 +3134,7 @@ var deserializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommandError = f
|
|
|
3134
3134
|
message = response.message || response.Message || errorCode;
|
|
3135
3135
|
response.message = message;
|
|
3136
3136
|
delete response.Message;
|
|
3137
|
-
return [2
|
|
3137
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3138
3138
|
}
|
|
3139
3139
|
});
|
|
3140
3140
|
}); };
|
|
@@ -3144,15 +3144,15 @@ export var deserializeAws_restXmlDeleteBucketCommand = function (output, context
|
|
|
3144
3144
|
switch (_a.label) {
|
|
3145
3145
|
case 0:
|
|
3146
3146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3147
|
-
return [2
|
|
3147
|
+
return [2, deserializeAws_restXmlDeleteBucketCommandError(output, context)];
|
|
3148
3148
|
}
|
|
3149
3149
|
contents = {
|
|
3150
3150
|
$metadata: deserializeMetadata(output),
|
|
3151
3151
|
};
|
|
3152
|
-
return [4
|
|
3152
|
+
return [4, collectBody(output.body, context)];
|
|
3153
3153
|
case 1:
|
|
3154
3154
|
_a.sent();
|
|
3155
|
-
return [2
|
|
3155
|
+
return [2, Promise.resolve(contents)];
|
|
3156
3156
|
}
|
|
3157
3157
|
});
|
|
3158
3158
|
}); };
|
|
@@ -3164,7 +3164,7 @@ var deserializeAws_restXmlDeleteBucketCommandError = function (output, context)
|
|
|
3164
3164
|
case 0:
|
|
3165
3165
|
_a = [__assign({}, output)];
|
|
3166
3166
|
_b = {};
|
|
3167
|
-
return [4
|
|
3167
|
+
return [4, parseBody(output.body, context)];
|
|
3168
3168
|
case 1:
|
|
3169
3169
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3170
3170
|
errorCode = "UnknownError";
|
|
@@ -3178,7 +3178,7 @@ var deserializeAws_restXmlDeleteBucketCommandError = function (output, context)
|
|
|
3178
3178
|
message = response.message || response.Message || errorCode;
|
|
3179
3179
|
response.message = message;
|
|
3180
3180
|
delete response.Message;
|
|
3181
|
-
return [2
|
|
3181
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
}); };
|
|
@@ -3188,15 +3188,15 @@ export var deserializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = fun
|
|
|
3188
3188
|
switch (_a.label) {
|
|
3189
3189
|
case 0:
|
|
3190
3190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3191
|
-
return [2
|
|
3191
|
+
return [2, deserializeAws_restXmlDeleteBucketLifecycleConfigurationCommandError(output, context)];
|
|
3192
3192
|
}
|
|
3193
3193
|
contents = {
|
|
3194
3194
|
$metadata: deserializeMetadata(output),
|
|
3195
3195
|
};
|
|
3196
|
-
return [4
|
|
3196
|
+
return [4, collectBody(output.body, context)];
|
|
3197
3197
|
case 1:
|
|
3198
3198
|
_a.sent();
|
|
3199
|
-
return [2
|
|
3199
|
+
return [2, Promise.resolve(contents)];
|
|
3200
3200
|
}
|
|
3201
3201
|
});
|
|
3202
3202
|
}); };
|
|
@@ -3208,7 +3208,7 @@ var deserializeAws_restXmlDeleteBucketLifecycleConfigurationCommandError = funct
|
|
|
3208
3208
|
case 0:
|
|
3209
3209
|
_a = [__assign({}, output)];
|
|
3210
3210
|
_b = {};
|
|
3211
|
-
return [4
|
|
3211
|
+
return [4, parseBody(output.body, context)];
|
|
3212
3212
|
case 1:
|
|
3213
3213
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3214
3214
|
errorCode = "UnknownError";
|
|
@@ -3222,7 +3222,7 @@ var deserializeAws_restXmlDeleteBucketLifecycleConfigurationCommandError = funct
|
|
|
3222
3222
|
message = response.message || response.Message || errorCode;
|
|
3223
3223
|
response.message = message;
|
|
3224
3224
|
delete response.Message;
|
|
3225
|
-
return [2
|
|
3225
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3226
3226
|
}
|
|
3227
3227
|
});
|
|
3228
3228
|
}); };
|
|
@@ -3232,15 +3232,15 @@ export var deserializeAws_restXmlDeleteBucketPolicyCommand = function (output, c
|
|
|
3232
3232
|
switch (_a.label) {
|
|
3233
3233
|
case 0:
|
|
3234
3234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3235
|
-
return [2
|
|
3235
|
+
return [2, deserializeAws_restXmlDeleteBucketPolicyCommandError(output, context)];
|
|
3236
3236
|
}
|
|
3237
3237
|
contents = {
|
|
3238
3238
|
$metadata: deserializeMetadata(output),
|
|
3239
3239
|
};
|
|
3240
|
-
return [4
|
|
3240
|
+
return [4, collectBody(output.body, context)];
|
|
3241
3241
|
case 1:
|
|
3242
3242
|
_a.sent();
|
|
3243
|
-
return [2
|
|
3243
|
+
return [2, Promise.resolve(contents)];
|
|
3244
3244
|
}
|
|
3245
3245
|
});
|
|
3246
3246
|
}); };
|
|
@@ -3252,7 +3252,7 @@ var deserializeAws_restXmlDeleteBucketPolicyCommandError = function (output, con
|
|
|
3252
3252
|
case 0:
|
|
3253
3253
|
_a = [__assign({}, output)];
|
|
3254
3254
|
_b = {};
|
|
3255
|
-
return [4
|
|
3255
|
+
return [4, parseBody(output.body, context)];
|
|
3256
3256
|
case 1:
|
|
3257
3257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3258
3258
|
errorCode = "UnknownError";
|
|
@@ -3266,7 +3266,7 @@ var deserializeAws_restXmlDeleteBucketPolicyCommandError = function (output, con
|
|
|
3266
3266
|
message = response.message || response.Message || errorCode;
|
|
3267
3267
|
response.message = message;
|
|
3268
3268
|
delete response.Message;
|
|
3269
|
-
return [2
|
|
3269
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3270
3270
|
}
|
|
3271
3271
|
});
|
|
3272
3272
|
}); };
|
|
@@ -3276,15 +3276,15 @@ export var deserializeAws_restXmlDeleteBucketTaggingCommand = function (output,
|
|
|
3276
3276
|
switch (_a.label) {
|
|
3277
3277
|
case 0:
|
|
3278
3278
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3279
|
-
return [2
|
|
3279
|
+
return [2, deserializeAws_restXmlDeleteBucketTaggingCommandError(output, context)];
|
|
3280
3280
|
}
|
|
3281
3281
|
contents = {
|
|
3282
3282
|
$metadata: deserializeMetadata(output),
|
|
3283
3283
|
};
|
|
3284
|
-
return [4
|
|
3284
|
+
return [4, collectBody(output.body, context)];
|
|
3285
3285
|
case 1:
|
|
3286
3286
|
_a.sent();
|
|
3287
|
-
return [2
|
|
3287
|
+
return [2, Promise.resolve(contents)];
|
|
3288
3288
|
}
|
|
3289
3289
|
});
|
|
3290
3290
|
}); };
|
|
@@ -3296,7 +3296,7 @@ var deserializeAws_restXmlDeleteBucketTaggingCommandError = function (output, co
|
|
|
3296
3296
|
case 0:
|
|
3297
3297
|
_a = [__assign({}, output)];
|
|
3298
3298
|
_b = {};
|
|
3299
|
-
return [4
|
|
3299
|
+
return [4, parseBody(output.body, context)];
|
|
3300
3300
|
case 1:
|
|
3301
3301
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3302
3302
|
errorCode = "UnknownError";
|
|
@@ -3310,7 +3310,7 @@ var deserializeAws_restXmlDeleteBucketTaggingCommandError = function (output, co
|
|
|
3310
3310
|
message = response.message || response.Message || errorCode;
|
|
3311
3311
|
response.message = message;
|
|
3312
3312
|
delete response.Message;
|
|
3313
|
-
return [2
|
|
3313
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3314
3314
|
}
|
|
3315
3315
|
});
|
|
3316
3316
|
}); };
|
|
@@ -3320,15 +3320,15 @@ export var deserializeAws_restXmlDeleteJobTaggingCommand = function (output, con
|
|
|
3320
3320
|
switch (_a.label) {
|
|
3321
3321
|
case 0:
|
|
3322
3322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3323
|
-
return [2
|
|
3323
|
+
return [2, deserializeAws_restXmlDeleteJobTaggingCommandError(output, context)];
|
|
3324
3324
|
}
|
|
3325
3325
|
contents = {
|
|
3326
3326
|
$metadata: deserializeMetadata(output),
|
|
3327
3327
|
};
|
|
3328
|
-
return [4
|
|
3328
|
+
return [4, collectBody(output.body, context)];
|
|
3329
3329
|
case 1:
|
|
3330
3330
|
_a.sent();
|
|
3331
|
-
return [2
|
|
3331
|
+
return [2, Promise.resolve(contents)];
|
|
3332
3332
|
}
|
|
3333
3333
|
});
|
|
3334
3334
|
}); };
|
|
@@ -3340,39 +3340,39 @@ var deserializeAws_restXmlDeleteJobTaggingCommandError = function (output, conte
|
|
|
3340
3340
|
case 0:
|
|
3341
3341
|
_a = [__assign({}, output)];
|
|
3342
3342
|
_f = {};
|
|
3343
|
-
return [4
|
|
3343
|
+
return [4, parseBody(output.body, context)];
|
|
3344
3344
|
case 1:
|
|
3345
3345
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3346
3346
|
errorCode = "UnknownError";
|
|
3347
3347
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3348
3348
|
_b = errorCode;
|
|
3349
3349
|
switch (_b) {
|
|
3350
|
-
case "InternalServiceException": return [3
|
|
3351
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
3352
|
-
case "NotFoundException": return [3
|
|
3353
|
-
case "com.amazonaws.s3control#NotFoundException": return [3
|
|
3354
|
-
case "TooManyRequestsException": return [3
|
|
3355
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
3356
|
-
}
|
|
3357
|
-
return [3
|
|
3350
|
+
case "InternalServiceException": return [3, 2];
|
|
3351
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 2];
|
|
3352
|
+
case "NotFoundException": return [3, 4];
|
|
3353
|
+
case "com.amazonaws.s3control#NotFoundException": return [3, 4];
|
|
3354
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3355
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 6];
|
|
3356
|
+
}
|
|
3357
|
+
return [3, 8];
|
|
3358
3358
|
case 2:
|
|
3359
3359
|
_c = [{}];
|
|
3360
|
-
return [4
|
|
3360
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
3361
3361
|
case 3:
|
|
3362
3362
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3363
|
-
return [3
|
|
3363
|
+
return [3, 9];
|
|
3364
3364
|
case 4:
|
|
3365
3365
|
_d = [{}];
|
|
3366
|
-
return [4
|
|
3366
|
+
return [4, deserializeAws_restXmlNotFoundExceptionResponse(parsedOutput, context)];
|
|
3367
3367
|
case 5:
|
|
3368
3368
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3369
|
-
return [3
|
|
3369
|
+
return [3, 9];
|
|
3370
3370
|
case 6:
|
|
3371
3371
|
_e = [{}];
|
|
3372
|
-
return [4
|
|
3372
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3373
3373
|
case 7:
|
|
3374
3374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3375
|
-
return [3
|
|
3375
|
+
return [3, 9];
|
|
3376
3376
|
case 8:
|
|
3377
3377
|
parsedBody = parsedOutput.body;
|
|
3378
3378
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -3382,7 +3382,7 @@ var deserializeAws_restXmlDeleteJobTaggingCommandError = function (output, conte
|
|
|
3382
3382
|
message = response.message || response.Message || errorCode;
|
|
3383
3383
|
response.message = message;
|
|
3384
3384
|
delete response.Message;
|
|
3385
|
-
return [2
|
|
3385
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3386
3386
|
}
|
|
3387
3387
|
});
|
|
3388
3388
|
}); };
|
|
@@ -3392,7 +3392,7 @@ export var deserializeAws_restXmlDeleteMultiRegionAccessPointCommand = function
|
|
|
3392
3392
|
switch (_c.label) {
|
|
3393
3393
|
case 0:
|
|
3394
3394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3395
|
-
return [2
|
|
3395
|
+
return [2, deserializeAws_restXmlDeleteMultiRegionAccessPointCommandError(output, context)];
|
|
3396
3396
|
}
|
|
3397
3397
|
contents = {
|
|
3398
3398
|
$metadata: deserializeMetadata(output),
|
|
@@ -3400,13 +3400,13 @@ export var deserializeAws_restXmlDeleteMultiRegionAccessPointCommand = function
|
|
|
3400
3400
|
};
|
|
3401
3401
|
_a = __expectNonNull;
|
|
3402
3402
|
_b = __expectObject;
|
|
3403
|
-
return [4
|
|
3403
|
+
return [4, parseBody(output.body, context)];
|
|
3404
3404
|
case 1:
|
|
3405
3405
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3406
3406
|
if (data["RequestTokenARN"] !== undefined) {
|
|
3407
3407
|
contents.RequestTokenARN = __expectString(data["RequestTokenARN"]);
|
|
3408
3408
|
}
|
|
3409
|
-
return [2
|
|
3409
|
+
return [2, Promise.resolve(contents)];
|
|
3410
3410
|
}
|
|
3411
3411
|
});
|
|
3412
3412
|
}); };
|
|
@@ -3418,7 +3418,7 @@ var deserializeAws_restXmlDeleteMultiRegionAccessPointCommandError = function (o
|
|
|
3418
3418
|
case 0:
|
|
3419
3419
|
_a = [__assign({}, output)];
|
|
3420
3420
|
_b = {};
|
|
3421
|
-
return [4
|
|
3421
|
+
return [4, parseBody(output.body, context)];
|
|
3422
3422
|
case 1:
|
|
3423
3423
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3424
3424
|
errorCode = "UnknownError";
|
|
@@ -3432,7 +3432,7 @@ var deserializeAws_restXmlDeleteMultiRegionAccessPointCommandError = function (o
|
|
|
3432
3432
|
message = response.message || response.Message || errorCode;
|
|
3433
3433
|
response.message = message;
|
|
3434
3434
|
delete response.Message;
|
|
3435
|
-
return [2
|
|
3435
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3436
3436
|
}
|
|
3437
3437
|
});
|
|
3438
3438
|
}); };
|
|
@@ -3442,15 +3442,15 @@ export var deserializeAws_restXmlDeletePublicAccessBlockCommand = function (outp
|
|
|
3442
3442
|
switch (_a.label) {
|
|
3443
3443
|
case 0:
|
|
3444
3444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3445
|
-
return [2
|
|
3445
|
+
return [2, deserializeAws_restXmlDeletePublicAccessBlockCommandError(output, context)];
|
|
3446
3446
|
}
|
|
3447
3447
|
contents = {
|
|
3448
3448
|
$metadata: deserializeMetadata(output),
|
|
3449
3449
|
};
|
|
3450
|
-
return [4
|
|
3450
|
+
return [4, collectBody(output.body, context)];
|
|
3451
3451
|
case 1:
|
|
3452
3452
|
_a.sent();
|
|
3453
|
-
return [2
|
|
3453
|
+
return [2, Promise.resolve(contents)];
|
|
3454
3454
|
}
|
|
3455
3455
|
});
|
|
3456
3456
|
}); };
|
|
@@ -3462,7 +3462,7 @@ var deserializeAws_restXmlDeletePublicAccessBlockCommandError = function (output
|
|
|
3462
3462
|
case 0:
|
|
3463
3463
|
_a = [__assign({}, output)];
|
|
3464
3464
|
_b = {};
|
|
3465
|
-
return [4
|
|
3465
|
+
return [4, parseBody(output.body, context)];
|
|
3466
3466
|
case 1:
|
|
3467
3467
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3468
3468
|
errorCode = "UnknownError";
|
|
@@ -3476,7 +3476,7 @@ var deserializeAws_restXmlDeletePublicAccessBlockCommandError = function (output
|
|
|
3476
3476
|
message = response.message || response.Message || errorCode;
|
|
3477
3477
|
response.message = message;
|
|
3478
3478
|
delete response.Message;
|
|
3479
|
-
return [2
|
|
3479
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3480
3480
|
}
|
|
3481
3481
|
});
|
|
3482
3482
|
}); };
|
|
@@ -3486,15 +3486,15 @@ export var deserializeAws_restXmlDeleteStorageLensConfigurationCommand = functio
|
|
|
3486
3486
|
switch (_a.label) {
|
|
3487
3487
|
case 0:
|
|
3488
3488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3489
|
-
return [2
|
|
3489
|
+
return [2, deserializeAws_restXmlDeleteStorageLensConfigurationCommandError(output, context)];
|
|
3490
3490
|
}
|
|
3491
3491
|
contents = {
|
|
3492
3492
|
$metadata: deserializeMetadata(output),
|
|
3493
3493
|
};
|
|
3494
|
-
return [4
|
|
3494
|
+
return [4, collectBody(output.body, context)];
|
|
3495
3495
|
case 1:
|
|
3496
3496
|
_a.sent();
|
|
3497
|
-
return [2
|
|
3497
|
+
return [2, Promise.resolve(contents)];
|
|
3498
3498
|
}
|
|
3499
3499
|
});
|
|
3500
3500
|
}); };
|
|
@@ -3506,7 +3506,7 @@ var deserializeAws_restXmlDeleteStorageLensConfigurationCommandError = function
|
|
|
3506
3506
|
case 0:
|
|
3507
3507
|
_a = [__assign({}, output)];
|
|
3508
3508
|
_b = {};
|
|
3509
|
-
return [4
|
|
3509
|
+
return [4, parseBody(output.body, context)];
|
|
3510
3510
|
case 1:
|
|
3511
3511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3512
3512
|
errorCode = "UnknownError";
|
|
@@ -3520,7 +3520,7 @@ var deserializeAws_restXmlDeleteStorageLensConfigurationCommandError = function
|
|
|
3520
3520
|
message = response.message || response.Message || errorCode;
|
|
3521
3521
|
response.message = message;
|
|
3522
3522
|
delete response.Message;
|
|
3523
|
-
return [2
|
|
3523
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3524
3524
|
}
|
|
3525
3525
|
});
|
|
3526
3526
|
}); };
|
|
@@ -3530,15 +3530,15 @@ export var deserializeAws_restXmlDeleteStorageLensConfigurationTaggingCommand =
|
|
|
3530
3530
|
switch (_a.label) {
|
|
3531
3531
|
case 0:
|
|
3532
3532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3533
|
-
return [2
|
|
3533
|
+
return [2, deserializeAws_restXmlDeleteStorageLensConfigurationTaggingCommandError(output, context)];
|
|
3534
3534
|
}
|
|
3535
3535
|
contents = {
|
|
3536
3536
|
$metadata: deserializeMetadata(output),
|
|
3537
3537
|
};
|
|
3538
|
-
return [4
|
|
3538
|
+
return [4, collectBody(output.body, context)];
|
|
3539
3539
|
case 1:
|
|
3540
3540
|
_a.sent();
|
|
3541
|
-
return [2
|
|
3541
|
+
return [2, Promise.resolve(contents)];
|
|
3542
3542
|
}
|
|
3543
3543
|
});
|
|
3544
3544
|
}); };
|
|
@@ -3550,7 +3550,7 @@ var deserializeAws_restXmlDeleteStorageLensConfigurationTaggingCommandError = fu
|
|
|
3550
3550
|
case 0:
|
|
3551
3551
|
_a = [__assign({}, output)];
|
|
3552
3552
|
_b = {};
|
|
3553
|
-
return [4
|
|
3553
|
+
return [4, parseBody(output.body, context)];
|
|
3554
3554
|
case 1:
|
|
3555
3555
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3556
3556
|
errorCode = "UnknownError";
|
|
@@ -3564,7 +3564,7 @@ var deserializeAws_restXmlDeleteStorageLensConfigurationTaggingCommandError = fu
|
|
|
3564
3564
|
message = response.message || response.Message || errorCode;
|
|
3565
3565
|
response.message = message;
|
|
3566
3566
|
delete response.Message;
|
|
3567
|
-
return [2
|
|
3567
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3568
3568
|
}
|
|
3569
3569
|
});
|
|
3570
3570
|
}); };
|
|
@@ -3574,7 +3574,7 @@ export var deserializeAws_restXmlDescribeJobCommand = function (output, context)
|
|
|
3574
3574
|
switch (_c.label) {
|
|
3575
3575
|
case 0:
|
|
3576
3576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3577
|
-
return [2
|
|
3577
|
+
return [2, deserializeAws_restXmlDescribeJobCommandError(output, context)];
|
|
3578
3578
|
}
|
|
3579
3579
|
contents = {
|
|
3580
3580
|
$metadata: deserializeMetadata(output),
|
|
@@ -3582,13 +3582,13 @@ export var deserializeAws_restXmlDescribeJobCommand = function (output, context)
|
|
|
3582
3582
|
};
|
|
3583
3583
|
_a = __expectNonNull;
|
|
3584
3584
|
_b = __expectObject;
|
|
3585
|
-
return [4
|
|
3585
|
+
return [4, parseBody(output.body, context)];
|
|
3586
3586
|
case 1:
|
|
3587
3587
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3588
3588
|
if (data["Job"] !== undefined) {
|
|
3589
3589
|
contents.Job = deserializeAws_restXmlJobDescriptor(data["Job"], context);
|
|
3590
3590
|
}
|
|
3591
|
-
return [2
|
|
3591
|
+
return [2, Promise.resolve(contents)];
|
|
3592
3592
|
}
|
|
3593
3593
|
});
|
|
3594
3594
|
}); };
|
|
@@ -3600,47 +3600,47 @@ var deserializeAws_restXmlDescribeJobCommandError = function (output, context) {
|
|
|
3600
3600
|
case 0:
|
|
3601
3601
|
_a = [__assign({}, output)];
|
|
3602
3602
|
_g = {};
|
|
3603
|
-
return [4
|
|
3603
|
+
return [4, parseBody(output.body, context)];
|
|
3604
3604
|
case 1:
|
|
3605
3605
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3606
3606
|
errorCode = "UnknownError";
|
|
3607
3607
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3608
3608
|
_b = errorCode;
|
|
3609
3609
|
switch (_b) {
|
|
3610
|
-
case "BadRequestException": return [3
|
|
3611
|
-
case "com.amazonaws.s3control#BadRequestException": return [3
|
|
3612
|
-
case "InternalServiceException": return [3
|
|
3613
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
3614
|
-
case "NotFoundException": return [3
|
|
3615
|
-
case "com.amazonaws.s3control#NotFoundException": return [3
|
|
3616
|
-
case "TooManyRequestsException": return [3
|
|
3617
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
3618
|
-
}
|
|
3619
|
-
return [3
|
|
3610
|
+
case "BadRequestException": return [3, 2];
|
|
3611
|
+
case "com.amazonaws.s3control#BadRequestException": return [3, 2];
|
|
3612
|
+
case "InternalServiceException": return [3, 4];
|
|
3613
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 4];
|
|
3614
|
+
case "NotFoundException": return [3, 6];
|
|
3615
|
+
case "com.amazonaws.s3control#NotFoundException": return [3, 6];
|
|
3616
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3617
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 8];
|
|
3618
|
+
}
|
|
3619
|
+
return [3, 10];
|
|
3620
3620
|
case 2:
|
|
3621
3621
|
_c = [{}];
|
|
3622
|
-
return [4
|
|
3622
|
+
return [4, deserializeAws_restXmlBadRequestExceptionResponse(parsedOutput, context)];
|
|
3623
3623
|
case 3:
|
|
3624
3624
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3625
|
-
return [3
|
|
3625
|
+
return [3, 11];
|
|
3626
3626
|
case 4:
|
|
3627
3627
|
_d = [{}];
|
|
3628
|
-
return [4
|
|
3628
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
3629
3629
|
case 5:
|
|
3630
3630
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3631
|
-
return [3
|
|
3631
|
+
return [3, 11];
|
|
3632
3632
|
case 6:
|
|
3633
3633
|
_e = [{}];
|
|
3634
|
-
return [4
|
|
3634
|
+
return [4, deserializeAws_restXmlNotFoundExceptionResponse(parsedOutput, context)];
|
|
3635
3635
|
case 7:
|
|
3636
3636
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3637
|
-
return [3
|
|
3637
|
+
return [3, 11];
|
|
3638
3638
|
case 8:
|
|
3639
3639
|
_f = [{}];
|
|
3640
|
-
return [4
|
|
3640
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3641
3641
|
case 9:
|
|
3642
3642
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3643
|
-
return [3
|
|
3643
|
+
return [3, 11];
|
|
3644
3644
|
case 10:
|
|
3645
3645
|
parsedBody = parsedOutput.body;
|
|
3646
3646
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -3650,7 +3650,7 @@ var deserializeAws_restXmlDescribeJobCommandError = function (output, context) {
|
|
|
3650
3650
|
message = response.message || response.Message || errorCode;
|
|
3651
3651
|
response.message = message;
|
|
3652
3652
|
delete response.Message;
|
|
3653
|
-
return [2
|
|
3653
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3654
3654
|
}
|
|
3655
3655
|
});
|
|
3656
3656
|
}); };
|
|
@@ -3660,7 +3660,7 @@ export var deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand
|
|
|
3660
3660
|
switch (_c.label) {
|
|
3661
3661
|
case 0:
|
|
3662
3662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3663
|
-
return [2
|
|
3663
|
+
return [2, deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommandError(output, context)];
|
|
3664
3664
|
}
|
|
3665
3665
|
contents = {
|
|
3666
3666
|
$metadata: deserializeMetadata(output),
|
|
@@ -3668,13 +3668,13 @@ export var deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand
|
|
|
3668
3668
|
};
|
|
3669
3669
|
_a = __expectNonNull;
|
|
3670
3670
|
_b = __expectObject;
|
|
3671
|
-
return [4
|
|
3671
|
+
return [4, parseBody(output.body, context)];
|
|
3672
3672
|
case 1:
|
|
3673
3673
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3674
3674
|
if (data["AsyncOperation"] !== undefined) {
|
|
3675
3675
|
contents.AsyncOperation = deserializeAws_restXmlAsyncOperation(data["AsyncOperation"], context);
|
|
3676
3676
|
}
|
|
3677
|
-
return [2
|
|
3677
|
+
return [2, Promise.resolve(contents)];
|
|
3678
3678
|
}
|
|
3679
3679
|
});
|
|
3680
3680
|
}); };
|
|
@@ -3686,7 +3686,7 @@ var deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommandError =
|
|
|
3686
3686
|
case 0:
|
|
3687
3687
|
_a = [__assign({}, output)];
|
|
3688
3688
|
_b = {};
|
|
3689
|
-
return [4
|
|
3689
|
+
return [4, parseBody(output.body, context)];
|
|
3690
3690
|
case 1:
|
|
3691
3691
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3692
3692
|
errorCode = "UnknownError";
|
|
@@ -3700,7 +3700,7 @@ var deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommandError =
|
|
|
3700
3700
|
message = response.message || response.Message || errorCode;
|
|
3701
3701
|
response.message = message;
|
|
3702
3702
|
delete response.Message;
|
|
3703
|
-
return [2
|
|
3703
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
3706
3706
|
}); };
|
|
@@ -3710,7 +3710,7 @@ export var deserializeAws_restXmlGetAccessPointCommand = function (output, conte
|
|
|
3710
3710
|
switch (_c.label) {
|
|
3711
3711
|
case 0:
|
|
3712
3712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3713
|
-
return [2
|
|
3713
|
+
return [2, deserializeAws_restXmlGetAccessPointCommandError(output, context)];
|
|
3714
3714
|
}
|
|
3715
3715
|
contents = {
|
|
3716
3716
|
$metadata: deserializeMetadata(output),
|
|
@@ -3726,7 +3726,7 @@ export var deserializeAws_restXmlGetAccessPointCommand = function (output, conte
|
|
|
3726
3726
|
};
|
|
3727
3727
|
_a = __expectNonNull;
|
|
3728
3728
|
_b = __expectObject;
|
|
3729
|
-
return [4
|
|
3729
|
+
return [4, parseBody(output.body, context)];
|
|
3730
3730
|
case 1:
|
|
3731
3731
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3732
3732
|
if (data["AccessPointArn"] !== undefined) {
|
|
@@ -3739,7 +3739,7 @@ export var deserializeAws_restXmlGetAccessPointCommand = function (output, conte
|
|
|
3739
3739
|
contents.Bucket = __expectString(data["Bucket"]);
|
|
3740
3740
|
}
|
|
3741
3741
|
if (data["CreationDate"] !== undefined) {
|
|
3742
|
-
contents.CreationDate =
|
|
3742
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data["CreationDate"]));
|
|
3743
3743
|
}
|
|
3744
3744
|
if (data.Endpoints === "") {
|
|
3745
3745
|
contents.Endpoints = {};
|
|
@@ -3759,7 +3759,7 @@ export var deserializeAws_restXmlGetAccessPointCommand = function (output, conte
|
|
|
3759
3759
|
if (data["VpcConfiguration"] !== undefined) {
|
|
3760
3760
|
contents.VpcConfiguration = deserializeAws_restXmlVpcConfiguration(data["VpcConfiguration"], context);
|
|
3761
3761
|
}
|
|
3762
|
-
return [2
|
|
3762
|
+
return [2, Promise.resolve(contents)];
|
|
3763
3763
|
}
|
|
3764
3764
|
});
|
|
3765
3765
|
}); };
|
|
@@ -3771,7 +3771,7 @@ var deserializeAws_restXmlGetAccessPointCommandError = function (output, context
|
|
|
3771
3771
|
case 0:
|
|
3772
3772
|
_a = [__assign({}, output)];
|
|
3773
3773
|
_b = {};
|
|
3774
|
-
return [4
|
|
3774
|
+
return [4, parseBody(output.body, context)];
|
|
3775
3775
|
case 1:
|
|
3776
3776
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3777
3777
|
errorCode = "UnknownError";
|
|
@@ -3785,7 +3785,7 @@ var deserializeAws_restXmlGetAccessPointCommandError = function (output, context
|
|
|
3785
3785
|
message = response.message || response.Message || errorCode;
|
|
3786
3786
|
response.message = message;
|
|
3787
3787
|
delete response.Message;
|
|
3788
|
-
return [2
|
|
3788
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3789
3789
|
}
|
|
3790
3790
|
});
|
|
3791
3791
|
}); };
|
|
@@ -3795,7 +3795,7 @@ export var deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaComma
|
|
|
3795
3795
|
switch (_c.label) {
|
|
3796
3796
|
case 0:
|
|
3797
3797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3798
|
-
return [2
|
|
3798
|
+
return [2, deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommandError(output, context)];
|
|
3799
3799
|
}
|
|
3800
3800
|
contents = {
|
|
3801
3801
|
$metadata: deserializeMetadata(output),
|
|
@@ -3803,13 +3803,13 @@ export var deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaComma
|
|
|
3803
3803
|
};
|
|
3804
3804
|
_a = __expectNonNull;
|
|
3805
3805
|
_b = __expectObject;
|
|
3806
|
-
return [4
|
|
3806
|
+
return [4, parseBody(output.body, context)];
|
|
3807
3807
|
case 1:
|
|
3808
3808
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3809
3809
|
if (data["Configuration"] !== undefined) {
|
|
3810
3810
|
contents.Configuration = deserializeAws_restXmlObjectLambdaConfiguration(data["Configuration"], context);
|
|
3811
3811
|
}
|
|
3812
|
-
return [2
|
|
3812
|
+
return [2, Promise.resolve(contents)];
|
|
3813
3813
|
}
|
|
3814
3814
|
});
|
|
3815
3815
|
}); };
|
|
@@ -3821,7 +3821,7 @@ var deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommandError
|
|
|
3821
3821
|
case 0:
|
|
3822
3822
|
_a = [__assign({}, output)];
|
|
3823
3823
|
_b = {};
|
|
3824
|
-
return [4
|
|
3824
|
+
return [4, parseBody(output.body, context)];
|
|
3825
3825
|
case 1:
|
|
3826
3826
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3827
3827
|
errorCode = "UnknownError";
|
|
@@ -3835,7 +3835,7 @@ var deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommandError
|
|
|
3835
3835
|
message = response.message || response.Message || errorCode;
|
|
3836
3836
|
response.message = message;
|
|
3837
3837
|
delete response.Message;
|
|
3838
|
-
return [2
|
|
3838
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3839
3839
|
}
|
|
3840
3840
|
});
|
|
3841
3841
|
}); };
|
|
@@ -3845,7 +3845,7 @@ export var deserializeAws_restXmlGetAccessPointForObjectLambdaCommand = function
|
|
|
3845
3845
|
switch (_c.label) {
|
|
3846
3846
|
case 0:
|
|
3847
3847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3848
|
-
return [2
|
|
3848
|
+
return [2, deserializeAws_restXmlGetAccessPointForObjectLambdaCommandError(output, context)];
|
|
3849
3849
|
}
|
|
3850
3850
|
contents = {
|
|
3851
3851
|
$metadata: deserializeMetadata(output),
|
|
@@ -3855,11 +3855,11 @@ export var deserializeAws_restXmlGetAccessPointForObjectLambdaCommand = function
|
|
|
3855
3855
|
};
|
|
3856
3856
|
_a = __expectNonNull;
|
|
3857
3857
|
_b = __expectObject;
|
|
3858
|
-
return [4
|
|
3858
|
+
return [4, parseBody(output.body, context)];
|
|
3859
3859
|
case 1:
|
|
3860
3860
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3861
3861
|
if (data["CreationDate"] !== undefined) {
|
|
3862
|
-
contents.CreationDate =
|
|
3862
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data["CreationDate"]));
|
|
3863
3863
|
}
|
|
3864
3864
|
if (data["Name"] !== undefined) {
|
|
3865
3865
|
contents.Name = __expectString(data["Name"]);
|
|
@@ -3867,7 +3867,7 @@ export var deserializeAws_restXmlGetAccessPointForObjectLambdaCommand = function
|
|
|
3867
3867
|
if (data["PublicAccessBlockConfiguration"] !== undefined) {
|
|
3868
3868
|
contents.PublicAccessBlockConfiguration = deserializeAws_restXmlPublicAccessBlockConfiguration(data["PublicAccessBlockConfiguration"], context);
|
|
3869
3869
|
}
|
|
3870
|
-
return [2
|
|
3870
|
+
return [2, Promise.resolve(contents)];
|
|
3871
3871
|
}
|
|
3872
3872
|
});
|
|
3873
3873
|
}); };
|
|
@@ -3879,7 +3879,7 @@ var deserializeAws_restXmlGetAccessPointForObjectLambdaCommandError = function (
|
|
|
3879
3879
|
case 0:
|
|
3880
3880
|
_a = [__assign({}, output)];
|
|
3881
3881
|
_b = {};
|
|
3882
|
-
return [4
|
|
3882
|
+
return [4, parseBody(output.body, context)];
|
|
3883
3883
|
case 1:
|
|
3884
3884
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3885
3885
|
errorCode = "UnknownError";
|
|
@@ -3893,7 +3893,7 @@ var deserializeAws_restXmlGetAccessPointForObjectLambdaCommandError = function (
|
|
|
3893
3893
|
message = response.message || response.Message || errorCode;
|
|
3894
3894
|
response.message = message;
|
|
3895
3895
|
delete response.Message;
|
|
3896
|
-
return [2
|
|
3896
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3897
3897
|
}
|
|
3898
3898
|
});
|
|
3899
3899
|
}); };
|
|
@@ -3903,7 +3903,7 @@ export var deserializeAws_restXmlGetAccessPointPolicyCommand = function (output,
|
|
|
3903
3903
|
switch (_c.label) {
|
|
3904
3904
|
case 0:
|
|
3905
3905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3906
|
-
return [2
|
|
3906
|
+
return [2, deserializeAws_restXmlGetAccessPointPolicyCommandError(output, context)];
|
|
3907
3907
|
}
|
|
3908
3908
|
contents = {
|
|
3909
3909
|
$metadata: deserializeMetadata(output),
|
|
@@ -3911,13 +3911,13 @@ export var deserializeAws_restXmlGetAccessPointPolicyCommand = function (output,
|
|
|
3911
3911
|
};
|
|
3912
3912
|
_a = __expectNonNull;
|
|
3913
3913
|
_b = __expectObject;
|
|
3914
|
-
return [4
|
|
3914
|
+
return [4, parseBody(output.body, context)];
|
|
3915
3915
|
case 1:
|
|
3916
3916
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3917
3917
|
if (data["Policy"] !== undefined) {
|
|
3918
3918
|
contents.Policy = __expectString(data["Policy"]);
|
|
3919
3919
|
}
|
|
3920
|
-
return [2
|
|
3920
|
+
return [2, Promise.resolve(contents)];
|
|
3921
3921
|
}
|
|
3922
3922
|
});
|
|
3923
3923
|
}); };
|
|
@@ -3929,7 +3929,7 @@ var deserializeAws_restXmlGetAccessPointPolicyCommandError = function (output, c
|
|
|
3929
3929
|
case 0:
|
|
3930
3930
|
_a = [__assign({}, output)];
|
|
3931
3931
|
_b = {};
|
|
3932
|
-
return [4
|
|
3932
|
+
return [4, parseBody(output.body, context)];
|
|
3933
3933
|
case 1:
|
|
3934
3934
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3935
3935
|
errorCode = "UnknownError";
|
|
@@ -3943,7 +3943,7 @@ var deserializeAws_restXmlGetAccessPointPolicyCommandError = function (output, c
|
|
|
3943
3943
|
message = response.message || response.Message || errorCode;
|
|
3944
3944
|
response.message = message;
|
|
3945
3945
|
delete response.Message;
|
|
3946
|
-
return [2
|
|
3946
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3947
3947
|
}
|
|
3948
3948
|
});
|
|
3949
3949
|
}); };
|
|
@@ -3953,7 +3953,7 @@ export var deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = fu
|
|
|
3953
3953
|
switch (_c.label) {
|
|
3954
3954
|
case 0:
|
|
3955
3955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3956
|
-
return [2
|
|
3956
|
+
return [2, deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommandError(output, context)];
|
|
3957
3957
|
}
|
|
3958
3958
|
contents = {
|
|
3959
3959
|
$metadata: deserializeMetadata(output),
|
|
@@ -3961,13 +3961,13 @@ export var deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = fu
|
|
|
3961
3961
|
};
|
|
3962
3962
|
_a = __expectNonNull;
|
|
3963
3963
|
_b = __expectObject;
|
|
3964
|
-
return [4
|
|
3964
|
+
return [4, parseBody(output.body, context)];
|
|
3965
3965
|
case 1:
|
|
3966
3966
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3967
3967
|
if (data["Policy"] !== undefined) {
|
|
3968
3968
|
contents.Policy = __expectString(data["Policy"]);
|
|
3969
3969
|
}
|
|
3970
|
-
return [2
|
|
3970
|
+
return [2, Promise.resolve(contents)];
|
|
3971
3971
|
}
|
|
3972
3972
|
});
|
|
3973
3973
|
}); };
|
|
@@ -3979,7 +3979,7 @@ var deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommandError = func
|
|
|
3979
3979
|
case 0:
|
|
3980
3980
|
_a = [__assign({}, output)];
|
|
3981
3981
|
_b = {};
|
|
3982
|
-
return [4
|
|
3982
|
+
return [4, parseBody(output.body, context)];
|
|
3983
3983
|
case 1:
|
|
3984
3984
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3985
3985
|
errorCode = "UnknownError";
|
|
@@ -3993,7 +3993,7 @@ var deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommandError = func
|
|
|
3993
3993
|
message = response.message || response.Message || errorCode;
|
|
3994
3994
|
response.message = message;
|
|
3995
3995
|
delete response.Message;
|
|
3996
|
-
return [2
|
|
3996
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3997
3997
|
}
|
|
3998
3998
|
});
|
|
3999
3999
|
}); };
|
|
@@ -4003,7 +4003,7 @@ export var deserializeAws_restXmlGetAccessPointPolicyStatusCommand = function (o
|
|
|
4003
4003
|
switch (_c.label) {
|
|
4004
4004
|
case 0:
|
|
4005
4005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4006
|
-
return [2
|
|
4006
|
+
return [2, deserializeAws_restXmlGetAccessPointPolicyStatusCommandError(output, context)];
|
|
4007
4007
|
}
|
|
4008
4008
|
contents = {
|
|
4009
4009
|
$metadata: deserializeMetadata(output),
|
|
@@ -4011,13 +4011,13 @@ export var deserializeAws_restXmlGetAccessPointPolicyStatusCommand = function (o
|
|
|
4011
4011
|
};
|
|
4012
4012
|
_a = __expectNonNull;
|
|
4013
4013
|
_b = __expectObject;
|
|
4014
|
-
return [4
|
|
4014
|
+
return [4, parseBody(output.body, context)];
|
|
4015
4015
|
case 1:
|
|
4016
4016
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4017
4017
|
if (data["PolicyStatus"] !== undefined) {
|
|
4018
4018
|
contents.PolicyStatus = deserializeAws_restXmlPolicyStatus(data["PolicyStatus"], context);
|
|
4019
4019
|
}
|
|
4020
|
-
return [2
|
|
4020
|
+
return [2, Promise.resolve(contents)];
|
|
4021
4021
|
}
|
|
4022
4022
|
});
|
|
4023
4023
|
}); };
|
|
@@ -4029,7 +4029,7 @@ var deserializeAws_restXmlGetAccessPointPolicyStatusCommandError = function (out
|
|
|
4029
4029
|
case 0:
|
|
4030
4030
|
_a = [__assign({}, output)];
|
|
4031
4031
|
_b = {};
|
|
4032
|
-
return [4
|
|
4032
|
+
return [4, parseBody(output.body, context)];
|
|
4033
4033
|
case 1:
|
|
4034
4034
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4035
4035
|
errorCode = "UnknownError";
|
|
@@ -4043,7 +4043,7 @@ var deserializeAws_restXmlGetAccessPointPolicyStatusCommandError = function (out
|
|
|
4043
4043
|
message = response.message || response.Message || errorCode;
|
|
4044
4044
|
response.message = message;
|
|
4045
4045
|
delete response.Message;
|
|
4046
|
-
return [2
|
|
4046
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4047
4047
|
}
|
|
4048
4048
|
});
|
|
4049
4049
|
}); };
|
|
@@ -4053,7 +4053,7 @@ export var deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaComman
|
|
|
4053
4053
|
switch (_c.label) {
|
|
4054
4054
|
case 0:
|
|
4055
4055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4056
|
-
return [2
|
|
4056
|
+
return [2, deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommandError(output, context)];
|
|
4057
4057
|
}
|
|
4058
4058
|
contents = {
|
|
4059
4059
|
$metadata: deserializeMetadata(output),
|
|
@@ -4061,13 +4061,13 @@ export var deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaComman
|
|
|
4061
4061
|
};
|
|
4062
4062
|
_a = __expectNonNull;
|
|
4063
4063
|
_b = __expectObject;
|
|
4064
|
-
return [4
|
|
4064
|
+
return [4, parseBody(output.body, context)];
|
|
4065
4065
|
case 1:
|
|
4066
4066
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4067
4067
|
if (data["PolicyStatus"] !== undefined) {
|
|
4068
4068
|
contents.PolicyStatus = deserializeAws_restXmlPolicyStatus(data["PolicyStatus"], context);
|
|
4069
4069
|
}
|
|
4070
|
-
return [2
|
|
4070
|
+
return [2, Promise.resolve(contents)];
|
|
4071
4071
|
}
|
|
4072
4072
|
});
|
|
4073
4073
|
}); };
|
|
@@ -4079,7 +4079,7 @@ var deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommandError
|
|
|
4079
4079
|
case 0:
|
|
4080
4080
|
_a = [__assign({}, output)];
|
|
4081
4081
|
_b = {};
|
|
4082
|
-
return [4
|
|
4082
|
+
return [4, parseBody(output.body, context)];
|
|
4083
4083
|
case 1:
|
|
4084
4084
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4085
4085
|
errorCode = "UnknownError";
|
|
@@ -4093,7 +4093,7 @@ var deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommandError
|
|
|
4093
4093
|
message = response.message || response.Message || errorCode;
|
|
4094
4094
|
response.message = message;
|
|
4095
4095
|
delete response.Message;
|
|
4096
|
-
return [2
|
|
4096
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4097
4097
|
}
|
|
4098
4098
|
});
|
|
4099
4099
|
}); };
|
|
@@ -4103,7 +4103,7 @@ export var deserializeAws_restXmlGetBucketCommand = function (output, context) {
|
|
|
4103
4103
|
switch (_c.label) {
|
|
4104
4104
|
case 0:
|
|
4105
4105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4106
|
-
return [2
|
|
4106
|
+
return [2, deserializeAws_restXmlGetBucketCommandError(output, context)];
|
|
4107
4107
|
}
|
|
4108
4108
|
contents = {
|
|
4109
4109
|
$metadata: deserializeMetadata(output),
|
|
@@ -4113,19 +4113,19 @@ export var deserializeAws_restXmlGetBucketCommand = function (output, context) {
|
|
|
4113
4113
|
};
|
|
4114
4114
|
_a = __expectNonNull;
|
|
4115
4115
|
_b = __expectObject;
|
|
4116
|
-
return [4
|
|
4116
|
+
return [4, parseBody(output.body, context)];
|
|
4117
4117
|
case 1:
|
|
4118
4118
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4119
4119
|
if (data["Bucket"] !== undefined) {
|
|
4120
4120
|
contents.Bucket = __expectString(data["Bucket"]);
|
|
4121
4121
|
}
|
|
4122
4122
|
if (data["CreationDate"] !== undefined) {
|
|
4123
|
-
contents.CreationDate =
|
|
4123
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data["CreationDate"]));
|
|
4124
4124
|
}
|
|
4125
4125
|
if (data["PublicAccessBlockEnabled"] !== undefined) {
|
|
4126
4126
|
contents.PublicAccessBlockEnabled = __parseBoolean(data["PublicAccessBlockEnabled"]);
|
|
4127
4127
|
}
|
|
4128
|
-
return [2
|
|
4128
|
+
return [2, Promise.resolve(contents)];
|
|
4129
4129
|
}
|
|
4130
4130
|
});
|
|
4131
4131
|
}); };
|
|
@@ -4137,7 +4137,7 @@ var deserializeAws_restXmlGetBucketCommandError = function (output, context) { r
|
|
|
4137
4137
|
case 0:
|
|
4138
4138
|
_a = [__assign({}, output)];
|
|
4139
4139
|
_b = {};
|
|
4140
|
-
return [4
|
|
4140
|
+
return [4, parseBody(output.body, context)];
|
|
4141
4141
|
case 1:
|
|
4142
4142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4143
4143
|
errorCode = "UnknownError";
|
|
@@ -4151,7 +4151,7 @@ var deserializeAws_restXmlGetBucketCommandError = function (output, context) { r
|
|
|
4151
4151
|
message = response.message || response.Message || errorCode;
|
|
4152
4152
|
response.message = message;
|
|
4153
4153
|
delete response.Message;
|
|
4154
|
-
return [2
|
|
4154
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4155
4155
|
}
|
|
4156
4156
|
});
|
|
4157
4157
|
}); };
|
|
@@ -4161,7 +4161,7 @@ export var deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = functi
|
|
|
4161
4161
|
switch (_c.label) {
|
|
4162
4162
|
case 0:
|
|
4163
4163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4164
|
-
return [2
|
|
4164
|
+
return [2, deserializeAws_restXmlGetBucketLifecycleConfigurationCommandError(output, context)];
|
|
4165
4165
|
}
|
|
4166
4166
|
contents = {
|
|
4167
4167
|
$metadata: deserializeMetadata(output),
|
|
@@ -4169,7 +4169,7 @@ export var deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = functi
|
|
|
4169
4169
|
};
|
|
4170
4170
|
_a = __expectNonNull;
|
|
4171
4171
|
_b = __expectObject;
|
|
4172
|
-
return [4
|
|
4172
|
+
return [4, parseBody(output.body, context)];
|
|
4173
4173
|
case 1:
|
|
4174
4174
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4175
4175
|
if (data.Rules === "") {
|
|
@@ -4178,7 +4178,7 @@ export var deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = functi
|
|
|
4178
4178
|
if (data["Rules"] !== undefined && data["Rules"]["Rule"] !== undefined) {
|
|
4179
4179
|
contents.Rules = deserializeAws_restXmlLifecycleRules(__getArrayIfSingleItem(data["Rules"]["Rule"]), context);
|
|
4180
4180
|
}
|
|
4181
|
-
return [2
|
|
4181
|
+
return [2, Promise.resolve(contents)];
|
|
4182
4182
|
}
|
|
4183
4183
|
});
|
|
4184
4184
|
}); };
|
|
@@ -4190,7 +4190,7 @@ var deserializeAws_restXmlGetBucketLifecycleConfigurationCommandError = function
|
|
|
4190
4190
|
case 0:
|
|
4191
4191
|
_a = [__assign({}, output)];
|
|
4192
4192
|
_b = {};
|
|
4193
|
-
return [4
|
|
4193
|
+
return [4, parseBody(output.body, context)];
|
|
4194
4194
|
case 1:
|
|
4195
4195
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4196
4196
|
errorCode = "UnknownError";
|
|
@@ -4204,7 +4204,7 @@ var deserializeAws_restXmlGetBucketLifecycleConfigurationCommandError = function
|
|
|
4204
4204
|
message = response.message || response.Message || errorCode;
|
|
4205
4205
|
response.message = message;
|
|
4206
4206
|
delete response.Message;
|
|
4207
|
-
return [2
|
|
4207
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4208
4208
|
}
|
|
4209
4209
|
});
|
|
4210
4210
|
}); };
|
|
@@ -4214,7 +4214,7 @@ export var deserializeAws_restXmlGetBucketPolicyCommand = function (output, cont
|
|
|
4214
4214
|
switch (_c.label) {
|
|
4215
4215
|
case 0:
|
|
4216
4216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4217
|
-
return [2
|
|
4217
|
+
return [2, deserializeAws_restXmlGetBucketPolicyCommandError(output, context)];
|
|
4218
4218
|
}
|
|
4219
4219
|
contents = {
|
|
4220
4220
|
$metadata: deserializeMetadata(output),
|
|
@@ -4222,13 +4222,13 @@ export var deserializeAws_restXmlGetBucketPolicyCommand = function (output, cont
|
|
|
4222
4222
|
};
|
|
4223
4223
|
_a = __expectNonNull;
|
|
4224
4224
|
_b = __expectObject;
|
|
4225
|
-
return [4
|
|
4225
|
+
return [4, parseBody(output.body, context)];
|
|
4226
4226
|
case 1:
|
|
4227
4227
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4228
4228
|
if (data["Policy"] !== undefined) {
|
|
4229
4229
|
contents.Policy = __expectString(data["Policy"]);
|
|
4230
4230
|
}
|
|
4231
|
-
return [2
|
|
4231
|
+
return [2, Promise.resolve(contents)];
|
|
4232
4232
|
}
|
|
4233
4233
|
});
|
|
4234
4234
|
}); };
|
|
@@ -4240,7 +4240,7 @@ var deserializeAws_restXmlGetBucketPolicyCommandError = function (output, contex
|
|
|
4240
4240
|
case 0:
|
|
4241
4241
|
_a = [__assign({}, output)];
|
|
4242
4242
|
_b = {};
|
|
4243
|
-
return [4
|
|
4243
|
+
return [4, parseBody(output.body, context)];
|
|
4244
4244
|
case 1:
|
|
4245
4245
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4246
4246
|
errorCode = "UnknownError";
|
|
@@ -4254,7 +4254,7 @@ var deserializeAws_restXmlGetBucketPolicyCommandError = function (output, contex
|
|
|
4254
4254
|
message = response.message || response.Message || errorCode;
|
|
4255
4255
|
response.message = message;
|
|
4256
4256
|
delete response.Message;
|
|
4257
|
-
return [2
|
|
4257
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4258
4258
|
}
|
|
4259
4259
|
});
|
|
4260
4260
|
}); };
|
|
@@ -4264,7 +4264,7 @@ export var deserializeAws_restXmlGetBucketTaggingCommand = function (output, con
|
|
|
4264
4264
|
switch (_c.label) {
|
|
4265
4265
|
case 0:
|
|
4266
4266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4267
|
-
return [2
|
|
4267
|
+
return [2, deserializeAws_restXmlGetBucketTaggingCommandError(output, context)];
|
|
4268
4268
|
}
|
|
4269
4269
|
contents = {
|
|
4270
4270
|
$metadata: deserializeMetadata(output),
|
|
@@ -4272,7 +4272,7 @@ export var deserializeAws_restXmlGetBucketTaggingCommand = function (output, con
|
|
|
4272
4272
|
};
|
|
4273
4273
|
_a = __expectNonNull;
|
|
4274
4274
|
_b = __expectObject;
|
|
4275
|
-
return [4
|
|
4275
|
+
return [4, parseBody(output.body, context)];
|
|
4276
4276
|
case 1:
|
|
4277
4277
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4278
4278
|
if (data.TagSet === "") {
|
|
@@ -4281,7 +4281,7 @@ export var deserializeAws_restXmlGetBucketTaggingCommand = function (output, con
|
|
|
4281
4281
|
if (data["TagSet"] !== undefined && data["TagSet"]["member"] !== undefined) {
|
|
4282
4282
|
contents.TagSet = deserializeAws_restXmlS3TagSet(__getArrayIfSingleItem(data["TagSet"]["member"]), context);
|
|
4283
4283
|
}
|
|
4284
|
-
return [2
|
|
4284
|
+
return [2, Promise.resolve(contents)];
|
|
4285
4285
|
}
|
|
4286
4286
|
});
|
|
4287
4287
|
}); };
|
|
@@ -4293,7 +4293,7 @@ var deserializeAws_restXmlGetBucketTaggingCommandError = function (output, conte
|
|
|
4293
4293
|
case 0:
|
|
4294
4294
|
_a = [__assign({}, output)];
|
|
4295
4295
|
_b = {};
|
|
4296
|
-
return [4
|
|
4296
|
+
return [4, parseBody(output.body, context)];
|
|
4297
4297
|
case 1:
|
|
4298
4298
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4299
4299
|
errorCode = "UnknownError";
|
|
@@ -4307,7 +4307,7 @@ var deserializeAws_restXmlGetBucketTaggingCommandError = function (output, conte
|
|
|
4307
4307
|
message = response.message || response.Message || errorCode;
|
|
4308
4308
|
response.message = message;
|
|
4309
4309
|
delete response.Message;
|
|
4310
|
-
return [2
|
|
4310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4311
4311
|
}
|
|
4312
4312
|
});
|
|
4313
4313
|
}); };
|
|
@@ -4317,7 +4317,7 @@ export var deserializeAws_restXmlGetJobTaggingCommand = function (output, contex
|
|
|
4317
4317
|
switch (_c.label) {
|
|
4318
4318
|
case 0:
|
|
4319
4319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4320
|
-
return [2
|
|
4320
|
+
return [2, deserializeAws_restXmlGetJobTaggingCommandError(output, context)];
|
|
4321
4321
|
}
|
|
4322
4322
|
contents = {
|
|
4323
4323
|
$metadata: deserializeMetadata(output),
|
|
@@ -4325,7 +4325,7 @@ export var deserializeAws_restXmlGetJobTaggingCommand = function (output, contex
|
|
|
4325
4325
|
};
|
|
4326
4326
|
_a = __expectNonNull;
|
|
4327
4327
|
_b = __expectObject;
|
|
4328
|
-
return [4
|
|
4328
|
+
return [4, parseBody(output.body, context)];
|
|
4329
4329
|
case 1:
|
|
4330
4330
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4331
4331
|
if (data.Tags === "") {
|
|
@@ -4334,7 +4334,7 @@ export var deserializeAws_restXmlGetJobTaggingCommand = function (output, contex
|
|
|
4334
4334
|
if (data["Tags"] !== undefined && data["Tags"]["member"] !== undefined) {
|
|
4335
4335
|
contents.Tags = deserializeAws_restXmlS3TagSet(__getArrayIfSingleItem(data["Tags"]["member"]), context);
|
|
4336
4336
|
}
|
|
4337
|
-
return [2
|
|
4337
|
+
return [2, Promise.resolve(contents)];
|
|
4338
4338
|
}
|
|
4339
4339
|
});
|
|
4340
4340
|
}); };
|
|
@@ -4346,39 +4346,39 @@ var deserializeAws_restXmlGetJobTaggingCommandError = function (output, context)
|
|
|
4346
4346
|
case 0:
|
|
4347
4347
|
_a = [__assign({}, output)];
|
|
4348
4348
|
_f = {};
|
|
4349
|
-
return [4
|
|
4349
|
+
return [4, parseBody(output.body, context)];
|
|
4350
4350
|
case 1:
|
|
4351
4351
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4352
4352
|
errorCode = "UnknownError";
|
|
4353
4353
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4354
4354
|
_b = errorCode;
|
|
4355
4355
|
switch (_b) {
|
|
4356
|
-
case "InternalServiceException": return [3
|
|
4357
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
4358
|
-
case "NotFoundException": return [3
|
|
4359
|
-
case "com.amazonaws.s3control#NotFoundException": return [3
|
|
4360
|
-
case "TooManyRequestsException": return [3
|
|
4361
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
4362
|
-
}
|
|
4363
|
-
return [3
|
|
4356
|
+
case "InternalServiceException": return [3, 2];
|
|
4357
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 2];
|
|
4358
|
+
case "NotFoundException": return [3, 4];
|
|
4359
|
+
case "com.amazonaws.s3control#NotFoundException": return [3, 4];
|
|
4360
|
+
case "TooManyRequestsException": return [3, 6];
|
|
4361
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 6];
|
|
4362
|
+
}
|
|
4363
|
+
return [3, 8];
|
|
4364
4364
|
case 2:
|
|
4365
4365
|
_c = [{}];
|
|
4366
|
-
return [4
|
|
4366
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
4367
4367
|
case 3:
|
|
4368
4368
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4369
|
-
return [3
|
|
4369
|
+
return [3, 9];
|
|
4370
4370
|
case 4:
|
|
4371
4371
|
_d = [{}];
|
|
4372
|
-
return [4
|
|
4372
|
+
return [4, deserializeAws_restXmlNotFoundExceptionResponse(parsedOutput, context)];
|
|
4373
4373
|
case 5:
|
|
4374
4374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4375
|
-
return [3
|
|
4375
|
+
return [3, 9];
|
|
4376
4376
|
case 6:
|
|
4377
4377
|
_e = [{}];
|
|
4378
|
-
return [4
|
|
4378
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4379
4379
|
case 7:
|
|
4380
4380
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4381
|
-
return [3
|
|
4381
|
+
return [3, 9];
|
|
4382
4382
|
case 8:
|
|
4383
4383
|
parsedBody = parsedOutput.body;
|
|
4384
4384
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -4388,7 +4388,7 @@ var deserializeAws_restXmlGetJobTaggingCommandError = function (output, context)
|
|
|
4388
4388
|
message = response.message || response.Message || errorCode;
|
|
4389
4389
|
response.message = message;
|
|
4390
4390
|
delete response.Message;
|
|
4391
|
-
return [2
|
|
4391
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4392
4392
|
}
|
|
4393
4393
|
});
|
|
4394
4394
|
}); };
|
|
@@ -4398,7 +4398,7 @@ export var deserializeAws_restXmlGetMultiRegionAccessPointCommand = function (ou
|
|
|
4398
4398
|
switch (_c.label) {
|
|
4399
4399
|
case 0:
|
|
4400
4400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4401
|
-
return [2
|
|
4401
|
+
return [2, deserializeAws_restXmlGetMultiRegionAccessPointCommandError(output, context)];
|
|
4402
4402
|
}
|
|
4403
4403
|
contents = {
|
|
4404
4404
|
$metadata: deserializeMetadata(output),
|
|
@@ -4406,13 +4406,13 @@ export var deserializeAws_restXmlGetMultiRegionAccessPointCommand = function (ou
|
|
|
4406
4406
|
};
|
|
4407
4407
|
_a = __expectNonNull;
|
|
4408
4408
|
_b = __expectObject;
|
|
4409
|
-
return [4
|
|
4409
|
+
return [4, parseBody(output.body, context)];
|
|
4410
4410
|
case 1:
|
|
4411
4411
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4412
4412
|
if (data["AccessPoint"] !== undefined) {
|
|
4413
4413
|
contents.AccessPoint = deserializeAws_restXmlMultiRegionAccessPointReport(data["AccessPoint"], context);
|
|
4414
4414
|
}
|
|
4415
|
-
return [2
|
|
4415
|
+
return [2, Promise.resolve(contents)];
|
|
4416
4416
|
}
|
|
4417
4417
|
});
|
|
4418
4418
|
}); };
|
|
@@ -4424,7 +4424,7 @@ var deserializeAws_restXmlGetMultiRegionAccessPointCommandError = function (outp
|
|
|
4424
4424
|
case 0:
|
|
4425
4425
|
_a = [__assign({}, output)];
|
|
4426
4426
|
_b = {};
|
|
4427
|
-
return [4
|
|
4427
|
+
return [4, parseBody(output.body, context)];
|
|
4428
4428
|
case 1:
|
|
4429
4429
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4430
4430
|
errorCode = "UnknownError";
|
|
@@ -4438,7 +4438,7 @@ var deserializeAws_restXmlGetMultiRegionAccessPointCommandError = function (outp
|
|
|
4438
4438
|
message = response.message || response.Message || errorCode;
|
|
4439
4439
|
response.message = message;
|
|
4440
4440
|
delete response.Message;
|
|
4441
|
-
return [2
|
|
4441
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4442
4442
|
}
|
|
4443
4443
|
});
|
|
4444
4444
|
}); };
|
|
@@ -4448,7 +4448,7 @@ export var deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = functi
|
|
|
4448
4448
|
switch (_c.label) {
|
|
4449
4449
|
case 0:
|
|
4450
4450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4451
|
-
return [2
|
|
4451
|
+
return [2, deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommandError(output, context)];
|
|
4452
4452
|
}
|
|
4453
4453
|
contents = {
|
|
4454
4454
|
$metadata: deserializeMetadata(output),
|
|
@@ -4456,13 +4456,13 @@ export var deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = functi
|
|
|
4456
4456
|
};
|
|
4457
4457
|
_a = __expectNonNull;
|
|
4458
4458
|
_b = __expectObject;
|
|
4459
|
-
return [4
|
|
4459
|
+
return [4, parseBody(output.body, context)];
|
|
4460
4460
|
case 1:
|
|
4461
4461
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4462
4462
|
if (data["Policy"] !== undefined) {
|
|
4463
4463
|
contents.Policy = deserializeAws_restXmlMultiRegionAccessPointPolicyDocument(data["Policy"], context);
|
|
4464
4464
|
}
|
|
4465
|
-
return [2
|
|
4465
|
+
return [2, Promise.resolve(contents)];
|
|
4466
4466
|
}
|
|
4467
4467
|
});
|
|
4468
4468
|
}); };
|
|
@@ -4474,7 +4474,7 @@ var deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommandError = function
|
|
|
4474
4474
|
case 0:
|
|
4475
4475
|
_a = [__assign({}, output)];
|
|
4476
4476
|
_b = {};
|
|
4477
|
-
return [4
|
|
4477
|
+
return [4, parseBody(output.body, context)];
|
|
4478
4478
|
case 1:
|
|
4479
4479
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4480
4480
|
errorCode = "UnknownError";
|
|
@@ -4488,7 +4488,7 @@ var deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommandError = function
|
|
|
4488
4488
|
message = response.message || response.Message || errorCode;
|
|
4489
4489
|
response.message = message;
|
|
4490
4490
|
delete response.Message;
|
|
4491
|
-
return [2
|
|
4491
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4492
4492
|
}
|
|
4493
4493
|
});
|
|
4494
4494
|
}); };
|
|
@@ -4498,7 +4498,7 @@ export var deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand =
|
|
|
4498
4498
|
switch (_c.label) {
|
|
4499
4499
|
case 0:
|
|
4500
4500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4501
|
-
return [2
|
|
4501
|
+
return [2, deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommandError(output, context)];
|
|
4502
4502
|
}
|
|
4503
4503
|
contents = {
|
|
4504
4504
|
$metadata: deserializeMetadata(output),
|
|
@@ -4506,13 +4506,13 @@ export var deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand =
|
|
|
4506
4506
|
};
|
|
4507
4507
|
_a = __expectNonNull;
|
|
4508
4508
|
_b = __expectObject;
|
|
4509
|
-
return [4
|
|
4509
|
+
return [4, parseBody(output.body, context)];
|
|
4510
4510
|
case 1:
|
|
4511
4511
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4512
4512
|
if (data["Established"] !== undefined) {
|
|
4513
4513
|
contents.Established = deserializeAws_restXmlPolicyStatus(data["Established"], context);
|
|
4514
4514
|
}
|
|
4515
|
-
return [2
|
|
4515
|
+
return [2, Promise.resolve(contents)];
|
|
4516
4516
|
}
|
|
4517
4517
|
});
|
|
4518
4518
|
}); };
|
|
@@ -4524,7 +4524,7 @@ var deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommandError = fu
|
|
|
4524
4524
|
case 0:
|
|
4525
4525
|
_a = [__assign({}, output)];
|
|
4526
4526
|
_b = {};
|
|
4527
|
-
return [4
|
|
4527
|
+
return [4, parseBody(output.body, context)];
|
|
4528
4528
|
case 1:
|
|
4529
4529
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4530
4530
|
errorCode = "UnknownError";
|
|
@@ -4538,7 +4538,7 @@ var deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommandError = fu
|
|
|
4538
4538
|
message = response.message || response.Message || errorCode;
|
|
4539
4539
|
response.message = message;
|
|
4540
4540
|
delete response.Message;
|
|
4541
|
-
return [2
|
|
4541
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4542
4542
|
}
|
|
4543
4543
|
});
|
|
4544
4544
|
}); };
|
|
@@ -4548,18 +4548,18 @@ export var deserializeAws_restXmlGetPublicAccessBlockCommand = function (output,
|
|
|
4548
4548
|
switch (_b.label) {
|
|
4549
4549
|
case 0:
|
|
4550
4550
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4551
|
-
return [2
|
|
4551
|
+
return [2, deserializeAws_restXmlGetPublicAccessBlockCommandError(output, context)];
|
|
4552
4552
|
}
|
|
4553
4553
|
contents = {
|
|
4554
4554
|
$metadata: deserializeMetadata(output),
|
|
4555
4555
|
PublicAccessBlockConfiguration: undefined,
|
|
4556
4556
|
};
|
|
4557
4557
|
_a = __expectObject;
|
|
4558
|
-
return [4
|
|
4558
|
+
return [4, parseBody(output.body, context)];
|
|
4559
4559
|
case 1:
|
|
4560
4560
|
data = _a.apply(void 0, [_b.sent()]);
|
|
4561
4561
|
contents.PublicAccessBlockConfiguration = deserializeAws_restXmlPublicAccessBlockConfiguration(data, context);
|
|
4562
|
-
return [2
|
|
4562
|
+
return [2, Promise.resolve(contents)];
|
|
4563
4563
|
}
|
|
4564
4564
|
});
|
|
4565
4565
|
}); };
|
|
@@ -4571,23 +4571,23 @@ var deserializeAws_restXmlGetPublicAccessBlockCommandError = function (output, c
|
|
|
4571
4571
|
case 0:
|
|
4572
4572
|
_a = [__assign({}, output)];
|
|
4573
4573
|
_d = {};
|
|
4574
|
-
return [4
|
|
4574
|
+
return [4, parseBody(output.body, context)];
|
|
4575
4575
|
case 1:
|
|
4576
4576
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
4577
4577
|
errorCode = "UnknownError";
|
|
4578
4578
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4579
4579
|
_b = errorCode;
|
|
4580
4580
|
switch (_b) {
|
|
4581
|
-
case "NoSuchPublicAccessBlockConfiguration": return [3
|
|
4582
|
-
case "com.amazonaws.s3control#NoSuchPublicAccessBlockConfiguration": return [3
|
|
4581
|
+
case "NoSuchPublicAccessBlockConfiguration": return [3, 2];
|
|
4582
|
+
case "com.amazonaws.s3control#NoSuchPublicAccessBlockConfiguration": return [3, 2];
|
|
4583
4583
|
}
|
|
4584
|
-
return [3
|
|
4584
|
+
return [3, 4];
|
|
4585
4585
|
case 2:
|
|
4586
4586
|
_c = [{}];
|
|
4587
|
-
return [4
|
|
4587
|
+
return [4, deserializeAws_restXmlNoSuchPublicAccessBlockConfigurationResponse(parsedOutput, context)];
|
|
4588
4588
|
case 3:
|
|
4589
4589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4590
|
-
return [3
|
|
4590
|
+
return [3, 5];
|
|
4591
4591
|
case 4:
|
|
4592
4592
|
parsedBody = parsedOutput.body;
|
|
4593
4593
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -4597,7 +4597,7 @@ var deserializeAws_restXmlGetPublicAccessBlockCommandError = function (output, c
|
|
|
4597
4597
|
message = response.message || response.Message || errorCode;
|
|
4598
4598
|
response.message = message;
|
|
4599
4599
|
delete response.Message;
|
|
4600
|
-
return [2
|
|
4600
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4601
4601
|
}
|
|
4602
4602
|
});
|
|
4603
4603
|
}); };
|
|
@@ -4607,18 +4607,18 @@ export var deserializeAws_restXmlGetStorageLensConfigurationCommand = function (
|
|
|
4607
4607
|
switch (_b.label) {
|
|
4608
4608
|
case 0:
|
|
4609
4609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4610
|
-
return [2
|
|
4610
|
+
return [2, deserializeAws_restXmlGetStorageLensConfigurationCommandError(output, context)];
|
|
4611
4611
|
}
|
|
4612
4612
|
contents = {
|
|
4613
4613
|
$metadata: deserializeMetadata(output),
|
|
4614
4614
|
StorageLensConfiguration: undefined,
|
|
4615
4615
|
};
|
|
4616
4616
|
_a = __expectObject;
|
|
4617
|
-
return [4
|
|
4617
|
+
return [4, parseBody(output.body, context)];
|
|
4618
4618
|
case 1:
|
|
4619
4619
|
data = _a.apply(void 0, [_b.sent()]);
|
|
4620
4620
|
contents.StorageLensConfiguration = deserializeAws_restXmlStorageLensConfiguration(data, context);
|
|
4621
|
-
return [2
|
|
4621
|
+
return [2, Promise.resolve(contents)];
|
|
4622
4622
|
}
|
|
4623
4623
|
});
|
|
4624
4624
|
}); };
|
|
@@ -4630,7 +4630,7 @@ var deserializeAws_restXmlGetStorageLensConfigurationCommandError = function (ou
|
|
|
4630
4630
|
case 0:
|
|
4631
4631
|
_a = [__assign({}, output)];
|
|
4632
4632
|
_b = {};
|
|
4633
|
-
return [4
|
|
4633
|
+
return [4, parseBody(output.body, context)];
|
|
4634
4634
|
case 1:
|
|
4635
4635
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4636
4636
|
errorCode = "UnknownError";
|
|
@@ -4644,7 +4644,7 @@ var deserializeAws_restXmlGetStorageLensConfigurationCommandError = function (ou
|
|
|
4644
4644
|
message = response.message || response.Message || errorCode;
|
|
4645
4645
|
response.message = message;
|
|
4646
4646
|
delete response.Message;
|
|
4647
|
-
return [2
|
|
4647
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4648
4648
|
}
|
|
4649
4649
|
});
|
|
4650
4650
|
}); };
|
|
@@ -4654,7 +4654,7 @@ export var deserializeAws_restXmlGetStorageLensConfigurationTaggingCommand = fun
|
|
|
4654
4654
|
switch (_c.label) {
|
|
4655
4655
|
case 0:
|
|
4656
4656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4657
|
-
return [2
|
|
4657
|
+
return [2, deserializeAws_restXmlGetStorageLensConfigurationTaggingCommandError(output, context)];
|
|
4658
4658
|
}
|
|
4659
4659
|
contents = {
|
|
4660
4660
|
$metadata: deserializeMetadata(output),
|
|
@@ -4662,7 +4662,7 @@ export var deserializeAws_restXmlGetStorageLensConfigurationTaggingCommand = fun
|
|
|
4662
4662
|
};
|
|
4663
4663
|
_a = __expectNonNull;
|
|
4664
4664
|
_b = __expectObject;
|
|
4665
|
-
return [4
|
|
4665
|
+
return [4, parseBody(output.body, context)];
|
|
4666
4666
|
case 1:
|
|
4667
4667
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4668
4668
|
if (data.Tags === "") {
|
|
@@ -4671,7 +4671,7 @@ export var deserializeAws_restXmlGetStorageLensConfigurationTaggingCommand = fun
|
|
|
4671
4671
|
if (data["Tags"] !== undefined && data["Tags"]["Tag"] !== undefined) {
|
|
4672
4672
|
contents.Tags = deserializeAws_restXmlStorageLensTags(__getArrayIfSingleItem(data["Tags"]["Tag"]), context);
|
|
4673
4673
|
}
|
|
4674
|
-
return [2
|
|
4674
|
+
return [2, Promise.resolve(contents)];
|
|
4675
4675
|
}
|
|
4676
4676
|
});
|
|
4677
4677
|
}); };
|
|
@@ -4683,7 +4683,7 @@ var deserializeAws_restXmlGetStorageLensConfigurationTaggingCommandError = funct
|
|
|
4683
4683
|
case 0:
|
|
4684
4684
|
_a = [__assign({}, output)];
|
|
4685
4685
|
_b = {};
|
|
4686
|
-
return [4
|
|
4686
|
+
return [4, parseBody(output.body, context)];
|
|
4687
4687
|
case 1:
|
|
4688
4688
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4689
4689
|
errorCode = "UnknownError";
|
|
@@ -4697,7 +4697,7 @@ var deserializeAws_restXmlGetStorageLensConfigurationTaggingCommandError = funct
|
|
|
4697
4697
|
message = response.message || response.Message || errorCode;
|
|
4698
4698
|
response.message = message;
|
|
4699
4699
|
delete response.Message;
|
|
4700
|
-
return [2
|
|
4700
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4701
4701
|
}
|
|
4702
4702
|
});
|
|
4703
4703
|
}); };
|
|
@@ -4707,7 +4707,7 @@ export var deserializeAws_restXmlListAccessPointsCommand = function (output, con
|
|
|
4707
4707
|
switch (_c.label) {
|
|
4708
4708
|
case 0:
|
|
4709
4709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4710
|
-
return [2
|
|
4710
|
+
return [2, deserializeAws_restXmlListAccessPointsCommandError(output, context)];
|
|
4711
4711
|
}
|
|
4712
4712
|
contents = {
|
|
4713
4713
|
$metadata: deserializeMetadata(output),
|
|
@@ -4716,7 +4716,7 @@ export var deserializeAws_restXmlListAccessPointsCommand = function (output, con
|
|
|
4716
4716
|
};
|
|
4717
4717
|
_a = __expectNonNull;
|
|
4718
4718
|
_b = __expectObject;
|
|
4719
|
-
return [4
|
|
4719
|
+
return [4, parseBody(output.body, context)];
|
|
4720
4720
|
case 1:
|
|
4721
4721
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4722
4722
|
if (data.AccessPointList === "") {
|
|
@@ -4728,7 +4728,7 @@ export var deserializeAws_restXmlListAccessPointsCommand = function (output, con
|
|
|
4728
4728
|
if (data["NextToken"] !== undefined) {
|
|
4729
4729
|
contents.NextToken = __expectString(data["NextToken"]);
|
|
4730
4730
|
}
|
|
4731
|
-
return [2
|
|
4731
|
+
return [2, Promise.resolve(contents)];
|
|
4732
4732
|
}
|
|
4733
4733
|
});
|
|
4734
4734
|
}); };
|
|
@@ -4740,7 +4740,7 @@ var deserializeAws_restXmlListAccessPointsCommandError = function (output, conte
|
|
|
4740
4740
|
case 0:
|
|
4741
4741
|
_a = [__assign({}, output)];
|
|
4742
4742
|
_b = {};
|
|
4743
|
-
return [4
|
|
4743
|
+
return [4, parseBody(output.body, context)];
|
|
4744
4744
|
case 1:
|
|
4745
4745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4746
4746
|
errorCode = "UnknownError";
|
|
@@ -4754,7 +4754,7 @@ var deserializeAws_restXmlListAccessPointsCommandError = function (output, conte
|
|
|
4754
4754
|
message = response.message || response.Message || errorCode;
|
|
4755
4755
|
response.message = message;
|
|
4756
4756
|
delete response.Message;
|
|
4757
|
-
return [2
|
|
4757
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4758
4758
|
}
|
|
4759
4759
|
});
|
|
4760
4760
|
}); };
|
|
@@ -4764,7 +4764,7 @@ export var deserializeAws_restXmlListAccessPointsForObjectLambdaCommand = functi
|
|
|
4764
4764
|
switch (_c.label) {
|
|
4765
4765
|
case 0:
|
|
4766
4766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4767
|
-
return [2
|
|
4767
|
+
return [2, deserializeAws_restXmlListAccessPointsForObjectLambdaCommandError(output, context)];
|
|
4768
4768
|
}
|
|
4769
4769
|
contents = {
|
|
4770
4770
|
$metadata: deserializeMetadata(output),
|
|
@@ -4773,7 +4773,7 @@ export var deserializeAws_restXmlListAccessPointsForObjectLambdaCommand = functi
|
|
|
4773
4773
|
};
|
|
4774
4774
|
_a = __expectNonNull;
|
|
4775
4775
|
_b = __expectObject;
|
|
4776
|
-
return [4
|
|
4776
|
+
return [4, parseBody(output.body, context)];
|
|
4777
4777
|
case 1:
|
|
4778
4778
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4779
4779
|
if (data["NextToken"] !== undefined) {
|
|
@@ -4786,7 +4786,7 @@ export var deserializeAws_restXmlListAccessPointsForObjectLambdaCommand = functi
|
|
|
4786
4786
|
data["ObjectLambdaAccessPointList"]["ObjectLambdaAccessPoint"] !== undefined) {
|
|
4787
4787
|
contents.ObjectLambdaAccessPointList = deserializeAws_restXmlObjectLambdaAccessPointList(__getArrayIfSingleItem(data["ObjectLambdaAccessPointList"]["ObjectLambdaAccessPoint"]), context);
|
|
4788
4788
|
}
|
|
4789
|
-
return [2
|
|
4789
|
+
return [2, Promise.resolve(contents)];
|
|
4790
4790
|
}
|
|
4791
4791
|
});
|
|
4792
4792
|
}); };
|
|
@@ -4798,7 +4798,7 @@ var deserializeAws_restXmlListAccessPointsForObjectLambdaCommandError = function
|
|
|
4798
4798
|
case 0:
|
|
4799
4799
|
_a = [__assign({}, output)];
|
|
4800
4800
|
_b = {};
|
|
4801
|
-
return [4
|
|
4801
|
+
return [4, parseBody(output.body, context)];
|
|
4802
4802
|
case 1:
|
|
4803
4803
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4804
4804
|
errorCode = "UnknownError";
|
|
@@ -4812,7 +4812,7 @@ var deserializeAws_restXmlListAccessPointsForObjectLambdaCommandError = function
|
|
|
4812
4812
|
message = response.message || response.Message || errorCode;
|
|
4813
4813
|
response.message = message;
|
|
4814
4814
|
delete response.Message;
|
|
4815
|
-
return [2
|
|
4815
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4816
4816
|
}
|
|
4817
4817
|
});
|
|
4818
4818
|
}); };
|
|
@@ -4822,7 +4822,7 @@ export var deserializeAws_restXmlListJobsCommand = function (output, context) {
|
|
|
4822
4822
|
switch (_c.label) {
|
|
4823
4823
|
case 0:
|
|
4824
4824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4825
|
-
return [2
|
|
4825
|
+
return [2, deserializeAws_restXmlListJobsCommandError(output, context)];
|
|
4826
4826
|
}
|
|
4827
4827
|
contents = {
|
|
4828
4828
|
$metadata: deserializeMetadata(output),
|
|
@@ -4831,7 +4831,7 @@ export var deserializeAws_restXmlListJobsCommand = function (output, context) {
|
|
|
4831
4831
|
};
|
|
4832
4832
|
_a = __expectNonNull;
|
|
4833
4833
|
_b = __expectObject;
|
|
4834
|
-
return [4
|
|
4834
|
+
return [4, parseBody(output.body, context)];
|
|
4835
4835
|
case 1:
|
|
4836
4836
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4837
4837
|
if (data.Jobs === "") {
|
|
@@ -4843,7 +4843,7 @@ export var deserializeAws_restXmlListJobsCommand = function (output, context) {
|
|
|
4843
4843
|
if (data["NextToken"] !== undefined) {
|
|
4844
4844
|
contents.NextToken = __expectString(data["NextToken"]);
|
|
4845
4845
|
}
|
|
4846
|
-
return [2
|
|
4846
|
+
return [2, Promise.resolve(contents)];
|
|
4847
4847
|
}
|
|
4848
4848
|
});
|
|
4849
4849
|
}); };
|
|
@@ -4855,39 +4855,39 @@ var deserializeAws_restXmlListJobsCommandError = function (output, context) { re
|
|
|
4855
4855
|
case 0:
|
|
4856
4856
|
_a = [__assign({}, output)];
|
|
4857
4857
|
_f = {};
|
|
4858
|
-
return [4
|
|
4858
|
+
return [4, parseBody(output.body, context)];
|
|
4859
4859
|
case 1:
|
|
4860
4860
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4861
4861
|
errorCode = "UnknownError";
|
|
4862
4862
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4863
4863
|
_b = errorCode;
|
|
4864
4864
|
switch (_b) {
|
|
4865
|
-
case "InternalServiceException": return [3
|
|
4866
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
4867
|
-
case "InvalidNextTokenException": return [3
|
|
4868
|
-
case "com.amazonaws.s3control#InvalidNextTokenException": return [3
|
|
4869
|
-
case "InvalidRequestException": return [3
|
|
4870
|
-
case "com.amazonaws.s3control#InvalidRequestException": return [3
|
|
4871
|
-
}
|
|
4872
|
-
return [3
|
|
4865
|
+
case "InternalServiceException": return [3, 2];
|
|
4866
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 2];
|
|
4867
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
4868
|
+
case "com.amazonaws.s3control#InvalidNextTokenException": return [3, 4];
|
|
4869
|
+
case "InvalidRequestException": return [3, 6];
|
|
4870
|
+
case "com.amazonaws.s3control#InvalidRequestException": return [3, 6];
|
|
4871
|
+
}
|
|
4872
|
+
return [3, 8];
|
|
4873
4873
|
case 2:
|
|
4874
4874
|
_c = [{}];
|
|
4875
|
-
return [4
|
|
4875
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
4876
4876
|
case 3:
|
|
4877
4877
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4878
|
-
return [3
|
|
4878
|
+
return [3, 9];
|
|
4879
4879
|
case 4:
|
|
4880
4880
|
_d = [{}];
|
|
4881
|
-
return [4
|
|
4881
|
+
return [4, deserializeAws_restXmlInvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
4882
4882
|
case 5:
|
|
4883
4883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4884
|
-
return [3
|
|
4884
|
+
return [3, 9];
|
|
4885
4885
|
case 6:
|
|
4886
4886
|
_e = [{}];
|
|
4887
|
-
return [4
|
|
4887
|
+
return [4, deserializeAws_restXmlInvalidRequestExceptionResponse(parsedOutput, context)];
|
|
4888
4888
|
case 7:
|
|
4889
4889
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4890
|
-
return [3
|
|
4890
|
+
return [3, 9];
|
|
4891
4891
|
case 8:
|
|
4892
4892
|
parsedBody = parsedOutput.body;
|
|
4893
4893
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -4897,7 +4897,7 @@ var deserializeAws_restXmlListJobsCommandError = function (output, context) { re
|
|
|
4897
4897
|
message = response.message || response.Message || errorCode;
|
|
4898
4898
|
response.message = message;
|
|
4899
4899
|
delete response.Message;
|
|
4900
|
-
return [2
|
|
4900
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4901
4901
|
}
|
|
4902
4902
|
});
|
|
4903
4903
|
}); };
|
|
@@ -4907,7 +4907,7 @@ export var deserializeAws_restXmlListMultiRegionAccessPointsCommand = function (
|
|
|
4907
4907
|
switch (_c.label) {
|
|
4908
4908
|
case 0:
|
|
4909
4909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4910
|
-
return [2
|
|
4910
|
+
return [2, deserializeAws_restXmlListMultiRegionAccessPointsCommandError(output, context)];
|
|
4911
4911
|
}
|
|
4912
4912
|
contents = {
|
|
4913
4913
|
$metadata: deserializeMetadata(output),
|
|
@@ -4916,7 +4916,7 @@ export var deserializeAws_restXmlListMultiRegionAccessPointsCommand = function (
|
|
|
4916
4916
|
};
|
|
4917
4917
|
_a = __expectNonNull;
|
|
4918
4918
|
_b = __expectObject;
|
|
4919
|
-
return [4
|
|
4919
|
+
return [4, parseBody(output.body, context)];
|
|
4920
4920
|
case 1:
|
|
4921
4921
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4922
4922
|
if (data.AccessPoints === "") {
|
|
@@ -4928,7 +4928,7 @@ export var deserializeAws_restXmlListMultiRegionAccessPointsCommand = function (
|
|
|
4928
4928
|
if (data["NextToken"] !== undefined) {
|
|
4929
4929
|
contents.NextToken = __expectString(data["NextToken"]);
|
|
4930
4930
|
}
|
|
4931
|
-
return [2
|
|
4931
|
+
return [2, Promise.resolve(contents)];
|
|
4932
4932
|
}
|
|
4933
4933
|
});
|
|
4934
4934
|
}); };
|
|
@@ -4940,7 +4940,7 @@ var deserializeAws_restXmlListMultiRegionAccessPointsCommandError = function (ou
|
|
|
4940
4940
|
case 0:
|
|
4941
4941
|
_a = [__assign({}, output)];
|
|
4942
4942
|
_b = {};
|
|
4943
|
-
return [4
|
|
4943
|
+
return [4, parseBody(output.body, context)];
|
|
4944
4944
|
case 1:
|
|
4945
4945
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4946
4946
|
errorCode = "UnknownError";
|
|
@@ -4954,7 +4954,7 @@ var deserializeAws_restXmlListMultiRegionAccessPointsCommandError = function (ou
|
|
|
4954
4954
|
message = response.message || response.Message || errorCode;
|
|
4955
4955
|
response.message = message;
|
|
4956
4956
|
delete response.Message;
|
|
4957
|
-
return [2
|
|
4957
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4958
4958
|
}
|
|
4959
4959
|
});
|
|
4960
4960
|
}); };
|
|
@@ -4964,7 +4964,7 @@ export var deserializeAws_restXmlListRegionalBucketsCommand = function (output,
|
|
|
4964
4964
|
switch (_c.label) {
|
|
4965
4965
|
case 0:
|
|
4966
4966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4967
|
-
return [2
|
|
4967
|
+
return [2, deserializeAws_restXmlListRegionalBucketsCommandError(output, context)];
|
|
4968
4968
|
}
|
|
4969
4969
|
contents = {
|
|
4970
4970
|
$metadata: deserializeMetadata(output),
|
|
@@ -4973,7 +4973,7 @@ export var deserializeAws_restXmlListRegionalBucketsCommand = function (output,
|
|
|
4973
4973
|
};
|
|
4974
4974
|
_a = __expectNonNull;
|
|
4975
4975
|
_b = __expectObject;
|
|
4976
|
-
return [4
|
|
4976
|
+
return [4, parseBody(output.body, context)];
|
|
4977
4977
|
case 1:
|
|
4978
4978
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4979
4979
|
if (data["NextToken"] !== undefined) {
|
|
@@ -4985,7 +4985,7 @@ export var deserializeAws_restXmlListRegionalBucketsCommand = function (output,
|
|
|
4985
4985
|
if (data["RegionalBucketList"] !== undefined && data["RegionalBucketList"]["RegionalBucket"] !== undefined) {
|
|
4986
4986
|
contents.RegionalBucketList = deserializeAws_restXmlRegionalBucketList(__getArrayIfSingleItem(data["RegionalBucketList"]["RegionalBucket"]), context);
|
|
4987
4987
|
}
|
|
4988
|
-
return [2
|
|
4988
|
+
return [2, Promise.resolve(contents)];
|
|
4989
4989
|
}
|
|
4990
4990
|
});
|
|
4991
4991
|
}); };
|
|
@@ -4997,7 +4997,7 @@ var deserializeAws_restXmlListRegionalBucketsCommandError = function (output, co
|
|
|
4997
4997
|
case 0:
|
|
4998
4998
|
_a = [__assign({}, output)];
|
|
4999
4999
|
_b = {};
|
|
5000
|
-
return [4
|
|
5000
|
+
return [4, parseBody(output.body, context)];
|
|
5001
5001
|
case 1:
|
|
5002
5002
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5003
5003
|
errorCode = "UnknownError";
|
|
@@ -5011,7 +5011,7 @@ var deserializeAws_restXmlListRegionalBucketsCommandError = function (output, co
|
|
|
5011
5011
|
message = response.message || response.Message || errorCode;
|
|
5012
5012
|
response.message = message;
|
|
5013
5013
|
delete response.Message;
|
|
5014
|
-
return [2
|
|
5014
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5015
5015
|
}
|
|
5016
5016
|
});
|
|
5017
5017
|
}); };
|
|
@@ -5021,7 +5021,7 @@ export var deserializeAws_restXmlListStorageLensConfigurationsCommand = function
|
|
|
5021
5021
|
switch (_c.label) {
|
|
5022
5022
|
case 0:
|
|
5023
5023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5024
|
-
return [2
|
|
5024
|
+
return [2, deserializeAws_restXmlListStorageLensConfigurationsCommandError(output, context)];
|
|
5025
5025
|
}
|
|
5026
5026
|
contents = {
|
|
5027
5027
|
$metadata: deserializeMetadata(output),
|
|
@@ -5030,7 +5030,7 @@ export var deserializeAws_restXmlListStorageLensConfigurationsCommand = function
|
|
|
5030
5030
|
};
|
|
5031
5031
|
_a = __expectNonNull;
|
|
5032
5032
|
_b = __expectObject;
|
|
5033
|
-
return [4
|
|
5033
|
+
return [4, parseBody(output.body, context)];
|
|
5034
5034
|
case 1:
|
|
5035
5035
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5036
5036
|
if (data["NextToken"] !== undefined) {
|
|
@@ -5042,7 +5042,7 @@ export var deserializeAws_restXmlListStorageLensConfigurationsCommand = function
|
|
|
5042
5042
|
if (data["StorageLensConfigurationList"] !== undefined) {
|
|
5043
5043
|
contents.StorageLensConfigurationList = deserializeAws_restXmlStorageLensConfigurationList(__getArrayIfSingleItem(data["StorageLensConfigurationList"]), context);
|
|
5044
5044
|
}
|
|
5045
|
-
return [2
|
|
5045
|
+
return [2, Promise.resolve(contents)];
|
|
5046
5046
|
}
|
|
5047
5047
|
});
|
|
5048
5048
|
}); };
|
|
@@ -5054,7 +5054,7 @@ var deserializeAws_restXmlListStorageLensConfigurationsCommandError = function (
|
|
|
5054
5054
|
case 0:
|
|
5055
5055
|
_a = [__assign({}, output)];
|
|
5056
5056
|
_b = {};
|
|
5057
|
-
return [4
|
|
5057
|
+
return [4, parseBody(output.body, context)];
|
|
5058
5058
|
case 1:
|
|
5059
5059
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5060
5060
|
errorCode = "UnknownError";
|
|
@@ -5068,7 +5068,7 @@ var deserializeAws_restXmlListStorageLensConfigurationsCommandError = function (
|
|
|
5068
5068
|
message = response.message || response.Message || errorCode;
|
|
5069
5069
|
response.message = message;
|
|
5070
5070
|
delete response.Message;
|
|
5071
|
-
return [2
|
|
5071
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5072
5072
|
}
|
|
5073
5073
|
});
|
|
5074
5074
|
}); };
|
|
@@ -5078,15 +5078,15 @@ export var deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaComma
|
|
|
5078
5078
|
switch (_a.label) {
|
|
5079
5079
|
case 0:
|
|
5080
5080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5081
|
-
return [2
|
|
5081
|
+
return [2, deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommandError(output, context)];
|
|
5082
5082
|
}
|
|
5083
5083
|
contents = {
|
|
5084
5084
|
$metadata: deserializeMetadata(output),
|
|
5085
5085
|
};
|
|
5086
|
-
return [4
|
|
5086
|
+
return [4, collectBody(output.body, context)];
|
|
5087
5087
|
case 1:
|
|
5088
5088
|
_a.sent();
|
|
5089
|
-
return [2
|
|
5089
|
+
return [2, Promise.resolve(contents)];
|
|
5090
5090
|
}
|
|
5091
5091
|
});
|
|
5092
5092
|
}); };
|
|
@@ -5098,7 +5098,7 @@ var deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommandError
|
|
|
5098
5098
|
case 0:
|
|
5099
5099
|
_a = [__assign({}, output)];
|
|
5100
5100
|
_b = {};
|
|
5101
|
-
return [4
|
|
5101
|
+
return [4, parseBody(output.body, context)];
|
|
5102
5102
|
case 1:
|
|
5103
5103
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5104
5104
|
errorCode = "UnknownError";
|
|
@@ -5112,7 +5112,7 @@ var deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommandError
|
|
|
5112
5112
|
message = response.message || response.Message || errorCode;
|
|
5113
5113
|
response.message = message;
|
|
5114
5114
|
delete response.Message;
|
|
5115
|
-
return [2
|
|
5115
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5116
5116
|
}
|
|
5117
5117
|
});
|
|
5118
5118
|
}); };
|
|
@@ -5122,15 +5122,15 @@ export var deserializeAws_restXmlPutAccessPointPolicyCommand = function (output,
|
|
|
5122
5122
|
switch (_a.label) {
|
|
5123
5123
|
case 0:
|
|
5124
5124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5125
|
-
return [2
|
|
5125
|
+
return [2, deserializeAws_restXmlPutAccessPointPolicyCommandError(output, context)];
|
|
5126
5126
|
}
|
|
5127
5127
|
contents = {
|
|
5128
5128
|
$metadata: deserializeMetadata(output),
|
|
5129
5129
|
};
|
|
5130
|
-
return [4
|
|
5130
|
+
return [4, collectBody(output.body, context)];
|
|
5131
5131
|
case 1:
|
|
5132
5132
|
_a.sent();
|
|
5133
|
-
return [2
|
|
5133
|
+
return [2, Promise.resolve(contents)];
|
|
5134
5134
|
}
|
|
5135
5135
|
});
|
|
5136
5136
|
}); };
|
|
@@ -5142,7 +5142,7 @@ var deserializeAws_restXmlPutAccessPointPolicyCommandError = function (output, c
|
|
|
5142
5142
|
case 0:
|
|
5143
5143
|
_a = [__assign({}, output)];
|
|
5144
5144
|
_b = {};
|
|
5145
|
-
return [4
|
|
5145
|
+
return [4, parseBody(output.body, context)];
|
|
5146
5146
|
case 1:
|
|
5147
5147
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5148
5148
|
errorCode = "UnknownError";
|
|
@@ -5156,7 +5156,7 @@ var deserializeAws_restXmlPutAccessPointPolicyCommandError = function (output, c
|
|
|
5156
5156
|
message = response.message || response.Message || errorCode;
|
|
5157
5157
|
response.message = message;
|
|
5158
5158
|
delete response.Message;
|
|
5159
|
-
return [2
|
|
5159
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5160
5160
|
}
|
|
5161
5161
|
});
|
|
5162
5162
|
}); };
|
|
@@ -5166,15 +5166,15 @@ export var deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = fu
|
|
|
5166
5166
|
switch (_a.label) {
|
|
5167
5167
|
case 0:
|
|
5168
5168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5169
|
-
return [2
|
|
5169
|
+
return [2, deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommandError(output, context)];
|
|
5170
5170
|
}
|
|
5171
5171
|
contents = {
|
|
5172
5172
|
$metadata: deserializeMetadata(output),
|
|
5173
5173
|
};
|
|
5174
|
-
return [4
|
|
5174
|
+
return [4, collectBody(output.body, context)];
|
|
5175
5175
|
case 1:
|
|
5176
5176
|
_a.sent();
|
|
5177
|
-
return [2
|
|
5177
|
+
return [2, Promise.resolve(contents)];
|
|
5178
5178
|
}
|
|
5179
5179
|
});
|
|
5180
5180
|
}); };
|
|
@@ -5186,7 +5186,7 @@ var deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommandError = func
|
|
|
5186
5186
|
case 0:
|
|
5187
5187
|
_a = [__assign({}, output)];
|
|
5188
5188
|
_b = {};
|
|
5189
|
-
return [4
|
|
5189
|
+
return [4, parseBody(output.body, context)];
|
|
5190
5190
|
case 1:
|
|
5191
5191
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5192
5192
|
errorCode = "UnknownError";
|
|
@@ -5200,7 +5200,7 @@ var deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommandError = func
|
|
|
5200
5200
|
message = response.message || response.Message || errorCode;
|
|
5201
5201
|
response.message = message;
|
|
5202
5202
|
delete response.Message;
|
|
5203
|
-
return [2
|
|
5203
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5204
5204
|
}
|
|
5205
5205
|
});
|
|
5206
5206
|
}); };
|
|
@@ -5210,15 +5210,15 @@ export var deserializeAws_restXmlPutBucketLifecycleConfigurationCommand = functi
|
|
|
5210
5210
|
switch (_a.label) {
|
|
5211
5211
|
case 0:
|
|
5212
5212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5213
|
-
return [2
|
|
5213
|
+
return [2, deserializeAws_restXmlPutBucketLifecycleConfigurationCommandError(output, context)];
|
|
5214
5214
|
}
|
|
5215
5215
|
contents = {
|
|
5216
5216
|
$metadata: deserializeMetadata(output),
|
|
5217
5217
|
};
|
|
5218
|
-
return [4
|
|
5218
|
+
return [4, collectBody(output.body, context)];
|
|
5219
5219
|
case 1:
|
|
5220
5220
|
_a.sent();
|
|
5221
|
-
return [2
|
|
5221
|
+
return [2, Promise.resolve(contents)];
|
|
5222
5222
|
}
|
|
5223
5223
|
});
|
|
5224
5224
|
}); };
|
|
@@ -5230,7 +5230,7 @@ var deserializeAws_restXmlPutBucketLifecycleConfigurationCommandError = function
|
|
|
5230
5230
|
case 0:
|
|
5231
5231
|
_a = [__assign({}, output)];
|
|
5232
5232
|
_b = {};
|
|
5233
|
-
return [4
|
|
5233
|
+
return [4, parseBody(output.body, context)];
|
|
5234
5234
|
case 1:
|
|
5235
5235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5236
5236
|
errorCode = "UnknownError";
|
|
@@ -5244,7 +5244,7 @@ var deserializeAws_restXmlPutBucketLifecycleConfigurationCommandError = function
|
|
|
5244
5244
|
message = response.message || response.Message || errorCode;
|
|
5245
5245
|
response.message = message;
|
|
5246
5246
|
delete response.Message;
|
|
5247
|
-
return [2
|
|
5247
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5248
5248
|
}
|
|
5249
5249
|
});
|
|
5250
5250
|
}); };
|
|
@@ -5254,15 +5254,15 @@ export var deserializeAws_restXmlPutBucketPolicyCommand = function (output, cont
|
|
|
5254
5254
|
switch (_a.label) {
|
|
5255
5255
|
case 0:
|
|
5256
5256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5257
|
-
return [2
|
|
5257
|
+
return [2, deserializeAws_restXmlPutBucketPolicyCommandError(output, context)];
|
|
5258
5258
|
}
|
|
5259
5259
|
contents = {
|
|
5260
5260
|
$metadata: deserializeMetadata(output),
|
|
5261
5261
|
};
|
|
5262
|
-
return [4
|
|
5262
|
+
return [4, collectBody(output.body, context)];
|
|
5263
5263
|
case 1:
|
|
5264
5264
|
_a.sent();
|
|
5265
|
-
return [2
|
|
5265
|
+
return [2, Promise.resolve(contents)];
|
|
5266
5266
|
}
|
|
5267
5267
|
});
|
|
5268
5268
|
}); };
|
|
@@ -5274,7 +5274,7 @@ var deserializeAws_restXmlPutBucketPolicyCommandError = function (output, contex
|
|
|
5274
5274
|
case 0:
|
|
5275
5275
|
_a = [__assign({}, output)];
|
|
5276
5276
|
_b = {};
|
|
5277
|
-
return [4
|
|
5277
|
+
return [4, parseBody(output.body, context)];
|
|
5278
5278
|
case 1:
|
|
5279
5279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5280
5280
|
errorCode = "UnknownError";
|
|
@@ -5288,7 +5288,7 @@ var deserializeAws_restXmlPutBucketPolicyCommandError = function (output, contex
|
|
|
5288
5288
|
message = response.message || response.Message || errorCode;
|
|
5289
5289
|
response.message = message;
|
|
5290
5290
|
delete response.Message;
|
|
5291
|
-
return [2
|
|
5291
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5292
5292
|
}
|
|
5293
5293
|
});
|
|
5294
5294
|
}); };
|
|
@@ -5298,15 +5298,15 @@ export var deserializeAws_restXmlPutBucketTaggingCommand = function (output, con
|
|
|
5298
5298
|
switch (_a.label) {
|
|
5299
5299
|
case 0:
|
|
5300
5300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5301
|
-
return [2
|
|
5301
|
+
return [2, deserializeAws_restXmlPutBucketTaggingCommandError(output, context)];
|
|
5302
5302
|
}
|
|
5303
5303
|
contents = {
|
|
5304
5304
|
$metadata: deserializeMetadata(output),
|
|
5305
5305
|
};
|
|
5306
|
-
return [4
|
|
5306
|
+
return [4, collectBody(output.body, context)];
|
|
5307
5307
|
case 1:
|
|
5308
5308
|
_a.sent();
|
|
5309
|
-
return [2
|
|
5309
|
+
return [2, Promise.resolve(contents)];
|
|
5310
5310
|
}
|
|
5311
5311
|
});
|
|
5312
5312
|
}); };
|
|
@@ -5318,7 +5318,7 @@ var deserializeAws_restXmlPutBucketTaggingCommandError = function (output, conte
|
|
|
5318
5318
|
case 0:
|
|
5319
5319
|
_a = [__assign({}, output)];
|
|
5320
5320
|
_b = {};
|
|
5321
|
-
return [4
|
|
5321
|
+
return [4, parseBody(output.body, context)];
|
|
5322
5322
|
case 1:
|
|
5323
5323
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5324
5324
|
errorCode = "UnknownError";
|
|
@@ -5332,7 +5332,7 @@ var deserializeAws_restXmlPutBucketTaggingCommandError = function (output, conte
|
|
|
5332
5332
|
message = response.message || response.Message || errorCode;
|
|
5333
5333
|
response.message = message;
|
|
5334
5334
|
delete response.Message;
|
|
5335
|
-
return [2
|
|
5335
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5336
5336
|
}
|
|
5337
5337
|
});
|
|
5338
5338
|
}); };
|
|
@@ -5342,15 +5342,15 @@ export var deserializeAws_restXmlPutJobTaggingCommand = function (output, contex
|
|
|
5342
5342
|
switch (_a.label) {
|
|
5343
5343
|
case 0:
|
|
5344
5344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5345
|
-
return [2
|
|
5345
|
+
return [2, deserializeAws_restXmlPutJobTaggingCommandError(output, context)];
|
|
5346
5346
|
}
|
|
5347
5347
|
contents = {
|
|
5348
5348
|
$metadata: deserializeMetadata(output),
|
|
5349
5349
|
};
|
|
5350
|
-
return [4
|
|
5350
|
+
return [4, collectBody(output.body, context)];
|
|
5351
5351
|
case 1:
|
|
5352
5352
|
_a.sent();
|
|
5353
|
-
return [2
|
|
5353
|
+
return [2, Promise.resolve(contents)];
|
|
5354
5354
|
}
|
|
5355
5355
|
});
|
|
5356
5356
|
}); };
|
|
@@ -5362,47 +5362,47 @@ var deserializeAws_restXmlPutJobTaggingCommandError = function (output, context)
|
|
|
5362
5362
|
case 0:
|
|
5363
5363
|
_a = [__assign({}, output)];
|
|
5364
5364
|
_g = {};
|
|
5365
|
-
return [4
|
|
5365
|
+
return [4, parseBody(output.body, context)];
|
|
5366
5366
|
case 1:
|
|
5367
5367
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
5368
5368
|
errorCode = "UnknownError";
|
|
5369
5369
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5370
5370
|
_b = errorCode;
|
|
5371
5371
|
switch (_b) {
|
|
5372
|
-
case "InternalServiceException": return [3
|
|
5373
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
5374
|
-
case "NotFoundException": return [3
|
|
5375
|
-
case "com.amazonaws.s3control#NotFoundException": return [3
|
|
5376
|
-
case "TooManyRequestsException": return [3
|
|
5377
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
5378
|
-
case "TooManyTagsException": return [3
|
|
5379
|
-
case "com.amazonaws.s3control#TooManyTagsException": return [3
|
|
5380
|
-
}
|
|
5381
|
-
return [3
|
|
5372
|
+
case "InternalServiceException": return [3, 2];
|
|
5373
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 2];
|
|
5374
|
+
case "NotFoundException": return [3, 4];
|
|
5375
|
+
case "com.amazonaws.s3control#NotFoundException": return [3, 4];
|
|
5376
|
+
case "TooManyRequestsException": return [3, 6];
|
|
5377
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 6];
|
|
5378
|
+
case "TooManyTagsException": return [3, 8];
|
|
5379
|
+
case "com.amazonaws.s3control#TooManyTagsException": return [3, 8];
|
|
5380
|
+
}
|
|
5381
|
+
return [3, 10];
|
|
5382
5382
|
case 2:
|
|
5383
5383
|
_c = [{}];
|
|
5384
|
-
return [4
|
|
5384
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
5385
5385
|
case 3:
|
|
5386
5386
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5387
|
-
return [3
|
|
5387
|
+
return [3, 11];
|
|
5388
5388
|
case 4:
|
|
5389
5389
|
_d = [{}];
|
|
5390
|
-
return [4
|
|
5390
|
+
return [4, deserializeAws_restXmlNotFoundExceptionResponse(parsedOutput, context)];
|
|
5391
5391
|
case 5:
|
|
5392
5392
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5393
|
-
return [3
|
|
5393
|
+
return [3, 11];
|
|
5394
5394
|
case 6:
|
|
5395
5395
|
_e = [{}];
|
|
5396
|
-
return [4
|
|
5396
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
5397
5397
|
case 7:
|
|
5398
5398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5399
|
-
return [3
|
|
5399
|
+
return [3, 11];
|
|
5400
5400
|
case 8:
|
|
5401
5401
|
_f = [{}];
|
|
5402
|
-
return [4
|
|
5402
|
+
return [4, deserializeAws_restXmlTooManyTagsExceptionResponse(parsedOutput, context)];
|
|
5403
5403
|
case 9:
|
|
5404
5404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5405
|
-
return [3
|
|
5405
|
+
return [3, 11];
|
|
5406
5406
|
case 10:
|
|
5407
5407
|
parsedBody = parsedOutput.body;
|
|
5408
5408
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -5412,7 +5412,7 @@ var deserializeAws_restXmlPutJobTaggingCommandError = function (output, context)
|
|
|
5412
5412
|
message = response.message || response.Message || errorCode;
|
|
5413
5413
|
response.message = message;
|
|
5414
5414
|
delete response.Message;
|
|
5415
|
-
return [2
|
|
5415
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5416
5416
|
}
|
|
5417
5417
|
});
|
|
5418
5418
|
}); };
|
|
@@ -5422,7 +5422,7 @@ export var deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = functi
|
|
|
5422
5422
|
switch (_c.label) {
|
|
5423
5423
|
case 0:
|
|
5424
5424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5425
|
-
return [2
|
|
5425
|
+
return [2, deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommandError(output, context)];
|
|
5426
5426
|
}
|
|
5427
5427
|
contents = {
|
|
5428
5428
|
$metadata: deserializeMetadata(output),
|
|
@@ -5430,13 +5430,13 @@ export var deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = functi
|
|
|
5430
5430
|
};
|
|
5431
5431
|
_a = __expectNonNull;
|
|
5432
5432
|
_b = __expectObject;
|
|
5433
|
-
return [4
|
|
5433
|
+
return [4, parseBody(output.body, context)];
|
|
5434
5434
|
case 1:
|
|
5435
5435
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5436
5436
|
if (data["RequestTokenARN"] !== undefined) {
|
|
5437
5437
|
contents.RequestTokenARN = __expectString(data["RequestTokenARN"]);
|
|
5438
5438
|
}
|
|
5439
|
-
return [2
|
|
5439
|
+
return [2, Promise.resolve(contents)];
|
|
5440
5440
|
}
|
|
5441
5441
|
});
|
|
5442
5442
|
}); };
|
|
@@ -5448,7 +5448,7 @@ var deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommandError = function
|
|
|
5448
5448
|
case 0:
|
|
5449
5449
|
_a = [__assign({}, output)];
|
|
5450
5450
|
_b = {};
|
|
5451
|
-
return [4
|
|
5451
|
+
return [4, parseBody(output.body, context)];
|
|
5452
5452
|
case 1:
|
|
5453
5453
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5454
5454
|
errorCode = "UnknownError";
|
|
@@ -5462,7 +5462,7 @@ var deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommandError = function
|
|
|
5462
5462
|
message = response.message || response.Message || errorCode;
|
|
5463
5463
|
response.message = message;
|
|
5464
5464
|
delete response.Message;
|
|
5465
|
-
return [2
|
|
5465
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5466
5466
|
}
|
|
5467
5467
|
});
|
|
5468
5468
|
}); };
|
|
@@ -5472,15 +5472,15 @@ export var deserializeAws_restXmlPutPublicAccessBlockCommand = function (output,
|
|
|
5472
5472
|
switch (_a.label) {
|
|
5473
5473
|
case 0:
|
|
5474
5474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5475
|
-
return [2
|
|
5475
|
+
return [2, deserializeAws_restXmlPutPublicAccessBlockCommandError(output, context)];
|
|
5476
5476
|
}
|
|
5477
5477
|
contents = {
|
|
5478
5478
|
$metadata: deserializeMetadata(output),
|
|
5479
5479
|
};
|
|
5480
|
-
return [4
|
|
5480
|
+
return [4, collectBody(output.body, context)];
|
|
5481
5481
|
case 1:
|
|
5482
5482
|
_a.sent();
|
|
5483
|
-
return [2
|
|
5483
|
+
return [2, Promise.resolve(contents)];
|
|
5484
5484
|
}
|
|
5485
5485
|
});
|
|
5486
5486
|
}); };
|
|
@@ -5492,7 +5492,7 @@ var deserializeAws_restXmlPutPublicAccessBlockCommandError = function (output, c
|
|
|
5492
5492
|
case 0:
|
|
5493
5493
|
_a = [__assign({}, output)];
|
|
5494
5494
|
_b = {};
|
|
5495
|
-
return [4
|
|
5495
|
+
return [4, parseBody(output.body, context)];
|
|
5496
5496
|
case 1:
|
|
5497
5497
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5498
5498
|
errorCode = "UnknownError";
|
|
@@ -5506,7 +5506,7 @@ var deserializeAws_restXmlPutPublicAccessBlockCommandError = function (output, c
|
|
|
5506
5506
|
message = response.message || response.Message || errorCode;
|
|
5507
5507
|
response.message = message;
|
|
5508
5508
|
delete response.Message;
|
|
5509
|
-
return [2
|
|
5509
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5510
5510
|
}
|
|
5511
5511
|
});
|
|
5512
5512
|
}); };
|
|
@@ -5516,15 +5516,15 @@ export var deserializeAws_restXmlPutStorageLensConfigurationCommand = function (
|
|
|
5516
5516
|
switch (_a.label) {
|
|
5517
5517
|
case 0:
|
|
5518
5518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5519
|
-
return [2
|
|
5519
|
+
return [2, deserializeAws_restXmlPutStorageLensConfigurationCommandError(output, context)];
|
|
5520
5520
|
}
|
|
5521
5521
|
contents = {
|
|
5522
5522
|
$metadata: deserializeMetadata(output),
|
|
5523
5523
|
};
|
|
5524
|
-
return [4
|
|
5524
|
+
return [4, collectBody(output.body, context)];
|
|
5525
5525
|
case 1:
|
|
5526
5526
|
_a.sent();
|
|
5527
|
-
return [2
|
|
5527
|
+
return [2, Promise.resolve(contents)];
|
|
5528
5528
|
}
|
|
5529
5529
|
});
|
|
5530
5530
|
}); };
|
|
@@ -5536,7 +5536,7 @@ var deserializeAws_restXmlPutStorageLensConfigurationCommandError = function (ou
|
|
|
5536
5536
|
case 0:
|
|
5537
5537
|
_a = [__assign({}, output)];
|
|
5538
5538
|
_b = {};
|
|
5539
|
-
return [4
|
|
5539
|
+
return [4, parseBody(output.body, context)];
|
|
5540
5540
|
case 1:
|
|
5541
5541
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5542
5542
|
errorCode = "UnknownError";
|
|
@@ -5550,7 +5550,7 @@ var deserializeAws_restXmlPutStorageLensConfigurationCommandError = function (ou
|
|
|
5550
5550
|
message = response.message || response.Message || errorCode;
|
|
5551
5551
|
response.message = message;
|
|
5552
5552
|
delete response.Message;
|
|
5553
|
-
return [2
|
|
5553
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5554
5554
|
}
|
|
5555
5555
|
});
|
|
5556
5556
|
}); };
|
|
@@ -5560,15 +5560,15 @@ export var deserializeAws_restXmlPutStorageLensConfigurationTaggingCommand = fun
|
|
|
5560
5560
|
switch (_a.label) {
|
|
5561
5561
|
case 0:
|
|
5562
5562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5563
|
-
return [2
|
|
5563
|
+
return [2, deserializeAws_restXmlPutStorageLensConfigurationTaggingCommandError(output, context)];
|
|
5564
5564
|
}
|
|
5565
5565
|
contents = {
|
|
5566
5566
|
$metadata: deserializeMetadata(output),
|
|
5567
5567
|
};
|
|
5568
|
-
return [4
|
|
5568
|
+
return [4, collectBody(output.body, context)];
|
|
5569
5569
|
case 1:
|
|
5570
5570
|
_a.sent();
|
|
5571
|
-
return [2
|
|
5571
|
+
return [2, Promise.resolve(contents)];
|
|
5572
5572
|
}
|
|
5573
5573
|
});
|
|
5574
5574
|
}); };
|
|
@@ -5580,7 +5580,7 @@ var deserializeAws_restXmlPutStorageLensConfigurationTaggingCommandError = funct
|
|
|
5580
5580
|
case 0:
|
|
5581
5581
|
_a = [__assign({}, output)];
|
|
5582
5582
|
_b = {};
|
|
5583
|
-
return [4
|
|
5583
|
+
return [4, parseBody(output.body, context)];
|
|
5584
5584
|
case 1:
|
|
5585
5585
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5586
5586
|
errorCode = "UnknownError";
|
|
@@ -5594,7 +5594,7 @@ var deserializeAws_restXmlPutStorageLensConfigurationTaggingCommandError = funct
|
|
|
5594
5594
|
message = response.message || response.Message || errorCode;
|
|
5595
5595
|
response.message = message;
|
|
5596
5596
|
delete response.Message;
|
|
5597
|
-
return [2
|
|
5597
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5598
5598
|
}
|
|
5599
5599
|
});
|
|
5600
5600
|
}); };
|
|
@@ -5604,7 +5604,7 @@ export var deserializeAws_restXmlUpdateJobPriorityCommand = function (output, co
|
|
|
5604
5604
|
switch (_c.label) {
|
|
5605
5605
|
case 0:
|
|
5606
5606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5607
|
-
return [2
|
|
5607
|
+
return [2, deserializeAws_restXmlUpdateJobPriorityCommandError(output, context)];
|
|
5608
5608
|
}
|
|
5609
5609
|
contents = {
|
|
5610
5610
|
$metadata: deserializeMetadata(output),
|
|
@@ -5613,7 +5613,7 @@ export var deserializeAws_restXmlUpdateJobPriorityCommand = function (output, co
|
|
|
5613
5613
|
};
|
|
5614
5614
|
_a = __expectNonNull;
|
|
5615
5615
|
_b = __expectObject;
|
|
5616
|
-
return [4
|
|
5616
|
+
return [4, parseBody(output.body, context)];
|
|
5617
5617
|
case 1:
|
|
5618
5618
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5619
5619
|
if (data["JobId"] !== undefined) {
|
|
@@ -5622,7 +5622,7 @@ export var deserializeAws_restXmlUpdateJobPriorityCommand = function (output, co
|
|
|
5622
5622
|
if (data["Priority"] !== undefined) {
|
|
5623
5623
|
contents.Priority = __strictParseInt32(data["Priority"]);
|
|
5624
5624
|
}
|
|
5625
|
-
return [2
|
|
5625
|
+
return [2, Promise.resolve(contents)];
|
|
5626
5626
|
}
|
|
5627
5627
|
});
|
|
5628
5628
|
}); };
|
|
@@ -5634,47 +5634,47 @@ var deserializeAws_restXmlUpdateJobPriorityCommandError = function (output, cont
|
|
|
5634
5634
|
case 0:
|
|
5635
5635
|
_a = [__assign({}, output)];
|
|
5636
5636
|
_g = {};
|
|
5637
|
-
return [4
|
|
5637
|
+
return [4, parseBody(output.body, context)];
|
|
5638
5638
|
case 1:
|
|
5639
5639
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
5640
5640
|
errorCode = "UnknownError";
|
|
5641
5641
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5642
5642
|
_b = errorCode;
|
|
5643
5643
|
switch (_b) {
|
|
5644
|
-
case "BadRequestException": return [3
|
|
5645
|
-
case "com.amazonaws.s3control#BadRequestException": return [3
|
|
5646
|
-
case "InternalServiceException": return [3
|
|
5647
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
5648
|
-
case "NotFoundException": return [3
|
|
5649
|
-
case "com.amazonaws.s3control#NotFoundException": return [3
|
|
5650
|
-
case "TooManyRequestsException": return [3
|
|
5651
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
5652
|
-
}
|
|
5653
|
-
return [3
|
|
5644
|
+
case "BadRequestException": return [3, 2];
|
|
5645
|
+
case "com.amazonaws.s3control#BadRequestException": return [3, 2];
|
|
5646
|
+
case "InternalServiceException": return [3, 4];
|
|
5647
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 4];
|
|
5648
|
+
case "NotFoundException": return [3, 6];
|
|
5649
|
+
case "com.amazonaws.s3control#NotFoundException": return [3, 6];
|
|
5650
|
+
case "TooManyRequestsException": return [3, 8];
|
|
5651
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 8];
|
|
5652
|
+
}
|
|
5653
|
+
return [3, 10];
|
|
5654
5654
|
case 2:
|
|
5655
5655
|
_c = [{}];
|
|
5656
|
-
return [4
|
|
5656
|
+
return [4, deserializeAws_restXmlBadRequestExceptionResponse(parsedOutput, context)];
|
|
5657
5657
|
case 3:
|
|
5658
5658
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5659
|
-
return [3
|
|
5659
|
+
return [3, 11];
|
|
5660
5660
|
case 4:
|
|
5661
5661
|
_d = [{}];
|
|
5662
|
-
return [4
|
|
5662
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
5663
5663
|
case 5:
|
|
5664
5664
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5665
|
-
return [3
|
|
5665
|
+
return [3, 11];
|
|
5666
5666
|
case 6:
|
|
5667
5667
|
_e = [{}];
|
|
5668
|
-
return [4
|
|
5668
|
+
return [4, deserializeAws_restXmlNotFoundExceptionResponse(parsedOutput, context)];
|
|
5669
5669
|
case 7:
|
|
5670
5670
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5671
|
-
return [3
|
|
5671
|
+
return [3, 11];
|
|
5672
5672
|
case 8:
|
|
5673
5673
|
_f = [{}];
|
|
5674
|
-
return [4
|
|
5674
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
5675
5675
|
case 9:
|
|
5676
5676
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5677
|
-
return [3
|
|
5677
|
+
return [3, 11];
|
|
5678
5678
|
case 10:
|
|
5679
5679
|
parsedBody = parsedOutput.body;
|
|
5680
5680
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -5684,7 +5684,7 @@ var deserializeAws_restXmlUpdateJobPriorityCommandError = function (output, cont
|
|
|
5684
5684
|
message = response.message || response.Message || errorCode;
|
|
5685
5685
|
response.message = message;
|
|
5686
5686
|
delete response.Message;
|
|
5687
|
-
return [2
|
|
5687
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5688
5688
|
}
|
|
5689
5689
|
});
|
|
5690
5690
|
}); };
|
|
@@ -5694,7 +5694,7 @@ export var deserializeAws_restXmlUpdateJobStatusCommand = function (output, cont
|
|
|
5694
5694
|
switch (_c.label) {
|
|
5695
5695
|
case 0:
|
|
5696
5696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5697
|
-
return [2
|
|
5697
|
+
return [2, deserializeAws_restXmlUpdateJobStatusCommandError(output, context)];
|
|
5698
5698
|
}
|
|
5699
5699
|
contents = {
|
|
5700
5700
|
$metadata: deserializeMetadata(output),
|
|
@@ -5704,7 +5704,7 @@ export var deserializeAws_restXmlUpdateJobStatusCommand = function (output, cont
|
|
|
5704
5704
|
};
|
|
5705
5705
|
_a = __expectNonNull;
|
|
5706
5706
|
_b = __expectObject;
|
|
5707
|
-
return [4
|
|
5707
|
+
return [4, parseBody(output.body, context)];
|
|
5708
5708
|
case 1:
|
|
5709
5709
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5710
5710
|
if (data["JobId"] !== undefined) {
|
|
@@ -5716,7 +5716,7 @@ export var deserializeAws_restXmlUpdateJobStatusCommand = function (output, cont
|
|
|
5716
5716
|
if (data["StatusUpdateReason"] !== undefined) {
|
|
5717
5717
|
contents.StatusUpdateReason = __expectString(data["StatusUpdateReason"]);
|
|
5718
5718
|
}
|
|
5719
|
-
return [2
|
|
5719
|
+
return [2, Promise.resolve(contents)];
|
|
5720
5720
|
}
|
|
5721
5721
|
});
|
|
5722
5722
|
}); };
|
|
@@ -5728,55 +5728,55 @@ var deserializeAws_restXmlUpdateJobStatusCommandError = function (output, contex
|
|
|
5728
5728
|
case 0:
|
|
5729
5729
|
_a = [__assign({}, output)];
|
|
5730
5730
|
_h = {};
|
|
5731
|
-
return [4
|
|
5731
|
+
return [4, parseBody(output.body, context)];
|
|
5732
5732
|
case 1:
|
|
5733
5733
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
5734
5734
|
errorCode = "UnknownError";
|
|
5735
5735
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5736
5736
|
_b = errorCode;
|
|
5737
5737
|
switch (_b) {
|
|
5738
|
-
case "BadRequestException": return [3
|
|
5739
|
-
case "com.amazonaws.s3control#BadRequestException": return [3
|
|
5740
|
-
case "InternalServiceException": return [3
|
|
5741
|
-
case "com.amazonaws.s3control#InternalServiceException": return [3
|
|
5742
|
-
case "JobStatusException": return [3
|
|
5743
|
-
case "com.amazonaws.s3control#JobStatusException": return [3
|
|
5744
|
-
case "NotFoundException": return [3
|
|
5745
|
-
case "com.amazonaws.s3control#NotFoundException": return [3
|
|
5746
|
-
case "TooManyRequestsException": return [3
|
|
5747
|
-
case "com.amazonaws.s3control#TooManyRequestsException": return [3
|
|
5748
|
-
}
|
|
5749
|
-
return [3
|
|
5738
|
+
case "BadRequestException": return [3, 2];
|
|
5739
|
+
case "com.amazonaws.s3control#BadRequestException": return [3, 2];
|
|
5740
|
+
case "InternalServiceException": return [3, 4];
|
|
5741
|
+
case "com.amazonaws.s3control#InternalServiceException": return [3, 4];
|
|
5742
|
+
case "JobStatusException": return [3, 6];
|
|
5743
|
+
case "com.amazonaws.s3control#JobStatusException": return [3, 6];
|
|
5744
|
+
case "NotFoundException": return [3, 8];
|
|
5745
|
+
case "com.amazonaws.s3control#NotFoundException": return [3, 8];
|
|
5746
|
+
case "TooManyRequestsException": return [3, 10];
|
|
5747
|
+
case "com.amazonaws.s3control#TooManyRequestsException": return [3, 10];
|
|
5748
|
+
}
|
|
5749
|
+
return [3, 12];
|
|
5750
5750
|
case 2:
|
|
5751
5751
|
_c = [{}];
|
|
5752
|
-
return [4
|
|
5752
|
+
return [4, deserializeAws_restXmlBadRequestExceptionResponse(parsedOutput, context)];
|
|
5753
5753
|
case 3:
|
|
5754
5754
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5755
|
-
return [3
|
|
5755
|
+
return [3, 13];
|
|
5756
5756
|
case 4:
|
|
5757
5757
|
_d = [{}];
|
|
5758
|
-
return [4
|
|
5758
|
+
return [4, deserializeAws_restXmlInternalServiceExceptionResponse(parsedOutput, context)];
|
|
5759
5759
|
case 5:
|
|
5760
5760
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5761
|
-
return [3
|
|
5761
|
+
return [3, 13];
|
|
5762
5762
|
case 6:
|
|
5763
5763
|
_e = [{}];
|
|
5764
|
-
return [4
|
|
5764
|
+
return [4, deserializeAws_restXmlJobStatusExceptionResponse(parsedOutput, context)];
|
|
5765
5765
|
case 7:
|
|
5766
5766
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5767
|
-
return [3
|
|
5767
|
+
return [3, 13];
|
|
5768
5768
|
case 8:
|
|
5769
5769
|
_f = [{}];
|
|
5770
|
-
return [4
|
|
5770
|
+
return [4, deserializeAws_restXmlNotFoundExceptionResponse(parsedOutput, context)];
|
|
5771
5771
|
case 9:
|
|
5772
5772
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5773
|
-
return [3
|
|
5773
|
+
return [3, 13];
|
|
5774
5774
|
case 10:
|
|
5775
5775
|
_g = [{}];
|
|
5776
|
-
return [4
|
|
5776
|
+
return [4, deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
5777
5777
|
case 11:
|
|
5778
5778
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5779
|
-
return [3
|
|
5779
|
+
return [3, 13];
|
|
5780
5780
|
case 12:
|
|
5781
5781
|
parsedBody = parsedOutput.body;
|
|
5782
5782
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -5786,7 +5786,7 @@ var deserializeAws_restXmlUpdateJobStatusCommandError = function (output, contex
|
|
|
5786
5786
|
message = response.message || response.Message || errorCode;
|
|
5787
5787
|
response.message = message;
|
|
5788
5788
|
delete response.Message;
|
|
5789
|
-
return [2
|
|
5789
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5790
5790
|
}
|
|
5791
5791
|
});
|
|
5792
5792
|
}); };
|
|
@@ -5803,7 +5803,7 @@ var deserializeAws_restXmlBadRequestExceptionResponse = function (parsedOutput,
|
|
|
5803
5803
|
if (data["Message"] !== undefined) {
|
|
5804
5804
|
contents.Message = __expectString(data["Message"]);
|
|
5805
5805
|
}
|
|
5806
|
-
return [2
|
|
5806
|
+
return [2, contents];
|
|
5807
5807
|
});
|
|
5808
5808
|
}); };
|
|
5809
5809
|
var deserializeAws_restXmlBucketAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5815,7 +5815,7 @@ var deserializeAws_restXmlBucketAlreadyExistsResponse = function (parsedOutput,
|
|
|
5815
5815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5816
5816
|
};
|
|
5817
5817
|
data = parsedOutput.body.Error;
|
|
5818
|
-
return [2
|
|
5818
|
+
return [2, contents];
|
|
5819
5819
|
});
|
|
5820
5820
|
}); };
|
|
5821
5821
|
var deserializeAws_restXmlBucketAlreadyOwnedByYouResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5827,7 +5827,7 @@ var deserializeAws_restXmlBucketAlreadyOwnedByYouResponse = function (parsedOutp
|
|
|
5827
5827
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5828
5828
|
};
|
|
5829
5829
|
data = parsedOutput.body.Error;
|
|
5830
|
-
return [2
|
|
5830
|
+
return [2, contents];
|
|
5831
5831
|
});
|
|
5832
5832
|
}); };
|
|
5833
5833
|
var deserializeAws_restXmlIdempotencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5843,7 +5843,7 @@ var deserializeAws_restXmlIdempotencyExceptionResponse = function (parsedOutput,
|
|
|
5843
5843
|
if (data["Message"] !== undefined) {
|
|
5844
5844
|
contents.Message = __expectString(data["Message"]);
|
|
5845
5845
|
}
|
|
5846
|
-
return [2
|
|
5846
|
+
return [2, contents];
|
|
5847
5847
|
});
|
|
5848
5848
|
}); };
|
|
5849
5849
|
var deserializeAws_restXmlInternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5859,7 +5859,7 @@ var deserializeAws_restXmlInternalServiceExceptionResponse = function (parsedOut
|
|
|
5859
5859
|
if (data["Message"] !== undefined) {
|
|
5860
5860
|
contents.Message = __expectString(data["Message"]);
|
|
5861
5861
|
}
|
|
5862
|
-
return [2
|
|
5862
|
+
return [2, contents];
|
|
5863
5863
|
});
|
|
5864
5864
|
}); };
|
|
5865
5865
|
var deserializeAws_restXmlInvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5875,7 +5875,7 @@ var deserializeAws_restXmlInvalidNextTokenExceptionResponse = function (parsedOu
|
|
|
5875
5875
|
if (data["Message"] !== undefined) {
|
|
5876
5876
|
contents.Message = __expectString(data["Message"]);
|
|
5877
5877
|
}
|
|
5878
|
-
return [2
|
|
5878
|
+
return [2, contents];
|
|
5879
5879
|
});
|
|
5880
5880
|
}); };
|
|
5881
5881
|
var deserializeAws_restXmlInvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5891,7 +5891,7 @@ var deserializeAws_restXmlInvalidRequestExceptionResponse = function (parsedOutp
|
|
|
5891
5891
|
if (data["Message"] !== undefined) {
|
|
5892
5892
|
contents.Message = __expectString(data["Message"]);
|
|
5893
5893
|
}
|
|
5894
|
-
return [2
|
|
5894
|
+
return [2, contents];
|
|
5895
5895
|
});
|
|
5896
5896
|
}); };
|
|
5897
5897
|
var deserializeAws_restXmlJobStatusExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5907,7 +5907,7 @@ var deserializeAws_restXmlJobStatusExceptionResponse = function (parsedOutput, c
|
|
|
5907
5907
|
if (data["Message"] !== undefined) {
|
|
5908
5908
|
contents.Message = __expectString(data["Message"]);
|
|
5909
5909
|
}
|
|
5910
|
-
return [2
|
|
5910
|
+
return [2, contents];
|
|
5911
5911
|
});
|
|
5912
5912
|
}); };
|
|
5913
5913
|
var deserializeAws_restXmlNoSuchPublicAccessBlockConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5923,7 +5923,7 @@ var deserializeAws_restXmlNoSuchPublicAccessBlockConfigurationResponse = functio
|
|
|
5923
5923
|
if (data["Message"] !== undefined) {
|
|
5924
5924
|
contents.Message = __expectString(data["Message"]);
|
|
5925
5925
|
}
|
|
5926
|
-
return [2
|
|
5926
|
+
return [2, contents];
|
|
5927
5927
|
});
|
|
5928
5928
|
}); };
|
|
5929
5929
|
var deserializeAws_restXmlNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5939,7 +5939,7 @@ var deserializeAws_restXmlNotFoundExceptionResponse = function (parsedOutput, co
|
|
|
5939
5939
|
if (data["Message"] !== undefined) {
|
|
5940
5940
|
contents.Message = __expectString(data["Message"]);
|
|
5941
5941
|
}
|
|
5942
|
-
return [2
|
|
5942
|
+
return [2, contents];
|
|
5943
5943
|
});
|
|
5944
5944
|
}); };
|
|
5945
5945
|
var deserializeAws_restXmlTooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5955,7 +5955,7 @@ var deserializeAws_restXmlTooManyRequestsExceptionResponse = function (parsedOut
|
|
|
5955
5955
|
if (data["Message"] !== undefined) {
|
|
5956
5956
|
contents.Message = __expectString(data["Message"]);
|
|
5957
5957
|
}
|
|
5958
|
-
return [2
|
|
5958
|
+
return [2, contents];
|
|
5959
5959
|
});
|
|
5960
5960
|
}); };
|
|
5961
5961
|
var deserializeAws_restXmlTooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -5971,7 +5971,7 @@ var deserializeAws_restXmlTooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
5971
5971
|
if (data["Message"] !== undefined) {
|
|
5972
5972
|
contents.Message = __expectString(data["Message"]);
|
|
5973
5973
|
}
|
|
5974
|
-
return [2
|
|
5974
|
+
return [2, contents];
|
|
5975
5975
|
});
|
|
5976
5976
|
}); };
|
|
5977
5977
|
var serializeAws_restXmlAbortIncompleteMultipartUpload = function (input, context) {
|
|
@@ -7287,7 +7287,7 @@ var deserializeAws_restXmlAsyncOperation = function (output, context) {
|
|
|
7287
7287
|
ResponseDetails: undefined,
|
|
7288
7288
|
};
|
|
7289
7289
|
if (output["CreationTime"] !== undefined) {
|
|
7290
|
-
contents.CreationTime =
|
|
7290
|
+
contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(output["CreationTime"]));
|
|
7291
7291
|
}
|
|
7292
7292
|
if (output["Operation"] !== undefined) {
|
|
7293
7293
|
contents.Operation = __expectString(output["Operation"]);
|
|
@@ -7517,16 +7517,16 @@ var deserializeAws_restXmlJobDescriptor = function (output, context) {
|
|
|
7517
7517
|
contents.Report = deserializeAws_restXmlJobReport(output["Report"], context);
|
|
7518
7518
|
}
|
|
7519
7519
|
if (output["CreationTime"] !== undefined) {
|
|
7520
|
-
contents.CreationTime =
|
|
7520
|
+
contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(output["CreationTime"]));
|
|
7521
7521
|
}
|
|
7522
7522
|
if (output["TerminationDate"] !== undefined) {
|
|
7523
|
-
contents.TerminationDate =
|
|
7523
|
+
contents.TerminationDate = __expectNonNull(__parseRfc3339DateTime(output["TerminationDate"]));
|
|
7524
7524
|
}
|
|
7525
7525
|
if (output["RoleArn"] !== undefined) {
|
|
7526
7526
|
contents.RoleArn = __expectString(output["RoleArn"]);
|
|
7527
7527
|
}
|
|
7528
7528
|
if (output["SuspendedDate"] !== undefined) {
|
|
7529
|
-
contents.SuspendedDate =
|
|
7529
|
+
contents.SuspendedDate = __expectNonNull(__parseRfc3339DateTime(output["SuspendedDate"]));
|
|
7530
7530
|
}
|
|
7531
7531
|
if (output["SuspendedCause"] !== undefined) {
|
|
7532
7532
|
contents.SuspendedCause = __expectString(output["SuspendedCause"]);
|
|
@@ -7583,10 +7583,10 @@ var deserializeAws_restXmlJobListDescriptor = function (output, context) {
|
|
|
7583
7583
|
contents.Status = __expectString(output["Status"]);
|
|
7584
7584
|
}
|
|
7585
7585
|
if (output["CreationTime"] !== undefined) {
|
|
7586
|
-
contents.CreationTime =
|
|
7586
|
+
contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(output["CreationTime"]));
|
|
7587
7587
|
}
|
|
7588
7588
|
if (output["TerminationDate"] !== undefined) {
|
|
7589
|
-
contents.TerminationDate =
|
|
7589
|
+
contents.TerminationDate = __expectNonNull(__parseRfc3339DateTime(output["TerminationDate"]));
|
|
7590
7590
|
}
|
|
7591
7591
|
if (output["ProgressSummary"] !== undefined) {
|
|
7592
7592
|
contents.ProgressSummary = deserializeAws_restXmlJobProgressSummary(output["ProgressSummary"], context);
|
|
@@ -7754,7 +7754,7 @@ var deserializeAws_restXmlLifecycleExpiration = function (output, context) {
|
|
|
7754
7754
|
ExpiredObjectDeleteMarker: undefined,
|
|
7755
7755
|
};
|
|
7756
7756
|
if (output["Date"] !== undefined) {
|
|
7757
|
-
contents.Date =
|
|
7757
|
+
contents.Date = __expectNonNull(__parseRfc3339DateTime(output["Date"]));
|
|
7758
7758
|
}
|
|
7759
7759
|
if (output["Days"] !== undefined) {
|
|
7760
7760
|
contents.Days = __strictParseInt32(output["Days"]);
|
|
@@ -7924,7 +7924,7 @@ var deserializeAws_restXmlMultiRegionAccessPointReport = function (output, conte
|
|
|
7924
7924
|
contents.Alias = __expectString(output["Alias"]);
|
|
7925
7925
|
}
|
|
7926
7926
|
if (output["CreatedAt"] !== undefined) {
|
|
7927
|
-
contents.CreatedAt =
|
|
7927
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(output["CreatedAt"]));
|
|
7928
7928
|
}
|
|
7929
7929
|
if (output["PublicAccessBlock"] !== undefined) {
|
|
7930
7930
|
contents.PublicAccessBlock = deserializeAws_restXmlPublicAccessBlockConfiguration(output["PublicAccessBlock"], context);
|
|
@@ -8075,7 +8075,7 @@ var deserializeAws_restXmlObjectLambdaTransformationConfiguration = function (ou
|
|
|
8075
8075
|
contents.Actions = deserializeAws_restXmlObjectLambdaTransformationConfigurationActionsList(__getArrayIfSingleItem(output["Actions"]["Action"]), context);
|
|
8076
8076
|
}
|
|
8077
8077
|
if (output["ContentTransformation"] !== undefined) {
|
|
8078
|
-
contents.ContentTransformation = deserializeAws_restXmlObjectLambdaContentTransformation(output["ContentTransformation"], context);
|
|
8078
|
+
contents.ContentTransformation = deserializeAws_restXmlObjectLambdaContentTransformation(__expectUnion(output["ContentTransformation"]), context);
|
|
8079
8079
|
}
|
|
8080
8080
|
return contents;
|
|
8081
8081
|
};
|
|
@@ -8200,7 +8200,7 @@ var deserializeAws_restXmlRegionalBucket = function (output, context) {
|
|
|
8200
8200
|
contents.PublicAccessBlockEnabled = __parseBoolean(output["PublicAccessBlockEnabled"]);
|
|
8201
8201
|
}
|
|
8202
8202
|
if (output["CreationDate"] !== undefined) {
|
|
8203
|
-
contents.CreationDate =
|
|
8203
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(output["CreationDate"]));
|
|
8204
8204
|
}
|
|
8205
8205
|
if (output["OutpostId"] !== undefined) {
|
|
8206
8206
|
contents.OutpostId = __expectString(output["OutpostId"]);
|
|
@@ -8354,7 +8354,7 @@ var deserializeAws_restXmlS3CopyObjectOperation = function (output, context) {
|
|
|
8354
8354
|
contents.MetadataDirective = __expectString(output["MetadataDirective"]);
|
|
8355
8355
|
}
|
|
8356
8356
|
if (output["ModifiedSinceConstraint"] !== undefined) {
|
|
8357
|
-
contents.ModifiedSinceConstraint =
|
|
8357
|
+
contents.ModifiedSinceConstraint = __expectNonNull(__parseRfc3339DateTime(output["ModifiedSinceConstraint"]));
|
|
8358
8358
|
}
|
|
8359
8359
|
if (output["NewObjectMetadata"] !== undefined) {
|
|
8360
8360
|
contents.NewObjectMetadata = deserializeAws_restXmlS3ObjectMetadata(output["NewObjectMetadata"], context);
|
|
@@ -8375,7 +8375,7 @@ var deserializeAws_restXmlS3CopyObjectOperation = function (output, context) {
|
|
|
8375
8375
|
contents.StorageClass = __expectString(output["StorageClass"]);
|
|
8376
8376
|
}
|
|
8377
8377
|
if (output["UnModifiedSinceConstraint"] !== undefined) {
|
|
8378
|
-
contents.UnModifiedSinceConstraint =
|
|
8378
|
+
contents.UnModifiedSinceConstraint = __expectNonNull(__parseRfc3339DateTime(output["UnModifiedSinceConstraint"]));
|
|
8379
8379
|
}
|
|
8380
8380
|
if (output["SSEAwsKmsKeyId"] !== undefined) {
|
|
8381
8381
|
contents.SSEAwsKmsKeyId = __expectString(output["SSEAwsKmsKeyId"]);
|
|
@@ -8390,7 +8390,7 @@ var deserializeAws_restXmlS3CopyObjectOperation = function (output, context) {
|
|
|
8390
8390
|
contents.ObjectLockMode = __expectString(output["ObjectLockMode"]);
|
|
8391
8391
|
}
|
|
8392
8392
|
if (output["ObjectLockRetainUntilDate"] !== undefined) {
|
|
8393
|
-
contents.ObjectLockRetainUntilDate =
|
|
8393
|
+
contents.ObjectLockRetainUntilDate = __expectNonNull(__parseRfc3339DateTime(output["ObjectLockRetainUntilDate"]));
|
|
8394
8394
|
}
|
|
8395
8395
|
if (output["BucketKeyEnabled"] !== undefined) {
|
|
8396
8396
|
contents.BucketKeyEnabled = __parseBoolean(output["BucketKeyEnabled"]);
|
|
@@ -8505,7 +8505,7 @@ var deserializeAws_restXmlS3ObjectMetadata = function (output, context) {
|
|
|
8505
8505
|
contents.ContentType = __expectString(output["ContentType"]);
|
|
8506
8506
|
}
|
|
8507
8507
|
if (output["HttpExpiresDate"] !== undefined) {
|
|
8508
|
-
contents.HttpExpiresDate =
|
|
8508
|
+
contents.HttpExpiresDate = __expectNonNull(__parseRfc3339DateTime(output["HttpExpiresDate"]));
|
|
8509
8509
|
}
|
|
8510
8510
|
if (output["RequesterCharged"] !== undefined) {
|
|
8511
8511
|
contents.RequesterCharged = __parseBoolean(output["RequesterCharged"]);
|
|
@@ -8534,7 +8534,7 @@ var deserializeAws_restXmlS3Retention = function (output, context) {
|
|
|
8534
8534
|
Mode: undefined,
|
|
8535
8535
|
};
|
|
8536
8536
|
if (output["RetainUntilDate"] !== undefined) {
|
|
8537
|
-
contents.RetainUntilDate =
|
|
8537
|
+
contents.RetainUntilDate = __expectNonNull(__parseRfc3339DateTime(output["RetainUntilDate"]));
|
|
8538
8538
|
}
|
|
8539
8539
|
if (output["Mode"] !== undefined) {
|
|
8540
8540
|
contents.Mode = __expectString(output["Mode"]);
|
|
@@ -8754,7 +8754,7 @@ var deserializeAws_restXmlTransition = function (output, context) {
|
|
|
8754
8754
|
StorageClass: undefined,
|
|
8755
8755
|
};
|
|
8756
8756
|
if (output["Date"] !== undefined) {
|
|
8757
|
-
contents.Date =
|
|
8757
|
+
contents.Date = __expectNonNull(__parseRfc3339DateTime(output["Date"]));
|
|
8758
8758
|
}
|
|
8759
8759
|
if (output["Days"] !== undefined) {
|
|
8760
8760
|
contents.Days = __strictParseInt32(output["Days"]);
|
|
@@ -8792,7 +8792,6 @@ var deserializeMetadata = function (output) {
|
|
|
8792
8792
|
cfId: output.headers["x-amz-cf-id"],
|
|
8793
8793
|
});
|
|
8794
8794
|
};
|
|
8795
|
-
// Collect low-level response body stream to Uint8Array.
|
|
8796
8795
|
var collectBody = function (streamBody, context) {
|
|
8797
8796
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
8798
8797
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -8800,7 +8799,6 @@ var collectBody = function (streamBody, context) {
|
|
|
8800
8799
|
}
|
|
8801
8800
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
8802
8801
|
};
|
|
8803
|
-
// Encode Uint8Array data into string with utf-8.
|
|
8804
8802
|
var collectBodyString = function (streamBody, context) {
|
|
8805
8803
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
8806
8804
|
};
|