@aws-sdk/client-s3 3.470.0 → 3.473.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.
@@ -46,6 +46,9 @@ class SelectObjectContentCommand extends smithy_client_1.Command {
46
46
  [types_1.SMITHY_CONTEXT_KEY]: {
47
47
  service: "AmazonS3",
48
48
  operation: "SelectObjectContent",
49
+ eventStream: {
50
+ output: true,
51
+ },
49
52
  },
50
53
  };
51
54
  const { requestHandler } = configuration;
@@ -59,9 +59,6 @@ const se_CompleteMultipartUploadCommand = async (input, context) => {
59
59
  uploadId: [, (0, smithy_client_1.expectNonNull)(input.UploadId, `UploadId`)],
60
60
  });
61
61
  let body;
62
- if (input.MultipartUpload !== undefined) {
63
- body = se_CompletedMultipartUpload(input.MultipartUpload, context);
64
- }
65
62
  let contents;
66
63
  if (input.MultipartUpload !== undefined) {
67
64
  contents = se_CompletedMultipartUpload(input.MultipartUpload, context);
@@ -179,9 +176,6 @@ const se_CreateBucketCommand = async (input, context) => {
179
176
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
180
177
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
181
178
  let body;
182
- if (input.CreateBucketConfiguration !== undefined) {
183
- body = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context);
184
- }
185
179
  let contents;
186
180
  if (input.CreateBucketConfiguration !== undefined) {
187
181
  contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context);
@@ -633,9 +627,6 @@ const se_DeleteObjectsCommand = async (input, context) => {
633
627
  "x-id": [, "DeleteObjects"],
634
628
  });
635
629
  let body;
636
- if (input.Delete !== undefined) {
637
- body = se_Delete(input.Delete, context);
638
- }
639
630
  let contents;
640
631
  if (input.Delete !== undefined) {
641
632
  contents = se_Delete(input.Delete, context);
@@ -1809,9 +1800,6 @@ const se_PutBucketAccelerateConfigurationCommand = async (input, context) => {
1809
1800
  accelerate: [, ""],
1810
1801
  });
1811
1802
  let body;
1812
- if (input.AccelerateConfiguration !== undefined) {
1813
- body = se_AccelerateConfiguration(input.AccelerateConfiguration, context);
1814
- }
1815
1803
  let contents;
1816
1804
  if (input.AccelerateConfiguration !== undefined) {
1817
1805
  contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context);
@@ -1851,9 +1839,6 @@ const se_PutBucketAclCommand = async (input, context) => {
1851
1839
  acl: [, ""],
1852
1840
  });
1853
1841
  let body;
1854
- if (input.AccessControlPolicy !== undefined) {
1855
- body = se_AccessControlPolicy(input.AccessControlPolicy, context);
1856
- }
1857
1842
  let contents;
1858
1843
  if (input.AccessControlPolicy !== undefined) {
1859
1844
  contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
@@ -1886,9 +1871,6 @@ const se_PutBucketAnalyticsConfigurationCommand = async (input, context) => {
1886
1871
  id: [, (0, smithy_client_1.expectNonNull)(input.Id, `Id`)],
1887
1872
  });
1888
1873
  let body;
1889
- if (input.AnalyticsConfiguration !== undefined) {
1890
- body = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context);
1891
- }
1892
1874
  let contents;
1893
1875
  if (input.AnalyticsConfiguration !== undefined) {
1894
1876
  contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context);
@@ -1922,9 +1904,6 @@ const se_PutBucketCorsCommand = async (input, context) => {
1922
1904
  cors: [, ""],
1923
1905
  });
1924
1906
  let body;
1925
- if (input.CORSConfiguration !== undefined) {
1926
- body = se_CORSConfiguration(input.CORSConfiguration, context);
1927
- }
1928
1907
  let contents;
1929
1908
  if (input.CORSConfiguration !== undefined) {
1930
1909
  contents = se_CORSConfiguration(input.CORSConfiguration, context);
@@ -1958,9 +1937,6 @@ const se_PutBucketEncryptionCommand = async (input, context) => {
1958
1937
  encryption: [, ""],
1959
1938
  });
