@aws-sdk/client-s3 3.200.0 → 3.201.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-s3
@@ -2,14 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b, _c, _d, _e;
6
5
  return {
7
6
  ...options,
8
- useFipsEndpoint: (_a = options.useFipsEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useDualstackEndpoint: (_b = options.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false,
10
- useAccelerateEndpoint: (_c = options.useAccelerateEndpoint) !== null && _c !== void 0 ? _c : false,
11
- useGlobalEndpoint: (_d = options.useGlobalEndpoint) !== null && _d !== void 0 ? _d : false,
12
- disableMultiregionAccessPoints: (_e = options.disableMultiregionAccessPoints) !== null && _e !== void 0 ? _e : false,
7
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
8
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
9
+ useAccelerateEndpoint: options.useAccelerateEndpoint ?? false,
10
+ useGlobalEndpoint: options.useGlobalEndpoint ?? false,
11
+ disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false,
13
12
  defaultSigningName: "s3",
14
13
  };
15
14
  };
@@ -17,7 +17,7 @@ const serializeAws_restXmlAbortMultipartUploadCommand = async (input, context) =
17
17
  "x-amz-request-payer": input.RequestPayer,
18
18
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
19
19
  });
20
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
20
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
21
21
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
22
22
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
23
23
  const query = map({
@@ -51,7 +51,7 @@ const serializeAws_restXmlCompleteMultipartUploadCommand = async (input, context
51
51
  "x-amz-server-side-encryption-customer-key": input.SSECustomerKey,
52
52
  "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5,
53
53
  });
54
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
54
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
55
55
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
56
56
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
57
57
  const query = map({
@@ -141,7 +141,7 @@ const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
141
141
  [`x-amz-meta-${suffix.toLowerCase()}`]: input.Metadata[suffix],
142
142
  }), {})),
143
143
  });
144
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
144
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
145
145
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
146
146
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
147
147
  const query = map({
@@ -176,7 +176,7 @@ const serializeAws_restXmlCreateBucketCommand = async (input, context) => {
176
176
  ],
177
177
  "x-amz-object-ownership": input.ObjectOwnership,
178
178
  });
179
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
179
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
180
180
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
181
181
  let body;
182
182
  if (input.CreateBucketConfiguration !== undefined) {
@@ -242,7 +242,7 @@ const serializeAws_restXmlCreateMultipartUploadCommand = async (input, context)
242
242
  [`x-amz-meta-${suffix.toLowerCase()}`]: input.Metadata[suffix],
243
243
  }), {})),
244
244
  });
