@aws-sdk/client-s3 3.252.0 → 3.256.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.
|
@@ -96,14 +96,14 @@ const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
|
|
|
96
96
|
"x-amz-copy-source-if-match": input.CopySourceIfMatch,
|
|
97
97
|
"x-amz-copy-source-if-modified-since": [
|
|
98
98
|
() => isSerializableHeaderValue(input.CopySourceIfModifiedSince),
|
|
99
|
-
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfModifiedSince),
|
|
99
|
+
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfModifiedSince).toString(),
|
|
100
100
|
],
|
|
101
101
|
"x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch,
|
|
102
102
|
"x-amz-copy-source-if-unmodified-since": [
|
|
103
103
|
() => isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince),
|
|
104
|
-
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfUnmodifiedSince),
|
|
104
|
+
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfUnmodifiedSince).toString(),
|
|
105
105
|
],
|
|
106
|
-
expires: [() => isSerializableHeaderValue(input.Expires), () => (0, smithy_client_1.dateToUtcString)(input.Expires)],
|
|
106
|
+
expires: [() => isSerializableHeaderValue(input.Expires), () => (0, smithy_client_1.dateToUtcString)(input.Expires).toString()],
|
|
107
107
|
"x-amz-grant-full-control": input.GrantFullControl,
|
|
108
108
|
"x-amz-grant-read": input.GrantRead,
|
|
109
109
|
"x-amz-grant-read-acp": input.GrantReadACP,
|
|
@@ -130,7 +130,7 @@ const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
|
|
|
130
130
|
"x-amz-object-lock-mode": input.ObjectLockMode,
|
|
131
131
|
"x-amz-object-lock-retain-until-date": [
|
|
132
132
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
133
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
133
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
134
134
|
],
|
|
135
135
|
"x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
136
136
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
@@ -209,7 +209,7 @@ const serializeAws_restXmlCreateMultipartUploadCommand = async (input, context)
|
|
|
209
209
|
"content-encoding": input.ContentEncoding,
|
|
210
210
|
"content-language": input.ContentLanguage,
|
|
211
211
|
"content-type": input.ContentType,
|
|
212
|
-
expires: [() => isSerializableHeaderValue(input.Expires), () => (0, smithy_client_1.dateToUtcString)(input.Expires)],
|
|
212
|
+
expires: [() => isSerializableHeaderValue(input.Expires), () => (0, smithy_client_1.dateToUtcString)(input.Expires).toString()],
|
|
213
213
|
"x-amz-grant-full-control": input.GrantFullControl,
|
|
214
214
|
"x-amz-grant-read": input.GrantRead,
|
|
215
215
|
"x-amz-grant-read-acp": input.GrantReadACP,
|
|
@@ -231,7 +231,7 @@ const serializeAws_restXmlCreateMultipartUploadCommand = async (input, context)
|
|
|
231
231
|
"x-amz-object-lock-mode": input.ObjectLockMode,
|
|
232
232
|
"x-amz-object-lock-retain-until-date": [
|
|
233
233
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
234
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
234
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
235
235
|
],
|
|
236
236
|
"x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
237
237
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
@@ -1152,12 +1152,12 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
|
|
|
1152
1152
|
"if-match": input.IfMatch,
|
|
1153
1153
|
"if-modified-since": [
|
|
1154
1154
|
() => isSerializableHeaderValue(input.IfModifiedSince),
|
|
1155
|
-
() => (0, smithy_client_1.dateToUtcString)(input.IfModifiedSince),
|
|
1155
|
+
() => (0, smithy_client_1.dateToUtcString)(input.IfModifiedSince).toString(),
|
|
1156
1156
|
],
|
|
1157
1157
|
"if-none-match": input.IfNoneMatch,
|
|
1158
1158
|
"if-unmodified-since": [
|
|
1159
1159
|
() => isSerializableHeaderValue(input.IfUnmodifiedSince),
|
|
1160
|
-
() => (0, smithy_client_1.dateToUtcString)(input.IfUnmodifiedSince),
|
|
1160
|
+
() => (0, smithy_client_1.dateToUtcString)(input.IfUnmodifiedSince).toString(),
|
|
1161
1161
|
],
|
|
1162
1162
|
range: input.Range,
|
|
1163
1163
|
"x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm,
|
|
@@ -1177,7 +1177,10 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
|
|
|
1177
1177
|
"response-content-encoding": [, input.ResponseContentEncoding],
|
|
1178
1178
|
"response-content-language": [, input.ResponseContentLanguage],
|
|
1179
1179
|
"response-content-type": [, input.ResponseContentType],
|
|
1180
|
-
"response-expires": [
|
|
1180
|
+
"response-expires": [
|
|
1181
|
+
() => input.ResponseExpires !== void 0,
|
|
1182
|
+
() => (0, smithy_client_1.dateToUtcString)(input.ResponseExpires).toString(),
|
|
1183
|
+
],
|
|
1181
1184
|
versionId: [, input.VersionId],
|
|
1182
1185
|
partNumber: [() => input.PartNumber !== void 0, () => input.PartNumber.toString()],
|
|
1183
1186
|
});
|
|
@@ -1429,12 +1432,12 @@ const serializeAws_restXmlHeadObjectCommand = async (input, context) => {
|
|
|
1429
1432
|
"if-match": input.IfMatch,
|
|
1430
1433
|
"if-modified-since": [
|
|
1431
1434
|
() => isSerializableHeaderValue(input.IfModifiedSince),
|
|
1432
|
-
() => (0, smithy_client_1.dateToUtcString)(input.IfModifiedSince),
|
|
1435
|
+
() => (0, smithy_client_1.dateToUtcString)(input.IfModifiedSince).toString(),
|
|
1433
1436
|
],
|
|
1434
1437
|
"if-none-match": input.IfNoneMatch,
|
|
1435
1438
|
"if-unmodified-since": [
|
|
1436
1439
|
() => isSerializableHeaderValue(input.IfUnmodifiedSince),
|
|
1437
|
-
() => (0, smithy_client_1.dateToUtcString)(input.IfUnmodifiedSince),
|
|
1440
|
+
() => (0, smithy_client_1.dateToUtcString)(input.IfUnmodifiedSince).toString(),
|
|
1438
1441
|
],
|
|
1439
1442
|
range: input.Range,
|
|
1440
1443
|
"x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm,
|
|
@@ -2398,7 +2401,7 @@ const serializeAws_restXmlPutObjectCommand = async (input, context) => {
|
|
|
2398
2401
|
"x-amz-checksum-crc32c": input.ChecksumCRC32C,
|
|
2399
2402
|
"x-amz-checksum-sha1": input.ChecksumSHA1,
|
|
2400
2403
|
"x-amz-checksum-sha256": input.ChecksumSHA256,
|
|
2401
|
-
expires: [() => isSerializableHeaderValue(input.Expires), () => (0, smithy_client_1.dateToUtcString)(input.Expires)],
|
|
2404
|
+
expires: [() => isSerializableHeaderValue(input.Expires), () => (0, smithy_client_1.dateToUtcString)(input.Expires).toString()],
|
|
2402
2405
|
"x-amz-grant-full-control": input.GrantFullControl,
|
|
2403
2406
|
"x-amz-grant-read": input.GrantRead,
|
|
2404
2407
|
"x-amz-grant-read-acp": input.GrantReadACP,
|
|
@@ -2420,7 +2423,7 @@ const serializeAws_restXmlPutObjectCommand = async (input, context) => {
|
|
|
2420
2423
|
"x-amz-object-lock-mode": input.ObjectLockMode,
|
|
2421
2424
|
"x-amz-object-lock-retain-until-date": [
|
|
2422
2425
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
2423
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
2426
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
2424
2427
|
],
|
|
2425
2428
|
"x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
2426
2429
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
@@ -2849,12 +2852,12 @@ const serializeAws_restXmlUploadPartCopyCommand = async (input, context) => {
|
|
|
2849
2852
|
"x-amz-copy-source-if-match": input.CopySourceIfMatch,
|
|
2850
2853
|
"x-amz-copy-source-if-modified-since": [
|
|
2851
2854
|
() => isSerializableHeaderValue(input.CopySourceIfModifiedSince),
|
|
2852
|
-
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfModifiedSince),
|
|
2855
|
+
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfModifiedSince).toString(),
|
|
2853
2856
|
],
|
|
2854
2857
|
"x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch,
|
|
2855
2858
|
"x-amz-copy-source-if-unmodified-since": [
|
|
2856
2859
|
() => isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince),
|
|
2857
|
-
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfUnmodifiedSince),
|
|
2860
|
+
() => (0, smithy_client_1.dateToUtcString)(input.CopySourceIfUnmodifiedSince).toString(),
|
|
2858
2861
|
],
|
|
2859
2862
|
"x-amz-copy-source-range": input.CopySourceRange,
|
|
2860
2863
|
"x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm,
|
|
@@ -2917,12 +2920,12 @@ const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, context)
|
|
|
2917
2920
|
"x-amz-fwd-header-etag": input.ETag,
|
|
2918
2921
|
"x-amz-fwd-header-expires": [
|
|
2919
2922
|
() => isSerializableHeaderValue(input.Expires),
|
|
2920
|
-
() => (0, smithy_client_1.dateToUtcString)(input.Expires),
|
|
2923
|
+
() => (0, smithy_client_1.dateToUtcString)(input.Expires).toString(),
|
|
2921
2924
|
],
|
|
2922
2925
|
"x-amz-fwd-header-x-amz-expiration": input.Expiration,
|
|
2923
2926
|
"x-amz-fwd-header-last-modified": [
|
|
2924
2927
|
() => isSerializableHeaderValue(input.LastModified),
|
|
2925
|
-
() => (0, smithy_client_1.dateToUtcString)(input.LastModified),
|
|
2928
|
+
() => (0, smithy_client_1.dateToUtcString)(input.LastModified).toString(),
|
|
2926
2929
|
],
|
|
2927
2930
|
"x-amz-fwd-header-x-amz-missing-meta": [
|
|
2928
2931
|
() => isSerializableHeaderValue(input.MissingMeta),
|
|
@@ -2932,7 +2935,7 @@ const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, context)
|
|
|
2932
2935
|
"x-amz-fwd-header-x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
2933
2936
|
"x-amz-fwd-header-x-amz-object-lock-retain-until-date": [
|
|
2934
2937
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
2935
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
2938
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
2936
2939
|
],
|
|
2937
2940
|
"x-amz-fwd-header-x-amz-mp-parts-count": [
|
|
2938
2941
|
() => isSerializableHeaderValue(input.PartsCount),
|
|
@@ -88,14 +88,14 @@ export const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
|
|
|
88
88
|
"x-amz-copy-source-if-match": input.CopySourceIfMatch,
|
|
89
89
|
"x-amz-copy-source-if-modified-since": [
|
|
90
90
|
() => isSerializableHeaderValue(input.CopySourceIfModifiedSince),
|
|
91
|
-
() => __dateToUtcString(input.CopySourceIfModifiedSince),
|
|
91
|
+
() => __dateToUtcString(input.CopySourceIfModifiedSince).toString(),
|
|
92
92
|
],
|
|
93
93
|
"x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch,
|
|
94
94
|
"x-amz-copy-source-if-unmodified-since": [
|
|
95
95
|
() => isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince),
|
|
96
|
-
() => __dateToUtcString(input.CopySourceIfUnmodifiedSince),
|
|
96
|
+
() => __dateToUtcString(input.CopySourceIfUnmodifiedSince).toString(),
|
|
97
97
|
],
|
|
98
|
-
expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires)],
|
|
98
|
+
expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires).toString()],
|
|
99
99
|
"x-amz-grant-full-control": input.GrantFullControl,
|
|
100
100
|
"x-amz-grant-read": input.GrantRead,
|
|
101
101
|
"x-amz-grant-read-acp": input.GrantReadACP,
|
|
@@ -122,7 +122,7 @@ export const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
|
|
|
122
122
|
"x-amz-object-lock-mode": input.ObjectLockMode,
|
|
123
123
|
"x-amz-object-lock-retain-until-date": [
|
|
124
124
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
125
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
125
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
126
126
|
],
|
|
127
127
|
"x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
128
128
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
@@ -199,7 +199,7 @@ export const serializeAws_restXmlCreateMultipartUploadCommand = async (input, co
|
|
|
199
199
|
"content-encoding": input.ContentEncoding,
|
|
200
200
|
"content-language": input.ContentLanguage,
|
|
201
201
|
"content-type": input.ContentType,
|
|
202
|
-
expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires)],
|
|
202
|
+
expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires).toString()],
|
|
203
203
|
"x-amz-grant-full-control": input.GrantFullControl,
|
|
204
204
|
"x-amz-grant-read": input.GrantRead,
|
|
205
205
|
"x-amz-grant-read-acp": input.GrantReadACP,
|
|
@@ -221,7 +221,7 @@ export const serializeAws_restXmlCreateMultipartUploadCommand = async (input, co
|
|
|
221
221
|
"x-amz-object-lock-mode": input.ObjectLockMode,
|
|
222
222
|
"x-amz-object-lock-retain-until-date": [
|
|
223
223
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
224
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
224
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
225
225
|
],
|
|
226
226
|
"x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
227
227
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
@@ -1104,12 +1104,12 @@ export const serializeAws_restXmlGetObjectCommand = async (input, context) => {
|
|
|
1104
1104
|
"if-match": input.IfMatch,
|
|
1105
1105
|
"if-modified-since": [
|
|
1106
1106
|
() => isSerializableHeaderValue(input.IfModifiedSince),
|
|
1107
|
-
() => __dateToUtcString(input.IfModifiedSince),
|
|
1107
|
+
() => __dateToUtcString(input.IfModifiedSince).toString(),
|
|
1108
1108
|
],
|
|
1109
1109
|
"if-none-match": input.IfNoneMatch,
|
|
1110
1110
|
"if-unmodified-since": [
|
|
1111
1111
|
() => isSerializableHeaderValue(input.IfUnmodifiedSince),
|
|
1112
|
-
() => __dateToUtcString(input.IfUnmodifiedSince),
|
|
1112
|
+
() => __dateToUtcString(input.IfUnmodifiedSince).toString(),
|
|
1113
1113
|
],
|
|
1114
1114
|
range: input.Range,
|
|
1115
1115
|
"x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm,
|
|
@@ -1129,7 +1129,10 @@ export const serializeAws_restXmlGetObjectCommand = async (input, context) => {
|
|
|
1129
1129
|
"response-content-encoding": [, input.ResponseContentEncoding],
|
|
1130
1130
|
"response-content-language": [, input.ResponseContentLanguage],
|
|
1131
1131
|
"response-content-type": [, input.ResponseContentType],
|
|
1132
|
-
"response-expires": [
|
|
1132
|
+
"response-expires": [
|
|
1133
|
+
() => input.ResponseExpires !== void 0,
|
|
1134
|
+
() => __dateToUtcString(input.ResponseExpires).toString(),
|
|
1135
|
+
],
|
|
1133
1136
|
versionId: [, input.VersionId],
|
|
1134
1137
|
partNumber: [() => input.PartNumber !== void 0, () => input.PartNumber.toString()],
|
|
1135
1138
|
});
|
|
@@ -1371,12 +1374,12 @@ export const serializeAws_restXmlHeadObjectCommand = async (input, context) => {
|
|
|
1371
1374
|
"if-match": input.IfMatch,
|
|
1372
1375
|
"if-modified-since": [
|
|
1373
1376
|
() => isSerializableHeaderValue(input.IfModifiedSince),
|
|
1374
|
-
() => __dateToUtcString(input.IfModifiedSince),
|
|
1377
|
+
() => __dateToUtcString(input.IfModifiedSince).toString(),
|
|
1375
1378
|
],
|
|
1376
1379
|
"if-none-match": input.IfNoneMatch,
|
|
1377
1380
|
"if-unmodified-since": [
|
|
1378
1381
|
() => isSerializableHeaderValue(input.IfUnmodifiedSince),
|
|
1379
|
-
() => __dateToUtcString(input.IfUnmodifiedSince),
|
|
1382
|
+
() => __dateToUtcString(input.IfUnmodifiedSince).toString(),
|
|
1380
1383
|
],
|
|
1381
1384
|
range: input.Range,
|
|
1382
1385
|
"x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm,
|
|
@@ -2311,7 +2314,7 @@ export const serializeAws_restXmlPutObjectCommand = async (input, context) => {
|
|
|
2311
2314
|
"x-amz-checksum-crc32c": input.ChecksumCRC32C,
|
|
2312
2315
|
"x-amz-checksum-sha1": input.ChecksumSHA1,
|
|
2313
2316
|
"x-amz-checksum-sha256": input.ChecksumSHA256,
|
|
2314
|
-
expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires)],
|
|
2317
|
+
expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires).toString()],
|
|
2315
2318
|
"x-amz-grant-full-control": input.GrantFullControl,
|
|
2316
2319
|
"x-amz-grant-read": input.GrantRead,
|
|
2317
2320
|
"x-amz-grant-read-acp": input.GrantReadACP,
|
|
@@ -2333,7 +2336,7 @@ export const serializeAws_restXmlPutObjectCommand = async (input, context) => {
|
|
|
2333
2336
|
"x-amz-object-lock-mode": input.ObjectLockMode,
|
|
2334
2337
|
"x-amz-object-lock-retain-until-date": [
|
|
2335
2338
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
2336
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
2339
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
2337
2340
|
],
|
|
2338
2341
|
"x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
2339
2342
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
@@ -2752,12 +2755,12 @@ export const serializeAws_restXmlUploadPartCopyCommand = async (input, context)
|
|
|
2752
2755
|
"x-amz-copy-source-if-match": input.CopySourceIfMatch,
|
|
2753
2756
|
"x-amz-copy-source-if-modified-since": [
|
|
2754
2757
|
() => isSerializableHeaderValue(input.CopySourceIfModifiedSince),
|
|
2755
|
-
() => __dateToUtcString(input.CopySourceIfModifiedSince),
|
|
2758
|
+
() => __dateToUtcString(input.CopySourceIfModifiedSince).toString(),
|
|
2756
2759
|
],
|
|
2757
2760
|
"x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch,
|
|
2758
2761
|
"x-amz-copy-source-if-unmodified-since": [
|
|
2759
2762
|
() => isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince),
|
|
2760
|
-
() => __dateToUtcString(input.CopySourceIfUnmodifiedSince),
|
|
2763
|
+
() => __dateToUtcString(input.CopySourceIfUnmodifiedSince).toString(),
|
|
2761
2764
|
],
|
|
2762
2765
|
"x-amz-copy-source-range": input.CopySourceRange,
|
|
2763
2766
|
"x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm,
|
|
@@ -2819,12 +2822,12 @@ export const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, c
|
|
|
2819
2822
|
"x-amz-fwd-header-etag": input.ETag,
|
|
2820
2823
|
"x-amz-fwd-header-expires": [
|
|
2821
2824
|
() => isSerializableHeaderValue(input.Expires),
|
|
2822
|
-
() => __dateToUtcString(input.Expires),
|
|
2825
|
+
() => __dateToUtcString(input.Expires).toString(),
|
|
2823
2826
|
],
|
|
2824
2827
|
"x-amz-fwd-header-x-amz-expiration": input.Expiration,
|
|
2825
2828
|
"x-amz-fwd-header-last-modified": [
|
|
2826
2829
|
() => isSerializableHeaderValue(input.LastModified),
|
|
2827
|
-
() => __dateToUtcString(input.LastModified),
|
|
2830
|
+
() => __dateToUtcString(input.LastModified).toString(),
|
|
2828
2831
|
],
|
|
2829
2832
|
"x-amz-fwd-header-x-amz-missing-meta": [
|
|
2830
2833
|
() => isSerializableHeaderValue(input.MissingMeta),
|
|
@@ -2834,7 +2837,7 @@ export const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, c
|
|
|
2834
2837
|
"x-amz-fwd-header-x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus,
|
|
2835
2838
|
"x-amz-fwd-header-x-amz-object-lock-retain-until-date": [
|
|
2836
2839
|
() => isSerializableHeaderValue(input.ObjectLockRetainUntilDate),
|
|
2837
|
-
() => input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z",
|
|
2840
|
+
() => (input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z").toString(),
|
|
2838
2841
|
],
|
|
2839
2842
|
"x-amz-fwd-header-x-amz-mp-parts-count": [
|
|
2840
2843
|
() => isSerializableHeaderValue(input.PartsCount),
|
package/dist-types/S3Client.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { S3InputConfig, S3ResolvedConfig } from "@aws-sdk/middleware-sdk-s3";
|
|
|
8
8
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
9
9
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
10
10
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
11
|
-
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
12
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, GetAwsChunkedEncodingStream, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
11
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
12
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, GetAwsChunkedEncodingStream, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
13
13
|
import { Readable } from "stream";
|
|
14
14
|
import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
|
|
15
15
|
import { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from "./commands/CompleteMultipartUploadCommand";
|
|
@@ -113,11 +113,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
113
113
|
*/
|
|
114
114
|
requestHandler?: __HttpHandler;
|
|
115
115
|
/**
|
|
116
|
-
* A constructor for a class implementing the {@link
|
|
116
|
+
* A constructor for a class implementing the {@link __Checksum} interface
|
|
117
117
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
118
118
|
* @internal
|
|
119
119
|
*/
|
|
120
|
-
sha256?: __HashConstructor;
|
|
120
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
121
121
|
/**
|
|
122
122
|
* The function that will be used to convert strings into HTTP endpoints.
|
|
123
123
|
* @internal
|
|
@@ -217,17 +217,17 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
217
217
|
*/
|
|
218
218
|
streamHasher?: __StreamHasher<Readable> | __StreamHasher<Blob>;
|
|
219
219
|
/**
|
|
220
|
-
* A constructor for a class implementing the {@link
|
|
220
|
+
* A constructor for a class implementing the {@link __Checksum} interface
|
|
221
221
|
* that computes MD5 hashes.
|
|
222
222
|
* @internal
|
|
223
223
|
*/
|
|
224
|
-
md5?: __HashConstructor;
|
|
224
|
+
md5?: __ChecksumConstructor | __HashConstructor;
|
|
225
225
|
/**
|
|
226
|
-
* A constructor for a class implementing the {@link
|
|
226
|
+
* A constructor for a class implementing the {@link __Checksum} interface
|
|
227
227
|
* that computes SHA1 hashes.
|
|
228
228
|
* @internal
|
|
229
229
|
*/
|
|
230
|
-
sha1?: __HashConstructor;
|
|
230
|
+
sha1?: __ChecksumConstructor | __HashConstructor;
|
|
231
231
|
/**
|
|
232
232
|
* A function that returns Readable Stream which follows aws-chunked encoding stream.
|
|
233
233
|
* @internal
|
|
@@ -238,9 +238,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
238
238
|
*/
|
|
239
239
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
240
240
|
/**
|
|
241
|
-
* The {@link
|
|
241
|
+
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
242
242
|
*/
|
|
243
|
-
defaultsMode?:
|
|
243
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
244
244
|
/**
|
|
245
245
|
* The internal function that inject utilities to runtime-specific stream to help users consume the data
|
|
246
246
|
* @internal
|
|
@@ -30,12 +30,13 @@ import {
|
|
|
30
30
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
31
|
import {
|
|
32
32
|
Client as __Client,
|
|
33
|
-
DefaultsMode,
|
|
33
|
+
DefaultsMode as __DefaultsMode,
|
|
34
34
|
SmithyConfiguration as __SmithyConfiguration,
|
|
35
35
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
36
36
|
} from "@aws-sdk/smithy-client";
|
|
37
37
|
import {
|
|
38
38
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
39
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
39
40
|
Credentials as __Credentials,
|
|
40
41
|
Decoder as __Decoder,
|
|
41
42
|
Encoder as __Encoder,
|
|
@@ -621,7 +622,7 @@ export declare type ServiceOutputTypes =
|
|
|
621
622
|
export interface ClientDefaults
|
|
622
623
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
623
624
|
requestHandler?: __HttpHandler;
|
|
624
|
-
sha256?: __HashConstructor;
|
|
625
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
625
626
|
urlParser?: __UrlParser;
|
|
626
627
|
bodyLengthChecker?: __BodyLengthCalculator;
|
|
627
628
|
streamCollector?: __StreamCollector;
|
|
@@ -643,11 +644,11 @@ export interface ClientDefaults
|
|
|
643
644
|
useArnRegion?: boolean | Provider<boolean>;
|
|
644
645
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
645
646
|
streamHasher?: __StreamHasher<Readable> | __StreamHasher<Blob>;
|
|
646
|
-
md5?: __HashConstructor;
|
|
647
|
-
sha1?: __HashConstructor;
|
|
647
|
+
md5?: __ChecksumConstructor | __HashConstructor;
|
|
648
|
+
sha1?: __ChecksumConstructor | __HashConstructor;
|
|
648
649
|
getAwsChunkedEncodingStream?: GetAwsChunkedEncodingStream;
|
|
649
650
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
650
|
-
defaultsMode?:
|
|
651
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
651
652
|
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
652
653
|
}
|
|
653
654
|
declare type S3ClientConfigType = Partial<
|
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.
|
|
4
|
+
"version": "3.256.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",
|
|
@@ -21,58 +21,58 @@
|
|
|
21
21
|
"module": "./dist-es/index.js",
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-crypto/sha1-browser": "
|
|
25
|
-
"@aws-crypto/sha256-browser": "
|
|
26
|
-
"@aws-crypto/sha256-js": "
|
|
27
|
-
"@aws-sdk/client-sts": "3.
|
|
28
|
-
"@aws-sdk/config-resolver": "3.
|
|
29
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
30
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
31
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-blob-browser": "3.
|
|
35
|
-
"@aws-sdk/hash-node": "3.
|
|
36
|
-
"@aws-sdk/hash-stream-node": "3.
|
|
37
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
38
|
-
"@aws-sdk/md5-js": "3.
|
|
39
|
-
"@aws-sdk/middleware-bucket-endpoint": "3.
|
|
40
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
41
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
42
|
-
"@aws-sdk/middleware-expect-continue": "3.
|
|
43
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
44
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
45
|
-
"@aws-sdk/middleware-location-constraint": "3.
|
|
46
|
-
"@aws-sdk/middleware-logger": "3.
|
|
47
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
48
|
-
"@aws-sdk/middleware-retry": "3.
|
|
49
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
50
|
-
"@aws-sdk/middleware-serde": "3.
|
|
51
|
-
"@aws-sdk/middleware-signing": "3.
|
|
52
|
-
"@aws-sdk/middleware-ssec": "3.
|
|
53
|
-
"@aws-sdk/middleware-stack": "3.
|
|
54
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
55
|
-
"@aws-sdk/node-config-provider": "3.
|
|
56
|
-
"@aws-sdk/node-http-handler": "3.
|
|
57
|
-
"@aws-sdk/protocol-http": "3.
|
|
58
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
59
|
-
"@aws-sdk/smithy-client": "3.
|
|
60
|
-
"@aws-sdk/types": "3.
|
|
61
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-crypto/sha1-browser": "3.0.0",
|
|
25
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
|
26
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
|
27
|
+
"@aws-sdk/client-sts": "3.256.0",
|
|
28
|
+
"@aws-sdk/config-resolver": "3.254.0",
|
|
29
|
+
"@aws-sdk/credential-provider-node": "3.256.0",
|
|
30
|
+
"@aws-sdk/eventstream-serde-browser": "3.254.0",
|
|
31
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.254.0",
|
|
32
|
+
"@aws-sdk/eventstream-serde-node": "3.254.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.254.0",
|
|
34
|
+
"@aws-sdk/hash-blob-browser": "3.254.0",
|
|
35
|
+
"@aws-sdk/hash-node": "3.254.0",
|
|
36
|
+
"@aws-sdk/hash-stream-node": "3.254.0",
|
|
37
|
+
"@aws-sdk/invalid-dependency": "3.254.0",
|
|
38
|
+
"@aws-sdk/md5-js": "3.254.0",
|
|
39
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.254.0",
|
|
40
|
+
"@aws-sdk/middleware-content-length": "3.254.0",
|
|
41
|
+
"@aws-sdk/middleware-endpoint": "3.254.0",
|
|
42
|
+
"@aws-sdk/middleware-expect-continue": "3.254.0",
|
|
43
|
+
"@aws-sdk/middleware-flexible-checksums": "3.254.0",
|
|
44
|
+
"@aws-sdk/middleware-host-header": "3.254.0",
|
|
45
|
+
"@aws-sdk/middleware-location-constraint": "3.254.0",
|
|
46
|
+
"@aws-sdk/middleware-logger": "3.254.0",
|
|
47
|
+
"@aws-sdk/middleware-recursion-detection": "3.254.0",
|
|
48
|
+
"@aws-sdk/middleware-retry": "3.254.0",
|
|
49
|
+
"@aws-sdk/middleware-sdk-s3": "3.254.0",
|
|
50
|
+
"@aws-sdk/middleware-serde": "3.254.0",
|
|
51
|
+
"@aws-sdk/middleware-signing": "3.254.0",
|
|
52
|
+
"@aws-sdk/middleware-ssec": "3.254.0",
|
|
53
|
+
"@aws-sdk/middleware-stack": "3.254.0",
|
|
54
|
+
"@aws-sdk/middleware-user-agent": "3.254.0",
|
|
55
|
+
"@aws-sdk/node-config-provider": "3.254.0",
|
|
56
|
+
"@aws-sdk/node-http-handler": "3.254.0",
|
|
57
|
+
"@aws-sdk/protocol-http": "3.254.0",
|
|
58
|
+
"@aws-sdk/signature-v4-multi-region": "3.254.0",
|
|
59
|
+
"@aws-sdk/smithy-client": "3.254.0",
|
|
60
|
+
"@aws-sdk/types": "3.254.0",
|
|
61
|
+
"@aws-sdk/url-parser": "3.254.0",
|
|
62
62
|
"@aws-sdk/util-base64": "3.208.0",
|
|
63
63
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
64
64
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
65
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
66
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
67
|
-
"@aws-sdk/util-endpoints": "3.
|
|
68
|
-
"@aws-sdk/util-retry": "3.
|
|
69
|
-
"@aws-sdk/util-stream-browser": "3.
|
|
70
|
-
"@aws-sdk/util-stream-node": "3.
|
|
71
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
72
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
65
|
+
"@aws-sdk/util-defaults-mode-browser": "3.254.0",
|
|
66
|
+
"@aws-sdk/util-defaults-mode-node": "3.254.0",
|
|
67
|
+
"@aws-sdk/util-endpoints": "3.254.0",
|
|
68
|
+
"@aws-sdk/util-retry": "3.254.0",
|
|
69
|
+
"@aws-sdk/util-stream-browser": "3.254.0",
|
|
70
|
+
"@aws-sdk/util-stream-node": "3.254.0",
|
|
71
|
+
"@aws-sdk/util-user-agent-browser": "3.254.0",
|
|
72
|
+
"@aws-sdk/util-user-agent-node": "3.254.0",
|
|
73
73
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
74
74
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
75
|
-
"@aws-sdk/util-waiter": "3.
|
|
75
|
+
"@aws-sdk/util-waiter": "3.254.0",
|
|
76
76
|
"@aws-sdk/xml-builder": "3.201.0",
|
|
77
77
|
"fast-xml-parser": "4.0.11",
|
|
78
78
|
"tslib": "^2.3.1"
|