1960
1939
  let body;
1961
- if (input.ServerSideEncryptionConfiguration !== undefined) {
1962
- body = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context);
1963
- }
1964
1940
  let contents;
1965
1941
  if (input.ServerSideEncryptionConfiguration !== undefined) {
1966
1942
  contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context);
@@ -1992,9 +1968,6 @@ const se_PutBucketIntelligentTieringConfigurationCommand = async (input, context
1992
1968
  id: [, (0, smithy_client_1.expectNonNull)(input.Id, `Id`)],
1993
1969
  });
1994
1970
  let body;
1995
- if (input.IntelligentTieringConfiguration !== undefined) {
1996
- body = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context);
1997
- }
1998
1971
  let contents;
1999
1972
  if (input.IntelligentTieringConfiguration !== undefined) {
2000
1973
  contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context);
@@ -2027,9 +2000,6 @@ const se_PutBucketInventoryConfigurationCommand = async (input, context) => {
2027
2000
  id: [, (0, smithy_client_1.expectNonNull)(input.Id, `Id`)],
2028
2001
  });
2029
2002
  let body;
2030
- if (input.InventoryConfiguration !== undefined) {
2031
- body = se_InventoryConfiguration(input.InventoryConfiguration, context);
2032
- }
2033
2003
  let contents;
2034
2004
  if (input.InventoryConfiguration !== undefined) {
2035
2005
  contents = se_InventoryConfiguration(input.InventoryConfiguration, context);
@@ -2062,9 +2032,6 @@ const se_PutBucketLifecycleConfigurationCommand = async (input, context) => {
2062
2032
  lifecycle: [, ""],
2063
2033
  });
2064
2034
  let body;
2065
- if (input.LifecycleConfiguration !== undefined) {
2066
- body = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context);
2067
- }
2068
2035
  let contents;
2069
2036
  if (input.LifecycleConfiguration !== undefined) {
2070
2037
  contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context);
@@ -2099,9 +2066,6 @@ const se_PutBucketLoggingCommand = async (input, context) => {
2099
2066
  logging: [, ""],
2100
2067
  });
2101
2068
  let body;
2102
- if (input.BucketLoggingStatus !== undefined) {
2103
- body = se_BucketLoggingStatus(input.BucketLoggingStatus, context);
2104
- }
2105
2069
  let contents;
2106
2070
  if (input.BucketLoggingStatus !== undefined) {
2107
2071
  contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context);
@@ -2134,9 +2098,6 @@ const se_PutBucketMetricsConfigurationCommand = async (input, context) => {
2134
2098
  id: [, (0, smithy_client_1.expectNonNull)(input.Id, `Id`)],
2135
2099
  });
2136
2100
  let body;
2137
- if (input.MetricsConfiguration !== undefined) {
2138
- body = se_MetricsConfiguration(input.MetricsConfiguration, context);
2139
- }
2140
2101
  let contents;
2141
2102
  if (input.MetricsConfiguration !== undefined) {
2142
2103
  contents = se_MetricsConfiguration(input.MetricsConfiguration, context);
@@ -2172,9 +2133,6 @@ const se_PutBucketNotificationConfigurationCommand = async (input, context) => {
2172
2133
  notification: [, ""],
2173
2134
  });
2174
2135
  let body;
2175
- if (input.NotificationConfiguration !== undefined) {
2176
- body = se_NotificationConfiguration(input.NotificationConfiguration, context);
2177
- }
2178
2136
  let contents;
2179
2137
  if (input.NotificationConfiguration !== undefined) {
2180
2138
  contents = se_NotificationConfiguration(input.NotificationConfiguration, context);
@@ -2207,9 +2165,6 @@ const se_PutBucketOwnershipControlsCommand = async (input, context) => {
2207
2165
  ownershipControls: [, ""],
2208
2166
  });
2209
2167
  let body;
2210
- if (input.OwnershipControls !== undefined) {
2211
- body = se_OwnershipControls(input.OwnershipControls, context);
2212
- }
2213
2168
  let contents;
