@aws-sdk/client-s3-control 3.310.0 → 3.315.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.
@@ -12,7 +12,7 @@ const models_0_1 = require("../models/models_0");
12
12
  const S3ControlServiceException_1 = require("../models/S3ControlServiceException");
13
13
  const se_CreateAccessPointCommand = async (input, context) => {
14
14
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
- const headers = map({}, isSerializableHeaderValue, {
15
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
16
16
  "content-type": "application/xml",
17
17
  "x-amz-account-id": input.AccountId,
18
18
  });
@@ -63,7 +63,7 @@ const se_CreateAccessPointCommand = async (input, context) => {
63
63
  exports.se_CreateAccessPointCommand = se_CreateAccessPointCommand;
64
64
  const se_CreateAccessPointForObjectLambdaCommand = async (input, context) => {
65
65
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
- const headers = map({}, isSerializableHeaderValue, {
66
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
67
67
  "content-type": "application/xml",
68
68
  "x-amz-account-id": input.AccountId,
69
69
  });
@@ -103,7 +103,7 @@ const se_CreateAccessPointForObjectLambdaCommand = async (input, context) => {
103
103
  exports.se_CreateAccessPointForObjectLambdaCommand = se_CreateAccessPointForObjectLambdaCommand;
104
104
  const se_CreateBucketCommand = async (input, context) => {
105
105
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
- const headers = map({}, isSerializableHeaderValue, {
106
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
107
107
  "content-type": "application/xml",
108
108
  "x-amz-acl": input.ACL,
109
109
  "x-amz-grant-full-control": input.GrantFullControl,
@@ -143,7 +143,7 @@ const se_CreateBucketCommand = async (input, context) => {
143
143
  exports.se_CreateBucketCommand = se_CreateBucketCommand;
144
144
  const se_CreateJobCommand = async (input, context) => {
145
145
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
- const headers = map({}, isSerializableHeaderValue, {
146
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
147
147
  "content-type": "application/xml",
148
148
  "x-amz-account-id": input.AccountId,
149
149
  });
@@ -226,7 +226,7 @@ const se_CreateJobCommand = async (input, context) => {
226
226
  exports.se_CreateJobCommand = se_CreateJobCommand;
227
227
  const se_CreateMultiRegionAccessPointCommand = async (input, context) => {
228
228
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
229
- const headers = map({}, isSerializableHeaderValue, {
229
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
230
230
  "content-type": "application/xml",
231
231
  "x-amz-account-id": input.AccountId,
232
232
  });
@@ -271,7 +271,7 @@ const se_CreateMultiRegionAccessPointCommand = async (input, context) => {
271
271
  exports.se_CreateMultiRegionAccessPointCommand = se_CreateMultiRegionAccessPointCommand;
272
272
  const se_DeleteAccessPointCommand = async (input, context) => {
273
273
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
274
- const headers = map({}, isSerializableHeaderValue, {
274
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
275
275
  "x-amz-account-id": input.AccountId,
276
276
  });
277
277
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}";
@@ -301,7 +301,7 @@ const se_DeleteAccessPointCommand = async (input, context) => {
301
301
  exports.se_DeleteAccessPointCommand = se_DeleteAccessPointCommand;
302
302
  const se_DeleteAccessPointForObjectLambdaCommand = async (input, context) => {
303
303
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
- const headers = map({}, isSerializableHeaderValue, {
304
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
305
305
  "x-amz-account-id": input.AccountId,
306
306
  });
307
307
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -332,7 +332,7 @@ const se_DeleteAccessPointForObjectLambdaCommand = async (input, context) => {
332
332
  exports.se_DeleteAccessPointForObjectLambdaCommand = se_DeleteAccessPointForObjectLambdaCommand;
333
333
  const se_DeleteAccessPointPolicyCommand = async (input, context) => {
334
334
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
335
- const headers = map({}, isSerializableHeaderValue, {
335
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
336
336
  "x-amz-account-id": input.AccountId,
337
337
  });
338
338
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}/policy";
@@ -362,7 +362,7 @@ const se_DeleteAccessPointPolicyCommand = async (input, context) => {
362
362
  exports.se_DeleteAccessPointPolicyCommand = se_DeleteAccessPointPolicyCommand;
363
363
  const se_DeleteAccessPointPolicyForObjectLambdaCommand = async (input, context) => {
364
364
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
365
- const headers = map({}, isSerializableHeaderValue, {
365
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
366
366
  "x-amz-account-id": input.AccountId,
367
367
  });
368
368
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -393,7 +393,7 @@ const se_DeleteAccessPointPolicyForObjectLambdaCommand = async (input, context)
393
393
  exports.se_DeleteAccessPointPolicyForObjectLambdaCommand = se_DeleteAccessPointPolicyForObjectLambdaCommand;
394
394
  const se_DeleteBucketCommand = async (input, context) => {
395
395
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
- const headers = map({}, isSerializableHeaderValue, {
396
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
397
397
  "x-amz-account-id": input.AccountId,
398
398
  });
399
399
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}";
@@ -423,7 +423,7 @@ const se_DeleteBucketCommand = async (input, context) => {
423
423
  exports.se_DeleteBucketCommand = se_DeleteBucketCommand;
424
424
  const se_DeleteBucketLifecycleConfigurationCommand = async (input, context) => {
425
425
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
426
- const headers = map({}, isSerializableHeaderValue, {
426
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
427
427
  "x-amz-account-id": input.AccountId,
428
428
  });
429
429
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -454,7 +454,7 @@ const se_DeleteBucketLifecycleConfigurationCommand = async (input, context) => {
454
454
  exports.se_DeleteBucketLifecycleConfigurationCommand = se_DeleteBucketLifecycleConfigurationCommand;
455
455
  const se_DeleteBucketPolicyCommand = async (input, context) => {
456
456
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
- const headers = map({}, isSerializableHeaderValue, {
457
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
458
458
  "x-amz-account-id": input.AccountId,
459
459
  });
460
460
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/policy";
@@ -484,7 +484,7 @@ const se_DeleteBucketPolicyCommand = async (input, context) => {
484
484
  exports.se_DeleteBucketPolicyCommand = se_DeleteBucketPolicyCommand;
485
485
  const se_DeleteBucketReplicationCommand = async (input, context) => {
486
486
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
487
- const headers = map({}, isSerializableHeaderValue, {
487
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
488
488
  "x-amz-account-id": input.AccountId,
489
489
  });
490
490
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/replication";
@@ -514,7 +514,7 @@ const se_DeleteBucketReplicationCommand = async (input, context) => {
514
514
  exports.se_DeleteBucketReplicationCommand = se_DeleteBucketReplicationCommand;
515
515
  const se_DeleteBucketTaggingCommand = async (input, context) => {
516
516
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
517
- const headers = map({}, isSerializableHeaderValue, {
517
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
518
518
  "x-amz-account-id": input.AccountId,
519
519
  });
520
520
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/tagging";
@@ -544,7 +544,7 @@ const se_DeleteBucketTaggingCommand = async (input, context) => {
544
544
  exports.se_DeleteBucketTaggingCommand = se_DeleteBucketTaggingCommand;
545
545
  const se_DeleteJobTaggingCommand = async (input, context) => {
546
546
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
547
- const headers = map({}, isSerializableHeaderValue, {
547
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
548
548
  "x-amz-account-id": input.AccountId,
549
549
  });
550
550
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging";
@@ -574,7 +574,7 @@ const se_DeleteJobTaggingCommand = async (input, context) => {
574
574
  exports.se_DeleteJobTaggingCommand = se_DeleteJobTaggingCommand;
575
575
  const se_DeleteMultiRegionAccessPointCommand = async (input, context) => {
576
576
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
- const headers = map({}, isSerializableHeaderValue, {
577
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
578
578
  "content-type": "application/xml",
579
579
  "x-amz-account-id": input.AccountId,
580
580
  });
@@ -619,7 +619,7 @@ const se_DeleteMultiRegionAccessPointCommand = async (input, context) => {
619
619
  exports.se_DeleteMultiRegionAccessPointCommand = se_DeleteMultiRegionAccessPointCommand;
620
620
  const se_DeletePublicAccessBlockCommand = async (input, context) => {
621
621
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
622
- const headers = map({}, isSerializableHeaderValue, {
622
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
623
623
  "x-amz-account-id": input.AccountId,
624
624
  });
625
625
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -649,7 +649,7 @@ const se_DeletePublicAccessBlockCommand = async (input, context) => {
649
649
  exports.se_DeletePublicAccessBlockCommand = se_DeletePublicAccessBlockCommand;
650
650
  const se_DeleteStorageLensConfigurationCommand = async (input, context) => {
651
651
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
- const headers = map({}, isSerializableHeaderValue, {
652
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
653
653
  "x-amz-account-id": input.AccountId,
654
654
  });
655
655
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}";
@@ -679,7 +679,7 @@ const se_DeleteStorageLensConfigurationCommand = async (input, context) => {
679
679
  exports.se_DeleteStorageLensConfigurationCommand = se_DeleteStorageLensConfigurationCommand;
680
680
  const se_DeleteStorageLensConfigurationTaggingCommand = async (input, context) => {
681
681
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
682
- const headers = map({}, isSerializableHeaderValue, {
682
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
683
683
  "x-amz-account-id": input.AccountId,
684
684
  });
685
685
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging";
@@ -709,7 +709,7 @@ const se_DeleteStorageLensConfigurationTaggingCommand = async (input, context) =
709
709
  exports.se_DeleteStorageLensConfigurationTaggingCommand = se_DeleteStorageLensConfigurationTaggingCommand;
710
710
  const se_DescribeJobCommand = async (input, context) => {
711
711
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
712
- const headers = map({}, isSerializableHeaderValue, {
712
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
713
713
  "x-amz-account-id": input.AccountId,
714
714
  });
715
715
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}";
@@ -739,7 +739,7 @@ const se_DescribeJobCommand = async (input, context) => {
739
739
  exports.se_DescribeJobCommand = se_DescribeJobCommand;
740
740
  const se_DescribeMultiRegionAccessPointOperationCommand = async (input, context) => {
741
741
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
742
- const headers = map({}, isSerializableHeaderValue, {
742
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
743
743
  "x-amz-account-id": input.AccountId,
744
744
  });
745
745
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -770,7 +770,7 @@ const se_DescribeMultiRegionAccessPointOperationCommand = async (input, context)
770
770
  exports.se_DescribeMultiRegionAccessPointOperationCommand = se_DescribeMultiRegionAccessPointOperationCommand;
771
771
  const se_GetAccessPointCommand = async (input, context) => {
772
772
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
773
- const headers = map({}, isSerializableHeaderValue, {
773
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
774
774
  "x-amz-account-id": input.AccountId,
775
775
  });
776
776
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}";
@@ -800,7 +800,7 @@ const se_GetAccessPointCommand = async (input, context) => {
800
800
  exports.se_GetAccessPointCommand = se_GetAccessPointCommand;
801
801
  const se_GetAccessPointConfigurationForObjectLambdaCommand = async (input, context) => {
802
802
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
803
- const headers = map({}, isSerializableHeaderValue, {
803
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
804
804
  "x-amz-account-id": input.AccountId,
805
805
  });
806
806
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -831,7 +831,7 @@ const se_GetAccessPointConfigurationForObjectLambdaCommand = async (input, conte
831
831
  exports.se_GetAccessPointConfigurationForObjectLambdaCommand = se_GetAccessPointConfigurationForObjectLambdaCommand;
832
832
  const se_GetAccessPointForObjectLambdaCommand = async (input, context) => {
833
833
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
834
- const headers = map({}, isSerializableHeaderValue, {
834
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
835
835
  "x-amz-account-id": input.AccountId,
836
836
  });
837
837
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -862,7 +862,7 @@ const se_GetAccessPointForObjectLambdaCommand = async (input, context) => {
862
862
  exports.se_GetAccessPointForObjectLambdaCommand = se_GetAccessPointForObjectLambdaCommand;
863
863
  const se_GetAccessPointPolicyCommand = async (input, context) => {
864
864
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
865
- const headers = map({}, isSerializableHeaderValue, {
865
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
866
866
  "x-amz-account-id": input.AccountId,
867
867
  });
868
868
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}/policy";
@@ -892,7 +892,7 @@ const se_GetAccessPointPolicyCommand = async (input, context) => {
892
892
  exports.se_GetAccessPointPolicyCommand = se_GetAccessPointPolicyCommand;
893
893
  const se_GetAccessPointPolicyForObjectLambdaCommand = async (input, context) => {
894
894
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
895
- const headers = map({}, isSerializableHeaderValue, {
895
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
896
896
  "x-amz-account-id": input.AccountId,
897
897
  });
898
898
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -923,7 +923,7 @@ const se_GetAccessPointPolicyForObjectLambdaCommand = async (input, context) =>
923
923
  exports.se_GetAccessPointPolicyForObjectLambdaCommand = se_GetAccessPointPolicyForObjectLambdaCommand;
924
924
  const se_GetAccessPointPolicyStatusCommand = async (input, context) => {
925
925
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
926
- const headers = map({}, isSerializableHeaderValue, {
926
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
927
927
  "x-amz-account-id": input.AccountId,
928
928
  });
929
929
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -954,7 +954,7 @@ const se_GetAccessPointPolicyStatusCommand = async (input, context) => {
954
954
  exports.se_GetAccessPointPolicyStatusCommand = se_GetAccessPointPolicyStatusCommand;
955
955
  const se_GetAccessPointPolicyStatusForObjectLambdaCommand = async (input, context) => {
956
956
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
957
- const headers = map({}, isSerializableHeaderValue, {
957
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
958
958
  "x-amz-account-id": input.AccountId,
959
959
  });
960
960
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -985,7 +985,7 @@ const se_GetAccessPointPolicyStatusForObjectLambdaCommand = async (input, contex
985
985
  exports.se_GetAccessPointPolicyStatusForObjectLambdaCommand = se_GetAccessPointPolicyStatusForObjectLambdaCommand;
986
986
  const se_GetBucketCommand = async (input, context) => {
987
987
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
988
- const headers = map({}, isSerializableHeaderValue, {
988
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
989
989
  "x-amz-account-id": input.AccountId,
990
990
  });
991
991
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}";
@@ -1015,7 +1015,7 @@ const se_GetBucketCommand = async (input, context) => {
1015
1015
  exports.se_GetBucketCommand = se_GetBucketCommand;
1016
1016
  const se_GetBucketLifecycleConfigurationCommand = async (input, context) => {
1017
1017
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1018
- const headers = map({}, isSerializableHeaderValue, {
1018
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1019
1019
  "x-amz-account-id": input.AccountId,
1020
1020
  });
1021
1021
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -1046,7 +1046,7 @@ const se_GetBucketLifecycleConfigurationCommand = async (input, context) => {
1046
1046
  exports.se_GetBucketLifecycleConfigurationCommand = se_GetBucketLifecycleConfigurationCommand;
1047
1047
  const se_GetBucketPolicyCommand = async (input, context) => {
1048
1048
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1049
- const headers = map({}, isSerializableHeaderValue, {
1049
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1050
1050
  "x-amz-account-id": input.AccountId,
1051
1051
  });
1052
1052
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/policy";
@@ -1076,7 +1076,7 @@ const se_GetBucketPolicyCommand = async (input, context) => {
1076
1076
  exports.se_GetBucketPolicyCommand = se_GetBucketPolicyCommand;
1077
1077
  const se_GetBucketReplicationCommand = async (input, context) => {
1078
1078
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1079
- const headers = map({}, isSerializableHeaderValue, {
1079
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1080
1080
  "x-amz-account-id": input.AccountId,
1081
1081
  });
1082
1082
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/replication";
@@ -1106,7 +1106,7 @@ const se_GetBucketReplicationCommand = async (input, context) => {
1106
1106
  exports.se_GetBucketReplicationCommand = se_GetBucketReplicationCommand;
1107
1107
  const se_GetBucketTaggingCommand = async (input, context) => {
1108
1108
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1109
- const headers = map({}, isSerializableHeaderValue, {
1109
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1110
1110
  "x-amz-account-id": input.AccountId,
1111
1111
  });
1112
1112
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/tagging";
@@ -1136,7 +1136,7 @@ const se_GetBucketTaggingCommand = async (input, context) => {
1136
1136
  exports.se_GetBucketTaggingCommand = se_GetBucketTaggingCommand;
1137
1137
  const se_GetBucketVersioningCommand = async (input, context) => {
1138
1138
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1139
- const headers = map({}, isSerializableHeaderValue, {
1139
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1140
1140
  "x-amz-account-id": input.AccountId,
1141
1141
  });
1142
1142
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/versioning";
@@ -1166,7 +1166,7 @@ const se_GetBucketVersioningCommand = async (input, context) => {
1166
1166
  exports.se_GetBucketVersioningCommand = se_GetBucketVersioningCommand;
1167
1167
  const se_GetJobTaggingCommand = async (input, context) => {
1168
1168
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1169
- const headers = map({}, isSerializableHeaderValue, {
1169
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1170
1170
  "x-amz-account-id": input.AccountId,
1171
1171
  });
1172
1172
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging";
@@ -1196,7 +1196,7 @@ const se_GetJobTaggingCommand = async (input, context) => {
1196
1196
  exports.se_GetJobTaggingCommand = se_GetJobTaggingCommand;
1197
1197
  const se_GetMultiRegionAccessPointCommand = async (input, context) => {
1198
1198
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1199
- const headers = map({}, isSerializableHeaderValue, {
1199
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1200
1200
  "x-amz-account-id": input.AccountId,
1201
1201
  });
1202
1202
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}";
@@ -1226,7 +1226,7 @@ const se_GetMultiRegionAccessPointCommand = async (input, context) => {
1226
1226
  exports.se_GetMultiRegionAccessPointCommand = se_GetMultiRegionAccessPointCommand;
1227
1227
  const se_GetMultiRegionAccessPointPolicyCommand = async (input, context) => {
1228
1228
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1229
- const headers = map({}, isSerializableHeaderValue, {
1229
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1230
1230
  "x-amz-account-id": input.AccountId,
1231
1231
  });
1232
1232
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}/policy";
@@ -1256,7 +1256,7 @@ const se_GetMultiRegionAccessPointPolicyCommand = async (input, context) => {
1256
1256
  exports.se_GetMultiRegionAccessPointPolicyCommand = se_GetMultiRegionAccessPointPolicyCommand;
1257
1257
  const se_GetMultiRegionAccessPointPolicyStatusCommand = async (input, context) => {
1258
1258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1259
- const headers = map({}, isSerializableHeaderValue, {
1259
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1260
1260
  "x-amz-account-id": input.AccountId,
1261
1261
  });
1262
1262
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -1287,7 +1287,7 @@ const se_GetMultiRegionAccessPointPolicyStatusCommand = async (input, context) =
1287
1287
  exports.se_GetMultiRegionAccessPointPolicyStatusCommand = se_GetMultiRegionAccessPointPolicyStatusCommand;
1288
1288
  const se_GetMultiRegionAccessPointRoutesCommand = async (input, context) => {
1289
1289
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1290
- const headers = map({}, isSerializableHeaderValue, {
1290
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1291
1291
  "x-amz-account-id": input.AccountId,
1292
1292
  });
1293
1293
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes";
@@ -1317,7 +1317,7 @@ const se_GetMultiRegionAccessPointRoutesCommand = async (input, context) => {
1317
1317
  exports.se_GetMultiRegionAccessPointRoutesCommand = se_GetMultiRegionAccessPointRoutesCommand;
1318
1318
  const se_GetPublicAccessBlockCommand = async (input, context) => {
1319
1319
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1320
- const headers = map({}, isSerializableHeaderValue, {
1320
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1321
1321
  "x-amz-account-id": input.AccountId,
1322
1322
  });
1323
1323
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -1347,7 +1347,7 @@ const se_GetPublicAccessBlockCommand = async (input, context) => {
1347
1347
  exports.se_GetPublicAccessBlockCommand = se_GetPublicAccessBlockCommand;
1348
1348
  const se_GetStorageLensConfigurationCommand = async (input, context) => {
1349
1349
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1350
- const headers = map({}, isSerializableHeaderValue, {
1350
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1351
1351
  "x-amz-account-id": input.AccountId,
1352
1352
  });
1353
1353
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}";
@@ -1377,7 +1377,7 @@ const se_GetStorageLensConfigurationCommand = async (input, context) => {
1377
1377
  exports.se_GetStorageLensConfigurationCommand = se_GetStorageLensConfigurationCommand;
1378
1378
  const se_GetStorageLensConfigurationTaggingCommand = async (input, context) => {
1379
1379
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1380
- const headers = map({}, isSerializableHeaderValue, {
1380
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1381
1381
  "x-amz-account-id": input.AccountId,
1382
1382
  });
1383
1383
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging";
@@ -1407,11 +1407,11 @@ const se_GetStorageLensConfigurationTaggingCommand = async (input, context) => {
1407
1407
  exports.se_GetStorageLensConfigurationTaggingCommand = se_GetStorageLensConfigurationTaggingCommand;
1408
1408
  const se_ListAccessPointsCommand = async (input, context) => {
1409
1409
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1410
- const headers = map({}, isSerializableHeaderValue, {
1410
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1411
1411
  "x-amz-account-id": input.AccountId,
1412
1412
  });
1413
1413
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint";
1414
- const query = map({
1414
+ const query = (0, smithy_client_1.map)({
1415
1415
  bucket: [, input.Bucket],
1416
1416
  nextToken: [, input.NextToken],
1417
1417
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1442,11 +1442,11 @@ const se_ListAccessPointsCommand = async (input, context) => {
1442
1442
  exports.se_ListAccessPointsCommand = se_ListAccessPointsCommand;
1443
1443
  const se_ListAccessPointsForObjectLambdaCommand = async (input, context) => {
1444
1444
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1445
- const headers = map({}, isSerializableHeaderValue, {
1445
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1446
1446
  "x-amz-account-id": input.AccountId,
1447
1447
  });
1448
1448
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspointforobjectlambda";
1449
- const query = map({
1449
+ const query = (0, smithy_client_1.map)({
1450
1450
  nextToken: [, input.NextToken],
1451
1451
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1452
1452
  });
@@ -1476,11 +1476,11 @@ const se_ListAccessPointsForObjectLambdaCommand = async (input, context) => {
1476
1476
  exports.se_ListAccessPointsForObjectLambdaCommand = se_ListAccessPointsForObjectLambdaCommand;
1477
1477
  const se_ListJobsCommand = async (input, context) => {
1478
1478
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1479
- const headers = map({}, isSerializableHeaderValue, {
1479
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1480
1480
  "x-amz-account-id": input.AccountId,
1481
1481
  });
1482
1482
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs";
1483
- const query = map({
1483
+ const query = (0, smithy_client_1.map)({
1484
1484
  jobStatuses: [() => input.JobStatuses !== void 0, () => (input.JobStatuses || []).map((_entry) => _entry)],
1485
1485
  nextToken: [, input.NextToken],
1486
1486
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1511,11 +1511,11 @@ const se_ListJobsCommand = async (input, context) => {
1511
1511
  exports.se_ListJobsCommand = se_ListJobsCommand;
1512
1512
  const se_ListMultiRegionAccessPointsCommand = async (input, context) => {
1513
1513
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1514
- const headers = map({}, isSerializableHeaderValue, {
1514
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1515
1515
  "x-amz-account-id": input.AccountId,
1516
1516
  });
1517
1517
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances";
1518
- const query = map({
1518
+ const query = (0, smithy_client_1.map)({
1519
1519
  nextToken: [, input.NextToken],
1520
1520
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1521
1521
  });
@@ -1545,12 +1545,12 @@ const se_ListMultiRegionAccessPointsCommand = async (input, context) => {
1545
1545
  exports.se_ListMultiRegionAccessPointsCommand = se_ListMultiRegionAccessPointsCommand;
1546
1546
  const se_ListRegionalBucketsCommand = async (input, context) => {
1547
1547
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1548
- const headers = map({}, isSerializableHeaderValue, {
1548
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1549
1549
  "x-amz-account-id": input.AccountId,
1550
1550
  "x-amz-outpost-id": input.OutpostId,
1551
1551
  });
1552
1552
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket";
1553
- const query = map({
1553
+ const query = (0, smithy_client_1.map)({
1554
1554
  nextToken: [, input.NextToken],
1555
1555
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1556
1556
  });
@@ -1580,11 +1580,11 @@ const se_ListRegionalBucketsCommand = async (input, context) => {
1580
1580
  exports.se_ListRegionalBucketsCommand = se_ListRegionalBucketsCommand;
1581
1581
  const se_ListStorageLensConfigurationsCommand = async (input, context) => {
1582
1582
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1583
- const headers = map({}, isSerializableHeaderValue, {
1583
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1584
1584
  "x-amz-account-id": input.AccountId,
1585
1585
  });
1586
1586
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens";
1587
- const query = map({
1587
+ const query = (0, smithy_client_1.map)({
1588
1588
  nextToken: [, input.NextToken],
1589
1589
  });
1590
1590
  let body;
@@ -1613,7 +1613,7 @@ const se_ListStorageLensConfigurationsCommand = async (input, context) => {
1613
1613
  exports.se_ListStorageLensConfigurationsCommand = se_ListStorageLensConfigurationsCommand;
1614
1614
  const se_PutAccessPointConfigurationForObjectLambdaCommand = async (input, context) => {
1615
1615
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1616
- const headers = map({}, isSerializableHeaderValue, {
1616
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1617
1617
  "content-type": "application/xml",
1618
1618
  "x-amz-account-id": input.AccountId,
1619
1619
  });
@@ -1653,7 +1653,7 @@ const se_PutAccessPointConfigurationForObjectLambdaCommand = async (input, conte
1653
1653
  exports.se_PutAccessPointConfigurationForObjectLambdaCommand = se_PutAccessPointConfigurationForObjectLambdaCommand;
1654
1654
  const se_PutAccessPointPolicyCommand = async (input, context) => {
1655
1655
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1656
- const headers = map({}, isSerializableHeaderValue, {
1656
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1657
1657
  "content-type": "application/xml",
1658
1658
  "x-amz-account-id": input.AccountId,
1659
1659
  });
@@ -1692,7 +1692,7 @@ const se_PutAccessPointPolicyCommand = async (input, context) => {
1692
1692
  exports.se_PutAccessPointPolicyCommand = se_PutAccessPointPolicyCommand;
1693
1693
  const se_PutAccessPointPolicyForObjectLambdaCommand = async (input, context) => {
1694
1694
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1695
- const headers = map({}, isSerializableHeaderValue, {
1695
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1696
1696
  "content-type": "application/xml",
1697
1697
  "x-amz-account-id": input.AccountId,
1698
1698
  });
@@ -1732,7 +1732,7 @@ const se_PutAccessPointPolicyForObjectLambdaCommand = async (input, context) =>
1732
1732
  exports.se_PutAccessPointPolicyForObjectLambdaCommand = se_PutAccessPointPolicyForObjectLambdaCommand;
1733
1733
  const se_PutBucketLifecycleConfigurationCommand = async (input, context) => {
1734
1734
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1735
- const headers = map({}, isSerializableHeaderValue, {
1735
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1736
1736
  "content-type": "application/xml",
1737
1737
  "x-amz-account-id": input.AccountId,
1738
1738
  });
@@ -1774,7 +1774,7 @@ const se_PutBucketLifecycleConfigurationCommand = async (input, context) => {
1774
1774
  exports.se_PutBucketLifecycleConfigurationCommand = se_PutBucketLifecycleConfigurationCommand;
1775
1775
  const se_PutBucketPolicyCommand = async (input, context) => {
1776
1776
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1777
- const headers = map({}, isSerializableHeaderValue, {
1777
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1778
1778
  "content-type": "application/xml",
1779
1779
  "x-amz-account-id": input.AccountId,
1780
1780
  "x-amz-confirm-remove-self-bucket-access": [
@@ -1817,7 +1817,7 @@ const se_PutBucketPolicyCommand = async (input, context) => {
1817
1817
  exports.se_PutBucketPolicyCommand = se_PutBucketPolicyCommand;
1818
1818
  const se_PutBucketReplicationCommand = async (input, context) => {
1819
1819
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1820
- const headers = map({}, isSerializableHeaderValue, {
1820
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1821
1821
  "content-type": "application/xml",
1822
1822
  "x-amz-account-id": input.AccountId,
1823
1823
  });
@@ -1858,7 +1858,7 @@ const se_PutBucketReplicationCommand = async (input, context) => {
1858
1858
  exports.se_PutBucketReplicationCommand = se_PutBucketReplicationCommand;
1859
1859
  const se_PutBucketTaggingCommand = async (input, context) => {
1860
1860
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1861
- const headers = map({}, isSerializableHeaderValue, {
1861
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1862
1862
  "content-type": "application/xml",
1863
1863
  "x-amz-account-id": input.AccountId,
1864
1864
  });
@@ -1899,7 +1899,7 @@ const se_PutBucketTaggingCommand = async (input, context) => {
1899
1899
  exports.se_PutBucketTaggingCommand = se_PutBucketTaggingCommand;
1900
1900
  const se_PutBucketVersioningCommand = async (input, context) => {
1901
1901
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1902
- const headers = map({}, isSerializableHeaderValue, {
1902
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1903
1903
  "content-type": "application/xml",
1904
1904
  "x-amz-account-id": input.AccountId,
1905
1905
  "x-amz-mfa": input.MFA,
@@ -1941,7 +1941,7 @@ const se_PutBucketVersioningCommand = async (input, context) => {
1941
1941
  exports.se_PutBucketVersioningCommand = se_PutBucketVersioningCommand;
1942
1942
  const se_PutJobTaggingCommand = async (input, context) => {
1943
1943
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1944
- const headers = map({}, isSerializableHeaderValue, {
1944
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1945
1945
  "content-type": "application/xml",
1946
1946
  "x-amz-account-id": input.AccountId,
1947
1947
  });
@@ -1984,7 +1984,7 @@ const se_PutJobTaggingCommand = async (input, context) => {
1984
1984
  exports.se_PutJobTaggingCommand = se_PutJobTaggingCommand;
1985
1985
  const se_PutMultiRegionAccessPointPolicyCommand = async (input, context) => {
1986
1986
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1987
- const headers = map({}, isSerializableHeaderValue, {
1987
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1988
1988
  "content-type": "application/xml",
1989
1989
  "x-amz-account-id": input.AccountId,
1990
1990
  });
@@ -2029,7 +2029,7 @@ const se_PutMultiRegionAccessPointPolicyCommand = async (input, context) => {
2029
2029
  exports.se_PutMultiRegionAccessPointPolicyCommand = se_PutMultiRegionAccessPointPolicyCommand;
2030
2030
  const se_PutPublicAccessBlockCommand = async (input, context) => {
2031
2031
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2032
- const headers = map({}, isSerializableHeaderValue, {
2032
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2033
2033
  "content-type": "application/xml",
2034
2034
  "x-amz-account-id": input.AccountId,
2035
2035
  });
@@ -2070,7 +2070,7 @@ const se_PutPublicAccessBlockCommand = async (input, context) => {
2070
2070
  exports.se_PutPublicAccessBlockCommand = se_PutPublicAccessBlockCommand;
2071
2071
  const se_PutStorageLensConfigurationCommand = async (input, context) => {
2072
2072
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2073
- const headers = map({}, isSerializableHeaderValue, {
2073
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2074
2074
  "content-type": "application/xml",
2075
2075
  "x-amz-account-id": input.AccountId,
2076
2076
  });
@@ -2117,7 +2117,7 @@ const se_PutStorageLensConfigurationCommand = async (input, context) => {
2117
2117
  exports.se_PutStorageLensConfigurationCommand = se_PutStorageLensConfigurationCommand;
2118
2118
  const se_PutStorageLensConfigurationTaggingCommand = async (input, context) => {
2119
2119
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2120
- const headers = map({}, isSerializableHeaderValue, {
2120
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2121
2121
  "content-type": "application/xml",
2122
2122
  "x-amz-account-id": input.AccountId,
2123
2123
  });
@@ -2160,7 +2160,7 @@ const se_PutStorageLensConfigurationTaggingCommand = async (input, context) => {
2160
2160
  exports.se_PutStorageLensConfigurationTaggingCommand = se_PutStorageLensConfigurationTaggingCommand;
2161
2161
  const se_SubmitMultiRegionAccessPointRoutesCommand = async (input, context) => {
2162
2162
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2163
- const headers = map({}, isSerializableHeaderValue, {
2163
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2164
2164
  "content-type": "application/xml",
2165
2165
  "x-amz-account-id": input.AccountId,
2166
2166
  });
@@ -2203,12 +2203,12 @@ const se_SubmitMultiRegionAccessPointRoutesCommand = async (input, context) => {
2203
2203
  exports.se_SubmitMultiRegionAccessPointRoutesCommand = se_SubmitMultiRegionAccessPointRoutesCommand;
2204
2204
  const se_UpdateJobPriorityCommand = async (input, context) => {
2205
2205
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2206
- const headers = map({}, isSerializableHeaderValue, {
2206
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2207
2207
  "x-amz-account-id": input.AccountId,
2208
2208
  });
2209
2209
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/priority";
2210
2210
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
2211
- const query = map({
2211
+ const query = (0, smithy_client_1.map)({
2212
2212
  priority: [(0, smithy_client_1.expectNonNull)(input.Priority, `Priority`) != null, () => input.Priority.toString()],
2213
2213
  });
2214
2214
  let body;
@@ -2237,12 +2237,12 @@ const se_UpdateJobPriorityCommand = async (input, context) => {
2237
2237
  exports.se_UpdateJobPriorityCommand = se_UpdateJobPriorityCommand;
2238
2238
  const se_UpdateJobStatusCommand = async (input, context) => {
2239
2239
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2240
- const headers = map({}, isSerializableHeaderValue, {
2240
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2241
2241
  "x-amz-account-id": input.AccountId,
2242
2242
  });
2243
2243
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/status";
2244
2244
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
2245
- const query = map({
2245
+ const query = (0, smithy_client_1.map)({
2246
2246
  requestedJobStatus: [, (0, smithy_client_1.expectNonNull)(input.RequestedJobStatus, `RequestedJobStatus`)],
2247
2247
  statusUpdateReason: [, input.StatusUpdateReason],
2248
2248
  });
@@ -2274,7 +2274,7 @@ const de_CreateAccessPointCommand = async (output, context) => {
2274
2274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2275
2275
  return de_CreateAccessPointCommandError(output, context);
2276
2276
  }
2277
- const contents = map({
2277
+ const contents = (0, smithy_client_1.map)({
2278
2278
  $metadata: deserializeMetadata(output),
2279
2279
  });
2280
2280
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2294,10 +2294,9 @@ const de_CreateAccessPointCommandError = async (output, context) => {
2294
2294
  };
2295
2295
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2296
2296
  const parsedBody = parsedOutput.body;
2297
- (0, smithy_client_1.throwDefaultError)({
2297
+ return throwDefaultError({
2298
2298
  output,
2299
2299
  parsedBody: parsedBody.Error,
2300
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2301
2300
  errorCode,
2302
2301
  });
2303
2302
  };
@@ -2305,7 +2304,7 @@ const de_CreateAccessPointForObjectLambdaCommand = async (output, context) => {
2305
2304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2306
2305
  return de_CreateAccessPointForObjectLambdaCommandError(output, context);
2307
2306
  }
2308
- const contents = map({
2307
+ const contents = (0, smithy_client_1.map)({
2309
2308
  $metadata: deserializeMetadata(output),
2310
2309
  });
2311
2310
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2325,10 +2324,9 @@ const de_CreateAccessPointForObjectLambdaCommandError = async (output, context)
2325
2324
  };
2326
2325
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2327
2326
  const parsedBody = parsedOutput.body;
2328
- (0, smithy_client_1.throwDefaultError)({
2327
+ return throwDefaultError({
2329
2328
  output,
2330
2329
  parsedBody: parsedBody.Error,
2331
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2332
2330
  errorCode,
2333
2331
  });
2334
2332
  };
@@ -2336,7 +2334,7 @@ const de_CreateBucketCommand = async (output, context) => {
2336
2334
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2337
2335
  return de_CreateBucketCommandError(output, context);
2338
2336
  }
2339
- const contents = map({
2337
+ const contents = (0, smithy_client_1.map)({
2340
2338
  $metadata: deserializeMetadata(output),
2341
2339
  Location: [, output.headers["location"]],
2342
2340
  });
@@ -2362,10 +2360,9 @@ const de_CreateBucketCommandError = async (output, context) => {
2362
2360
  throw await de_BucketAlreadyOwnedByYouRes(parsedOutput, context);
2363
2361
  default:
2364
2362
  const parsedBody = parsedOutput.body;
2365
- (0, smithy_client_1.throwDefaultError)({
2363
+ return throwDefaultError({
2366
2364
  output,
2367
2365
  parsedBody: parsedBody.Error,
2368
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2369
2366
  errorCode,
2370
2367
  });
2371
2368
  }
@@ -2374,7 +2371,7 @@ const de_CreateJobCommand = async (output, context) => {
2374
2371
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2375
2372
  return de_CreateJobCommandError(output, context);
2376
2373
  }
2377
- const contents = map({
2374
+ const contents = (0, smithy_client_1.map)({
2378
2375
  $metadata: deserializeMetadata(output),
2379
2376
  });
2380
2377
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2405,10 +2402,9 @@ const de_CreateJobCommandError = async (output, context) => {
2405
2402
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2406
2403
  default:
2407
2404
  const parsedBody = parsedOutput.body;
2408
- (0, smithy_client_1.throwDefaultError)({
2405
+ return throwDefaultError({
2409
2406
  output,
2410
2407
  parsedBody: parsedBody.Error,
2411
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2412
2408
  errorCode,
2413
2409
  });
2414
2410
  }
@@ -2417,7 +2413,7 @@ const de_CreateMultiRegionAccessPointCommand = async (output, context) => {
2417
2413
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2418
2414
  return de_CreateMultiRegionAccessPointCommandError(output, context);
2419
2415
  }
2420
- const contents = map({
2416
+ const contents = (0, smithy_client_1.map)({
2421
2417
  $metadata: deserializeMetadata(output),
2422
2418
  });
2423
2419
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2434,10 +2430,9 @@ const de_CreateMultiRegionAccessPointCommandError = async (output, context) => {
2434
2430
  };
2435
2431
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2436
2432
  const parsedBody = parsedOutput.body;
2437
- (0, smithy_client_1.throwDefaultError)({
2433
+ return throwDefaultError({
2438
2434
  output,
2439
2435
  parsedBody: parsedBody.Error,
2440
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2441
2436
  errorCode,
2442
2437
  });
2443
2438
  };
@@ -2445,7 +2440,7 @@ const de_DeleteAccessPointCommand = async (output, context) => {
2445
2440
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2446
2441
  return de_DeleteAccessPointCommandError(output, context);
2447
2442
  }
2448
- const contents = map({
2443
+ const contents = (0, smithy_client_1.map)({
2449
2444
  $metadata: deserializeMetadata(output),
2450
2445
  });
2451
2446
  await collectBody(output.body, context);
@@ -2459,10 +2454,9 @@ const de_DeleteAccessPointCommandError = async (output, context) => {
2459
2454
  };
2460
2455
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2461
2456
  const parsedBody = parsedOutput.body;
2462
- (0, smithy_client_1.throwDefaultError)({
2457
+ return throwDefaultError({
2463
2458
  output,
2464
2459
  parsedBody: parsedBody.Error,
2465
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2466
2460
  errorCode,
2467
2461
  });
2468
2462
  };
@@ -2470,7 +2464,7 @@ const de_DeleteAccessPointForObjectLambdaCommand = async (output, context) => {
2470
2464
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2471
2465
  return de_DeleteAccessPointForObjectLambdaCommandError(output, context);
2472
2466
  }
2473
- const contents = map({
2467
+ const contents = (0, smithy_client_1.map)({
2474
2468
  $metadata: deserializeMetadata(output),
2475
2469
  });
2476
2470
  await collectBody(output.body, context);
@@ -2484,10 +2478,9 @@ const de_DeleteAccessPointForObjectLambdaCommandError = async (output, context)
2484
2478
  };
2485
2479
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2486
2480
  const parsedBody = parsedOutput.body;
2487
- (0, smithy_client_1.throwDefaultError)({
2481
+ return throwDefaultError({
2488
2482
  output,
2489
2483
  parsedBody: parsedBody.Error,
2490
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2491
2484
  errorCode,
2492
2485
  });
2493
2486
  };
@@ -2495,7 +2488,7 @@ const de_DeleteAccessPointPolicyCommand = async (output, context) => {
2495
2488
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2496
2489
  return de_DeleteAccessPointPolicyCommandError(output, context);
2497
2490
  }
2498
- const contents = map({
2491
+ const contents = (0, smithy_client_1.map)({
2499
2492
  $metadata: deserializeMetadata(output),
2500
2493
  });
2501
2494
  await collectBody(output.body, context);
@@ -2509,10 +2502,9 @@ const de_DeleteAccessPointPolicyCommandError = async (output, context) => {
2509
2502
  };
2510
2503
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2511
2504
  const parsedBody = parsedOutput.body;
2512
- (0, smithy_client_1.throwDefaultError)({
2505
+ return throwDefaultError({
2513
2506
  output,
2514
2507
  parsedBody: parsedBody.Error,
2515
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2516
2508
  errorCode,
2517
2509
  });
2518
2510
  };
@@ -2520,7 +2512,7 @@ const de_DeleteAccessPointPolicyForObjectLambdaCommand = async (output, context)
2520
2512
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2521
2513
  return de_DeleteAccessPointPolicyForObjectLambdaCommandError(output, context);
2522
2514
  }
2523
- const contents = map({
2515
+ const contents = (0, smithy_client_1.map)({
2524
2516
  $metadata: deserializeMetadata(output),
2525
2517
  });
2526
2518
  await collectBody(output.body, context);
@@ -2534,10 +2526,9 @@ const de_DeleteAccessPointPolicyForObjectLambdaCommandError = async (output, con
2534
2526
  };
2535
2527
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2536
2528
  const parsedBody = parsedOutput.body;
2537
- (0, smithy_client_1.throwDefaultError)({
2529
+ return throwDefaultError({
2538
2530
  output,
2539
2531
  parsedBody: parsedBody.Error,
2540
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2541
2532
  errorCode,
2542
2533
  });
2543
2534
  };
@@ -2545,7 +2536,7 @@ const de_DeleteBucketCommand = async (output, context) => {
2545
2536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2546
2537
  return de_DeleteBucketCommandError(output, context);
2547
2538
  }
2548
- const contents = map({
2539
+ const contents = (0, smithy_client_1.map)({
2549
2540
  $metadata: deserializeMetadata(output),
2550
2541
  });
2551
2542
  await collectBody(output.body, context);
@@ -2559,10 +2550,9 @@ const de_DeleteBucketCommandError = async (output, context) => {
2559
2550
  };
2560
2551
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2561
2552
  const parsedBody = parsedOutput.body;
2562
- (0, smithy_client_1.throwDefaultError)({
2553
+ return throwDefaultError({
2563
2554
  output,
2564
2555
  parsedBody: parsedBody.Error,
2565
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2566
2556
  errorCode,
2567
2557
  });
2568
2558
  };
@@ -2570,7 +2560,7 @@ const de_DeleteBucketLifecycleConfigurationCommand = async (output, context) =>
2570
2560
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2571
2561
  return de_DeleteBucketLifecycleConfigurationCommandError(output, context);
2572
2562
  }
2573
- const contents = map({
2563
+ const contents = (0, smithy_client_1.map)({
2574
2564
  $metadata: deserializeMetadata(output),
2575
2565
  });
2576
2566
  await collectBody(output.body, context);
@@ -2584,10 +2574,9 @@ const de_DeleteBucketLifecycleConfigurationCommandError = async (output, context
2584
2574
  };
2585
2575
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2586
2576
  const parsedBody = parsedOutput.body;
2587
- (0, smithy_client_1.throwDefaultError)({
2577
+ return throwDefaultError({
2588
2578
  output,
2589
2579
  parsedBody: parsedBody.Error,
2590
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2591
2580
  errorCode,
2592
2581
  });
2593
2582
  };
@@ -2595,7 +2584,7 @@ const de_DeleteBucketPolicyCommand = async (output, context) => {
2595
2584
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2596
2585
  return de_DeleteBucketPolicyCommandError(output, context);
2597
2586
  }
2598
- const contents = map({
2587
+ const contents = (0, smithy_client_1.map)({
2599
2588
  $metadata: deserializeMetadata(output),
2600
2589
  });
2601
2590
  await collectBody(output.body, context);
@@ -2609,10 +2598,9 @@ const de_DeleteBucketPolicyCommandError = async (output, context) => {
2609
2598
  };
2610
2599
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2611
2600
  const parsedBody = parsedOutput.body;
2612
- (0, smithy_client_1.throwDefaultError)({
2601
+ return throwDefaultError({
2613
2602
  output,
2614
2603
  parsedBody: parsedBody.Error,
2615
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2616
2604
  errorCode,
2617
2605
  });
2618
2606
  };
@@ -2620,7 +2608,7 @@ const de_DeleteBucketReplicationCommand = async (output, context) => {
2620
2608
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2621
2609
  return de_DeleteBucketReplicationCommandError(output, context);
2622
2610
  }
2623
- const contents = map({
2611
+ const contents = (0, smithy_client_1.map)({
2624
2612
  $metadata: deserializeMetadata(output),
2625
2613
  });
2626
2614
  await collectBody(output.body, context);
@@ -2634,10 +2622,9 @@ const de_DeleteBucketReplicationCommandError = async (output, context) => {
2634
2622
  };
2635
2623
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2636
2624
  const parsedBody = parsedOutput.body;
2637
- (0, smithy_client_1.throwDefaultError)({
2625
+ return throwDefaultError({
2638
2626
  output,
2639
2627
  parsedBody: parsedBody.Error,
2640
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2641
2628
  errorCode,
2642
2629
  });
2643
2630
  };
@@ -2645,7 +2632,7 @@ const de_DeleteBucketTaggingCommand = async (output, context) => {
2645
2632
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2646
2633
  return de_DeleteBucketTaggingCommandError(output, context);
2647
2634
  }
2648
- const contents = map({
2635
+ const contents = (0, smithy_client_1.map)({
2649
2636
  $metadata: deserializeMetadata(output),
2650
2637
  });
2651
2638
  await collectBody(output.body, context);
@@ -2659,10 +2646,9 @@ const de_DeleteBucketTaggingCommandError = async (output, context) => {
2659
2646
  };
2660
2647
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2661
2648
  const parsedBody = parsedOutput.body;
2662
- (0, smithy_client_1.throwDefaultError)({
2649
+ return throwDefaultError({
2663
2650
  output,
2664
2651
  parsedBody: parsedBody.Error,
2665
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2666
2652
  errorCode,
2667
2653
  });
2668
2654
  };
@@ -2670,7 +2656,7 @@ const de_DeleteJobTaggingCommand = async (output, context) => {
2670
2656
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2671
2657
  return de_DeleteJobTaggingCommandError(output, context);
2672
2658
  }
2673
- const contents = map({
2659
+ const contents = (0, smithy_client_1.map)({
2674
2660
  $metadata: deserializeMetadata(output),
2675
2661
  });
2676
2662
  await collectBody(output.body, context);
@@ -2695,10 +2681,9 @@ const de_DeleteJobTaggingCommandError = async (output, context) => {
2695
2681
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2696
2682
  default:
2697
2683
  const parsedBody = parsedOutput.body;
2698
- (0, smithy_client_1.throwDefaultError)({
2684
+ return throwDefaultError({
2699
2685
  output,
2700
2686
  parsedBody: parsedBody.Error,
2701
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2702
2687
  errorCode,
2703
2688
  });
2704
2689
  }
@@ -2707,7 +2692,7 @@ const de_DeleteMultiRegionAccessPointCommand = async (output, context) => {
2707
2692
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2708
2693
  return de_DeleteMultiRegionAccessPointCommandError(output, context);
2709
2694
  }
2710
- const contents = map({
2695
+ const contents = (0, smithy_client_1.map)({
2711
2696
  $metadata: deserializeMetadata(output),
2712
2697
  });
2713
2698
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2724,10 +2709,9 @@ const de_DeleteMultiRegionAccessPointCommandError = async (output, context) => {
2724
2709
  };
2725
2710
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2726
2711
  const parsedBody = parsedOutput.body;
2727
- (0, smithy_client_1.throwDefaultError)({
2712
+ return throwDefaultError({
2728
2713
  output,
2729
2714
  parsedBody: parsedBody.Error,
2730
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2731
2715
  errorCode,
2732
2716
  });
2733
2717
  };
@@ -2735,7 +2719,7 @@ const de_DeletePublicAccessBlockCommand = async (output, context) => {
2735
2719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2736
2720
  return de_DeletePublicAccessBlockCommandError(output, context);
2737
2721
  }
2738
- const contents = map({
2722
+ const contents = (0, smithy_client_1.map)({
2739
2723
  $metadata: deserializeMetadata(output),
2740
2724
  });
2741
2725
  await collectBody(output.body, context);
@@ -2749,10 +2733,9 @@ const de_DeletePublicAccessBlockCommandError = async (output, context) => {
2749
2733
  };
2750
2734
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2751
2735
  const parsedBody = parsedOutput.body;
2752
- (0, smithy_client_1.throwDefaultError)({
2736
+ return throwDefaultError({
2753
2737
  output,
2754
2738
  parsedBody: parsedBody.Error,
2755
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2756
2739
  errorCode,
2757
2740
  });
2758
2741
  };
@@ -2760,7 +2743,7 @@ const de_DeleteStorageLensConfigurationCommand = async (output, context) => {
2760
2743
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2761
2744
  return de_DeleteStorageLensConfigurationCommandError(output, context);
2762
2745
  }
2763
- const contents = map({
2746
+ const contents = (0, smithy_client_1.map)({
2764
2747
  $metadata: deserializeMetadata(output),
2765
2748
  });
2766
2749
  await collectBody(output.body, context);
@@ -2774,10 +2757,9 @@ const de_DeleteStorageLensConfigurationCommandError = async (output, context) =>
2774
2757
  };
2775
2758
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2776
2759
  const parsedBody = parsedOutput.body;
2777
- (0, smithy_client_1.throwDefaultError)({
2760
+ return throwDefaultError({
2778
2761
  output,
2779
2762
  parsedBody: parsedBody.Error,
2780
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2781
2763
  errorCode,
2782
2764
  });
2783
2765
  };
@@ -2785,7 +2767,7 @@ const de_DeleteStorageLensConfigurationTaggingCommand = async (output, context)
2785
2767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2786
2768
  return de_DeleteStorageLensConfigurationTaggingCommandError(output, context);
2787
2769
  }
2788
- const contents = map({
2770
+ const contents = (0, smithy_client_1.map)({
2789
2771
  $metadata: deserializeMetadata(output),
2790
2772
  });
2791
2773
  await collectBody(output.body, context);
@@ -2799,10 +2781,9 @@ const de_DeleteStorageLensConfigurationTaggingCommandError = async (output, cont
2799
2781
  };
2800
2782
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2801
2783
  const parsedBody = parsedOutput.body;
2802
- (0, smithy_client_1.throwDefaultError)({
2784
+ return throwDefaultError({
2803
2785
  output,
2804
2786
  parsedBody: parsedBody.Error,
2805
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2806
2787
  errorCode,
2807
2788
  });
2808
2789
  };
@@ -2810,7 +2791,7 @@ const de_DescribeJobCommand = async (output, context) => {
2810
2791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2811
2792
  return de_DescribeJobCommandError(output, context);
2812
2793
  }
2813
- const contents = map({
2794
+ const contents = (0, smithy_client_1.map)({
2814
2795
  $metadata: deserializeMetadata(output),
2815
2796
  });
2816
2797
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2841,10 +2822,9 @@ const de_DescribeJobCommandError = async (output, context) => {
2841
2822
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2842
2823
  default:
2843
2824
  const parsedBody = parsedOutput.body;
2844
- (0, smithy_client_1.throwDefaultError)({
2825
+ return throwDefaultError({
2845
2826
  output,
2846
2827
  parsedBody: parsedBody.Error,
2847
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2848
2828
  errorCode,
2849
2829
  });
2850
2830
  }
@@ -2853,7 +2833,7 @@ const de_DescribeMultiRegionAccessPointOperationCommand = async (output, context
2853
2833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2854
2834
  return de_DescribeMultiRegionAccessPointOperationCommandError(output, context);
2855
2835
  }
2856
- const contents = map({
2836
+ const contents = (0, smithy_client_1.map)({
2857
2837
  $metadata: deserializeMetadata(output),
2858
2838
  });
2859
2839
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2870,10 +2850,9 @@ const de_DescribeMultiRegionAccessPointOperationCommandError = async (output, co
2870
2850
  };
2871
2851
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2872
2852
  const parsedBody = parsedOutput.body;
2873
- (0, smithy_client_1.throwDefaultError)({
2853
+ return throwDefaultError({
2874
2854
  output,
2875
2855
  parsedBody: parsedBody.Error,
2876
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2877
2856
  errorCode,
2878
2857
  });
2879
2858
  };
@@ -2881,7 +2860,7 @@ const de_GetAccessPointCommand = async (output, context) => {
2881
2860
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2882
2861
  return de_GetAccessPointCommandError(output, context);
2883
2862
  }
2884
- const contents = map({
2863
+ const contents = (0, smithy_client_1.map)({
2885
2864
  $metadata: deserializeMetadata(output),
2886
2865
  });
2887
2866
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2928,10 +2907,9 @@ const de_GetAccessPointCommandError = async (output, context) => {
2928
2907
  };
2929
2908
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2930
2909
  const parsedBody = parsedOutput.body;
2931
- (0, smithy_client_1.throwDefaultError)({
2910
+ return throwDefaultError({
2932
2911
  output,
2933
2912
  parsedBody: parsedBody.Error,
2934
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2935
2913
  errorCode,
2936
2914
  });
2937
2915
  };
@@ -2939,7 +2917,7 @@ const de_GetAccessPointConfigurationForObjectLambdaCommand = async (output, cont
2939
2917
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2940
2918
  return de_GetAccessPointConfigurationForObjectLambdaCommandError(output, context);
2941
2919
  }
2942
- const contents = map({
2920
+ const contents = (0, smithy_client_1.map)({
2943
2921
  $metadata: deserializeMetadata(output),
2944
2922
  });
2945
2923
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2956,10 +2934,9 @@ const de_GetAccessPointConfigurationForObjectLambdaCommandError = async (output,
2956
2934
  };
2957
2935
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2958
2936
  const parsedBody = parsedOutput.body;
2959
- (0, smithy_client_1.throwDefaultError)({
2937
+ return throwDefaultError({
2960
2938
  output,
2961
2939
  parsedBody: parsedBody.Error,
2962
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
2963
2940
  errorCode,
2964
2941
  });
2965
2942
  };
@@ -2967,7 +2944,7 @@ const de_GetAccessPointForObjectLambdaCommand = async (output, context) => {
2967
2944
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2968
2945
  return de_GetAccessPointForObjectLambdaCommandError(output, context);
2969
2946
  }
2970
- const contents = map({
2947
+ const contents = (0, smithy_client_1.map)({
2971
2948
  $metadata: deserializeMetadata(output),
2972
2949
  });
2973
2950
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -2993,10 +2970,9 @@ const de_GetAccessPointForObjectLambdaCommandError = async (output, context) =>
2993
2970
  };
2994
2971
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2995
2972
  const parsedBody = parsedOutput.body;
2996
- (0, smithy_client_1.throwDefaultError)({
2973
+ return throwDefaultError({
2997
2974
  output,
2998
2975
  parsedBody: parsedBody.Error,
2999
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3000
2976
  errorCode,
3001
2977
  });
3002
2978
  };
@@ -3004,7 +2980,7 @@ const de_GetAccessPointPolicyCommand = async (output, context) => {
3004
2980
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3005
2981
  return de_GetAccessPointPolicyCommandError(output, context);
3006
2982
  }
3007
- const contents = map({
2983
+ const contents = (0, smithy_client_1.map)({
3008
2984
  $metadata: deserializeMetadata(output),
3009
2985
  });
3010
2986
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3021,10 +2997,9 @@ const de_GetAccessPointPolicyCommandError = async (output, context) => {
3021
2997
  };
3022
2998
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3023
2999
  const parsedBody = parsedOutput.body;
3024
- (0, smithy_client_1.throwDefaultError)({
3000
+ return throwDefaultError({
3025
3001
  output,
3026
3002
  parsedBody: parsedBody.Error,
3027
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3028
3003
  errorCode,
3029
3004
  });
3030
3005
  };
@@ -3032,7 +3007,7 @@ const de_GetAccessPointPolicyForObjectLambdaCommand = async (output, context) =>
3032
3007
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3033
3008
  return de_GetAccessPointPolicyForObjectLambdaCommandError(output, context);
3034
3009
  }
3035
- const contents = map({
3010
+ const contents = (0, smithy_client_1.map)({
3036
3011
  $metadata: deserializeMetadata(output),
3037
3012
  });
3038
3013
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3049,10 +3024,9 @@ const de_GetAccessPointPolicyForObjectLambdaCommandError = async (output, contex
3049
3024
  };
3050
3025
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3051
3026
  const parsedBody = parsedOutput.body;
3052
- (0, smithy_client_1.throwDefaultError)({
3027
+ return throwDefaultError({
3053
3028
  output,
3054
3029
  parsedBody: parsedBody.Error,
3055
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3056
3030
  errorCode,
3057
3031
  });
3058
3032
  };
@@ -3060,7 +3034,7 @@ const de_GetAccessPointPolicyStatusCommand = async (output, context) => {
3060
3034
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3061
3035
  return de_GetAccessPointPolicyStatusCommandError(output, context);
3062
3036
  }
3063
- const contents = map({
3037
+ const contents = (0, smithy_client_1.map)({
3064
3038
  $metadata: deserializeMetadata(output),
3065
3039
  });
3066
3040
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3077,10 +3051,9 @@ const de_GetAccessPointPolicyStatusCommandError = async (output, context) => {
3077
3051
  };
3078
3052
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3079
3053
  const parsedBody = parsedOutput.body;
3080
- (0, smithy_client_1.throwDefaultError)({
3054
+ return throwDefaultError({
3081
3055
  output,
3082
3056
  parsedBody: parsedBody.Error,
3083
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3084
3057
  errorCode,
3085
3058
  });
3086
3059
  };
@@ -3088,7 +3061,7 @@ const de_GetAccessPointPolicyStatusForObjectLambdaCommand = async (output, conte
3088
3061
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3089
3062
  return de_GetAccessPointPolicyStatusForObjectLambdaCommandError(output, context);
3090
3063
  }
3091
- const contents = map({
3064
+ const contents = (0, smithy_client_1.map)({
3092
3065
  $metadata: deserializeMetadata(output),
3093
3066
  });
3094
3067
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3105,10 +3078,9 @@ const de_GetAccessPointPolicyStatusForObjectLambdaCommandError = async (output,
3105
3078
  };
3106
3079
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3107
3080
  const parsedBody = parsedOutput.body;
3108
- (0, smithy_client_1.throwDefaultError)({
3081
+ return throwDefaultError({
3109
3082
  output,
3110
3083
  parsedBody: parsedBody.Error,
3111
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3112
3084
  errorCode,
3113
3085
  });
3114
3086
  };
@@ -3116,7 +3088,7 @@ const de_GetBucketCommand = async (output, context) => {
3116
3088
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3117
3089
  return de_GetBucketCommandError(output, context);
3118
3090
  }
3119
- const contents = map({
3091
+ const contents = (0, smithy_client_1.map)({
3120
3092
  $metadata: deserializeMetadata(output),
3121
3093
  });
3122
3094
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3139,10 +3111,9 @@ const de_GetBucketCommandError = async (output, context) => {
3139
3111
  };
3140
3112
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3141
3113
  const parsedBody = parsedOutput.body;
3142
- (0, smithy_client_1.throwDefaultError)({
3114
+ return throwDefaultError({
3143
3115
  output,
3144
3116
  parsedBody: parsedBody.Error,
3145
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3146
3117
  errorCode,
3147
3118
  });
3148
3119
  };
@@ -3150,7 +3121,7 @@ const de_GetBucketLifecycleConfigurationCommand = async (output, context) => {
3150
3121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3151
3122
  return de_GetBucketLifecycleConfigurationCommandError(output, context);
3152
3123
  }
3153
- const contents = map({
3124
+ const contents = (0, smithy_client_1.map)({
3154
3125
  $metadata: deserializeMetadata(output),
3155
3126
  });
3156
3127
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3170,10 +3141,9 @@ const de_GetBucketLifecycleConfigurationCommandError = async (output, context) =
3170
3141
  };
3171
3142
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3172
3143
  const parsedBody = parsedOutput.body;
3173
- (0, smithy_client_1.throwDefaultError)({
3144
+ return throwDefaultError({
3174
3145
  output,
3175
3146
  parsedBody: parsedBody.Error,
3176
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3177
3147
  errorCode,
3178
3148
  });
3179
3149
  };
@@ -3181,7 +3151,7 @@ const de_GetBucketPolicyCommand = async (output, context) => {
3181
3151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3182
3152
  return de_GetBucketPolicyCommandError(output, context);
3183
3153
  }
3184
- const contents = map({
3154
+ const contents = (0, smithy_client_1.map)({
3185
3155
  $metadata: deserializeMetadata(output),
3186
3156
  });
3187
3157
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3198,10 +3168,9 @@ const de_GetBucketPolicyCommandError = async (output, context) => {
3198
3168
  };
3199
3169
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3200
3170
  const parsedBody = parsedOutput.body;
3201
- (0, smithy_client_1.throwDefaultError)({
3171
+ return throwDefaultError({
3202
3172
  output,
3203
3173
  parsedBody: parsedBody.Error,
3204
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3205
3174
  errorCode,
3206
3175
  });
3207
3176
  };
@@ -3209,7 +3178,7 @@ const de_GetBucketReplicationCommand = async (output, context) => {
3209
3178
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3210
3179
  return de_GetBucketReplicationCommandError(output, context);
3211
3180
  }
3212
- const contents = map({
3181
+ const contents = (0, smithy_client_1.map)({
3213
3182
  $metadata: deserializeMetadata(output),
3214
3183
  });
3215
3184
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3226,10 +3195,9 @@ const de_GetBucketReplicationCommandError = async (output, context) => {
3226
3195
  };
3227
3196
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3228
3197
  const parsedBody = parsedOutput.body;
3229
- (0, smithy_client_1.throwDefaultError)({
3198
+ return throwDefaultError({
3230
3199
  output,
3231
3200
  parsedBody: parsedBody.Error,
3232
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3233
3201
  errorCode,
3234
3202
  });
3235
3203
  };
@@ -3237,7 +3205,7 @@ const de_GetBucketTaggingCommand = async (output, context) => {
3237
3205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3238
3206
  return de_GetBucketTaggingCommandError(output, context);
3239
3207
  }
3240
- const contents = map({
3208
+ const contents = (0, smithy_client_1.map)({
3241
3209
  $metadata: deserializeMetadata(output),
3242
3210
  });
3243
3211
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3257,10 +3225,9 @@ const de_GetBucketTaggingCommandError = async (output, context) => {
3257
3225
  };
3258
3226
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3259
3227
  const parsedBody = parsedOutput.body;
3260
- (0, smithy_client_1.throwDefaultError)({
3228
+ return throwDefaultError({
3261
3229
  output,
3262
3230
  parsedBody: parsedBody.Error,
3263
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3264
3231
  errorCode,
3265
3232
  });
3266
3233
  };
@@ -3268,7 +3235,7 @@ const de_GetBucketVersioningCommand = async (output, context) => {
3268
3235
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3269
3236
  return de_GetBucketVersioningCommandError(output, context);
3270
3237
  }
3271
- const contents = map({
3238
+ const contents = (0, smithy_client_1.map)({
3272
3239
  $metadata: deserializeMetadata(output),
3273
3240
  });
3274
3241
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3288,10 +3255,9 @@ const de_GetBucketVersioningCommandError = async (output, context) => {
3288
3255
  };
3289
3256
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3290
3257
  const parsedBody = parsedOutput.body;
3291
- (0, smithy_client_1.throwDefaultError)({
3258
+ return throwDefaultError({
3292
3259
  output,
3293
3260
  parsedBody: parsedBody.Error,
3294
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3295
3261
  errorCode,
3296
3262
  });
3297
3263
  };
@@ -3299,7 +3265,7 @@ const de_GetJobTaggingCommand = async (output, context) => {
3299
3265
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3300
3266
  return de_GetJobTaggingCommandError(output, context);
3301
3267
  }
3302
- const contents = map({
3268
+ const contents = (0, smithy_client_1.map)({
3303
3269
  $metadata: deserializeMetadata(output),
3304
3270
  });
3305
3271
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3330,10 +3296,9 @@ const de_GetJobTaggingCommandError = async (output, context) => {
3330
3296
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3331
3297
  default:
3332
3298
  const parsedBody = parsedOutput.body;
3333
- (0, smithy_client_1.throwDefaultError)({
3299
+ return throwDefaultError({
3334
3300
  output,
3335
3301
  parsedBody: parsedBody.Error,
3336
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3337
3302
  errorCode,
3338
3303
  });
3339
3304
  }
@@ -3342,7 +3307,7 @@ const de_GetMultiRegionAccessPointCommand = async (output, context) => {
3342
3307
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3343
3308
  return de_GetMultiRegionAccessPointCommandError(output, context);
3344
3309
  }
3345
- const contents = map({
3310
+ const contents = (0, smithy_client_1.map)({
3346
3311
  $metadata: deserializeMetadata(output),
3347
3312
  });
3348
3313
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3359,10 +3324,9 @@ const de_GetMultiRegionAccessPointCommandError = async (output, context) => {
3359
3324
  };
3360
3325
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3361
3326
  const parsedBody = parsedOutput.body;
3362
- (0, smithy_client_1.throwDefaultError)({
3327
+ return throwDefaultError({
3363
3328
  output,
3364
3329
  parsedBody: parsedBody.Error,
3365
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3366
3330
  errorCode,
3367
3331
  });
3368
3332
  };
@@ -3370,7 +3334,7 @@ const de_GetMultiRegionAccessPointPolicyCommand = async (output, context) => {
3370
3334
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3371
3335
  return de_GetMultiRegionAccessPointPolicyCommandError(output, context);
3372
3336
  }
3373
- const contents = map({
3337
+ const contents = (0, smithy_client_1.map)({
3374
3338
  $metadata: deserializeMetadata(output),
3375
3339
  });
3376
3340
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3387,10 +3351,9 @@ const de_GetMultiRegionAccessPointPolicyCommandError = async (output, context) =
3387
3351
  };
3388
3352
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3389
3353
  const parsedBody = parsedOutput.body;
3390
- (0, smithy_client_1.throwDefaultError)({
3354
+ return throwDefaultError({
3391
3355
  output,
3392
3356
  parsedBody: parsedBody.Error,
3393
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3394
3357
  errorCode,
3395
3358
  });
3396
3359
  };
@@ -3398,7 +3361,7 @@ const de_GetMultiRegionAccessPointPolicyStatusCommand = async (output, context)
3398
3361
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3399
3362
  return de_GetMultiRegionAccessPointPolicyStatusCommandError(output, context);
3400
3363
  }
3401
- const contents = map({
3364
+ const contents = (0, smithy_client_1.map)({
3402
3365
  $metadata: deserializeMetadata(output),
3403
3366
  });
3404
3367
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3415,10 +3378,9 @@ const de_GetMultiRegionAccessPointPolicyStatusCommandError = async (output, cont
3415
3378
  };
3416
3379
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3417
3380
  const parsedBody = parsedOutput.body;
3418
- (0, smithy_client_1.throwDefaultError)({
3381
+ return throwDefaultError({
3419
3382
  output,
3420
3383
  parsedBody: parsedBody.Error,
3421
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3422
3384
  errorCode,
3423
3385
  });
3424
3386
  };
@@ -3426,7 +3388,7 @@ const de_GetMultiRegionAccessPointRoutesCommand = async (output, context) => {
3426
3388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3427
3389
  return de_GetMultiRegionAccessPointRoutesCommandError(output, context);
3428
3390
  }
3429
- const contents = map({
3391
+ const contents = (0, smithy_client_1.map)({
3430
3392
  $metadata: deserializeMetadata(output),
3431
3393
  });
3432
3394
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3449,10 +3411,9 @@ const de_GetMultiRegionAccessPointRoutesCommandError = async (output, context) =
3449
3411
  };
3450
3412
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3451
3413
  const parsedBody = parsedOutput.body;
3452
- (0, smithy_client_1.throwDefaultError)({
3414
+ return throwDefaultError({
3453
3415
  output,
3454
3416
  parsedBody: parsedBody.Error,
3455
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3456
3417
  errorCode,
3457
3418
  });
3458
3419
  };
@@ -3460,7 +3421,7 @@ const de_GetPublicAccessBlockCommand = async (output, context) => {
3460
3421
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3461
3422
  return de_GetPublicAccessBlockCommandError(output, context);
3462
3423
  }
3463
- const contents = map({
3424
+ const contents = (0, smithy_client_1.map)({
3464
3425
  $metadata: deserializeMetadata(output),
3465
3426
  });
3466
3427
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -3480,10 +3441,9 @@ const de_GetPublicAccessBlockCommandError = async (output, context) => {
3480
3441
  throw await de_NoSuchPublicAccessBlockConfigurationRes(parsedOutput, context);
3481
3442
  default:
3482
3443
  const parsedBody = parsedOutput.body;
3483
- (0, smithy_client_1.throwDefaultError)({
3444
+ return throwDefaultError({
3484
3445
  output,
3485
3446
  parsedBody: parsedBody.Error,
3486
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3487
3447
  errorCode,
3488
3448
  });
3489
3449
  }
@@ -3492,7 +3452,7 @@ const de_GetStorageLensConfigurationCommand = async (output, context) => {
3492
3452
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3493
3453
  return de_GetStorageLensConfigurationCommandError(output, context);
3494
3454
  }
3495
- const contents = map({
3455
+ const contents = (0, smithy_client_1.map)({
3496
3456
  $metadata: deserializeMetadata(output),
3497
3457
  });
3498
3458
  const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
@@ -3507,10 +3467,9 @@ const de_GetStorageLensConfigurationCommandError = async (output, context) => {
3507
3467
  };
3508
3468
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3509
3469
  const parsedBody = parsedOutput.body;
3510
- (0, smithy_client_1.throwDefaultError)({
3470
+ return throwDefaultError({
3511
3471
  output,
3512
3472
  parsedBody: parsedBody.Error,
3513
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3514
3473
  errorCode,
3515
3474
  });
3516
3475
  };
@@ -3518,7 +3477,7 @@ const de_GetStorageLensConfigurationTaggingCommand = async (output, context) =>
3518
3477
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3519
3478
  return de_GetStorageLensConfigurationTaggingCommandError(output, context);
3520
3479
  }
3521
- const contents = map({
3480
+ const contents = (0, smithy_client_1.map)({
3522
3481
  $metadata: deserializeMetadata(output),
3523
3482
  });
3524
3483
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3538,10 +3497,9 @@ const de_GetStorageLensConfigurationTaggingCommandError = async (output, context
3538
3497
  };
3539
3498
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3540
3499
  const parsedBody = parsedOutput.body;
3541
- (0, smithy_client_1.throwDefaultError)({
3500
+ return throwDefaultError({
3542
3501
  output,
3543
3502
  parsedBody: parsedBody.Error,
3544
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3545
3503
  errorCode,
3546
3504
  });
3547
3505
  };
@@ -3549,7 +3507,7 @@ const de_ListAccessPointsCommand = async (output, context) => {
3549
3507
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3550
3508
  return de_ListAccessPointsCommandError(output, context);
3551
3509
  }
3552
- const contents = map({
3510
+ const contents = (0, smithy_client_1.map)({
3553
3511
  $metadata: deserializeMetadata(output),
3554
3512
  });
3555
3513
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3572,10 +3530,9 @@ const de_ListAccessPointsCommandError = async (output, context) => {
3572
3530
  };
3573
3531
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3574
3532
  const parsedBody = parsedOutput.body;
3575
- (0, smithy_client_1.throwDefaultError)({
3533
+ return throwDefaultError({
3576
3534
  output,
3577
3535
  parsedBody: parsedBody.Error,
3578
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3579
3536
  errorCode,
3580
3537
  });
3581
3538
  };
@@ -3583,7 +3540,7 @@ const de_ListAccessPointsForObjectLambdaCommand = async (output, context) => {
3583
3540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3584
3541
  return de_ListAccessPointsForObjectLambdaCommandError(output, context);
3585
3542
  }
3586
- const contents = map({
3543
+ const contents = (0, smithy_client_1.map)({
3587
3544
  $metadata: deserializeMetadata(output),
3588
3545
  });
3589
3546
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3607,10 +3564,9 @@ const de_ListAccessPointsForObjectLambdaCommandError = async (output, context) =
3607
3564
  };
3608
3565
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3609
3566
  const parsedBody = parsedOutput.body;
3610
- (0, smithy_client_1.throwDefaultError)({
3567
+ return throwDefaultError({
3611
3568
  output,
3612
3569
  parsedBody: parsedBody.Error,
3613
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3614
3570
  errorCode,
3615
3571
  });
3616
3572
  };
@@ -3618,7 +3574,7 @@ const de_ListJobsCommand = async (output, context) => {
3618
3574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3619
3575
  return de_ListJobsCommandError(output, context);
3620
3576
  }
3621
- const contents = map({
3577
+ const contents = (0, smithy_client_1.map)({
3622
3578
  $metadata: deserializeMetadata(output),
3623
3579
  });
3624
3580
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3652,10 +3608,9 @@ const de_ListJobsCommandError = async (output, context) => {
3652
3608
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3653
3609
  default:
3654
3610
  const parsedBody = parsedOutput.body;
3655
- (0, smithy_client_1.throwDefaultError)({
3611
+ return throwDefaultError({
3656
3612
  output,
3657
3613
  parsedBody: parsedBody.Error,
3658
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3659
3614
  errorCode,
3660
3615
  });
3661
3616
  }
@@ -3664,7 +3619,7 @@ const de_ListMultiRegionAccessPointsCommand = async (output, context) => {
3664
3619
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3665
3620
  return de_ListMultiRegionAccessPointsCommandError(output, context);
3666
3621
  }
3667
- const contents = map({
3622
+ const contents = (0, smithy_client_1.map)({
3668
3623
  $metadata: deserializeMetadata(output),
3669
3624
  });
3670
3625
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3687,10 +3642,9 @@ const de_ListMultiRegionAccessPointsCommandError = async (output, context) => {
3687
3642
  };
3688
3643
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3689
3644
  const parsedBody = parsedOutput.body;
3690
- (0, smithy_client_1.throwDefaultError)({
3645
+ return throwDefaultError({
3691
3646
  output,
3692
3647
  parsedBody: parsedBody.Error,
3693
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3694
3648
  errorCode,
3695
3649
  });
3696
3650
  };
@@ -3698,7 +3652,7 @@ const de_ListRegionalBucketsCommand = async (output, context) => {
3698
3652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3699
3653
  return de_ListRegionalBucketsCommandError(output, context);
3700
3654
  }
3701
- const contents = map({
3655
+ const contents = (0, smithy_client_1.map)({
3702
3656
  $metadata: deserializeMetadata(output),
3703
3657
  });
3704
3658
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3721,10 +3675,9 @@ const de_ListRegionalBucketsCommandError = async (output, context) => {
3721
3675
  };
3722
3676
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3723
3677
  const parsedBody = parsedOutput.body;
3724
- (0, smithy_client_1.throwDefaultError)({
3678
+ return throwDefaultError({
3725
3679
  output,
3726
3680
  parsedBody: parsedBody.Error,
3727
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3728
3681
  errorCode,
3729
3682
  });
3730
3683
  };
@@ -3732,7 +3685,7 @@ const de_ListStorageLensConfigurationsCommand = async (output, context) => {
3732
3685
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3733
3686
  return de_ListStorageLensConfigurationsCommandError(output, context);
3734
3687
  }
3735
- const contents = map({
3688
+ const contents = (0, smithy_client_1.map)({
3736
3689
  $metadata: deserializeMetadata(output),
3737
3690
  });
3738
3691
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -3755,10 +3708,9 @@ const de_ListStorageLensConfigurationsCommandError = async (output, context) =>
3755
3708
  };
3756
3709
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3757
3710
  const parsedBody = parsedOutput.body;
3758
- (0, smithy_client_1.throwDefaultError)({
3711
+ return throwDefaultError({
3759
3712
  output,
3760
3713
  parsedBody: parsedBody.Error,
3761
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3762
3714
  errorCode,
3763
3715
  });
3764
3716
  };
@@ -3766,7 +3718,7 @@ const de_PutAccessPointConfigurationForObjectLambdaCommand = async (output, cont
3766
3718
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3767
3719
  return de_PutAccessPointConfigurationForObjectLambdaCommandError(output, context);
3768
3720
  }
3769
- const contents = map({
3721
+ const contents = (0, smithy_client_1.map)({
3770
3722
  $metadata: deserializeMetadata(output),
3771
3723
  });
3772
3724
  await collectBody(output.body, context);
@@ -3780,10 +3732,9 @@ const de_PutAccessPointConfigurationForObjectLambdaCommandError = async (output,
3780
3732
  };
3781
3733
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3782
3734
  const parsedBody = parsedOutput.body;
3783
- (0, smithy_client_1.throwDefaultError)({
3735
+ return throwDefaultError({
3784
3736
  output,
3785
3737
  parsedBody: parsedBody.Error,
3786
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3787
3738
  errorCode,
3788
3739
  });
3789
3740
  };
@@ -3791,7 +3742,7 @@ const de_PutAccessPointPolicyCommand = async (output, context) => {
3791
3742
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3792
3743
  return de_PutAccessPointPolicyCommandError(output, context);
3793
3744
  }
3794
- const contents = map({
3745
+ const contents = (0, smithy_client_1.map)({
3795
3746
  $metadata: deserializeMetadata(output),
3796
3747
  });
3797
3748
  await collectBody(output.body, context);
@@ -3805,10 +3756,9 @@ const de_PutAccessPointPolicyCommandError = async (output, context) => {
3805
3756
  };
3806
3757
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3807
3758
  const parsedBody = parsedOutput.body;
3808
- (0, smithy_client_1.throwDefaultError)({
3759
+ return throwDefaultError({
3809
3760
  output,
3810
3761
  parsedBody: parsedBody.Error,
3811
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3812
3762
  errorCode,
3813
3763
  });
3814
3764
  };
@@ -3816,7 +3766,7 @@ const de_PutAccessPointPolicyForObjectLambdaCommand = async (output, context) =>
3816
3766
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3817
3767
  return de_PutAccessPointPolicyForObjectLambdaCommandError(output, context);
3818
3768
  }
3819
- const contents = map({
3769
+ const contents = (0, smithy_client_1.map)({
3820
3770
  $metadata: deserializeMetadata(output),
3821
3771
  });
3822
3772
  await collectBody(output.body, context);
@@ -3830,10 +3780,9 @@ const de_PutAccessPointPolicyForObjectLambdaCommandError = async (output, contex
3830
3780
  };
3831
3781
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3832
3782
  const parsedBody = parsedOutput.body;
3833
- (0, smithy_client_1.throwDefaultError)({
3783
+ return throwDefaultError({
3834
3784
  output,
3835
3785
  parsedBody: parsedBody.Error,
3836
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3837
3786
  errorCode,
3838
3787
  });
3839
3788
  };
@@ -3841,7 +3790,7 @@ const de_PutBucketLifecycleConfigurationCommand = async (output, context) => {
3841
3790
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3842
3791
  return de_PutBucketLifecycleConfigurationCommandError(output, context);
3843
3792
  }
3844
- const contents = map({
3793
+ const contents = (0, smithy_client_1.map)({
3845
3794
  $metadata: deserializeMetadata(output),
3846
3795
  });
3847
3796
  await collectBody(output.body, context);
@@ -3855,10 +3804,9 @@ const de_PutBucketLifecycleConfigurationCommandError = async (output, context) =
3855
3804
  };
3856
3805
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3857
3806
  const parsedBody = parsedOutput.body;
3858
- (0, smithy_client_1.throwDefaultError)({
3807
+ return throwDefaultError({
3859
3808
  output,
3860
3809
  parsedBody: parsedBody.Error,
3861
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3862
3810
  errorCode,
3863
3811
  });
3864
3812
  };
@@ -3866,7 +3814,7 @@ const de_PutBucketPolicyCommand = async (output, context) => {
3866
3814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3867
3815
  return de_PutBucketPolicyCommandError(output, context);
3868
3816
  }
3869
- const contents = map({
3817
+ const contents = (0, smithy_client_1.map)({
3870
3818
  $metadata: deserializeMetadata(output),
3871
3819
  });
3872
3820
  await collectBody(output.body, context);
@@ -3880,10 +3828,9 @@ const de_PutBucketPolicyCommandError = async (output, context) => {
3880
3828
  };
3881
3829
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3882
3830
  const parsedBody = parsedOutput.body;
3883
- (0, smithy_client_1.throwDefaultError)({
3831
+ return throwDefaultError({
3884
3832
  output,
3885
3833
  parsedBody: parsedBody.Error,
3886
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3887
3834
  errorCode,
3888
3835
  });
3889
3836
  };
@@ -3891,7 +3838,7 @@ const de_PutBucketReplicationCommand = async (output, context) => {
3891
3838
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3892
3839
  return de_PutBucketReplicationCommandError(output, context);
3893
3840
  }
3894
- const contents = map({
3841
+ const contents = (0, smithy_client_1.map)({
3895
3842
  $metadata: deserializeMetadata(output),
3896
3843
  });
3897
3844
  await collectBody(output.body, context);
@@ -3905,10 +3852,9 @@ const de_PutBucketReplicationCommandError = async (output, context) => {
3905
3852
  };
3906
3853
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3907
3854
  const parsedBody = parsedOutput.body;
3908
- (0, smithy_client_1.throwDefaultError)({
3855
+ return throwDefaultError({
3909
3856
  output,
3910
3857
  parsedBody: parsedBody.Error,
3911
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3912
3858
  errorCode,
3913
3859
  });
3914
3860
  };
@@ -3916,7 +3862,7 @@ const de_PutBucketTaggingCommand = async (output, context) => {
3916
3862
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3917
3863
  return de_PutBucketTaggingCommandError(output, context);
3918
3864
  }
3919
- const contents = map({
3865
+ const contents = (0, smithy_client_1.map)({
3920
3866
  $metadata: deserializeMetadata(output),
3921
3867
  });
3922
3868
  await collectBody(output.body, context);
@@ -3930,10 +3876,9 @@ const de_PutBucketTaggingCommandError = async (output, context) => {
3930
3876
  };
3931
3877
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3932
3878
  const parsedBody = parsedOutput.body;
3933
- (0, smithy_client_1.throwDefaultError)({
3879
+ return throwDefaultError({
3934
3880
  output,
3935
3881
  parsedBody: parsedBody.Error,
3936
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3937
3882
  errorCode,
3938
3883
  });
3939
3884
  };
@@ -3941,7 +3886,7 @@ const de_PutBucketVersioningCommand = async (output, context) => {
3941
3886
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3942
3887
  return de_PutBucketVersioningCommandError(output, context);
3943
3888
  }
3944
- const contents = map({
3889
+ const contents = (0, smithy_client_1.map)({
3945
3890
  $metadata: deserializeMetadata(output),
3946
3891
  });
3947
3892
  await collectBody(output.body, context);
@@ -3955,10 +3900,9 @@ const de_PutBucketVersioningCommandError = async (output, context) => {
3955
3900
  };
3956
3901
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3957
3902
  const parsedBody = parsedOutput.body;
3958
- (0, smithy_client_1.throwDefaultError)({
3903
+ return throwDefaultError({
3959
3904
  output,
3960
3905
  parsedBody: parsedBody.Error,
3961
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
3962
3906
  errorCode,
3963
3907
  });
3964
3908
  };
@@ -3966,7 +3910,7 @@ const de_PutJobTaggingCommand = async (output, context) => {
3966
3910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3967
3911
  return de_PutJobTaggingCommandError(output, context);
3968
3912
  }
3969
- const contents = map({
3913
+ const contents = (0, smithy_client_1.map)({
3970
3914
  $metadata: deserializeMetadata(output),
3971
3915
  });
3972
3916
  await collectBody(output.body, context);
@@ -3994,10 +3938,9 @@ const de_PutJobTaggingCommandError = async (output, context) => {
3994
3938
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
3995
3939
  default:
3996
3940
  const parsedBody = parsedOutput.body;
3997
- (0, smithy_client_1.throwDefaultError)({
3941
+ return throwDefaultError({
3998
3942
  output,
3999
3943
  parsedBody: parsedBody.Error,
4000
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4001
3944
  errorCode,
4002
3945
  });
4003
3946
  }
@@ -4006,7 +3949,7 @@ const de_PutMultiRegionAccessPointPolicyCommand = async (output, context) => {
4006
3949
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4007
3950
  return de_PutMultiRegionAccessPointPolicyCommandError(output, context);
4008
3951
  }
4009
- const contents = map({
3952
+ const contents = (0, smithy_client_1.map)({
4010
3953
  $metadata: deserializeMetadata(output),
4011
3954
  });
4012
3955
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4023,10 +3966,9 @@ const de_PutMultiRegionAccessPointPolicyCommandError = async (output, context) =
4023
3966
  };
4024
3967
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4025
3968
  const parsedBody = parsedOutput.body;
4026
- (0, smithy_client_1.throwDefaultError)({
3969
+ return throwDefaultError({
4027
3970
  output,
4028
3971
  parsedBody: parsedBody.Error,
4029
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4030
3972
  errorCode,
4031
3973
  });
4032
3974
  };
@@ -4034,7 +3976,7 @@ const de_PutPublicAccessBlockCommand = async (output, context) => {
4034
3976
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4035
3977
  return de_PutPublicAccessBlockCommandError(output, context);
4036
3978
  }
4037
- const contents = map({
3979
+ const contents = (0, smithy_client_1.map)({
4038
3980
  $metadata: deserializeMetadata(output),
4039
3981
  });
4040
3982
  await collectBody(output.body, context);
@@ -4048,10 +3990,9 @@ const de_PutPublicAccessBlockCommandError = async (output, context) => {
4048
3990
  };
4049
3991
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4050
3992
  const parsedBody = parsedOutput.body;
4051
- (0, smithy_client_1.throwDefaultError)({
3993
+ return throwDefaultError({
4052
3994
  output,
4053
3995
  parsedBody: parsedBody.Error,
4054
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4055
3996
  errorCode,
4056
3997
  });
4057
3998
  };
@@ -4059,7 +4000,7 @@ const de_PutStorageLensConfigurationCommand = async (output, context) => {
4059
4000
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4060
4001
  return de_PutStorageLensConfigurationCommandError(output, context);
4061
4002
  }
4062
- const contents = map({
4003
+ const contents = (0, smithy_client_1.map)({
4063
4004
  $metadata: deserializeMetadata(output),
4064
4005
  });
4065
4006
  await collectBody(output.body, context);
@@ -4073,10 +4014,9 @@ const de_PutStorageLensConfigurationCommandError = async (output, context) => {
4073
4014
  };
4074
4015
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4075
4016
  const parsedBody = parsedOutput.body;
4076
- (0, smithy_client_1.throwDefaultError)({
4017
+ return throwDefaultError({
4077
4018
  output,
4078
4019
  parsedBody: parsedBody.Error,
4079
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4080
4020
  errorCode,
4081
4021
  });
4082
4022
  };
@@ -4084,7 +4024,7 @@ const de_PutStorageLensConfigurationTaggingCommand = async (output, context) =>
4084
4024
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4085
4025
  return de_PutStorageLensConfigurationTaggingCommandError(output, context);
4086
4026
  }
4087
- const contents = map({
4027
+ const contents = (0, smithy_client_1.map)({
4088
4028
  $metadata: deserializeMetadata(output),
4089
4029
  });
4090
4030
  await collectBody(output.body, context);
@@ -4098,10 +4038,9 @@ const de_PutStorageLensConfigurationTaggingCommandError = async (output, context
4098
4038
  };
4099
4039
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4100
4040
  const parsedBody = parsedOutput.body;
4101
- (0, smithy_client_1.throwDefaultError)({
4041
+ return throwDefaultError({
4102
4042
  output,
4103
4043
  parsedBody: parsedBody.Error,
4104
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4105
4044
  errorCode,
4106
4045
  });
4107
4046
  };
@@ -4109,7 +4048,7 @@ const de_SubmitMultiRegionAccessPointRoutesCommand = async (output, context) =>
4109
4048
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4110
4049
  return de_SubmitMultiRegionAccessPointRoutesCommandError(output, context);
4111
4050
  }
4112
- const contents = map({
4051
+ const contents = (0, smithy_client_1.map)({
4113
4052
  $metadata: deserializeMetadata(output),
4114
4053
  });
4115
4054
  await collectBody(output.body, context);
@@ -4123,10 +4062,9 @@ const de_SubmitMultiRegionAccessPointRoutesCommandError = async (output, context
4123
4062
  };
4124
4063
  const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4125
4064
  const parsedBody = parsedOutput.body;
4126
- (0, smithy_client_1.throwDefaultError)({
4065
+ return throwDefaultError({
4127
4066
  output,
4128
4067
  parsedBody: parsedBody.Error,
4129
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4130
4068
  errorCode,
4131
4069
  });
4132
4070
  };
@@ -4134,7 +4072,7 @@ const de_UpdateJobPriorityCommand = async (output, context) => {
4134
4072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4135
4073
  return de_UpdateJobPriorityCommandError(output, context);
4136
4074
  }
4137
- const contents = map({
4075
+ const contents = (0, smithy_client_1.map)({
4138
4076
  $metadata: deserializeMetadata(output),
4139
4077
  });
4140
4078
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4168,10 +4106,9 @@ const de_UpdateJobPriorityCommandError = async (output, context) => {
4168
4106
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4169
4107
  default:
4170
4108
  const parsedBody = parsedOutput.body;
4171
- (0, smithy_client_1.throwDefaultError)({
4109
+ return throwDefaultError({
4172
4110
  output,
4173
4111
  parsedBody: parsedBody.Error,
4174
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4175
4112
  errorCode,
4176
4113
  });
4177
4114
  }
@@ -4180,7 +4117,7 @@ const de_UpdateJobStatusCommand = async (output, context) => {
4180
4117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4181
4118
  return de_UpdateJobStatusCommandError(output, context);
4182
4119
  }
4183
- const contents = map({
4120
+ const contents = (0, smithy_client_1.map)({
4184
4121
  $metadata: deserializeMetadata(output),
4185
4122
  });
4186
4123
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
@@ -4220,17 +4157,16 @@ const de_UpdateJobStatusCommandError = async (output, context) => {
4220
4157
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4221
4158
  default:
4222
4159
  const parsedBody = parsedOutput.body;
4223
- (0, smithy_client_1.throwDefaultError)({
4160
+ return throwDefaultError({
4224
4161
  output,
4225
4162
  parsedBody: parsedBody.Error,
4226
- exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
4227
4163
  errorCode,
4228
4164
  });
4229
4165
  }
4230
4166
  };
4231
- const map = smithy_client_1.map;
4167
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(S3ControlServiceException_1.S3ControlServiceException);
4232
4168
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
4233
- const contents = map({});
4169
+ const contents = (0, smithy_client_1.map)({});
4234
4170
  const data = parsedOutput.body.Error;
4235
4171
  if (data["Message"] !== undefined) {
4236
4172
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4242,7 +4178,7 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
4242
4178
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4243
4179
  };
4244
4180
  const de_BucketAlreadyExistsRes = async (parsedOutput, context) => {
4245
- const contents = map({});
4181
+ const contents = (0, smithy_client_1.map)({});
4246
4182
  const data = parsedOutput.body.Error;
4247
4183
  const exception = new models_0_1.BucketAlreadyExists({
4248
4184
  $metadata: deserializeMetadata(parsedOutput),
@@ -4251,7 +4187,7 @@ const de_BucketAlreadyExistsRes = async (parsedOutput, context) => {
4251
4187
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4252
4188
  };
4253
4189
  const de_BucketAlreadyOwnedByYouRes = async (parsedOutput, context) => {
4254
- const contents = map({});
4190
+ const contents = (0, smithy_client_1.map)({});
4255
4191
  const data = parsedOutput.body.Error;
4256
4192
  const exception = new models_0_1.BucketAlreadyOwnedByYou({
4257
4193
  $metadata: deserializeMetadata(parsedOutput),
@@ -4260,7 +4196,7 @@ const de_BucketAlreadyOwnedByYouRes = async (parsedOutput, context) => {
4260
4196
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4261
4197
  };
4262
4198
  const de_IdempotencyExceptionRes = async (parsedOutput, context) => {
4263
- const contents = map({});
4199
+ const contents = (0, smithy_client_1.map)({});
4264
4200
  const data = parsedOutput.body.Error;
4265
4201
  if (data["Message"] !== undefined) {
4266
4202
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4272,7 +4208,7 @@ const de_IdempotencyExceptionRes = async (parsedOutput, context) => {
4272
4208
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4273
4209
  };
4274
4210
  const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
4275
- const contents = map({});
4211
+ const contents = (0, smithy_client_1.map)({});
4276
4212
  const data = parsedOutput.body.Error;
4277
4213
  if (data["Message"] !== undefined) {
4278
4214
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4284,7 +4220,7 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
4284
4220
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4285
4221
  };
4286
4222
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
4287
- const contents = map({});
4223
+ const contents = (0, smithy_client_1.map)({});
4288
4224
  const data = parsedOutput.body.Error;
4289
4225
  if (data["Message"] !== undefined) {
4290
4226
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4296,7 +4232,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
4296
4232
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4297
4233
  };
4298
4234
  const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
4299
- const contents = map({});
4235
+ const contents = (0, smithy_client_1.map)({});
4300
4236
  const data = parsedOutput.body.Error;
4301
4237
  if (data["Message"] !== undefined) {
4302
4238
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4308,7 +4244,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
4308
4244
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4309
4245
  };
4310
4246
  const de_JobStatusExceptionRes = async (parsedOutput, context) => {
4311
- const contents = map({});
4247
+ const contents = (0, smithy_client_1.map)({});
4312
4248
  const data = parsedOutput.body.Error;
4313
4249
  if (data["Message"] !== undefined) {
4314
4250
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4320,7 +4256,7 @@ const de_JobStatusExceptionRes = async (parsedOutput, context) => {
4320
4256
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4321
4257
  };
4322
4258
  const de_NoSuchPublicAccessBlockConfigurationRes = async (parsedOutput, context) => {
4323
- const contents = map({});
4259
+ const contents = (0, smithy_client_1.map)({});
4324
4260
  const data = parsedOutput.body.Error;
4325
4261
  if (data["Message"] !== undefined) {
4326
4262
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4332,7 +4268,7 @@ const de_NoSuchPublicAccessBlockConfigurationRes = async (parsedOutput, context)
4332
4268
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4333
4269
  };
4334
4270
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
4335
- const contents = map({});
4271
+ const contents = (0, smithy_client_1.map)({});
4336
4272
  const data = parsedOutput.body.Error;
4337
4273
  if (data["Message"] !== undefined) {
4338
4274
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4344,7 +4280,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
4344
4280
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4345
4281
  };
4346
4282
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
4347
- const contents = map({});
4283
+ const contents = (0, smithy_client_1.map)({});
4348
4284
  const data = parsedOutput.body.Error;
4349
4285
  if (data["Message"] !== undefined) {
4350
4286
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
@@ -4356,7 +4292,7 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
4356
4292
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
4357
4293
  };
4358
4294
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
4359
- const contents = map({});
4295
+ const contents = (0, smithy_client_1.map)({});
4360
4296
  const data = parsedOutput.body.Error;
4361
4297
  if (data["Message"] !== undefined) {
4362
4298
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);