@aws-sdk/client-s3 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/S3.js +0 -3
- package/dist-cjs/S3Client.js +0 -8
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -62
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -133
- package/dist-cjs/commands/CopyObjectCommand.js +0 -193
- package/dist-cjs/commands/CreateBucketCommand.js +0 -142
- package/dist-cjs/commands/CreateMultipartUploadCommand.js +0 -281
- package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/DeleteBucketCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketCorsCommand.js +0 -45
- package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +0 -47
- package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +0 -59
- package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +0 -42
- package/dist-cjs/commands/DeleteBucketPolicyCommand.js +0 -56
- package/dist-cjs/commands/DeleteBucketReplicationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketTaggingCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +0 -50
- package/dist-cjs/commands/DeleteObjectCommand.js +0 -54
- package/dist-cjs/commands/DeleteObjectTaggingCommand.js +0 -48
- package/dist-cjs/commands/DeleteObjectsCommand.js +0 -80
- package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +0 -52
- package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +0 -50
- package/dist-cjs/commands/GetBucketAclCommand.js +0 -39
- package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketCorsCommand.js +0 -44
- package/dist-cjs/commands/GetBucketEncryptionCommand.js +0 -45
- package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +0 -79
- package/dist-cjs/commands/GetBucketLocationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketLoggingCommand.js +0 -39
- package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +0 -60
- package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +0 -41
- package/dist-cjs/commands/GetBucketPolicyCommand.js +0 -50
- package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +0 -54
- package/dist-cjs/commands/GetBucketReplicationCommand.js +0 -58
- package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +0 -34
- package/dist-cjs/commands/GetBucketTaggingCommand.js +0 -55
- package/dist-cjs/commands/GetBucketVersioningCommand.js +0 -48
- package/dist-cjs/commands/GetBucketWebsiteCommand.js +0 -44
- package/dist-cjs/commands/GetObjectAclCommand.js +0 -50
- package/dist-cjs/commands/GetObjectCommand.js +0 -204
- package/dist-cjs/commands/GetObjectLegalHoldCommand.js +0 -25
- package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +0 -27
- package/dist-cjs/commands/GetObjectRetentionCommand.js +0 -25
- package/dist-cjs/commands/GetObjectTaggingCommand.js +0 -51
- package/dist-cjs/commands/GetObjectTorrentCommand.js +0 -40
- package/dist-cjs/commands/GetPublicAccessBlockCommand.js +0 -63
- package/dist-cjs/commands/HeadBucketCommand.js +0 -39
- package/dist-cjs/commands/HeadObjectCommand.js +0 -135
- package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +0 -63
- package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +0 -46
- package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +0 -62
- package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +0 -64
- package/dist-cjs/commands/ListBucketsCommand.js +0 -24
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -74
- package/dist-cjs/commands/ListObjectVersionsCommand.js +0 -62
- package/dist-cjs/commands/ListObjectsCommand.js +0 -61
- package/dist-cjs/commands/ListObjectsV2Command.js +0 -65
- package/dist-cjs/commands/ListPartsCommand.js +0 -68
- package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +0 -69
- package/dist-cjs/commands/PutBucketAclCommand.js +0 -213
- package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +0 -139
- package/dist-cjs/commands/PutBucketCorsCommand.js +0 -80
- package/dist-cjs/commands/PutBucketEncryptionCommand.js +0 -56
- package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +0 -106
- package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +0 -124
- package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +0 -117
- package/dist-cjs/commands/PutBucketLoggingCommand.js +0 -103
- package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +0 -74
- package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +0 -85
- package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +0 -40
- package/dist-cjs/commands/PutBucketPolicyCommand.js +0 -53
- package/dist-cjs/commands/PutBucketReplicationCommand.js +0 -93
- package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +0 -42
- package/dist-cjs/commands/PutBucketTaggingCommand.js +0 -102
- package/dist-cjs/commands/PutBucketVersioningCommand.js +0 -72
- package/dist-cjs/commands/PutBucketWebsiteCommand.js +0 -149
- package/dist-cjs/commands/PutObjectAclCommand.js +0 -200
- package/dist-cjs/commands/PutObjectCommand.js +0 -118
- package/dist-cjs/commands/PutObjectLegalHoldCommand.js +0 -27
- package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +0 -44
- package/dist-cjs/commands/PutObjectRetentionCommand.js +0 -36
- package/dist-cjs/commands/PutObjectTaggingCommand.js +0 -127
- package/dist-cjs/commands/PutPublicAccessBlockCommand.js +0 -68
- package/dist-cjs/commands/RestoreObjectCommand.js +0 -315
- package/dist-cjs/commands/SelectObjectContentCommand.js +0 -140
- package/dist-cjs/commands/UploadPartCommand.js +0 -161
- package/dist-cjs/commands/UploadPartCopyCommand.js +0 -202
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -46
- package/dist-cjs/commands/index.js +95 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -101
- package/dist-cjs/models/models_0.js +0 -753
- package/dist-cjs/models/models_1.js +0 -96
- package/dist-cjs/pagination/ListObjectsV2Paginator.js +0 -10
- package/dist-cjs/pagination/ListPartsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restXml.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +7 -0
- package/dist-cjs/waiters/waitForBucketExists.js +0 -9
- package/dist-cjs/waiters/waitForBucketNotExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectNotExists.js +0 -9
- package/dist-es/commands/index.js +92 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -101
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-types/commands/index.d.ts +92 -0
- package/dist-types/index.d.ts +5 -101
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/S3.d.ts +93 -5172
- package/dist-types/ts3.4/S3Client.d.ts +30 -109
- package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -129
- package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -189
- package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -138
- package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -277
- package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -200
- package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -131
- package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -61
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -65
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -209
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -135
- package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -102
- package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -120
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -113
- package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -99
- package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -81
- package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -89
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -98
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -68
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -145
- package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -196
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +5 -121
- package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -123
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -311
- package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -136
- package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +5 -164
- package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -198
- package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +5 -49
- package/dist-types/ts3.4/commands/index.d.ts +92 -0
- package/dist-types/ts3.4/index.d.ts +5 -101
- package/dist-types/ts3.4/models/models_0.d.ts +1305 -7281
- package/dist-types/ts3.4/models/models_1.d.ts +223 -956
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +4 -0
- package/package.json +46 -46
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
3
3
|
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@aws-sdk/eventstream-serde-config-resolver";
|
|
4
4
|
import { BucketEndpointInputConfig, BucketEndpointResolvedConfig } from "@aws-sdk/middleware-bucket-endpoint";
|
|
@@ -105,148 +105,69 @@ import { WriteGetObjectResponseCommandInput, WriteGetObjectResponseCommandOutput
|
|
|
105
105
|
export declare type ServiceInputTypes = AbortMultipartUploadCommandInput | CompleteMultipartUploadCommandInput | CopyObjectCommandInput | CreateBucketCommandInput | CreateMultipartUploadCommandInput | DeleteBucketAnalyticsConfigurationCommandInput | DeleteBucketCommandInput | DeleteBucketCorsCommandInput | DeleteBucketEncryptionCommandInput | DeleteBucketIntelligentTieringConfigurationCommandInput | DeleteBucketInventoryConfigurationCommandInput | DeleteBucketLifecycleCommandInput | DeleteBucketMetricsConfigurationCommandInput | DeleteBucketOwnershipControlsCommandInput | DeleteBucketPolicyCommandInput | DeleteBucketReplicationCommandInput | DeleteBucketTaggingCommandInput | DeleteBucketWebsiteCommandInput | DeleteObjectCommandInput | DeleteObjectTaggingCommandInput | DeleteObjectsCommandInput | DeletePublicAccessBlockCommandInput | GetBucketAccelerateConfigurationCommandInput | GetBucketAclCommandInput | GetBucketAnalyticsConfigurationCommandInput | GetBucketCorsCommandInput | GetBucketEncryptionCommandInput | GetBucketIntelligentTieringConfigurationCommandInput | GetBucketInventoryConfigurationCommandInput | GetBucketLifecycleConfigurationCommandInput | GetBucketLocationCommandInput | GetBucketLoggingCommandInput | GetBucketMetricsConfigurationCommandInput | GetBucketNotificationConfigurationCommandInput | GetBucketOwnershipControlsCommandInput | GetBucketPolicyCommandInput | GetBucketPolicyStatusCommandInput | GetBucketReplicationCommandInput | GetBucketRequestPaymentCommandInput | GetBucketTaggingCommandInput | GetBucketVersioningCommandInput | GetBucketWebsiteCommandInput | GetObjectAclCommandInput | GetObjectCommandInput | GetObjectLegalHoldCommandInput | GetObjectLockConfigurationCommandInput | GetObjectRetentionCommandInput | GetObjectTaggingCommandInput | GetObjectTorrentCommandInput | GetPublicAccessBlockCommandInput | HeadBucketCommandInput | HeadObjectCommandInput | ListBucketAnalyticsConfigurationsCommandInput | ListBucketIntelligentTieringConfigurationsCommandInput | ListBucketInventoryConfigurationsCommandInput | ListBucketMetricsConfigurationsCommandInput | ListBucketsCommandInput | ListMultipartUploadsCommandInput | ListObjectVersionsCommandInput | ListObjectsCommandInput | ListObjectsV2CommandInput | ListPartsCommandInput | PutBucketAccelerateConfigurationCommandInput | PutBucketAclCommandInput | PutBucketAnalyticsConfigurationCommandInput | PutBucketCorsCommandInput | PutBucketEncryptionCommandInput | PutBucketIntelligentTieringConfigurationCommandInput | PutBucketInventoryConfigurationCommandInput | PutBucketLifecycleConfigurationCommandInput | PutBucketLoggingCommandInput | PutBucketMetricsConfigurationCommandInput | PutBucketNotificationConfigurationCommandInput | PutBucketOwnershipControlsCommandInput | PutBucketPolicyCommandInput | PutBucketReplicationCommandInput | PutBucketRequestPaymentCommandInput | PutBucketTaggingCommandInput | PutBucketVersioningCommandInput | PutBucketWebsiteCommandInput | PutObjectAclCommandInput | PutObjectCommandInput | PutObjectLegalHoldCommandInput | PutObjectLockConfigurationCommandInput | PutObjectRetentionCommandInput | PutObjectTaggingCommandInput | PutPublicAccessBlockCommandInput | RestoreObjectCommandInput | SelectObjectContentCommandInput | UploadPartCommandInput | UploadPartCopyCommandInput | WriteGetObjectResponseCommandInput;
|
|
106
106
|
export declare type ServiceOutputTypes = AbortMultipartUploadCommandOutput | CompleteMultipartUploadCommandOutput | CopyObjectCommandOutput | CreateBucketCommandOutput | CreateMultipartUploadCommandOutput | DeleteBucketAnalyticsConfigurationCommandOutput | DeleteBucketCommandOutput | DeleteBucketCorsCommandOutput | DeleteBucketEncryptionCommandOutput | DeleteBucketIntelligentTieringConfigurationCommandOutput | DeleteBucketInventoryConfigurationCommandOutput | DeleteBucketLifecycleCommandOutput | DeleteBucketMetricsConfigurationCommandOutput | DeleteBucketOwnershipControlsCommandOutput | DeleteBucketPolicyCommandOutput | DeleteBucketReplicationCommandOutput | DeleteBucketTaggingCommandOutput | DeleteBucketWebsiteCommandOutput | DeleteObjectCommandOutput | DeleteObjectTaggingCommandOutput | DeleteObjectsCommandOutput | DeletePublicAccessBlockCommandOutput | GetBucketAccelerateConfigurationCommandOutput | GetBucketAclCommandOutput | GetBucketAnalyticsConfigurationCommandOutput | GetBucketCorsCommandOutput | GetBucketEncryptionCommandOutput | GetBucketIntelligentTieringConfigurationCommandOutput | GetBucketInventoryConfigurationCommandOutput | GetBucketLifecycleConfigurationCommandOutput | GetBucketLocationCommandOutput | GetBucketLoggingCommandOutput | GetBucketMetricsConfigurationCommandOutput | GetBucketNotificationConfigurationCommandOutput | GetBucketOwnershipControlsCommandOutput | GetBucketPolicyCommandOutput | GetBucketPolicyStatusCommandOutput | GetBucketReplicationCommandOutput | GetBucketRequestPaymentCommandOutput | GetBucketTaggingCommandOutput | GetBucketVersioningCommandOutput | GetBucketWebsiteCommandOutput | GetObjectAclCommandOutput | GetObjectCommandOutput | GetObjectLegalHoldCommandOutput | GetObjectLockConfigurationCommandOutput | GetObjectRetentionCommandOutput | GetObjectTaggingCommandOutput | GetObjectTorrentCommandOutput | GetPublicAccessBlockCommandOutput | HeadBucketCommandOutput | HeadObjectCommandOutput | ListBucketAnalyticsConfigurationsCommandOutput | ListBucketIntelligentTieringConfigurationsCommandOutput | ListBucketInventoryConfigurationsCommandOutput | ListBucketMetricsConfigurationsCommandOutput | ListBucketsCommandOutput | ListMultipartUploadsCommandOutput | ListObjectVersionsCommandOutput | ListObjectsCommandOutput | ListObjectsV2CommandOutput | ListPartsCommandOutput | PutBucketAccelerateConfigurationCommandOutput | PutBucketAclCommandOutput | PutBucketAnalyticsConfigurationCommandOutput | PutBucketCorsCommandOutput | PutBucketEncryptionCommandOutput | PutBucketIntelligentTieringConfigurationCommandOutput | PutBucketInventoryConfigurationCommandOutput | PutBucketLifecycleConfigurationCommandOutput | PutBucketLoggingCommandOutput | PutBucketMetricsConfigurationCommandOutput | PutBucketNotificationConfigurationCommandOutput | PutBucketOwnershipControlsCommandOutput | PutBucketPolicyCommandOutput | PutBucketReplicationCommandOutput | PutBucketRequestPaymentCommandOutput | PutBucketTaggingCommandOutput | PutBucketVersioningCommandOutput | PutBucketWebsiteCommandOutput | PutObjectAclCommandOutput | PutObjectCommandOutput | PutObjectLegalHoldCommandOutput | PutObjectLockConfigurationCommandOutput | PutObjectRetentionCommandOutput | PutObjectTaggingCommandOutput | PutPublicAccessBlockCommandOutput | RestoreObjectCommandOutput | SelectObjectContentCommandOutput | UploadPartCommandOutput | UploadPartCopyCommandOutput | WriteGetObjectResponseCommandOutput;
|
|
107
107
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
108
|
-
|
|
109
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
110
|
-
*/
|
|
108
|
+
|
|
111
109
|
requestHandler?: __HttpHandler;
|
|
112
|
-
|
|
113
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
114
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
110
|
+
|
|
117
111
|
sha256?: __HashConstructor;
|
|
118
|
-
|
|
119
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
112
|
+
|
|
122
113
|
urlParser?: __UrlParser;
|
|
123
|
-
|
|
124
|
-
* A function that can calculate the length of a request body.
|
|
125
|
-
* @internal
|
|
126
|
-
*/
|
|
114
|
+
|
|
127
115
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
128
|
-
|
|
129
|
-
* A function that converts a stream into an array of bytes.
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
116
|
+
|
|
132
117
|
streamCollector?: __StreamCollector;
|
|
133
|
-
|
|
134
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
135
|
-
* @internal
|
|
136
|
-
*/
|
|
118
|
+
|
|
137
119
|
base64Decoder?: __Decoder;
|
|
138
|
-
|
|
139
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
120
|
+
|
|
142
121
|
base64Encoder?: __Encoder;
|
|
143
|
-
|
|
144
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
145
|
-
* @internal
|
|
146
|
-
*/
|
|
122
|
+
|
|
147
123
|
utf8Decoder?: __Decoder;
|
|
148
|
-
|
|
149
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
150
|
-
* @internal
|
|
151
|
-
*/
|
|
124
|
+
|
|
152
125
|
utf8Encoder?: __Encoder;
|
|
153
|
-
|
|
154
|
-
* The runtime environment.
|
|
155
|
-
* @internal
|
|
156
|
-
*/
|
|
126
|
+
|
|
157
127
|
runtime?: string;
|
|
158
|
-
|
|
159
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
160
|
-
* trait of an operation.
|
|
161
|
-
*/
|
|
128
|
+
|
|
162
129
|
disableHostPrefix?: boolean;
|
|
163
|
-
|
|
164
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
165
|
-
*/
|
|
130
|
+
|
|
166
131
|
maxAttempts?: number | __Provider<number>;
|
|
167
|
-
|
|
168
|
-
* Specifies which retry algorithm to use.
|
|
169
|
-
*/
|
|
132
|
+
|
|
170
133
|
retryMode?: string | __Provider<string>;
|
|
171
|
-
|
|
172
|
-
* Optional logger for logging debug/info/warn/error.
|
|
173
|
-
*/
|
|
134
|
+
|
|
174
135
|
logger?: __Logger;
|
|
175
|
-
|
|
176
|
-
* Unique service identifier.
|
|
177
|
-
* @internal
|
|
178
|
-
*/
|
|
136
|
+
|
|
179
137
|
serviceId?: string;
|
|
180
|
-
|
|
181
|
-
* The AWS region to which this client will send requests
|
|
182
|
-
*/
|
|
138
|
+
|
|
183
139
|
region?: string | __Provider<string>;
|
|
184
|
-
|
|
185
|
-
* Default credentials provider; Not available in browser runtime.
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
140
|
+
|
|
188
141
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
189
|
-
|
|
190
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
191
|
-
* @internal
|
|
192
|
-
*/
|
|
142
|
+
|
|
193
143
|
regionInfoProvider?: RegionInfoProvider;
|
|
194
|
-
|
|
195
|
-
* Whether to escape request path when signing the request.
|
|
196
|
-
*/
|
|
144
|
+
|
|
197
145
|
signingEscapePath?: boolean;
|
|
198
|
-
|
|
199
|
-
* Whether to override the request region with the region inferred from requested resource's ARN. Defaults to false.
|
|
200
|
-
*/
|
|
146
|
+
|
|
201
147
|
useArnRegion?: boolean | Provider<boolean>;
|
|
202
|
-
|
|
203
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
204
|
-
* @internal
|
|
205
|
-
*/
|
|
148
|
+
|
|
206
149
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
207
|
-
|
|
208
|
-
* The function that provides necessary utilities for generating and parsing event stream
|
|
209
|
-
*/
|
|
150
|
+
|
|
210
151
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
211
|
-
|
|
212
|
-
* A function that, given a hash constructor and a stream, calculates the
|
|
213
|
-
* hash of the streamed value.
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
152
|
+
|
|
216
153
|
streamHasher?: __StreamHasher<Readable> | __StreamHasher<Blob>;
|
|
217
|
-
|
|
218
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
219
|
-
* that computes MD5 hashes.
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
154
|
+
|
|
222
155
|
md5?: __HashConstructor;
|
|
223
156
|
}
|
|
224
157
|
declare type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & BucketEndpointInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
|
|
225
|
-
|
|
226
|
-
* The configuration interface of S3Client class constructor that set the region, credentials and other options.
|
|
227
|
-
*/
|
|
158
|
+
|
|
228
159
|
export interface S3ClientConfig extends S3ClientConfigType {
|
|
229
160
|
}
|
|
230
161
|
declare type S3ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & BucketEndpointResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig;
|
|
231
|
-
|
|
232
|
-
* The resolved configuration interface of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}.
|
|
233
|
-
*/
|
|
162
|
+
|
|
234
163
|
export interface S3ClientResolvedConfig extends S3ClientResolvedConfigType {
|
|
235
164
|
}
|
|
236
|
-
|
|
237
|
-
* <p></p>
|
|
238
|
-
*/
|
|
165
|
+
|
|
239
166
|
export declare class S3Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, S3ClientResolvedConfig> {
|
|
240
|
-
|
|
241
|
-
* The resolved configuration of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}.
|
|
242
|
-
*/
|
|
167
|
+
|
|
243
168
|
readonly config: S3ClientResolvedConfig;
|
|
244
169
|
constructor(configuration: S3ClientConfig);
|
|
245
|
-
|
|
246
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
247
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
248
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
249
|
-
*/
|
|
170
|
+
|
|
250
171
|
destroy(): void;
|
|
251
172
|
}
|
|
252
173
|
export {};
|
|
@@ -6,67 +6,11 @@ export interface AbortMultipartUploadCommandInput extends AbortMultipartUploadRe
|
|
|
6
6
|
}
|
|
7
7
|
export interface AbortMultipartUploadCommandOutput extends AbortMultipartUploadOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>This action aborts a multipart upload. After a multipart upload is aborted, no
|
|
11
|
-
* additional parts can be uploaded using that upload ID. The storage consumed by any
|
|
12
|
-
* previously uploaded parts will be freed. However, if any part uploads are currently in
|
|
13
|
-
* progress, those part uploads might or might not succeed. As a result, it might be necessary
|
|
14
|
-
* to abort a given multipart upload multiple times in order to completely free all storage
|
|
15
|
-
* consumed by all parts. </p>
|
|
16
|
-
* <p>To verify that all parts have been removed, so you don't get charged for the part
|
|
17
|
-
* storage, you should call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a> action and ensure that
|
|
18
|
-
* the parts list is empty.</p>
|
|
19
|
-
* <p>For information about permissions required to use the multipart upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
|
|
20
|
-
* Permissions</a>.</p>
|
|
21
|
-
* <p>The following operations are related to <code>AbortMultipartUpload</code>:</p>
|
|
22
|
-
* <ul>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>
|
|
25
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
|
|
26
|
-
* </p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>
|
|
30
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
31
|
-
* </p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>
|
|
35
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a>
|
|
36
|
-
* </p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>
|
|
40
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
|
|
41
|
-
* </p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>
|
|
45
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
|
|
46
|
-
* </p>
|
|
47
|
-
* </li>
|
|
48
|
-
* </ul>
|
|
49
|
-
* @example
|
|
50
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
51
|
-
* ```javascript
|
|
52
|
-
* import { S3Client, AbortMultipartUploadCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
53
|
-
* // const { S3Client, AbortMultipartUploadCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
54
|
-
* const client = new S3Client(config);
|
|
55
|
-
* const command = new AbortMultipartUploadCommand(input);
|
|
56
|
-
* const response = await client.send(command);
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @see {@link AbortMultipartUploadCommandInput} for command's `input` shape.
|
|
60
|
-
* @see {@link AbortMultipartUploadCommandOutput} for command's `response` shape.
|
|
61
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
9
|
+
|
|
64
10
|
export declare class AbortMultipartUploadCommand extends $Command<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, S3ClientResolvedConfig> {
|
|
65
11
|
readonly input: AbortMultipartUploadCommandInput;
|
|
66
12
|
constructor(input: AbortMultipartUploadCommandInput);
|
|
67
|
-
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
13
|
+
|
|
70
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput>;
|
|
71
15
|
private serialize;
|
|
72
16
|
private deserialize;
|
|
@@ -6,138 +6,11 @@ export interface CompleteMultipartUploadCommandInput extends CompleteMultipartUp
|
|
|
6
6
|
}
|
|
7
7
|
export interface CompleteMultipartUploadCommandOutput extends CompleteMultipartUploadOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Completes a multipart upload by assembling previously uploaded parts.</p>
|
|
11
|
-
* <p>You first initiate the multipart upload and then upload all parts using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
12
|
-
* operation. After successfully uploading all relevant parts of an upload, you call this
|
|
13
|
-
* action to complete the upload. Upon receiving this request, Amazon S3 concatenates all
|
|
14
|
-
* the parts in ascending order by part number to create a new object. In the Complete
|
|
15
|
-
* Multipart Upload request, you must provide the parts list. You must ensure that the parts
|
|
16
|
-
* list is complete. This action concatenates the parts that you provide in the list. For
|
|
17
|
-
* each part in the list, you must provide the part number and the <code>ETag</code> value,
|
|
18
|
-
* returned after that part was uploaded.</p>
|
|
19
|
-
* <p>Processing of a Complete Multipart Upload request could take several minutes to
|
|
20
|
-
* complete. After Amazon S3 begins processing the request, it sends an HTTP response header that
|
|
21
|
-
* specifies a 200 OK response. While processing is in progress, Amazon S3 periodically sends white
|
|
22
|
-
* space characters to keep the connection from timing out. Because a request could fail after
|
|
23
|
-
* the initial 200 OK response has been sent, it is important that you check the response body
|
|
24
|
-
* to determine whether the request succeeded.</p>
|
|
25
|
-
* <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared
|
|
26
|
-
* to retry the failed requests. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error Best Practices</a>.</p>
|
|
27
|
-
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
|
|
28
|
-
* Upload</a>.</p>
|
|
29
|
-
* <p>For information about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
|
|
30
|
-
* Permissions</a>.</p>
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* <p>
|
|
34
|
-
* <code>CompleteMultipartUpload</code> has the following special errors:</p>
|
|
35
|
-
* <ul>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Error code: <code>EntityTooSmall</code>
|
|
38
|
-
* </p>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>Description: Your proposed upload is smaller than the minimum allowed object
|
|
42
|
-
* size. Each part must be at least 5 MB in size, except the last part.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>400 Bad Request</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>Error code: <code>InvalidPart</code>
|
|
51
|
-
* </p>
|
|
52
|
-
* <ul>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>Description: One or more of the specified parts could not be found. The part
|
|
55
|
-
* might not have been uploaded, or the specified entity tag might not have
|
|
56
|
-
* matched the part's entity tag.</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>400 Bad Request</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>Error code: <code>InvalidPartOrder</code>
|
|
65
|
-
* </p>
|
|
66
|
-
* <ul>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>Description: The list of parts was not in ascending order. The parts list
|
|
69
|
-
* must be specified in order by part number.</p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>400 Bad Request</p>
|
|
73
|
-
* </li>
|
|
74
|
-
* </ul>
|
|
75
|
-
* </li>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>Error code: <code>NoSuchUpload</code>
|
|
78
|
-
* </p>
|
|
79
|
-
* <ul>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>Description: The specified multipart upload does not exist. The upload ID
|
|
82
|
-
* might be invalid, or the multipart upload might have been aborted or
|
|
83
|
-
* completed.</p>
|
|
84
|
-
* </li>
|
|
85
|
-
* <li>
|
|
86
|
-
* <p>404 Not Found</p>
|
|
87
|
-
* </li>
|
|
88
|
-
* </ul>
|
|
89
|
-
* </li>
|
|
90
|
-
* </ul>
|
|
91
|
-
*
|
|
92
|
-
* <p>The following operations are related to <code>CompleteMultipartUpload</code>:</p>
|
|
93
|
-
* <ul>
|
|
94
|
-
* <li>
|
|
95
|
-
* <p>
|
|
96
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
|
|
97
|
-
* </p>
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <p>
|
|
101
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
102
|
-
* </p>
|
|
103
|
-
* </li>
|
|
104
|
-
* <li>
|
|
105
|
-
* <p>
|
|
106
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a>
|
|
107
|
-
* </p>
|
|
108
|
-
* </li>
|
|
109
|
-
* <li>
|
|
110
|
-
* <p>
|
|
111
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
|
|
112
|
-
* </p>
|
|
113
|
-
* </li>
|
|
114
|
-
* <li>
|
|
115
|
-
* <p>
|
|
116
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
|
|
117
|
-
* </p>
|
|
118
|
-
* </li>
|
|
119
|
-
* </ul>
|
|
120
|
-
* @example
|
|
121
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
122
|
-
* ```javascript
|
|
123
|
-
* import { S3Client, CompleteMultipartUploadCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
124
|
-
* // const { S3Client, CompleteMultipartUploadCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
125
|
-
* const client = new S3Client(config);
|
|
126
|
-
* const command = new CompleteMultipartUploadCommand(input);
|
|
127
|
-
* const response = await client.send(command);
|
|
128
|
-
* ```
|
|
129
|
-
*
|
|
130
|
-
* @see {@link CompleteMultipartUploadCommandInput} for command's `input` shape.
|
|
131
|
-
* @see {@link CompleteMultipartUploadCommandOutput} for command's `response` shape.
|
|
132
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
9
|
+
|
|
135
10
|
export declare class CompleteMultipartUploadCommand extends $Command<CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput, S3ClientResolvedConfig> {
|
|
136
11
|
readonly input: CompleteMultipartUploadCommandInput;
|
|
137
12
|
constructor(input: CompleteMultipartUploadCommandInput);
|
|
138
|
-
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
13
|
+
|
|
141
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput>;
|
|
142
15
|
private serialize;
|
|
143
16
|
private deserialize;
|
|
@@ -6,198 +6,11 @@ export interface CopyObjectCommandInput extends CopyObjectRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface CopyObjectCommandOutput extends CopyObjectOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a copy of an object that is already stored in Amazon S3.</p>
|
|
11
|
-
* <note>
|
|
12
|
-
* <p>You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your
|
|
13
|
-
* object up to 5 GB in size in a single atomic action using this API. However, to copy
|
|
14
|
-
* an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API.
|
|
15
|
-
* For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html">Copy Object Using the REST Multipart Upload API</a>.</p>
|
|
16
|
-
* </note>
|
|
17
|
-
* <p>All copy requests must be authenticated. Additionally, you must have
|
|
18
|
-
* <i>read</i> access to the source object and <i>write</i>
|
|
19
|
-
* access to the destination bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>. Both the Region
|
|
20
|
-
* that you want to copy the object from and the Region that you want to copy the object to
|
|
21
|
-
* must be enabled for your account.</p>
|
|
22
|
-
* <p>A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3
|
|
23
|
-
* is copying the files. If the error occurs before the copy action starts, you receive a
|
|
24
|
-
* standard Amazon S3 error. If the error occurs during the copy operation, the error response is
|
|
25
|
-
* embedded in the <code>200 OK</code> response. This means that a <code>200 OK</code>
|
|
26
|
-
* response can contain either a success or an error. Design your application to parse the
|
|
27
|
-
* contents of the response and handle it appropriately.</p>
|
|
28
|
-
* <p>If the copy is successful, you receive a response with information about the copied
|
|
29
|
-
* object.</p>
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>If the request is an HTTP 1.1 request, the response is chunk encoded. If it were not,
|
|
32
|
-
* it would not contain the content-length, and you would need to read the entire
|
|
33
|
-
* body.</p>
|
|
34
|
-
* </note>
|
|
35
|
-
* <p>The copy request charge is based on the storage class and Region that you specify for
|
|
36
|
-
* the destination object. For pricing information, see <a href="http://aws.amazon.com/s3/pricing/">Amazon S3 pricing</a>.</p>
|
|
37
|
-
* <important>
|
|
38
|
-
* <p>Amazon S3 transfer acceleration does not support cross-Region copies. If you request a
|
|
39
|
-
* cross-Region copy using a transfer acceleration endpoint, you get a 400 <code>Bad
|
|
40
|
-
* Request</code> error. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a>.</p>
|
|
41
|
-
* </important>
|
|
42
|
-
* <p>
|
|
43
|
-
* <b>Metadata</b>
|
|
44
|
-
* </p>
|
|
45
|
-
* <p>When copying an object, you can preserve all metadata (default) or specify new metadata.
|
|
46
|
-
* However, the ACL is not preserved and is set to private for the user making the request. To
|
|
47
|
-
* override the default ACL setting, specify a new ACL when generating a copy request. For
|
|
48
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. </p>
|
|
49
|
-
* <p>To specify whether you want the object metadata copied from the source object or
|
|
50
|
-
* replaced with metadata provided in the request, you can optionally add the
|
|
51
|
-
* <code>x-amz-metadata-directive</code> header. When you grant permissions, you can use
|
|
52
|
-
* the <code>s3:x-amz-metadata-directive</code> condition key to enforce certain metadata
|
|
53
|
-
* behavior when objects are uploaded. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html">Specifying Conditions in a
|
|
54
|
-
* Policy</a> in the <i>Amazon S3 User Guide</i>. For a complete list of
|
|
55
|
-
* Amazon S3-specific condition keys, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, Resources, and Condition Keys for
|
|
56
|
-
* Amazon S3</a>.</p>
|
|
57
|
-
* <p>
|
|
58
|
-
* <b>
|
|
59
|
-
* <code>x-amz-copy-source-if</code> Headers</b>
|
|
60
|
-
* </p>
|
|
61
|
-
* <p>To only copy an object under certain conditions, such as whether the <code>Etag</code>
|
|
62
|
-
* matches or whether the object was modified before or after a specified date, use the
|
|
63
|
-
* following request parameters:</p>
|
|
64
|
-
* <ul>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>
|
|
67
|
-
* <code>x-amz-copy-source-if-match</code>
|
|
68
|
-
* </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>
|
|
72
|
-
* <code>x-amz-copy-source-if-none-match</code>
|
|
73
|
-
* </p>
|
|
74
|
-
* </li>
|
|
75
|
-
* <li>
|
|
76
|
-
* <p>
|
|
77
|
-
* <code>x-amz-copy-source-if-unmodified-since</code>
|
|
78
|
-
* </p>
|
|
79
|
-
* </li>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>
|
|
82
|
-
* <code>x-amz-copy-source-if-modified-since</code>
|
|
83
|
-
* </p>
|
|
84
|
-
* </li>
|
|
85
|
-
* </ul>
|
|
86
|
-
* <p> If both the <code>x-amz-copy-source-if-match</code> and
|
|
87
|
-
* <code>x-amz-copy-source-if-unmodified-since</code> headers are present in the request
|
|
88
|
-
* and evaluate as follows, Amazon S3 returns <code>200 OK</code> and copies the data:</p>
|
|
89
|
-
* <ul>
|
|
90
|
-
* <li>
|
|
91
|
-
* <p>
|
|
92
|
-
* <code>x-amz-copy-source-if-match</code> condition evaluates to true</p>
|
|
93
|
-
* </li>
|
|
94
|
-
* <li>
|
|
95
|
-
* <p>
|
|
96
|
-
* <code>x-amz-copy-source-if-unmodified-since</code> condition evaluates to
|
|
97
|
-
* false</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* </ul>
|
|
100
|
-
*
|
|
101
|
-
* <p>If both the <code>x-amz-copy-source-if-none-match</code> and
|
|
102
|
-
* <code>x-amz-copy-source-if-modified-since</code> headers are present in the request and
|
|
103
|
-
* evaluate as follows, Amazon S3 returns the <code>412 Precondition Failed</code> response
|
|
104
|
-
* code:</p>
|
|
105
|
-
* <ul>
|
|
106
|
-
* <li>
|
|
107
|
-
* <p>
|
|
108
|
-
* <code>x-amz-copy-source-if-none-match</code> condition evaluates to false</p>
|
|
109
|
-
* </li>
|
|
110
|
-
* <li>
|
|
111
|
-
* <p>
|
|
112
|
-
* <code>x-amz-copy-source-if-modified-since</code> condition evaluates to
|
|
113
|
-
* true</p>
|
|
114
|
-
* </li>
|
|
115
|
-
* </ul>
|
|
116
|
-
*
|
|
117
|
-
* <note>
|
|
118
|
-
* <p>All headers with the <code>x-amz-</code> prefix, including
|
|
119
|
-
* <code>x-amz-copy-source</code>, must be signed.</p>
|
|
120
|
-
* </note>
|
|
121
|
-
* <p>
|
|
122
|
-
* <b>Server-side encryption</b>
|
|
123
|
-
* </p>
|
|
124
|
-
* <p>When you perform a CopyObject operation, you can optionally use the appropriate encryption-related
|
|
125
|
-
* headers to encrypt the object using server-side encryption with Amazon Web Services managed encryption keys
|
|
126
|
-
* (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side encryption, Amazon S3
|
|
127
|
-
* encrypts your data as it writes it to disks in its data centers and decrypts the data when
|
|
128
|
-
* you access it. For more information about server-side encryption, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Using
|
|
129
|
-
* Server-Side Encryption</a>.</p>
|
|
130
|
-
* <p>If a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. For more
|
|
131
|
-
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html">Amazon S3 Bucket Keys</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
132
|
-
* <p>
|
|
133
|
-
* <b>Access Control List (ACL)-Specific Request
|
|
134
|
-
* Headers</b>
|
|
135
|
-
* </p>
|
|
136
|
-
* <p>When copying an object, you can optionally use headers to grant ACL-based permissions.
|
|
137
|
-
* By default, all objects are private. Only the owner has full access control. When adding a
|
|
138
|
-
* new object, you can grant permissions to individual Amazon Web Services accounts or to predefined groups
|
|
139
|
-
* defined by Amazon S3. These permissions are then added to the ACL on the object. For more
|
|
140
|
-
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html">Managing ACLs Using the REST
|
|
141
|
-
* API</a>. </p>
|
|
142
|
-
*
|
|
143
|
-
* <p>
|
|
144
|
-
* <b>Storage Class Options</b>
|
|
145
|
-
* </p>
|
|
146
|
-
* <p>You can use the <code>CopyObject</code> action to change the storage class of an
|
|
147
|
-
* object that is already stored in Amazon S3 using the <code>StorageClass</code> parameter. For
|
|
148
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage
|
|
149
|
-
* Classes</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
150
|
-
* <p>
|
|
151
|
-
* <b>Versioning</b>
|
|
152
|
-
* </p>
|
|
153
|
-
* <p>By default, <code>x-amz-copy-source</code> identifies the current version of an object
|
|
154
|
-
* to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was
|
|
155
|
-
* deleted. To copy a different version, use the <code>versionId</code> subresource.</p>
|
|
156
|
-
* <p>If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for
|
|
157
|
-
* the object being copied. This version ID is different from the version ID of the source
|
|
158
|
-
* object. Amazon S3 returns the version ID of the copied object in the
|
|
159
|
-
* <code>x-amz-version-id</code> response header in the response.</p>
|
|
160
|
-
* <p>If you do not enable versioning or suspend it on the target bucket, the version ID that
|
|
161
|
-
* Amazon S3 generates is always null.</p>
|
|
162
|
-
* <p>If the source object's storage class is GLACIER, you must restore a copy of this object
|
|
163
|
-
* before you can use it as a source object for the copy operation. For more information, see
|
|
164
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>.</p>
|
|
165
|
-
* <p>The following operations are related to <code>CopyObject</code>:</p>
|
|
166
|
-
* <ul>
|
|
167
|
-
* <li>
|
|
168
|
-
* <p>
|
|
169
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a>
|
|
170
|
-
* </p>
|
|
171
|
-
* </li>
|
|
172
|
-
* <li>
|
|
173
|
-
* <p>
|
|
174
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>
|
|
175
|
-
* </p>
|
|
176
|
-
* </li>
|
|
177
|
-
* </ul>
|
|
178
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html">Copying
|
|
179
|
-
* Objects</a>.</p>
|
|
180
|
-
* @example
|
|
181
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
182
|
-
* ```javascript
|
|
183
|
-
* import { S3Client, CopyObjectCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
184
|
-
* // const { S3Client, CopyObjectCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
185
|
-
* const client = new S3Client(config);
|
|
186
|
-
* const command = new CopyObjectCommand(input);
|
|
187
|
-
* const response = await client.send(command);
|
|
188
|
-
* ```
|
|
189
|
-
*
|
|
190
|
-
* @see {@link CopyObjectCommandInput} for command's `input` shape.
|
|
191
|
-
* @see {@link CopyObjectCommandOutput} for command's `response` shape.
|
|
192
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
9
|
+
|
|
195
10
|
export declare class CopyObjectCommand extends $Command<CopyObjectCommandInput, CopyObjectCommandOutput, S3ClientResolvedConfig> {
|
|
196
11
|
readonly input: CopyObjectCommandInput;
|
|
197
12
|
constructor(input: CopyObjectCommandInput);
|
|
198
|
-
|
|
199
|
-
* @internal
|
|
200
|
-
*/
|
|
13
|
+
|
|
201
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CopyObjectCommandInput, CopyObjectCommandOutput>;
|
|
202
15
|
private serialize;
|
|
203
16
|
private deserialize;
|