2214
2169
  if (input.OwnershipControls !== undefined) {
2215
2170
  contents = se_OwnershipControls(input.OwnershipControls, context);
@@ -2247,9 +2202,6 @@ const se_PutBucketPolicyCommand = async (input, context) => {
2247
2202
  policy: [, ""],
2248
2203
  });
2249
2204
  let body;
2250
- if (input.Policy !== undefined) {
2251
- body = input.Policy;
2252
- }
2253
2205
  let contents;
2254
2206
  if (input.Policy !== undefined) {
2255
2207
  contents = input.Policy;
@@ -2282,9 +2234,6 @@ const se_PutBucketReplicationCommand = async (input, context) => {
2282
2234
  replication: [, ""],
2283
2235
  });
2284
2236
  let body;
2285
- if (input.ReplicationConfiguration !== undefined) {
2286
- body = se_ReplicationConfiguration(input.ReplicationConfiguration, context);
2287
- }
2288
2237
  let contents;
2289
2238
  if (input.ReplicationConfiguration !== undefined) {
2290
2239
  contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context);
@@ -2318,9 +2267,6 @@ const se_PutBucketRequestPaymentCommand = async (input, context) => {
2318
2267
  requestPayment: [, ""],
2319
2268
  });
2320
2269
  let body;
2321
- if (input.RequestPaymentConfiguration !== undefined) {
2322
- body = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context);
2323
- }
2324
2270
  let contents;
2325
2271
  if (input.RequestPaymentConfiguration !== undefined) {
2326
2272
  contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context);
@@ -2354,9 +2300,6 @@ const se_PutBucketTaggingCommand = async (input, context) => {
2354
2300
  tagging: [, ""],
2355
2301
  });
2356
2302
  let body;
2357
- if (input.Tagging !== undefined) {
2358
- body = se_Tagging(input.Tagging, context);
2359
- }
2360
2303
  let contents;
2361
2304
  if (input.Tagging !== undefined) {
2362
2305
  contents = se_Tagging(input.Tagging, context);
@@ -2391,9 +2334,6 @@ const se_PutBucketVersioningCommand = async (input, context) => {
2391
2334
  versioning: [, ""],
2392
2335
  });
2393
2336
  let body;
2394
- if (input.VersioningConfiguration !== undefined) {
2395
- body = se_VersioningConfiguration(input.VersioningConfiguration, context);
2396
- }
2397
2337
  let contents;
2398
2338
  if (input.VersioningConfiguration !== undefined) {
2399
2339
  contents = se_VersioningConfiguration(input.VersioningConfiguration, context);
@@ -2427,9 +2367,6 @@ const se_PutBucketWebsiteCommand = async (input, context) => {
2427
2367
  website: [, ""],
2428
2368
  });
2429
2369
  let body;
2430
- if (input.WebsiteConfiguration !== undefined) {
2431
- body = se_WebsiteConfiguration(input.WebsiteConfiguration, context);
2432
- }
2433
2370
  let contents;
2434
2371
  if (input.WebsiteConfiguration !== undefined) {
2435
2372
  contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context);
@@ -2504,9 +2441,6 @@ const se_PutObjectCommand = async (input, context) => {
2504
2441
  "x-id": [, "PutObject"],
2505
2442
  });
2506
2443
  let body;
2507
- if (input.Body !== undefined) {
2508
- body = input.Body;
2509
- }
2510
2444
  let contents;
2511
2445
  if (input.Body !== undefined) {
2512
2446
  contents = input.Body;
@@ -2547,9 +2481,6 @@ const se_PutObjectAclCommand = async (input, context) => {
2547
2481
  versionId: [, input.VersionId],
2548
2482
  });
2549
2483
  let body;
2550
- if (input.AccessControlPolicy !== undefined) {
2551
- body = se_AccessControlPolicy(input.AccessControlPolicy, context);
2552
- }
2553
2484
  let contents;
2554
2485
  if (input.AccessControlPolicy !== undefined) {
2555
2486
  contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
@@ -2586,9 +2517,6 @@ const se_PutObjectLegalHoldCommand = async (input, context) => {
2586
2517
  versionId: [, input.VersionId],
2587
2518
  });
2588
2519
  let body;