245
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
245
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
246
246
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
247
247
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
248
248
  const query = map({
@@ -267,7 +267,7 @@ const serializeAws_restXmlDeleteBucketCommand = async (input, context) => {
267
267
  const headers = map({}, isSerializableHeaderValue, {
268
268
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
269
269
  });
270
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
270
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
271
271
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
272
272
  let body;
273
273
  return new protocol_http_1.HttpRequest({
@@ -286,7 +286,7 @@ const serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand = async (inp
286
286
  const headers = map({}, isSerializableHeaderValue, {
287
287
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
288
288
  });
289
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
289
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
290
290
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
291
291
  const query = map({
292
292
  analytics: [, ""],
@@ -310,7 +310,7 @@ const serializeAws_restXmlDeleteBucketCorsCommand = async (input, context) => {
310
310
  const headers = map({}, isSerializableHeaderValue, {
311
311
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
312
312
  });
313
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
313
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
314
314
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
315
315
  const query = map({
316
316
  cors: [, ""],
@@ -333,7 +333,7 @@ const serializeAws_restXmlDeleteBucketEncryptionCommand = async (input, context)
333
333
  const headers = map({}, isSerializableHeaderValue, {
334
334
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
335
335
  });
336
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
336
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
337
337
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
338
338
  const query = map({
339
339
  encryption: [, ""],
@@ -354,7 +354,7 @@ exports.serializeAws_restXmlDeleteBucketEncryptionCommand = serializeAws_restXml
354
354
  const serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand = async (input, context) => {
355
355
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
356
  const headers = {};
357
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
357
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
358
358
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
359
359
  const query = map({
360
360
  "intelligent-tiering": [, ""],
@@ -378,7 +378,7 @@ const serializeAws_restXmlDeleteBucketInventoryConfigurationCommand = async (inp
378
378
  const headers = map({}, isSerializableHeaderValue, {
379
379
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
380
380
  });
381
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
381
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
382
382
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
383
383
  const query = map({
384
384
  inventory: [, ""],
@@ -402,7 +402,7 @@ const serializeAws_restXmlDeleteBucketLifecycleCommand = async (input, context)
402
402
  const headers = map({}, isSerializableHeaderValue, {
403
403
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
404
404
  });
405
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
405
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
406
406
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
407
407
  const query = map({
408
408
  lifecycle: [, ""],
@@ -425,7 +425,7 @@ const serializeAws_restXmlDeleteBucketMetricsConfigurationCommand = async (input
425
425
  const headers = map({}, isSerializableHeaderValue, {
426
426
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
427
427
  });
428
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
428
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
429
429
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
430
430
  const query = map({
431
431
  metrics: [, ""],
@@ -449,7 +449,7 @@ const serializeAws_restXmlDeleteBucketOwnershipControlsCommand = async (input, c
449
449
  const headers = map({}, isSerializableHeaderValue, {
450
450
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
451
451
  });
452
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
452
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
453
453
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
454
454
  const query = map({
455
455
  ownershipControls: [, ""],
@@ -472,7 +472,7 @@ const serializeAws_restXmlDeleteBucketPolicyCommand = async (input, context) =>
472
472
  const headers = map({}, isSerializableHeaderValue, {
473
473
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
474
474
  });
475
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
475
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
476
476
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
477
477
  const query = map({
478
478
  policy: [, ""],
@@ -495,7 +495,7 @@ const serializeAws_restXmlDeleteBucketReplicationCommand = async (input, context
495
495
  const headers = map({}, isSerializableHeaderValue, {
496
496
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
497
497
  });
498
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
498
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
499
499
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
500
500
  const query = map({
501
501
  replication: [, ""],
@@ -518,7 +518,7 @@ const serializeAws_restXmlDeleteBucketTaggingCommand = async (input, context) =>
518
518
  const headers = map({}, isSerializableHeaderValue, {
519
519
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
520
520
  });
521
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
521
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
522
522
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
523
523
  const query = map({
524
524
  tagging: [, ""],
@@ -541,7 +541,7 @@ const serializeAws_restXmlDeleteBucketWebsiteCommand = async (input, context) =>
541
541
  const headers = map({}, isSerializableHeaderValue, {
542
542
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
543
543
  });
544
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
544
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
545
545
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
546
546
  const query = map({
547
547
  website: [, ""],
@@ -570,7 +570,7 @@ const serializeAws_restXmlDeleteObjectCommand = async (input, context) => {
570
570
  ],
571
571
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
572
572
  });
573
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
573
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
574
574
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
575
575
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
576
576
  const query = map({
@@ -603,7 +603,7 @@ const serializeAws_restXmlDeleteObjectsCommand = async (input, context) => {
603
603
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
604
604
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
605
605
  });
606
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
606
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
607
607
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
608
608
  const query = map({
609
609
  delete: [, ""],
@@ -637,7 +637,7 @@ const serializeAws_restXmlDeleteObjectTaggingCommand = async (input, context) =>
637
637
  const headers = map({}, isSerializableHeaderValue, {
638
638
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
639
639
  });
640
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
640
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
641
641
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
642
642
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
643
643
  const query = map({
@@ -662,7 +662,7 @@ const serializeAws_restXmlDeletePublicAccessBlockCommand = async (input, context
662
662
  const headers = map({}, isSerializableHeaderValue, {
663
663
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
664
664
  });
665
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
665
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
666
666
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
667
667
  const query = map({
668
668
  publicAccessBlock: [, ""],
@@ -685,7 +685,7 @@ const serializeAws_restXmlGetBucketAccelerateConfigurationCommand = async (input
685
685
  const headers = map({}, isSerializableHeaderValue, {
686
686
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
687
687
  });
688
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
688
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
689
689
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
690
690
  const query = map({
691
691
  accelerate: [, ""],
@@ -708,7 +708,7 @@ const serializeAws_restXmlGetBucketAclCommand = async (input, context) => {
708
708
  const headers = map({}, isSerializableHeaderValue, {
709
709
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
710
710
  });
711
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
711
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
712
712
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
713
713
  const query = map({
714
714
  acl: [, ""],
@@ -731,7 +731,7 @@ const serializeAws_restXmlGetBucketAnalyticsConfigurationCommand = async (input,
731
731
  const headers = map({}, isSerializableHeaderValue, {
732
732
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
733
733
  });
734
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
734
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
735
735
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
736
736
  const query = map({
737
737
  analytics: [, ""],
@@ -756,7 +756,7 @@ const serializeAws_restXmlGetBucketCorsCommand = async (input, context) => {
756
756
  const headers = map({}, isSerializableHeaderValue, {
757
757
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
758
758
  });
759
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
759
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
760
760
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
761
761
  const query = map({
762
762
  cors: [, ""],
@@ -779,7 +779,7 @@ const serializeAws_restXmlGetBucketEncryptionCommand = async (input, context) =>
779
779
  const headers = map({}, isSerializableHeaderValue, {
780
780
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
781
781
  });
782
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
782
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
783
783
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
784
784
  const query = map({
785
785
  encryption: [, ""],
@@ -800,7 +800,7 @@ exports.serializeAws_restXmlGetBucketEncryptionCommand = serializeAws_restXmlGet
800
800
  const serializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand = async (input, context) => {
801
801
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
802
802
  const headers = {};
803
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
803
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
804
804
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
805
805
  const query = map({
806
806
  "intelligent-tiering": [, ""],
@@ -825,7 +825,7 @@ const serializeAws_restXmlGetBucketInventoryConfigurationCommand = async (input,
825
825
  const headers = map({}, isSerializableHeaderValue, {
826
826
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
827
827
  });
828
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
828
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
829
829
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
830
830
  const query = map({
831
831
  inventory: [, ""],
@@ -850,7 +850,7 @@ const serializeAws_restXmlGetBucketLifecycleConfigurationCommand = async (input,
850
850
  const headers = map({}, isSerializableHeaderValue, {
851
851
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
852
852
  });
853
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
853
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
854
854
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
855
855
  const query = map({
856
856
  lifecycle: [, ""],
@@ -873,7 +873,7 @@ const serializeAws_restXmlGetBucketLocationCommand = async (input, context) => {
873
873
  const headers = map({}, isSerializableHeaderValue, {
874
874
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
875
875
  });
876
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
876
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
877
877
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
878
878
  const query = map({
879
879
  location: [, ""],
@@ -896,7 +896,7 @@ const serializeAws_restXmlGetBucketLoggingCommand = async (input, context) => {
896
896
  const headers = map({}, isSerializableHeaderValue, {
897
897
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
898
898
  });
899
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
899
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
900
900
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
901
901
  const query = map({
902
902
  logging: [, ""],
@@ -919,7 +919,7 @@ const serializeAws_restXmlGetBucketMetricsConfigurationCommand = async (input, c
919
919
  const headers = map({}, isSerializableHeaderValue, {
920
920
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
921
921
  });
922
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
922
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
923
923
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
924
924
  const query = map({
925
925
  metrics: [, ""],
@@ -944,7 +944,7 @@ const serializeAws_restXmlGetBucketNotificationConfigurationCommand = async (inp
944
944
  const headers = map({}, isSerializableHeaderValue, {
945
945
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
946
946
  });
947
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
947
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
948
948
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
949
949
  const query = map({
950
950
  notification: [, ""],
@@ -967,7 +967,7 @@ const serializeAws_restXmlGetBucketOwnershipControlsCommand = async (input, cont
967
967
  const headers = map({}, isSerializableHeaderValue, {
968
968
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
969
969
  });
970
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
970
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
971
971
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
972
972
  const query = map({
973
973
  ownershipControls: [, ""],
@@ -990,7 +990,7 @@ const serializeAws_restXmlGetBucketPolicyCommand = async (input, context) => {
990
990
  const headers = map({}, isSerializableHeaderValue, {
991
991
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
992
992
  });
993
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
993
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
994
994
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
995
995
  const query = map({
996
996
  policy: [, ""],
@@ -1013,7 +1013,7 @@ const serializeAws_restXmlGetBucketPolicyStatusCommand = async (input, context)
1013
1013
  const headers = map({}, isSerializableHeaderValue, {
1014
1014
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1015
1015
  });
1016
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1016
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1017
1017
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1018
1018
  const query = map({
1019
1019
  policyStatus: [, ""],
@@ -1036,7 +1036,7 @@ const serializeAws_restXmlGetBucketReplicationCommand = async (input, context) =
1036
1036
  const headers = map({}, isSerializableHeaderValue, {
1037
1037
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1038
1038
  });
1039
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1039
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1040
1040
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1041
1041
  const query = map({
1042
1042
  replication: [, ""],
@@ -1059,7 +1059,7 @@ const serializeAws_restXmlGetBucketRequestPaymentCommand = async (input, context
1059
1059
  const headers = map({}, isSerializableHeaderValue, {
1060
1060
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1061
1061
  });
1062
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1062
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1063
1063
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1064
1064
  const query = map({
1065
1065
  requestPayment: [, ""],
@@ -1082,7 +1082,7 @@ const serializeAws_restXmlGetBucketTaggingCommand = async (input, context) => {
1082
1082
  const headers = map({}, isSerializableHeaderValue, {
1083
1083
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1084
1084
  });
1085
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1085
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1086
1086
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1087
1087
  const query = map({
1088
1088
  tagging: [, ""],
@@ -1105,7 +1105,7 @@ const serializeAws_restXmlGetBucketVersioningCommand = async (input, context) =>
1105
1105
  const headers = map({}, isSerializableHeaderValue, {
1106
1106
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1107
1107
  });
1108
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1108
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1109
1109
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1110
1110
  const query = map({
1111
1111
  versioning: [, ""],
@@ -1128,7 +1128,7 @@ const serializeAws_restXmlGetBucketWebsiteCommand = async (input, context) => {
1128
1128
  const headers = map({}, isSerializableHeaderValue, {
1129
1129
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1130
1130
  });
1131
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1131
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1132
1132
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1133
1133
  const query = map({
1134
1134
  website: [, ""],
@@ -1167,7 +1167,7 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
1167
1167
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1168
1168
  "x-amz-checksum-mode": input.ChecksumMode,
1169
1169
  });
1170
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1170
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1171
1171
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1172
1172
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1173
1173
  const query = map({
@@ -1203,7 +1203,7 @@ const serializeAws_restXmlGetObjectAclCommand = async (input, context) => {
1203
1203
  "x-amz-request-payer": input.RequestPayer,
1204
1204
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1205
1205
  });
1206
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1206
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1207
1207
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1208
1208
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1209
1209
  const query = map({
@@ -1238,7 +1238,7 @@ const serializeAws_restXmlGetObjectAttributesCommand = async (input, context) =>
1238
1238
  () => (input.ObjectAttributes || []).map((_entry) => _entry).join(", "),
1239
1239
  ],
1240
1240
  });
1241
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1241
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1242
1242
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1243
1243
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1244
1244
  const query = map({
@@ -1264,7 +1264,7 @@ const serializeAws_restXmlGetObjectLegalHoldCommand = async (input, context) =>
1264
1264
  "x-amz-request-payer": input.RequestPayer,
1265
1265
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1266
1266
  });
1267
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1267
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1268
1268
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1269
1269
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1270
1270
  const query = map({
@@ -1289,7 +1289,7 @@ const serializeAws_restXmlGetObjectLockConfigurationCommand = async (input, cont
1289
1289
  const headers = map({}, isSerializableHeaderValue, {
1290
1290
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1291
1291
  });
1292
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1292
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1293
1293
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1294
1294
  const query = map({
1295
1295
  "object-lock": [, ""],
@@ -1313,7 +1313,7 @@ const serializeAws_restXmlGetObjectRetentionCommand = async (input, context) =>
1313
1313
  "x-amz-request-payer": input.RequestPayer,
1314
1314
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1315
1315
  });
1316
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1316
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1317
1317
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1318
1318
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1319
1319
  const query = map({
@@ -1339,7 +1339,7 @@ const serializeAws_restXmlGetObjectTaggingCommand = async (input, context) => {
1339
1339
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1340
1340
  "x-amz-request-payer": input.RequestPayer,
1341
1341
  });
1342
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1342
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1343
1343
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1344
1344
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1345
1345
  const query = map({
@@ -1365,7 +1365,7 @@ const serializeAws_restXmlGetObjectTorrentCommand = async (input, context) => {
1365
1365
  "x-amz-request-payer": input.RequestPayer,
1366
1366
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1367
1367
  });
1368
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1368
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1369
1369
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1370
1370
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1371
1371
  const query = map({
@@ -1389,7 +1389,7 @@ const serializeAws_restXmlGetPublicAccessBlockCommand = async (input, context) =
1389
1389
  const headers = map({}, isSerializableHeaderValue, {
1390
1390
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1391
1391
  });
1392
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1392
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1393
1393
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1394
1394
  const query = map({
1395
1395
  publicAccessBlock: [, ""],
@@ -1412,7 +1412,7 @@ const serializeAws_restXmlHeadBucketCommand = async (input, context) => {
1412
1412
  const headers = map({}, isSerializableHeaderValue, {
1413
1413
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1414
1414
  });
1415
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1415
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1416
1416
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1417
1417
  let body;
1418
1418
  return new protocol_http_1.HttpRequest({
@@ -1447,7 +1447,7 @@ const serializeAws_restXmlHeadObjectCommand = async (input, context) => {
1447
1447
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1448
1448
  "x-amz-checksum-mode": input.ChecksumMode,
1449
1449
  });
1450
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1450
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1451
1451
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1452
1452
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1453
1453
  const query = map({
@@ -1472,7 +1472,7 @@ const serializeAws_restXmlListBucketAnalyticsConfigurationsCommand = async (inpu
1472
1472
  const headers = map({}, isSerializableHeaderValue, {
1473
1473
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1474
1474
  });
1475
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1475
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1476
1476
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1477
1477
  const query = map({
1478
1478
  analytics: [, ""],
@@ -1495,7 +1495,7 @@ exports.serializeAws_restXmlListBucketAnalyticsConfigurationsCommand = serialize
1495
1495
  const serializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand = async (input, context) => {
1496
1496
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1497
1497
  const headers = {};
1498
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1498
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1499
1499
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1500
1500
  const query = map({
1501
1501
  "intelligent-tiering": [, ""],
@@ -1520,7 +1520,7 @@ const serializeAws_restXmlListBucketInventoryConfigurationsCommand = async (inpu
1520
1520
  const headers = map({}, isSerializableHeaderValue, {
1521
1521
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1522
1522
  });
1523
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1523
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1524
1524
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1525
1525
  const query = map({
1526
1526
  inventory: [, ""],
@@ -1545,7 +1545,7 @@ const serializeAws_restXmlListBucketMetricsConfigurationsCommand = async (input,
1545
1545
  const headers = map({}, isSerializableHeaderValue, {
1546
1546
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1547
1547
  });
1548
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1548
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1549
1549
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1550
1550
  const query = map({
1551
1551
  metrics: [, ""],
@@ -1570,7 +1570,7 @@ const serializeAws_restXmlListBucketsCommand = async (input, context) => {
1570
1570
  const headers = {
1571
1571
  "content-type": "application/xml",
1572
1572
  };
1573
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1573
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1574
1574
  let body;
1575
1575
  body = "";
1576
1576
  return new protocol_http_1.HttpRequest({
@@ -1589,7 +1589,7 @@ const serializeAws_restXmlListMultipartUploadsCommand = async (input, context) =
1589
1589
  const headers = map({}, isSerializableHeaderValue, {
1590
1590
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1591
1591
  });
1592
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1592
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1593
1593
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1594
1594
  const query = map({
1595
1595
  uploads: [, ""],
@@ -1619,7 +1619,7 @@ const serializeAws_restXmlListObjectsCommand = async (input, context) => {
1619
1619
  "x-amz-request-payer": input.RequestPayer,
1620
1620
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1621
1621
  });
1622
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1622
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1623
1623
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1624
1624
  const query = map({
1625
1625
  delimiter: [, input.Delimiter],
@@ -1647,7 +1647,7 @@ const serializeAws_restXmlListObjectsV2Command = async (input, context) => {
1647
1647
  "x-amz-request-payer": input.RequestPayer,
1648
1648
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1649
1649
  });
1650
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1650
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1651
1651
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1652
1652
  const query = map({
1653
1653
  "list-type": [, "2"],
@@ -1677,7 +1677,7 @@ const serializeAws_restXmlListObjectVersionsCommand = async (input, context) =>
1677
1677
  const headers = map({}, isSerializableHeaderValue, {
1678
1678
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1679
1679
  });
1680
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1680
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1681
1681
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1682
1682
  const query = map({
1683
1683
  versions: [, ""],
@@ -1710,7 +1710,7 @@ const serializeAws_restXmlListPartsCommand = async (input, context) => {
1710
1710
  "x-amz-server-side-encryption-customer-key": input.SSECustomerKey,
1711
1711
  "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5,
1712
1712
  });
1713
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1713
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
1714
1714
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1715
1715
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
1716
1716
  const query = map({
@@ -1739,7 +1739,7 @@ const serializeAws_restXmlPutBucketAccelerateConfigurationCommand = async (input
1739
1739
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1740
1740
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
1741
1741
  });
1742
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1742
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1743
1743
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1744
1744
  const query = map({
1745
1745
  accelerate: [, ""],
@@ -1781,7 +1781,7 @@ const serializeAws_restXmlPutBucketAclCommand = async (input, context) => {
1781
1781
  "x-amz-grant-write-acp": input.GrantWriteACP,
1782
1782
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1783
1783
  });
1784
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1784
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1785
1785
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1786
1786
  const query = map({
1787
1787
  acl: [, ""],
@@ -1815,7 +1815,7 @@ const serializeAws_restXmlPutBucketAnalyticsConfigurationCommand = async (input,
1815
1815
  "content-type": "application/xml",
1816
1816
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1817
1817
  });
1818
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1818
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1819
1819
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1820
1820
  const query = map({
1821
1821
  analytics: [, ""],
@@ -1852,7 +1852,7 @@ const serializeAws_restXmlPutBucketCorsCommand = async (input, context) => {
1852
1852
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
1853
1853
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1854
1854
  });
1855
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1855
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1856
1856
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1857
1857
  const query = map({
1858
1858
  cors: [, ""],
@@ -1888,7 +1888,7 @@ const serializeAws_restXmlPutBucketEncryptionCommand = async (input, context) =>
1888
1888
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
1889
1889
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1890
1890
  });
1891
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1891
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1892
1892
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1893
1893
  const query = map({
1894
1894
  encryption: [, ""],
@@ -1921,7 +1921,7 @@ const serializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand = asyn
1921
1921
  const headers = {
1922
1922
  "content-type": "application/xml",
1923
1923
  };
1924
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1924
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1925
1925
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1926
1926
  const query = map({
1927
1927
  "intelligent-tiering": [, ""],
@@ -1956,7 +1956,7 @@ const serializeAws_restXmlPutBucketInventoryConfigurationCommand = async (input,
1956
1956
  "content-type": "application/xml",
1957
1957
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1958
1958
  });
1959
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1959
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1960
1960
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1961
1961
  const query = map({
1962
1962
  inventory: [, ""],
@@ -1992,7 +1992,7 @@ const serializeAws_restXmlPutBucketLifecycleConfigurationCommand = async (input,
1992
1992
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
1993
1993
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
1994
1994
  });
1995
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
1995
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
1996
1996
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
1997
1997
  const query = map({
1998
1998
  lifecycle: [, ""],
@@ -2029,7 +2029,7 @@ const serializeAws_restXmlPutBucketLoggingCommand = async (input, context) => {
2029
2029
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2030
2030
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2031
2031
  });
2032
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2032
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2033
2033
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2034
2034
  const query = map({
2035
2035
  logging: [, ""],
@@ -2063,7 +2063,7 @@ const serializeAws_restXmlPutBucketMetricsConfigurationCommand = async (input, c
2063
2063
  "content-type": "application/xml",
2064
2064
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2065
2065
  });
2066
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2066
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2067
2067
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2068
2068
  const query = map({
2069
2069
  metrics: [, ""],
@@ -2102,7 +2102,7 @@ const serializeAws_restXmlPutBucketNotificationConfigurationCommand = async (inp
2102
2102
  () => input.SkipDestinationValidation.toString(),
2103
2103
  ],
2104
2104
  });
2105
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2105
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2106
2106
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2107
2107
  const query = map({
2108
2108
  notification: [, ""],
@@ -2137,7 +2137,7 @@ const serializeAws_restXmlPutBucketOwnershipControlsCommand = async (input, cont
2137
2137
  "content-md5": input.ContentMD5,
2138
2138
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2139
2139
  });
2140
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2140
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2141
2141
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2142
2142
  const query = map({
2143
2143
  ownershipControls: [, ""],
@@ -2177,7 +2177,7 @@ const serializeAws_restXmlPutBucketPolicyCommand = async (input, context) => {
2177
2177
  ],
2178
2178
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2179
2179
  });
2180
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2180
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2181
2181
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2182
2182
  const query = map({
2183
2183
  policy: [, ""],
@@ -2212,7 +2212,7 @@ const serializeAws_restXmlPutBucketReplicationCommand = async (input, context) =
2212
2212
  "x-amz-bucket-object-lock-token": input.Token,
2213
2213
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2214
2214
  });
2215
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2215
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2216
2216
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2217
2217
  const query = map({
2218
2218
  replication: [, ""],
@@ -2248,7 +2248,7 @@ const serializeAws_restXmlPutBucketRequestPaymentCommand = async (input, context
2248
2248
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2249
2249
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2250
2250
  });
2251
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2251
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2252
2252
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2253
2253
  const query = map({
2254
2254
  requestPayment: [, ""],
@@ -2284,7 +2284,7 @@ const serializeAws_restXmlPutBucketTaggingCommand = async (input, context) => {
2284
2284
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2285
2285
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2286
2286
  });
2287
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2287
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2288
2288
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2289
2289
  const query = map({
2290
2290
  tagging: [, ""],
@@ -2321,7 +2321,7 @@ const serializeAws_restXmlPutBucketVersioningCommand = async (input, context) =>
2321
2321
  "x-amz-mfa": input.MFA,
2322
2322
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2323
2323
  });
2324
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2324
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2325
2325
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2326
2326
  const query = map({
2327
2327
  versioning: [, ""],
@@ -2357,7 +2357,7 @@ const serializeAws_restXmlPutBucketWebsiteCommand = async (input, context) => {
2357
2357
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2358
2358
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2359
2359
  });
2360
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2360
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2361
2361
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2362
2362
  const query = map({
2363
2363
  website: [, ""],
@@ -2433,7 +2433,7 @@ const serializeAws_restXmlPutObjectCommand = async (input, context) => {
2433
2433
  [`x-amz-meta-${suffix.toLowerCase()}`]: input.Metadata[suffix],
2434
2434
  }), {})),
2435
2435
  });
2436
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2436
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2437
2437
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2438
2438
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2439
2439
  const query = map({
@@ -2475,7 +2475,7 @@ const serializeAws_restXmlPutObjectAclCommand = async (input, context) => {
2475
2475
  "x-amz-request-payer": input.RequestPayer,
2476
2476
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2477
2477
  });
2478
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2478
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2479
2479
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2480
2480
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2481
2481
  const query = map({
@@ -2514,7 +2514,7 @@ const serializeAws_restXmlPutObjectLegalHoldCommand = async (input, context) =>
2514
2514
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2515
2515
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2516
2516
  });
2517
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2517
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2518
2518
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2519
2519
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2520
2520
  const query = map({
@@ -2555,7 +2555,7 @@ const serializeAws_restXmlPutObjectLockConfigurationCommand = async (input, cont
2555
2555
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2556
2556
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2557
2557
  });
2558
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2558
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2559
2559
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2560
2560
  const query = map({
2561
2561
  "object-lock": [, ""],
@@ -2596,7 +2596,7 @@ const serializeAws_restXmlPutObjectRetentionCommand = async (input, context) =>
2596
2596
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2597
2597
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2598
2598
  });
2599
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2599
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2600
2600
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2601
2601
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2602
2602
  const query = map({
@@ -2636,7 +2636,7 @@ const serializeAws_restXmlPutObjectTaggingCommand = async (input, context) => {
2636
2636
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2637
2637
  "x-amz-request-payer": input.RequestPayer,
2638
2638
  });
2639
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2639
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2640
2640
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2641
2641
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2642
2642
  const query = map({
@@ -2674,7 +2674,7 @@ const serializeAws_restXmlPutPublicAccessBlockCommand = async (input, context) =
2674
2674
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2675
2675
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2676
2676
  });
2677
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/";
2677
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
2678
2678
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2679
2679
  const query = map({
2680
2680
  publicAccessBlock: [, ""],
@@ -2710,7 +2710,7 @@ const serializeAws_restXmlRestoreObjectCommand = async (input, context) => {
2710
2710
  "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm,
2711
2711
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2712
2712
  });
2713
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2713
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2714
2714
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2715
2715
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2716
2716
  const query = map({
@@ -2750,7 +2750,7 @@ const serializeAws_restXmlSelectObjectContentCommand = async (input, context) =>
2750
2750
  "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5,
2751
2751
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2752
2752
  });
2753
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2753
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2754
2754
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2755
2755
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2756
2756
  const query = map({
@@ -2816,7 +2816,7 @@ const serializeAws_restXmlUploadPartCommand = async (input, context) => {
2816
2816
  "x-amz-request-payer": input.RequestPayer,
2817
2817
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2818
2818
  });
2819
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2819
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2820
2820
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2821
2821
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2822
2822
  const query = map({
@@ -2870,7 +2870,7 @@ const serializeAws_restXmlUploadPartCopyCommand = async (input, context) => {
2870
2870
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
2871
2871
  "x-amz-source-expected-bucket-owner": input.ExpectedSourceBucketOwner,
2872
2872
  });
2873
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2873
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}";
2874
2874
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
2875
2875
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key+}", true);
2876
2876
  const query = map({
@@ -2964,7 +2964,7 @@ const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, context)
2964
2964
  [`x-amz-meta-${suffix.toLowerCase()}`]: input.Metadata[suffix],
2965
2965
  }), {})),
2966
2966
  });
2967
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/WriteGetObjectResponse";
2967
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/WriteGetObjectResponse";
2968
2968
  const query = map({
2969
2969
  "x-id": [, "WriteGetObjectResponse"],
2970
2970
  });
@@ -10042,15 +10042,12 @@ const deserializeAws_restXmlTransitionList = (output, context) => {
10042
10042
  return deserializeAws_restXmlTransition(entry, context);
10043
10043
  });
10044
10044
  };
10045
- const deserializeMetadata = (output) => {
10046
- var _a, _b;
10047
- return ({
10048
- httpStatusCode: output.statusCode,
10049
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
10050
- extendedRequestId: output.headers["x-amz-id-2"],
10051
- cfId: output.headers["x-amz-cf-id"],
10052
- });
10053
- };
10045
+ const deserializeMetadata = (output) => ({
10046
+ httpStatusCode: output.statusCode,
10047
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
10048
+ extendedRequestId: output.headers["x-amz-id-2"],
10049
+ cfId: output.headers["x-amz-cf-id"],
10050
+ });
10054
10051
  const collectBody = (streamBody = new Uint8Array(), context) => {
10055
10052
  if (streamBody instanceof Uint8Array) {
10056
10053
  return Promise.resolve(streamBody);
@@ -10089,10 +10086,9 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
10089
10086
  return {};
10090
10087
  });
10091
10088
  const parseErrorBody = async (errorBody, context) => {
10092
- var _a;
10093
10089
  const value = await parseBody(errorBody, context);
10094
10090
  if (value.Error) {
10095
- value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
10091
+ value.Error.message = value.Error.message ?? value.Error.Message;
10096
10092
  }
10097
10093
  return value;
10098
10094
  };
@@ -21,7 +21,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
21
21
  const smithy_client_1 = require("@aws-sdk/smithy-client");
22
22
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
23
23
  const getRuntimeConfig = (config) => {
24
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
25
24
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
26
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
27
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -30,27 +29,28 @@ const getRuntimeConfig = (config) => {
30
29
  ...config,
31
30
  runtime: "browser",
32
31
  defaultsMode,
33
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
34
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
35
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
36
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
37
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
38
- eventStreamSerdeProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _f !== void 0 ? _f : eventstream_serde_browser_1.eventStreamSerdeProvider,
39
- getAwsChunkedEncodingStream: (_g = config === null || config === void 0 ? void 0 : config.getAwsChunkedEncodingStream) !== null && _g !== void 0 ? _g : util_stream_browser_1.getAwsChunkedEncodingStream,
40
- maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
41
- md5: (_j = config === null || config === void 0 ? void 0 : config.md5) !== null && _j !== void 0 ? _j : md5_js_1.Md5,
42
- region: (_k = config === null || config === void 0 ? void 0 : config.region) !== null && _k !== void 0 ? _k : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
43
- requestHandler: (_l = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _l !== void 0 ? _l : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
44
- retryMode: (_m = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _m !== void 0 ? _m : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
45
- sdkStreamMixin: (_o = config === null || config === void 0 ? void 0 : config.sdkStreamMixin) !== null && _o !== void 0 ? _o : util_stream_browser_1.sdkStreamMixin,
46
- sha1: (_p = config === null || config === void 0 ? void 0 : config.sha1) !== null && _p !== void 0 ? _p : sha1_browser_1.Sha1,
47
- sha256: (_q = config === null || config === void 0 ? void 0 : config.sha256) !== null && _q !== void 0 ? _q : sha256_browser_1.Sha256,
48
- streamCollector: (_r = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _r !== void 0 ? _r : fetch_http_handler_1.streamCollector,
49
- streamHasher: (_s = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _s !== void 0 ? _s : hash_blob_browser_1.blobHasher,
50
- useDualstackEndpoint: (_t = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _t !== void 0 ? _t : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
51
- useFipsEndpoint: (_u = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _u !== void 0 ? _u : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
52
- utf8Decoder: (_v = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _v !== void 0 ? _v : util_utf8_browser_1.fromUtf8,
53
- utf8Encoder: (_w = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _w !== void 0 ? _w : util_utf8_browser_1.toUtf8,
32
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
33
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
34
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
35
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
36
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
37
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
38
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
39
+ getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_browser_1.getAwsChunkedEncodingStream,
40
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
41
+ md5: config?.md5 ?? md5_js_1.Md5,
42
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
43
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
44
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
45
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_browser_1.sdkStreamMixin,
46
+ sha1: config?.sha1 ?? sha1_browser_1.Sha1,
47
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
48
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
49
+ streamHasher: config?.streamHasher ?? hash_blob_browser_1.blobHasher,
50
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
51
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
52
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
53
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
54
54
  };
55
55
  };
56
56
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -23,7 +23,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
23
23
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
24
24
  const smithy_client_2 = require("@aws-sdk/smithy-client");
25
25
  const getRuntimeConfig = (config) => {
26
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
27
26
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
28
27
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
29
28
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -33,31 +32,33 @@ const getRuntimeConfig = (config) => {
33
32
  ...config,
34
33
  runtime: "node",
35
34
  defaultsMode,
36
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
37
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
38
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
39
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
40
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
41
- eventStreamSerdeProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _f !== void 0 ? _f : eventstream_serde_node_1.eventStreamSerdeProvider,
42
- getAwsChunkedEncodingStream: (_g = config === null || config === void 0 ? void 0 : config.getAwsChunkedEncodingStream) !== null && _g !== void 0 ? _g : util_stream_node_1.getAwsChunkedEncodingStream,
43
- maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
44
- md5: (_j = config === null || config === void 0 ? void 0 : config.md5) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "md5"),
45
- region: (_k = config === null || config === void 0 ? void 0 : config.region) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
46
- requestHandler: (_l = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _l !== void 0 ? _l : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
47
- retryMode: (_m = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)({
48
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
49
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
50
- }),
51
- sdkStreamMixin: (_o = config === null || config === void 0 ? void 0 : config.sdkStreamMixin) !== null && _o !== void 0 ? _o : util_stream_node_1.sdkStreamMixin,
52
- sha1: (_p = config === null || config === void 0 ? void 0 : config.sha1) !== null && _p !== void 0 ? _p : hash_node_1.Hash.bind(null, "sha1"),
53
- sha256: (_q = config === null || config === void 0 ? void 0 : config.sha256) !== null && _q !== void 0 ? _q : hash_node_1.Hash.bind(null, "sha256"),
54
- streamCollector: (_r = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _r !== void 0 ? _r : node_http_handler_1.streamCollector,
55
- streamHasher: (_s = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _s !== void 0 ? _s : hash_stream_node_1.readableStreamHasher,
56
- useArnRegion: (_t = config === null || config === void 0 ? void 0 : config.useArnRegion) !== null && _t !== void 0 ? _t : (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS),
57
- useDualstackEndpoint: (_u = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _u !== void 0 ? _u : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
58
- useFipsEndpoint: (_v = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _v !== void 0 ? _v : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
59
- utf8Decoder: (_w = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _w !== void 0 ? _w : util_utf8_node_1.fromUtf8,
60
- utf8Encoder: (_x = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _x !== void 0 ? _x : util_utf8_node_1.toUtf8,
35
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
36
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
37
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
38
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
39
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
40
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
41
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
42
+ getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_node_1.getAwsChunkedEncodingStream,
43
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
44
+ md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
45
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
46
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
47
+ retryMode: config?.retryMode ??
48
+ (0, node_config_provider_1.loadConfig)({
49
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
50
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
51
+ }),
52
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_node_1.sdkStreamMixin,
53
+ sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
54
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
55
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
56
+ streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
57
+ useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS),
58
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
59
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
60
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
61
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
61
62
  };
62
63
  };
63
64
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,18 +4,15 @@ exports.getRuntimeConfig = void 0;
4
4
  const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
5
5
  const url_parser_1 = require("@aws-sdk/url-parser");
6
6
  const endpointResolver_1 = require("./endpoint/endpointResolver");
7
- const getRuntimeConfig = (config) => {
8
- var _a, _b, _c, _d, _e, _f, _g, _h;
9
- return ({
10
- apiVersion: "2006-03-01",
11
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
12
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
13
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
14
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "S3",
15
- signerConstructor: (_e = config === null || config === void 0 ? void 0 : config.signerConstructor) !== null && _e !== void 0 ? _e : signature_v4_multi_region_1.SignatureV4MultiRegion,
16
- signingEscapePath: (_f = config === null || config === void 0 ? void 0 : config.signingEscapePath) !== null && _f !== void 0 ? _f : false,
17
- urlParser: (_g = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _g !== void 0 ? _g : url_parser_1.parseUrl,
18
- useArnRegion: (_h = config === null || config === void 0 ? void 0 : config.useArnRegion) !== null && _h !== void 0 ? _h : false,
19
- });
20
- };
7
+ const getRuntimeConfig = (config) => ({
8
+ apiVersion: "2006-03-01",
9
+ disableHostPrefix: config?.disableHostPrefix ?? false,
10
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
11
+ logger: config?.logger ?? {},
12
+ serviceId: config?.serviceId ?? "S3",
13
+ signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
14
+ signingEscapePath: config?.signingEscapePath ?? false,
15
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
16
+ useArnRegion: config?.useArnRegion ?? false,
17
+ });
21
18
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.201.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -23,62 +23,62 @@
23
23
  "@aws-crypto/sha1-browser": "2.0.0",
24
24
  "@aws-crypto/sha256-browser": "2.0.0",
25
25
  "@aws-crypto/sha256-js": "2.0.0",
26
- "@aws-sdk/client-sts": "3.200.0",
27
- "@aws-sdk/config-resolver": "3.200.0",
28
- "@aws-sdk/credential-provider-node": "3.200.0",
29
- "@aws-sdk/eventstream-serde-browser": "3.200.0",
30
- "@aws-sdk/eventstream-serde-config-resolver": "3.200.0",
31
- "@aws-sdk/eventstream-serde-node": "3.200.0",
32
- "@aws-sdk/fetch-http-handler": "3.200.0",
33
- "@aws-sdk/hash-blob-browser": "3.200.0",
34
- "@aws-sdk/hash-node": "3.200.0",
35
- "@aws-sdk/hash-stream-node": "3.200.0",
36
- "@aws-sdk/invalid-dependency": "3.200.0",
37
- "@aws-sdk/md5-js": "3.200.0",
38
- "@aws-sdk/middleware-bucket-endpoint": "3.200.0",
39
- "@aws-sdk/middleware-content-length": "3.200.0",
40
- "@aws-sdk/middleware-endpoint": "3.200.0",
41
- "@aws-sdk/middleware-expect-continue": "3.200.0",
42
- "@aws-sdk/middleware-flexible-checksums": "3.200.0",
43
- "@aws-sdk/middleware-host-header": "3.200.0",
44
- "@aws-sdk/middleware-location-constraint": "3.200.0",
45
- "@aws-sdk/middleware-logger": "3.200.0",
46
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
47
- "@aws-sdk/middleware-retry": "3.200.0",
48
- "@aws-sdk/middleware-sdk-s3": "3.200.0",
49
- "@aws-sdk/middleware-serde": "3.200.0",
50
- "@aws-sdk/middleware-signing": "3.200.0",
51
- "@aws-sdk/middleware-ssec": "3.200.0",
52
- "@aws-sdk/middleware-stack": "3.200.0",
53
- "@aws-sdk/middleware-user-agent": "3.200.0",
54
- "@aws-sdk/node-config-provider": "3.200.0",
55
- "@aws-sdk/node-http-handler": "3.200.0",
56
- "@aws-sdk/protocol-http": "3.200.0",
57
- "@aws-sdk/signature-v4-multi-region": "3.200.0",
58
- "@aws-sdk/smithy-client": "3.200.0",
59
- "@aws-sdk/types": "3.200.0",
60
- "@aws-sdk/url-parser": "3.200.0",
26
+ "@aws-sdk/client-sts": "3.201.0",
27
+ "@aws-sdk/config-resolver": "3.201.0",
28
+ "@aws-sdk/credential-provider-node": "3.201.0",
29
+ "@aws-sdk/eventstream-serde-browser": "3.201.0",
30
+ "@aws-sdk/eventstream-serde-config-resolver": "3.201.0",
31
+ "@aws-sdk/eventstream-serde-node": "3.201.0",
32
+ "@aws-sdk/fetch-http-handler": "3.201.0",
33
+ "@aws-sdk/hash-blob-browser": "3.201.0",
34
+ "@aws-sdk/hash-node": "3.201.0",
35
+ "@aws-sdk/hash-stream-node": "3.201.0",
36
+ "@aws-sdk/invalid-dependency": "3.201.0",
37
+ "@aws-sdk/md5-js": "3.201.0",
38
+ "@aws-sdk/middleware-bucket-endpoint": "3.201.0",
39
+ "@aws-sdk/middleware-content-length": "3.201.0",
40
+ "@aws-sdk/middleware-endpoint": "3.201.0",
41
+ "@aws-sdk/middleware-expect-continue": "3.201.0",
42
+ "@aws-sdk/middleware-flexible-checksums": "3.201.0",
43
+ "@aws-sdk/middleware-host-header": "3.201.0",
44
+ "@aws-sdk/middleware-location-constraint": "3.201.0",
45
+ "@aws-sdk/middleware-logger": "3.201.0",
46
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
47
+ "@aws-sdk/middleware-retry": "3.201.0",
48
+ "@aws-sdk/middleware-sdk-s3": "3.201.0",
49
+ "@aws-sdk/middleware-serde": "3.201.0",
50
+ "@aws-sdk/middleware-signing": "3.201.0",
51
+ "@aws-sdk/middleware-ssec": "3.201.0",
52
+ "@aws-sdk/middleware-stack": "3.201.0",
53
+ "@aws-sdk/middleware-user-agent": "3.201.0",
54
+ "@aws-sdk/node-config-provider": "3.201.0",
55
+ "@aws-sdk/node-http-handler": "3.201.0",
56
+ "@aws-sdk/protocol-http": "3.201.0",
57
+ "@aws-sdk/signature-v4-multi-region": "3.201.0",
58
+ "@aws-sdk/smithy-client": "3.201.0",
59
+ "@aws-sdk/types": "3.201.0",
60
+ "@aws-sdk/url-parser": "3.201.0",
61
61
  "@aws-sdk/util-base64-browser": "3.188.0",
62
- "@aws-sdk/util-base64-node": "3.188.0",
62
+ "@aws-sdk/util-base64-node": "3.201.0",
63
63
  "@aws-sdk/util-body-length-browser": "3.188.0",
64
- "@aws-sdk/util-body-length-node": "3.188.0",
65
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
66
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
67
- "@aws-sdk/util-endpoints": "3.200.0",
68
- "@aws-sdk/util-stream-browser": "3.200.0",
69
- "@aws-sdk/util-stream-node": "3.200.0",
70
- "@aws-sdk/util-user-agent-browser": "3.200.0",
71
- "@aws-sdk/util-user-agent-node": "3.200.0",
64
+ "@aws-sdk/util-body-length-node": "3.201.0",
65
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
66
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
67
+ "@aws-sdk/util-endpoints": "3.201.0",
68
+ "@aws-sdk/util-stream-browser": "3.201.0",
69
+ "@aws-sdk/util-stream-node": "3.201.0",
70
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
71
+ "@aws-sdk/util-user-agent-node": "3.201.0",
72
72
  "@aws-sdk/util-utf8-browser": "3.188.0",
73
- "@aws-sdk/util-utf8-node": "3.199.0",
74
- "@aws-sdk/util-waiter": "3.200.0",
75
- "@aws-sdk/xml-builder": "3.188.0",
73
+ "@aws-sdk/util-utf8-node": "3.201.0",
74
+ "@aws-sdk/util-waiter": "3.201.0",
75
+ "@aws-sdk/xml-builder": "3.201.0",
76
76
  "fast-xml-parser": "4.0.11",
77
77
  "tslib": "^2.3.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
81
- "@tsconfig/recommended": "1.0.1",
81
+ "@tsconfig/node14": "1.0.3",
82
82
  "@types/chai": "^4.2.11",
83
83
  "@types/mocha": "^8.0.4",
84
84
  "@types/node": "^12.7.5",
@@ -94,7 +94,7 @@
94
94
  }
95
95
  },
96
96
  "engines": {
97
- "node": ">=12.0.0"
97
+ "node": ">=14.0.0"
98
98
  },
99
99
  "typesVersions": {
100
100
  "<4.0": {