@aws-sdk/client-s3 3.713.0 → 3.714.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/dist-cjs/index.js +23 -46
- package/dist-cjs/runtimeConfig.js +16 -11
- package/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +1 -2
- package/dist-es/commands/DeleteObjectsCommand.js +1 -2
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +1 -2
- package/dist-es/commands/PutBucketAclCommand.js +1 -2
- package/dist-es/commands/PutBucketCorsCommand.js +1 -2
- package/dist-es/commands/PutBucketEncryptionCommand.js +1 -2
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -2
- package/dist-es/commands/PutBucketLoggingCommand.js +1 -2
- package/dist-es/commands/PutBucketPolicyCommand.js +1 -2
- package/dist-es/commands/PutBucketReplicationCommand.js +1 -2
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +1 -2
- package/dist-es/commands/PutBucketTaggingCommand.js +1 -2
- package/dist-es/commands/PutBucketVersioningCommand.js +1 -2
- package/dist-es/commands/PutBucketWebsiteCommand.js +1 -2
- package/dist-es/commands/PutObjectAclCommand.js +1 -2
- package/dist-es/commands/PutObjectCommand.js +1 -2
- package/dist-es/commands/PutObjectLegalHoldCommand.js +1 -2
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -2
- package/dist-es/commands/PutObjectRetentionCommand.js +1 -2
- package/dist-es/commands/PutObjectTaggingCommand.js +1 -2
- package/dist-es/commands/PutPublicAccessBlockCommand.js +1 -2
- package/dist-es/commands/RestoreObjectCommand.js +1 -2
- package/dist-es/commands/UploadPartCommand.js +1 -2
- package/dist-es/runtimeConfig.js +16 -11
- package/dist-types/S3Client.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/S3Client.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +22 -22
package/dist-cjs/index.js
CHANGED
|
@@ -8879,8 +8879,7 @@ var _CreateBucketMetadataTableConfigurationCommand = class _CreateBucketMetadata
|
|
|
8879
8879
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
8880
8880
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
8881
8881
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
8882
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
8883
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
8882
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
8884
8883
|
requestChecksumRequired: true
|
|
8885
8884
|
})
|
|
8886
8885
|
];
|
|
@@ -9197,8 +9196,7 @@ var _DeleteObjectsCommand = class _DeleteObjectsCommand extends import_smithy_cl
|
|
|
9197
9196
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
9198
9197
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
9199
9198
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
9200
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
9201
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
9199
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
9202
9200
|
requestChecksumRequired: true
|
|
9203
9201
|
}),
|
|
9204
9202
|
(0, import_middleware_sdk_s39.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10119,8 +10117,7 @@ var _PutBucketAccelerateConfigurationCommand = class _PutBucketAccelerateConfigu
|
|
|
10119
10117
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10120
10118
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10121
10119
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10122
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10123
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10120
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10124
10121
|
requestChecksumRequired: false
|
|
10125
10122
|
})
|
|
10126
10123
|
];
|
|
@@ -10143,8 +10140,7 @@ var _PutBucketAclCommand = class _PutBucketAclCommand extends import_smithy_clie
|
|
|
10143
10140
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10144
10141
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10145
10142
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10146
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10147
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10143
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10148
10144
|
requestChecksumRequired: true
|
|
10149
10145
|
})
|
|
10150
10146
|
];
|
|
@@ -10185,8 +10181,7 @@ var _PutBucketCorsCommand = class _PutBucketCorsCommand extends import_smithy_cl
|
|
|
10185
10181
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10186
10182
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10187
10183
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10188
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10189
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10184
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10190
10185
|
requestChecksumRequired: true
|
|
10191
10186
|
})
|
|
10192
10187
|
];
|
|
@@ -10209,8 +10204,7 @@ var _PutBucketEncryptionCommand = class _PutBucketEncryptionCommand extends impo
|
|
|
10209
10204
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10210
10205
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10211
10206
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10212
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10213
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10207
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10214
10208
|
requestChecksumRequired: true
|
|
10215
10209
|
})
|
|
10216
10210
|
];
|
|
@@ -10270,8 +10264,7 @@ var _PutBucketLifecycleConfigurationCommand = class _PutBucketLifecycleConfigura
|
|
|
10270
10264
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10271
10265
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10272
10266
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10273
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10274
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10267
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10275
10268
|
requestChecksumRequired: true
|
|
10276
10269
|
}),
|
|
10277
10270
|
(0, import_middleware_sdk_s353.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10295,8 +10288,7 @@ var _PutBucketLoggingCommand = class _PutBucketLoggingCommand extends import_smi
|
|
|
10295
10288
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10296
10289
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10297
10290
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10298
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10299
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10291
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10300
10292
|
requestChecksumRequired: true
|
|
10301
10293
|
})
|
|
10302
10294
|
];
|
|
@@ -10377,8 +10369,7 @@ var _PutBucketPolicyCommand = class _PutBucketPolicyCommand extends import_smith
|
|
|
10377
10369
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10378
10370
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10379
10371
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10380
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10381
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10372
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10382
10373
|
requestChecksumRequired: true
|
|
10383
10374
|
})
|
|
10384
10375
|
];
|
|
@@ -10401,8 +10392,7 @@ var _PutBucketReplicationCommand = class _PutBucketReplicationCommand extends im
|
|
|
10401
10392
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10402
10393
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10403
10394
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10404
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10405
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10395
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10406
10396
|
requestChecksumRequired: true
|
|
10407
10397
|
})
|
|
10408
10398
|
];
|
|
@@ -10425,8 +10415,7 @@ var _PutBucketRequestPaymentCommand = class _PutBucketRequestPaymentCommand exte
|
|
|
10425
10415
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10426
10416
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10427
10417
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10428
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10429
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10418
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10430
10419
|
requestChecksumRequired: true
|
|
10431
10420
|
})
|
|
10432
10421
|
];
|
|
@@ -10449,8 +10438,7 @@ var _PutBucketTaggingCommand = class _PutBucketTaggingCommand extends import_smi
|
|
|
10449
10438
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10450
10439
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10451
10440
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10452
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10453
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10441
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10454
10442
|
requestChecksumRequired: true
|
|
10455
10443
|
})
|
|
10456
10444
|
];
|
|
@@ -10473,8 +10461,7 @@ var _PutBucketVersioningCommand = class _PutBucketVersioningCommand extends impo
|
|
|
10473
10461
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10474
10462
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10475
10463
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10476
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10477
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10464
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10478
10465
|
requestChecksumRequired: true
|
|
10479
10466
|
})
|
|
10480
10467
|
];
|
|
@@ -10497,8 +10484,7 @@ var _PutBucketWebsiteCommand = class _PutBucketWebsiteCommand extends import_smi
|
|
|
10497
10484
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10498
10485
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10499
10486
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10500
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10501
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10487
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10502
10488
|
requestChecksumRequired: true
|
|
10503
10489
|
})
|
|
10504
10490
|
];
|
|
@@ -10522,8 +10508,7 @@ var _PutObjectAclCommand = class _PutObjectAclCommand extends import_smithy_clie
|
|
|
10522
10508
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10523
10509
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10524
10510
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10525
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10526
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10511
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10527
10512
|
requestChecksumRequired: true
|
|
10528
10513
|
}),
|
|
10529
10514
|
(0, import_middleware_sdk_s354.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10549,8 +10534,7 @@ var _PutObjectCommand = class _PutObjectCommand extends import_smithy_client.Com
|
|
|
10549
10534
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10550
10535
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10551
10536
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10552
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10553
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10537
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10554
10538
|
requestChecksumRequired: false
|
|
10555
10539
|
}),
|
|
10556
10540
|
(0, import_middleware_sdk_s355.getCheckContentLengthHeaderPlugin)(config),
|
|
@@ -10576,8 +10560,7 @@ var _PutObjectLegalHoldCommand = class _PutObjectLegalHoldCommand extends import
|
|
|
10576
10560
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10577
10561
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10578
10562
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10579
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10580
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10563
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10581
10564
|
requestChecksumRequired: true
|
|
10582
10565
|
}),
|
|
10583
10566
|
(0, import_middleware_sdk_s356.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10601,8 +10584,7 @@ var _PutObjectLockConfigurationCommand = class _PutObjectLockConfigurationComman
|
|
|
10601
10584
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10602
10585
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10603
10586
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10604
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10605
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10587
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10606
10588
|
requestChecksumRequired: true
|
|
10607
10589
|
}),
|
|
10608
10590
|
(0, import_middleware_sdk_s357.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10626,8 +10608,7 @@ var _PutObjectRetentionCommand = class _PutObjectRetentionCommand extends import
|
|
|
10626
10608
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10627
10609
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10628
10610
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10629
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10630
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10611
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10631
10612
|
requestChecksumRequired: true
|
|
10632
10613
|
}),
|
|
10633
10614
|
(0, import_middleware_sdk_s358.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10651,8 +10632,7 @@ var _PutObjectTaggingCommand = class _PutObjectTaggingCommand extends import_smi
|
|
|
10651
10632
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10652
10633
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10653
10634
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10654
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10655
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10635
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10656
10636
|
requestChecksumRequired: true
|
|
10657
10637
|
}),
|
|
10658
10638
|
(0, import_middleware_sdk_s359.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10676,8 +10656,7 @@ var _PutPublicAccessBlockCommand = class _PutPublicAccessBlockCommand extends im
|
|
|
10676
10656
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10677
10657
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10678
10658
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10679
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10680
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10659
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10681
10660
|
requestChecksumRequired: true
|
|
10682
10661
|
})
|
|
10683
10662
|
];
|
|
@@ -10700,8 +10679,7 @@ var _RestoreObjectCommand = class _RestoreObjectCommand extends import_smithy_cl
|
|
|
10700
10679
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10701
10680
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10702
10681
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10703
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10704
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10682
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10705
10683
|
requestChecksumRequired: false
|
|
10706
10684
|
}),
|
|
10707
10685
|
(0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config)
|
|
@@ -10755,8 +10733,7 @@ var _UploadPartCommand = class _UploadPartCommand extends import_smithy_client.C
|
|
|
10755
10733
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
10756
10734
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
10757
10735
|
(0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
|
|
10758
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
10759
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
10736
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
10760
10737
|
requestChecksumRequired: false
|
|
10761
10738
|
}),
|
|
10762
10739
|
(0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config),
|
|
@@ -28,6 +28,7 @@ const getRuntimeConfig = (config) => {
|
|
|
28
28
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
29
29
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
30
30
|
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
31
|
+
const profileConfig = { profile: config?.profile };
|
|
31
32
|
return {
|
|
32
33
|
...clientSharedValues,
|
|
33
34
|
...config,
|
|
@@ -37,28 +38,32 @@ const getRuntimeConfig = (config) => {
|
|
|
37
38
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
38
39
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
39
40
|
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
40
|
-
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
|
|
41
|
+
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
|
|
42
|
+
(0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig),
|
|
41
43
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
42
|
-
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
44
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
43
45
|
md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
|
|
44
|
-
region: config?.region ??
|
|
45
|
-
|
|
46
|
+
region: config?.region ??
|
|
47
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
48
|
+
requestChecksumCalculation: config?.requestChecksumCalculation ??
|
|
49
|
+
(0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig),
|
|
46
50
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
47
|
-
responseChecksumValidation: config?.responseChecksumValidation ??
|
|
51
|
+
responseChecksumValidation: config?.responseChecksumValidation ??
|
|
52
|
+
(0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig),
|
|
48
53
|
retryMode: config?.retryMode ??
|
|
49
54
|
(0, node_config_provider_1.loadConfig)({
|
|
50
55
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
51
56
|
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
52
|
-
}),
|
|
57
|
+
}, config),
|
|
53
58
|
sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
|
|
54
59
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
55
|
-
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS),
|
|
60
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig),
|
|
56
61
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
57
62
|
streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
|
|
58
|
-
useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS),
|
|
59
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
60
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
61
|
-
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
|
|
63
|
+
useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig),
|
|
64
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
65
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
66
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
|
|
62
67
|
};
|
|
63
68
|
};
|
|
64
69
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,8 +17,7 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class DeleteObjectsCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutBucketAccelerateConfigurationCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: false,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketAclCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketCorsCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -18,8 +18,7 @@ export class PutBucketEncryptionCommand extends $Command
|
|
|
18
18
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
19
19
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
20
20
|
getFlexibleChecksumsPlugin(config, {
|
|
21
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
22
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
21
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
23
22
|
requestChecksumRequired: true,
|
|
24
23
|
}),
|
|
25
24
|
];
|
|
@@ -18,8 +18,7 @@ export class PutBucketLifecycleConfigurationCommand extends $Command
|
|
|
18
18
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
19
19
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
20
20
|
getFlexibleChecksumsPlugin(config, {
|
|
21
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
22
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
21
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
23
22
|
requestChecksumRequired: true,
|
|
24
23
|
}),
|
|
25
24
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutBucketLoggingCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketPolicyCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketReplicationCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketRequestPaymentCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketTaggingCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketVersioningCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -17,8 +17,7 @@ export class PutBucketWebsiteCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -18,8 +18,7 @@ export class PutObjectAclCommand extends $Command
|
|
|
18
18
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
19
19
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
20
20
|
getFlexibleChecksumsPlugin(config, {
|
|
21
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
22
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
21
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
23
22
|
requestChecksumRequired: true,
|
|
24
23
|
}),
|
|
25
24
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -20,8 +20,7 @@ export class PutObjectCommand extends $Command
|
|
|
20
20
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
21
21
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
22
22
|
getFlexibleChecksumsPlugin(config, {
|
|
23
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
24
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
23
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
25
24
|
requestChecksumRequired: false,
|
|
26
25
|
}),
|
|
27
26
|
getCheckContentLengthHeaderPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutObjectLegalHoldCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutObjectLockConfigurationCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutObjectRetentionCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutObjectTaggingCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -17,8 +17,7 @@ export class PutPublicAccessBlockCommand extends $Command
|
|
|
17
17
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
18
18
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
19
19
|
getFlexibleChecksumsPlugin(config, {
|
|
20
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
20
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
22
21
|
requestChecksumRequired: true,
|
|
23
22
|
}),
|
|
24
23
|
];
|
|
@@ -18,8 +18,7 @@ export class RestoreObjectCommand extends $Command
|
|
|
18
18
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
19
19
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
20
20
|
getFlexibleChecksumsPlugin(config, {
|
|
21
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
22
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
21
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
23
22
|
requestChecksumRequired: false,
|
|
24
23
|
}),
|
|
25
24
|
getThrow200ExceptionsPlugin(config),
|
|
@@ -20,8 +20,7 @@ export class UploadPartCommand extends $Command
|
|
|
20
20
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
21
21
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
22
22
|
getFlexibleChecksumsPlugin(config, {
|
|
23
|
-
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
24
|
-
requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
|
|
23
|
+
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
|
|
25
24
|
requestChecksumRequired: false,
|
|
26
25
|
}),
|
|
27
26
|
getThrow200ExceptionsPlugin(config),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -24,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
24
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
25
25
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
26
26
|
awsCheckVersion(process.version);
|
|
27
|
+
const profileConfig = { profile: config?.profile };
|
|
27
28
|
return {
|
|
28
29
|
...clientSharedValues,
|
|
29
30
|
...config,
|
|
@@ -33,27 +34,31 @@ export const getRuntimeConfig = (config) => {
|
|
|
33
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
34
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
36
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
-
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
|
|
37
|
+
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
|
|
38
|
+
loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig),
|
|
37
39
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
38
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
40
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
39
41
|
md5: config?.md5 ?? Hash.bind(null, "md5"),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
|
|
42
|
+
region: config?.region ??
|
|
43
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
44
|
+
requestChecksumCalculation: config?.requestChecksumCalculation ??
|
|
45
|
+
loadNodeConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig),
|
|
42
46
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
|
-
responseChecksumValidation: config?.responseChecksumValidation ??
|
|
47
|
+
responseChecksumValidation: config?.responseChecksumValidation ??
|
|
48
|
+
loadNodeConfig(NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig),
|
|
44
49
|
retryMode: config?.retryMode ??
|
|
45
50
|
loadNodeConfig({
|
|
46
51
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
47
52
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
48
|
-
}),
|
|
53
|
+
}, config),
|
|
49
54
|
sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
|
|
50
55
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
51
|
-
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS),
|
|
56
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, profileConfig),
|
|
52
57
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
53
58
|
streamHasher: config?.streamHasher ?? streamHasher,
|
|
54
|
-
useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS),
|
|
55
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
56
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
57
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
|
|
59
|
+
useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig),
|
|
60
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
61
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
62
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
|
|
58
63
|
};
|
|
59
64
|
};
|
package/dist-types/S3Client.d.ts
CHANGED
|
@@ -198,6 +198,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
198
198
|
* The AWS region to which this client will send requests
|
|
199
199
|
*/
|
|
200
200
|
region?: string | __Provider<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Setting a client profile is similar to setting a value for the
|
|
203
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
204
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
205
|
+
*
|
|
206
|
+
* When set, and only for environments where an AWS configuration
|
|
207
|
+
* file exists, fields configurable by this file will be retrieved
|
|
208
|
+
* from the specified profile within that file.
|
|
209
|
+
* Conflicting code configuration and environment variables will
|
|
210
|
+
* still have higher priority.
|
|
211
|
+
*
|
|
212
|
+
* For client credential resolution that involves checking the AWS
|
|
213
|
+
* configuration file, the client's profile (this value) will be
|
|
214
|
+
* used unless a different profile is set in the credential
|
|
215
|
+
* provider options.
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
218
|
+
profile?: string;
|
|
201
219
|
/**
|
|
202
220
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
203
221
|
* @internal
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
31
31
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
32
32
|
disableHostPrefix: boolean;
|
|
33
33
|
serviceId: string;
|
|
34
|
+
profile?: string | undefined;
|
|
34
35
|
getAwsChunkedEncodingStream: import("@smithy/types").GetAwsChunkedEncodingStream<any> | import("@smithy/types").GetAwsChunkedEncodingStream<import("stream").Readable>;
|
|
35
36
|
logger: import("@smithy/types").Logger;
|
|
36
37
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
38
38
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
39
39
|
disableHostPrefix: boolean;
|
|
40
40
|
serviceId: string;
|
|
41
|
+
profile?: string | undefined;
|
|
41
42
|
getAwsChunkedEncodingStream: import("@aws-sdk/types").GetAwsChunkedEncodingStream<any> | import("@aws-sdk/types").GetAwsChunkedEncodingStream<import("stream").Readable>;
|
|
42
43
|
logger: import("@aws-sdk/types").Logger;
|
|
43
44
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
region: string | import("@smithy/types").Provider<any>;
|
|
24
|
+
profile?: string | undefined;
|
|
24
25
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
25
26
|
streamHasher: import("@smithy/types").StreamHasher<import("stream").Readable> | import("@smithy/types").StreamHasher<Blob>;
|
|
26
27
|
md5: import("@smithy/types").HashConstructor;
|
|
@@ -673,6 +673,7 @@ export interface ClientDefaults
|
|
|
673
673
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
674
674
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
675
675
|
region?: string | __Provider<string>;
|
|
676
|
+
profile?: string;
|
|
676
677
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
677
678
|
streamHasher?: __StreamHasher<Readable> | __StreamHasher<Blob>;
|
|
678
679
|
md5?: __ChecksumConstructor | __HashConstructor;
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
39
39
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
40
40
|
disableHostPrefix: boolean;
|
|
41
41
|
serviceId: string;
|
|
42
|
+
profile?: string | undefined;
|
|
42
43
|
getAwsChunkedEncodingStream:
|
|
43
44
|
| import("@smithy/types").GetAwsChunkedEncodingStream<any>
|
|
44
45
|
| import("@smithy/types").GetAwsChunkedEncodingStream<
|
|
@@ -64,6 +64,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
64
64
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
65
65
|
disableHostPrefix: boolean;
|
|
66
66
|
serviceId: string;
|
|
67
|
+
profile?: string | undefined;
|
|
67
68
|
getAwsChunkedEncodingStream:
|
|
68
69
|
| import("@aws-sdk/types").GetAwsChunkedEncodingStream<any>
|
|
69
70
|
| import("@aws-sdk/types").GetAwsChunkedEncodingStream<
|
|
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
24
|
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
+
profile?: string | undefined;
|
|
25
26
|
defaultUserAgentProvider: (
|
|
26
27
|
config?:
|
|
27
28
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
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.714.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
31
|
-
"@aws-sdk/client-sts": "3.
|
|
32
|
-
"@aws-sdk/core": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
34
|
-
"@aws-sdk/middleware-bucket-endpoint": "3.
|
|
35
|
-
"@aws-sdk/middleware-expect-continue": "3.
|
|
36
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-location-constraint": "3.
|
|
39
|
-
"@aws-sdk/middleware-logger": "3.
|
|
40
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
41
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
42
|
-
"@aws-sdk/middleware-ssec": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
45
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
46
|
-
"@aws-sdk/types": "3.
|
|
47
|
-
"@aws-sdk/util-endpoints": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
30
|
+
"@aws-sdk/client-sso-oidc": "3.714.0",
|
|
31
|
+
"@aws-sdk/client-sts": "3.714.0",
|
|
32
|
+
"@aws-sdk/core": "3.714.0",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "3.714.0",
|
|
34
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.714.0",
|
|
35
|
+
"@aws-sdk/middleware-expect-continue": "3.714.0",
|
|
36
|
+
"@aws-sdk/middleware-flexible-checksums": "3.714.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.714.0",
|
|
38
|
+
"@aws-sdk/middleware-location-constraint": "3.714.0",
|
|
39
|
+
"@aws-sdk/middleware-logger": "3.714.0",
|
|
40
|
+
"@aws-sdk/middleware-recursion-detection": "3.714.0",
|
|
41
|
+
"@aws-sdk/middleware-sdk-s3": "3.714.0",
|
|
42
|
+
"@aws-sdk/middleware-ssec": "3.714.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.714.0",
|
|
44
|
+
"@aws-sdk/region-config-resolver": "3.714.0",
|
|
45
|
+
"@aws-sdk/signature-v4-multi-region": "3.714.0",
|
|
46
|
+
"@aws-sdk/types": "3.714.0",
|
|
47
|
+
"@aws-sdk/util-endpoints": "3.714.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.714.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.714.0",
|
|
50
50
|
"@aws-sdk/xml-builder": "3.709.0",
|
|
51
51
|
"@smithy/config-resolver": "^3.0.13",
|
|
52
52
|
"@smithy/core": "^2.5.5",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"tslib": "^2.6.2"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
87
|
+
"@aws-sdk/signature-v4-crt": "3.714.0",
|
|
88
88
|
"@tsconfig/node16": "16.1.3",
|
|
89
89
|
"@types/node": "^16.18.96",
|
|
90
90
|
"concurrently": "7.0.0",
|