2589
- if (input.LegalHold !== undefined) {
2590
- body = se_ObjectLockLegalHold(input.LegalHold, context);
2591
- }
2592
2520
  let contents;
2593
2521
  if (input.LegalHold !== undefined) {
2594
2522
  contents = se_ObjectLockLegalHold(input.LegalHold, context);
@@ -2625,9 +2553,6 @@ const se_PutObjectLockConfigurationCommand = async (input, context) => {
2625
2553
  "object-lock": [, ""],
2626
2554
  });
2627
2555
  let body;
2628
- if (input.ObjectLockConfiguration !== undefined) {
2629
- body = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context);
2630
- }
2631
2556
  let contents;
2632
2557
  if (input.ObjectLockConfiguration !== undefined) {
2633
2558
  contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context);
@@ -2668,9 +2593,6 @@ const se_PutObjectRetentionCommand = async (input, context) => {
2668
2593
  versionId: [, input.VersionId],
2669
2594
  });
2670
2595
  let body;
2671
- if (input.Retention !== undefined) {
2672
- body = se_ObjectLockRetention(input.Retention, context);
2673
- }
2674
2596
  let contents;
2675
2597
  if (input.Retention !== undefined) {
2676
2598
  contents = se_ObjectLockRetention(input.Retention, context);
@@ -2708,9 +2630,6 @@ const se_PutObjectTaggingCommand = async (input, context) => {
2708
2630
  versionId: [, input.VersionId],
2709
2631
  });
2710
2632
  let body;
2711
- if (input.Tagging !== undefined) {
2712
- body = se_Tagging(input.Tagging, context);
2713
- }
2714
2633
  let contents;
2715
2634
  if (input.Tagging !== undefined) {
2716
2635
  contents = se_Tagging(input.Tagging, context);
@@ -2744,9 +2663,6 @@ const se_PutPublicAccessBlockCommand = async (input, context) => {
2744
2663
  publicAccessBlock: [, ""],
2745
2664
  });
2746
2665
  let body;
2747
- if (input.PublicAccessBlockConfiguration !== undefined) {
2748
- body = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context);
2749
- }
2750
2666
  let contents;
2751
2667
  if (input.PublicAccessBlockConfiguration !== undefined) {
2752
2668
  contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context);
@@ -2783,9 +2699,6 @@ const se_RestoreObjectCommand = async (input, context) => {
2783
2699
  versionId: [, input.VersionId],
2784
2700
  });
2785
2701
  let body;
2786
- if (input.RestoreRequest !== undefined) {
2787
- body = se_RestoreRequest(input.RestoreRequest, context);
2788
- }
2789
2702
  let contents;
2790
2703
  if (input.RestoreRequest !== undefined) {
2791
2704
  contents = se_RestoreRequest(input.RestoreRequest, context);
@@ -2889,9 +2802,6 @@ const se_UploadPartCommand = async (input, context) => {
2889
2802
  uploadId: [, (0, smithy_client_1.expectNonNull)(input.UploadId, `UploadId`)],
2890
2803
  });
2891
2804
  let body;
2892
- if (input.Body !== undefined) {
2893
- body = input.Body;
2894
- }
2895
2805
  let contents;
2896
2806
  if (input.Body !== undefined) {
2897
2807
  contents = input.Body;
@@ -3033,9 +2943,6 @@ const se_WriteGetObjectResponseCommand = async (input, context) => {
3033
2943
  "x-id": [, "WriteGetObjectResponse"],
3034
2944
  });
3035
2945
  let body;
3036
- if (input.Body !== undefined) {
3037
- body = input.Body;
3038
- }
3039
2946
  let contents;
3040
2947
  if (input.Body !== undefined) {
3041
2948
  contents = input.Body;
@@ -43,6 +43,9 @@ export class SelectObjectContentCommand extends $Command {
43
43
  [SMITHY_CONTEXT_KEY]: {
44
44
  service: "AmazonS3",
45
45
  operation: "SelectObjectContent",
46
+ eventStream: {
47
+ output: true,
48
+ },
46
49
  },
47
50
  };
48
51
  const { requestHandler } = configuration;
@@ -52,9 +52,6 @@ export const se_CompleteMultipartUploadCommand = async (input, context) => {
52
52
  uploadId: [, __expectNonNull(input.UploadId, `UploadId`)],
53
53
  });
54
54
  let body;
55
- if (input.MultipartUpload !== undefined) {
56
- body = se_CompletedMultipartUpload(input.MultipartUpload, context);
57
- }
58
55
  let contents;
59
56
  if (input.MultipartUpload !== undefined) {
60
57
  contents = se_CompletedMultipartUpload(input.MultipartUpload, context);
@@ -170,9 +167,6 @@ export const se_CreateBucketCommand = async (input, context) => {
170
167
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
171
168
  resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
172
169
  let body;
173
- if (input.CreateBucketConfiguration !== undefined) {
174
- body = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context);
175
- }
176
170
  let contents;
177
171
  if (input.CreateBucketConfiguration !== undefined) {
178
172
  contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context);
@@ -607,9 +601,6 @@ export const se_DeleteObjectsCommand = async (input, context) => {
607
601
  "x-id": [, "DeleteObjects"],
608
602
  });
609
603
  let body;
610
- if (input.Delete !== undefined) {
611
- body = se_Delete(input.Delete, context);
612
- }
613
604
  let contents;
614
605
  if (input.Delete !== undefined) {
615
606
  contents = se_Delete(input.Delete, context);
@@ -1738,9 +1729,6 @@ export const se_PutBucketAccelerateConfigurationCommand = async (input, context)
1738
1729
  accelerate: [, ""],
1739
1730
  });
1740
1731
  let body;
1741
- if (input.AccelerateConfiguration !== undefined) {
1742
- body = se_AccelerateConfiguration(input.AccelerateConfiguration, context);
1743
- }
1744
1732
  let contents;
1745
1733
  if (input.AccelerateConfiguration !== undefined) {
1746
1734
  contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context);
@@ -1779,9 +1767,6 @@ export const se_PutBucketAclCommand = async (input, context) => {
1779
1767
  acl: [, ""],
1780
1768
  });
1781
1769
  let body;
1782
- if (input.AccessControlPolicy !== undefined) {
1783
- body = se_AccessControlPolicy(input.AccessControlPolicy, context);
1784
- }
1785
1770
  let contents;
1786
1771
  if (input.AccessControlPolicy !== undefined) {
1787
1772
  contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
@@ -1813,9 +1798,6 @@ export const se_PutBucketAnalyticsConfigurationCommand = async (input, context)
1813
1798
  id: [, __expectNonNull(input.Id, `Id`)],
1814
1799
  });
1815
1800
  let body;
1816
- if (input.AnalyticsConfiguration !== undefined) {
1817
- body = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context);
1818
- }
1819
1801
  let contents;
1820
1802
  if (input.AnalyticsConfiguration !== undefined) {
1821
1803
  contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context);
@@ -1848,9 +1830,6 @@ export const se_PutBucketCorsCommand = async (input, context) => {
1848
1830
  cors: [, ""],
1849
1831
  });
1850
1832
  let body;
1851
- if (input.CORSConfiguration !== undefined) {
1852
- body = se_CORSConfiguration(input.CORSConfiguration, context);
1853
- }
1854
1833
  let contents;
1855
1834
  if (input.CORSConfiguration !== undefined) {
1856
1835
  contents = se_CORSConfiguration(input.CORSConfiguration, context);
@@ -1883,9 +1862,6 @@ export const se_PutBucketEncryptionCommand = async (input, context) => {
1883
1862
  encryption: [, ""],
1884
1863
  });
1885
1864
  let body;
1886
- if (input.ServerSideEncryptionConfiguration !== undefined) {
1887
- body = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context);
1888
- }
1889
1865
  let contents;
1890
1866
  if (input.ServerSideEncryptionConfiguration !== undefined) {
1891
1867
  contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context);
@@ -1916,9 +1892,6 @@ export const se_PutBucketIntelligentTieringConfigurationCommand = async (input,
1916
1892
  id: [, __expectNonNull(input.Id, `Id`)],
1917
1893
  });
1918
1894
  let body;
1919
- if (input.IntelligentTieringConfiguration !== undefined) {
1920
- body = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context);
1921
- }
1922
1895
  let contents;
1923
1896
  if (input.IntelligentTieringConfiguration !== undefined) {
1924
1897
  contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context);
@@ -1950,9 +1923,6 @@ export const se_PutBucketInventoryConfigurationCommand = async (input, context)
1950
1923
  id: [, __expectNonNull(input.Id, `Id`)],
1951
1924
  });
1952
1925
  let body;
1953
- if (input.InventoryConfiguration !== undefined) {
1954
- body = se_InventoryConfiguration(input.InventoryConfiguration, context);
1955
- }
1956
1926
  let contents;
1957
1927
  if (input.InventoryConfiguration !== undefined) {
1958
1928
  contents = se_InventoryConfiguration(input.InventoryConfiguration, context);
@@ -1984,9 +1954,6 @@ export const se_PutBucketLifecycleConfigurationCommand = async (input, context)
1984
1954
  lifecycle: [, ""],
1985
1955
  });
1986
1956
  let body;
1987
- if (input.LifecycleConfiguration !== undefined) {
1988
- body = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context);
1989
- }
1990
1957
  let contents;
1991
1958
  if (input.LifecycleConfiguration !== undefined) {
1992
1959
  contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context);
@@ -2020,9 +1987,6 @@ export const se_PutBucketLoggingCommand = async (input, context) => {
2020
1987
  logging: [, ""],
2021
1988
  });
2022
1989
  let body;
2023
- if (input.BucketLoggingStatus !== undefined) {
2024
- body = se_BucketLoggingStatus(input.BucketLoggingStatus, context);
2025
- }
2026
1990
  let contents;
2027
1991
  if (input.BucketLoggingStatus !== undefined) {
2028
1992
  contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context);
@@ -2054,9 +2018,6 @@ export const se_PutBucketMetricsConfigurationCommand = async (input, context) =>
2054
2018
  id: [, __expectNonNull(input.Id, `Id`)],
2055
2019
  });
2056
2020
  let body;
2057
- if (input.MetricsConfiguration !== undefined) {
2058
- body = se_MetricsConfiguration(input.MetricsConfiguration, context);
2059
- }
2060
2021
  let contents;
2061
2022
  if (input.MetricsConfiguration !== undefined) {
2062
2023
  contents = se_MetricsConfiguration(input.MetricsConfiguration, context);
@@ -2091,9 +2052,6 @@ export const se_PutBucketNotificationConfigurationCommand = async (input, contex
2091
2052
  notification: [, ""],
2092
2053
  });
2093
2054
  let body;
2094
- if (input.NotificationConfiguration !== undefined) {
2095
- body = se_NotificationConfiguration(input.NotificationConfiguration, context);
2096
- }
2097
2055
  let contents;
2098
2056
  if (input.NotificationConfiguration !== undefined) {
2099
2057
  contents = se_NotificationConfiguration(input.NotificationConfiguration, context);
@@ -2125,9 +2083,6 @@ export const se_PutBucketOwnershipControlsCommand = async (input, context) => {
2125
2083
  ownershipControls: [, ""],
2126
2084
  });
2127
2085
  let body;
2128
- if (input.OwnershipControls !== undefined) {
2129
- body = se_OwnershipControls(input.OwnershipControls, context);
2130
- }
2131
2086
  let contents;
2132
2087
  if (input.OwnershipControls !== undefined) {
2133
2088
  contents = se_OwnershipControls(input.OwnershipControls, context);
@@ -2164,9 +2119,6 @@ export const se_PutBucketPolicyCommand = async (input, context) => {
2164
2119
  policy: [, ""],
2165
2120
  });
2166
2121
  let body;
2167
- if (input.Policy !== undefined) {
2168
- body = input.Policy;
2169
- }
2170
2122
  let contents;
2171
2123
  if (input.Policy !== undefined) {
2172
2124
  contents = input.Policy;
@@ -2198,9 +2150,6 @@ export const se_PutBucketReplicationCommand = async (input, context) => {
2198
2150
  replication: [, ""],
2199
2151
  });
2200
2152
  let body;
2201
- if (input.ReplicationConfiguration !== undefined) {
2202
- body = se_ReplicationConfiguration(input.ReplicationConfiguration, context);
2203
- }
2204
2153
  let contents;
2205
2154
  if (input.ReplicationConfiguration !== undefined) {
2206
2155
  contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context);
@@ -2233,9 +2182,6 @@ export const se_PutBucketRequestPaymentCommand = async (input, context) => {
2233
2182
  requestPayment: [, ""],
2234
2183
  });
2235
2184
  let body;
2236
- if (input.RequestPaymentConfiguration !== undefined) {
2237
- body = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context);
2238
- }
2239
2185
  let contents;
2240
2186
  if (input.RequestPaymentConfiguration !== undefined) {
2241
2187
  contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context);
@@ -2268,9 +2214,6 @@ export const se_PutBucketTaggingCommand = async (input, context) => {
2268
2214
  tagging: [, ""],
2269
2215
  });
2270
2216
  let body;
2271
- if (input.Tagging !== undefined) {
2272
- body = se_Tagging(input.Tagging, context);
2273
- }
2274
2217
  let contents;
2275
2218
  if (input.Tagging !== undefined) {
2276
2219
  contents = se_Tagging(input.Tagging, context);
@@ -2304,9 +2247,6 @@ export const se_PutBucketVersioningCommand = async (input, context) => {
2304
2247
  versioning: [, ""],
2305
2248
  });
2306
2249
  let body;
2307
- if (input.VersioningConfiguration !== undefined) {
2308
- body = se_VersioningConfiguration(input.VersioningConfiguration, context);
2309
- }
2310
2250
  let contents;
2311
2251
  if (input.VersioningConfiguration !== undefined) {
2312
2252
  contents = se_VersioningConfiguration(input.VersioningConfiguration, context);
@@ -2339,9 +2279,6 @@ export const se_PutBucketWebsiteCommand = async (input, context) => {
2339
2279
  website: [, ""],
2340
2280
  });
2341
2281
  let body;
2342
- if (input.WebsiteConfiguration !== undefined) {
2343
- body = se_WebsiteConfiguration(input.WebsiteConfiguration, context);
2344
- }
2345
2282
  let contents;
2346
2283
  if (input.WebsiteConfiguration !== undefined) {
2347
2284
  contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context);
@@ -2415,9 +2352,6 @@ export const se_PutObjectCommand = async (input, context) => {
2415
2352
  "x-id": [, "PutObject"],
2416
2353
  });
2417
2354
  let body;
2418
- if (input.Body !== undefined) {
2419
- body = input.Body;
2420
- }
2421
2355
  let contents;
2422
2356
  if (input.Body !== undefined) {
2423
2357
  contents = input.Body;
@@ -2457,9 +2391,6 @@ export const se_PutObjectAclCommand = async (input, context) => {
2457
2391
  versionId: [, input.VersionId],
2458
2392
  });
2459
2393
  let body;
2460
- if (input.AccessControlPolicy !== undefined) {
2461
- body = se_AccessControlPolicy(input.AccessControlPolicy, context);
2462
- }
2463
2394
  let contents;
2464
2395
  if (input.AccessControlPolicy !== undefined) {
2465
2396
  contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
@@ -2495,9 +2426,6 @@ export const se_PutObjectLegalHoldCommand = async (input, context) => {
2495
2426
  versionId: [, input.VersionId],
2496
2427
  });
2497
2428
  let body;
2498
- if (input.LegalHold !== undefined) {
2499
- body = se_ObjectLockLegalHold(input.LegalHold, context);
2500
- }
2501
2429
  let contents;
2502
2430
  if (input.LegalHold !== undefined) {
2503
2431
  contents = se_ObjectLockLegalHold(input.LegalHold, context);
@@ -2533,9 +2461,6 @@ export const se_PutObjectLockConfigurationCommand = async (input, context) => {
2533
2461
  "object-lock": [, ""],
2534
2462
  });
2535
2463
  let body;
2536
- if (input.ObjectLockConfiguration !== undefined) {
2537
- body = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context);
2538
- }
2539
2464
  let contents;
2540
2465
  if (input.ObjectLockConfiguration !== undefined) {
2541
2466
  contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context);
@@ -2575,9 +2500,6 @@ export const se_PutObjectRetentionCommand = async (input, context) => {
2575
2500
  versionId: [, input.VersionId],
2576
2501
  });
2577
2502
  let body;
2578
- if (input.Retention !== undefined) {
2579
- body = se_ObjectLockRetention(input.Retention, context);
2580
- }
2581
2503
  let contents;
2582
2504
  if (input.Retention !== undefined) {
2583
2505
  contents = se_ObjectLockRetention(input.Retention, context);
@@ -2614,9 +2536,6 @@ export const se_PutObjectTaggingCommand = async (input, context) => {
2614
2536
  versionId: [, input.VersionId],
2615
2537
  });
2616
2538
  let body;
2617
- if (input.Tagging !== undefined) {
2618
- body = se_Tagging(input.Tagging, context);
2619
- }
2620
2539
  let contents;
2621
2540
  if (input.Tagging !== undefined) {
2622
2541
  contents = se_Tagging(input.Tagging, context);
@@ -2649,9 +2568,6 @@ export const se_PutPublicAccessBlockCommand = async (input, context) => {
2649
2568
  publicAccessBlock: [, ""],
2650
2569
  });
2651
2570
  let body;
2652
- if (input.PublicAccessBlockConfiguration !== undefined) {
2653
- body = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context);
2654
- }
2655
2571
  let contents;
2656
2572
  if (input.PublicAccessBlockConfiguration !== undefined) {
2657
2573
  contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context);
@@ -2687,9 +2603,6 @@ export const se_RestoreObjectCommand = async (input, context) => {
2687
2603
  versionId: [, input.VersionId],
2688
2604
  });
2689
2605
  let body;
2690
- if (input.RestoreRequest !== undefined) {
2691
- body = se_RestoreRequest(input.RestoreRequest, context);
2692
- }
2693
2606
  let contents;
2694
2607
  if (input.RestoreRequest !== undefined) {
2695
2608
  contents = se_RestoreRequest(input.RestoreRequest, context);
@@ -2791,9 +2704,6 @@ export const se_UploadPartCommand = async (input, context) => {
2791
2704
  uploadId: [, __expectNonNull(input.UploadId, `UploadId`)],
2792
2705
  });
2793
2706
  let body;
2794
- if (input.Body !== undefined) {
2795
- body = input.Body;
2796
- }
2797
2707
  let contents;
2798
2708
  if (input.Body !== undefined) {
2799
2709
  contents = input.Body;
@@ -2933,9 +2843,6 @@ export const se_WriteGetObjectResponseCommand = async (input, context) => {
2933
2843
  "x-id": [, "WriteGetObjectResponse"],
2934
2844
  });
2935
2845
  let body;
2936
- if (input.Body !== undefined) {
2937
- body = input.Body;
2938
- }
2939
2846
  let contents;
2940
2847
  if (input.Body !== undefined) {
2941
2848
  contents = input.Body;
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.470.0",
4
+ "version": "3.473.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",
@@ -26,7 +26,7 @@
26
26
  "@aws-crypto/sha1-browser": "3.0.0",
27
27
  "@aws-crypto/sha256-browser": "3.0.0",
28
28
  "@aws-crypto/sha256-js": "3.0.0",
29
- "@aws-sdk/client-sts": "3.470.0",
29
+ "@aws-sdk/client-sts": "3.473.0",
30
30
  "@aws-sdk/core": "3.468.0",
31
31
  "@aws-sdk/credential-provider-node": "3.470.0",
32
32
  "@aws-sdk/middleware-bucket-endpoint": "3.470.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-endpoints": "3.470.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.468.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.470.0",
49
- "@aws-sdk/xml-builder": "3.465.0",
49
+ "@aws-sdk/xml-builder": "3.472.0",
50
50
  "@smithy/config-resolver": "^2.0.21",
51
51
  "@smithy/eventstream-serde-browser": "^2.0.15",
52
52
  "@smithy/eventstream-serde-config-resolver": "^2.0.15",