@aws-sdk/client-s3 3.460.0 → 3.461.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/README.md +16 -0
- package/dist-cjs/S3.js +4 -0
- package/dist-cjs/S3Client.js +3 -1
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +1 -0
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +1 -0
- package/dist-cjs/commands/CopyObjectCommand.js +1 -0
- package/dist-cjs/commands/CreateBucketCommand.js +2 -0
- package/dist-cjs/commands/CreateMultipartUploadCommand.js +1 -0
- package/dist-cjs/commands/CreateSessionCommand.js +59 -0
- package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketCorsCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketPolicyCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketReplicationCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketTaggingCommand.js +2 -0
- package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +2 -0
- package/dist-cjs/commands/DeleteObjectCommand.js +1 -0
- package/dist-cjs/commands/DeleteObjectTaggingCommand.js +1 -0
- package/dist-cjs/commands/DeleteObjectsCommand.js +1 -0
- package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +2 -0
- package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketAclCommand.js +2 -0
- package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketCorsCommand.js +2 -0
- package/dist-cjs/commands/GetBucketEncryptionCommand.js +2 -0
- package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketLocationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketLoggingCommand.js +2 -0
- package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +2 -0
- package/dist-cjs/commands/GetBucketPolicyCommand.js +2 -0
- package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +2 -0
- package/dist-cjs/commands/GetBucketReplicationCommand.js +2 -0
- package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +2 -0
- package/dist-cjs/commands/GetBucketTaggingCommand.js +2 -0
- package/dist-cjs/commands/GetBucketVersioningCommand.js +2 -0
- package/dist-cjs/commands/GetBucketWebsiteCommand.js +2 -0
- package/dist-cjs/commands/GetObjectAclCommand.js +1 -0
- package/dist-cjs/commands/GetObjectAttributesCommand.js +1 -0
- package/dist-cjs/commands/GetObjectCommand.js +1 -0
- package/dist-cjs/commands/GetObjectLegalHoldCommand.js +1 -0
- package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +1 -0
- package/dist-cjs/commands/GetObjectRetentionCommand.js +1 -0
- package/dist-cjs/commands/GetObjectTaggingCommand.js +1 -0
- package/dist-cjs/commands/GetObjectTorrentCommand.js +1 -0
- package/dist-cjs/commands/GetPublicAccessBlockCommand.js +2 -0
- package/dist-cjs/commands/HeadBucketCommand.js +1 -0
- package/dist-cjs/commands/HeadObjectCommand.js +1 -0
- package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -0
- package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -0
- package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +2 -0
- package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
- package/dist-cjs/commands/ListBucketsCommand.js +1 -0
- package/dist-cjs/commands/ListDirectoryBucketsCommand.js +58 -0
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +1 -0
- package/dist-cjs/commands/ListObjectVersionsCommand.js +1 -0
- package/dist-cjs/commands/ListObjectsCommand.js +1 -0
- package/dist-cjs/commands/ListObjectsV2Command.js +1 -0
- package/dist-cjs/commands/ListPartsCommand.js +1 -0
- package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketAclCommand.js +2 -0
- package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketCorsCommand.js +2 -0
- package/dist-cjs/commands/PutBucketEncryptionCommand.js +2 -0
- package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketLoggingCommand.js +2 -0
- package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +2 -0
- package/dist-cjs/commands/PutBucketPolicyCommand.js +2 -0
- package/dist-cjs/commands/PutBucketReplicationCommand.js +2 -0
- package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +2 -0
- package/dist-cjs/commands/PutBucketTaggingCommand.js +2 -0
- package/dist-cjs/commands/PutBucketVersioningCommand.js +2 -0
- package/dist-cjs/commands/PutBucketWebsiteCommand.js +2 -0
- package/dist-cjs/commands/PutObjectAclCommand.js +1 -0
- package/dist-cjs/commands/PutObjectCommand.js +4 -3
- package/dist-cjs/commands/PutObjectLegalHoldCommand.js +1 -0
- package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +1 -0
- package/dist-cjs/commands/PutObjectRetentionCommand.js +1 -0
- package/dist-cjs/commands/PutObjectTaggingCommand.js +1 -0
- package/dist-cjs/commands/PutPublicAccessBlockCommand.js +2 -0
- package/dist-cjs/commands/RestoreObjectCommand.js +1 -0
- package/dist-cjs/commands/SelectObjectContentCommand.js +1 -0
- package/dist-cjs/commands/UploadPartCommand.js +1 -0
- package/dist-cjs/commands/UploadPartCopyCommand.js +1 -0
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +1 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +41 -32
- package/dist-cjs/models/models_1.js +18 -1
- package/dist-cjs/pagination/ListDirectoryBucketsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restXml.js +174 -4
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-es/S3.js +4 -0
- package/dist-es/S3Client.js +4 -2
- package/dist-es/commands/AbortMultipartUploadCommand.js +1 -0
- package/dist-es/commands/CompleteMultipartUploadCommand.js +1 -0
- package/dist-es/commands/CopyObjectCommand.js +1 -0
- package/dist-es/commands/CreateBucketCommand.js +2 -0
- package/dist-es/commands/CreateMultipartUploadCommand.js +1 -0
- package/dist-es/commands/CreateSessionCommand.js +55 -0
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +2 -0
- package/dist-es/commands/DeleteBucketCommand.js +2 -0
- package/dist-es/commands/DeleteBucketCorsCommand.js +2 -0
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +2 -0
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +2 -0
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +2 -0
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +2 -0
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +2 -0
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +2 -0
- package/dist-es/commands/DeleteBucketPolicyCommand.js +2 -0
- package/dist-es/commands/DeleteBucketReplicationCommand.js +2 -0
- package/dist-es/commands/DeleteBucketTaggingCommand.js +2 -0
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +2 -0
- package/dist-es/commands/DeleteObjectCommand.js +1 -0
- package/dist-es/commands/DeleteObjectTaggingCommand.js +1 -0
- package/dist-es/commands/DeleteObjectsCommand.js +1 -0
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +2 -0
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketAclCommand.js +2 -0
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketCorsCommand.js +2 -0
- package/dist-es/commands/GetBucketEncryptionCommand.js +2 -0
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketLocationCommand.js +2 -0
- package/dist-es/commands/GetBucketLoggingCommand.js +2 -0
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +2 -0
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +2 -0
- package/dist-es/commands/GetBucketPolicyCommand.js +2 -0
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +2 -0
- package/dist-es/commands/GetBucketReplicationCommand.js +2 -0
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +2 -0
- package/dist-es/commands/GetBucketTaggingCommand.js +2 -0
- package/dist-es/commands/GetBucketVersioningCommand.js +2 -0
- package/dist-es/commands/GetBucketWebsiteCommand.js +2 -0
- package/dist-es/commands/GetObjectAclCommand.js +1 -0
- package/dist-es/commands/GetObjectAttributesCommand.js +1 -0
- package/dist-es/commands/GetObjectCommand.js +1 -0
- package/dist-es/commands/GetObjectLegalHoldCommand.js +1 -0
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +1 -0
- package/dist-es/commands/GetObjectRetentionCommand.js +1 -0
- package/dist-es/commands/GetObjectTaggingCommand.js +1 -0
- package/dist-es/commands/GetObjectTorrentCommand.js +1 -0
- package/dist-es/commands/GetPublicAccessBlockCommand.js +2 -0
- package/dist-es/commands/HeadBucketCommand.js +1 -0
- package/dist-es/commands/HeadObjectCommand.js +1 -0
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -0
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -0
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +2 -0
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
- package/dist-es/commands/ListBucketsCommand.js +1 -0
- package/dist-es/commands/ListDirectoryBucketsCommand.js +54 -0
- package/dist-es/commands/ListMultipartUploadsCommand.js +1 -0
- package/dist-es/commands/ListObjectVersionsCommand.js +1 -0
- package/dist-es/commands/ListObjectsCommand.js +1 -0
- package/dist-es/commands/ListObjectsV2Command.js +1 -0
- package/dist-es/commands/ListPartsCommand.js +1 -0
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketAclCommand.js +2 -0
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketCorsCommand.js +2 -0
- package/dist-es/commands/PutBucketEncryptionCommand.js +2 -0
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketLoggingCommand.js +2 -0
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +2 -0
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +2 -0
- package/dist-es/commands/PutBucketPolicyCommand.js +2 -0
- package/dist-es/commands/PutBucketReplicationCommand.js +2 -0
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +2 -0
- package/dist-es/commands/PutBucketTaggingCommand.js +2 -0
- package/dist-es/commands/PutBucketVersioningCommand.js +2 -0
- package/dist-es/commands/PutBucketWebsiteCommand.js +2 -0
- package/dist-es/commands/PutObjectAclCommand.js +1 -0
- package/dist-es/commands/PutObjectCommand.js +2 -1
- package/dist-es/commands/PutObjectLegalHoldCommand.js +1 -0
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -0
- package/dist-es/commands/PutObjectRetentionCommand.js +1 -0
- package/dist-es/commands/PutObjectTaggingCommand.js +1 -0
- package/dist-es/commands/PutPublicAccessBlockCommand.js +2 -0
- package/dist-es/commands/RestoreObjectCommand.js +1 -0
- package/dist-es/commands/SelectObjectContentCommand.js +1 -0
- package/dist-es/commands/UploadPartCommand.js +1 -0
- package/dist-es/commands/UploadPartCopyCommand.js +1 -0
- package/dist-es/commands/WriteGetObjectResponseCommand.js +1 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +36 -27
- package/dist-es/models/models_1.js +15 -0
- package/dist-es/pagination/ListDirectoryBucketsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restXml.js +166 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/S3.d.ts +14 -0
- package/dist-types/S3Client.d.ts +4 -2
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +37 -5
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +97 -61
- package/dist-types/commands/CopyObjectCommand.d.ts +108 -180
- package/dist-types/commands/CreateBucketCommand.d.ts +116 -95
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +146 -224
- package/dist-types/commands/CreateSessionCommand.d.ts +145 -0
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketCommand.d.ts +35 -0
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +48 -20
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +4 -1
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +4 -1
- package/dist-types/commands/DeleteObjectCommand.d.ts +83 -11
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +15 -12
- package/dist-types/commands/DeleteObjectsCommand.d.ts +109 -35
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketAclCommand.d.ts +7 -4
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketCorsCommand.d.ts +6 -3
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/GetBucketLocationCommand.d.ts +7 -4
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +6 -3
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +54 -24
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +5 -2
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +4 -1
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +4 -1
- package/dist-types/commands/GetObjectAclCommand.d.ts +5 -2
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +113 -76
- package/dist-types/commands/GetObjectCommand.d.ts +122 -140
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +5 -2
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +5 -2
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +23 -20
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +5 -2
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +4 -1
- package/dist-types/commands/HeadBucketCommand.d.ts +53 -19
- package/dist-types/commands/HeadObjectCommand.d.ts +87 -83
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +4 -1
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +4 -1
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +4 -1
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +4 -1
- package/dist-types/commands/ListBucketsCommand.d.ts +4 -1
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +98 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +85 -17
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +4 -1
- package/dist-types/commands/ListObjectsCommand.d.ts +5 -2
- package/dist-types/commands/ListObjectsV2Command.d.ts +52 -10
- package/dist-types/commands/ListPartsCommand.d.ts +47 -14
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketAclCommand.d.ts +5 -2
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketCorsCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +4 -1
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +54 -19
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +6 -3
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +5 -2
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +5 -2
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +5 -2
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +5 -2
- package/dist-types/commands/PutObjectAclCommand.d.ts +6 -3
- package/dist-types/commands/PutObjectCommand.d.ts +151 -114
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +5 -2
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +5 -2
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +4 -1
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +4 -1
- package/dist-types/commands/RestoreObjectCommand.d.ts +6 -3
- package/dist-types/commands/SelectObjectContentCommand.d.ts +6 -3
- package/dist-types/commands/UploadPartCommand.d.ts +101 -62
- package/dist-types/commands/UploadPartCopyCommand.d.ts +121 -114
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +5 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +2443 -1104
- package/dist-types/models/models_1.d.ts +1189 -81
- package/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restXml.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/S3.d.ts +34 -0
- package/dist-types/ts3.4/S3Client.d.ts +12 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +68 -124
- package/dist-types/ts3.4/models/models_1.d.ts +127 -1
- package/dist-types/ts3.4/pagination/ListDirectoryBucketsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -0
- package/package.json +7 -7
|
@@ -23,8 +23,11 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <
|
|
27
|
-
*
|
|
26
|
+
* <note>
|
|
27
|
+
* <p>This operation is not supported by directory buckets.</p>
|
|
28
|
+
* </note>
|
|
29
|
+
* <p>Restores an archived copy of an object back into Amazon S3</p>
|
|
30
|
+
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
|
|
28
31
|
* <p>This action performs the following types of requests: </p>
|
|
29
32
|
* <ul>
|
|
30
33
|
* <li>
|
|
@@ -371,7 +374,7 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
|
|
|
371
374
|
* Value: "STRING_VALUE",
|
|
372
375
|
* },
|
|
373
376
|
* ],
|
|
374
|
-
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
|
|
377
|
+
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
|
|
375
378
|
* },
|
|
376
379
|
* },
|
|
377
380
|
* },
|
|
@@ -23,13 +23,16 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <
|
|
26
|
+
* <note>
|
|
27
|
+
* <p>This operation is not supported by directory buckets.</p>
|
|
28
|
+
* </note>
|
|
29
|
+
* <p>This action filters the contents of an Amazon S3 object based on a simple structured query
|
|
27
30
|
* language (SQL) statement. In the request, along with the SQL expression, you must also
|
|
28
31
|
* specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses
|
|
29
32
|
* this format to parse object data into records, and returns only records that match the
|
|
30
33
|
* specified SQL expression. You must also specify the data serialization format for the
|
|
31
34
|
* response.</p>
|
|
32
|
-
* <p>This
|
|
35
|
+
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
|
|
33
36
|
* <p>For more information about Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
|
|
34
37
|
* Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
|
|
35
38
|
* Command</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
@@ -37,7 +40,7 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
|
|
|
37
40
|
* <dl>
|
|
38
41
|
* <dt>Permissions</dt>
|
|
39
42
|
* <dd>
|
|
40
|
-
* <p>You must have <code>s3:GetObject</code> permission for this operation. Amazon S3
|
|
43
|
+
* <p>You must have the <code>s3:GetObject</code> permission for this operation. Amazon S3
|
|
41
44
|
* Select does not support anonymous access. For more information about permissions,
|
|
42
45
|
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in
|
|
43
46
|
* a Policy</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
@@ -26,100 +26,139 @@ export interface UploadPartCommandOutput extends UploadPartOutput, __MetadataBea
|
|
|
26
26
|
* @public
|
|
27
27
|
* <p>Uploads a part in a multipart upload.</p>
|
|
28
28
|
* <note>
|
|
29
|
-
* <p>In this operation, you provide
|
|
29
|
+
* <p>In this operation, you provide new data as a part of an object in your request. However, you have an option
|
|
30
30
|
* to specify your existing Amazon S3 object as a data source for the part you are uploading. To
|
|
31
31
|
* upload a part from an existing object, you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> operation.
|
|
32
32
|
* </p>
|
|
33
33
|
* </note>
|
|
34
34
|
* <p>You must initiate a multipart upload (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>)
|
|
35
35
|
* before you can upload any part. In response to your initiate request, Amazon S3 returns an
|
|
36
|
-
* upload ID, a unique identifier
|
|
36
|
+
* upload ID, a unique identifier that you must include in your upload part request.</p>
|
|
37
37
|
* <p>Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely
|
|
38
38
|
* identifies a part and also defines its position within the object being created. If you
|
|
39
39
|
* upload a new part using the same part number that was used with a previous part, the
|
|
40
40
|
* previously uploaded part is overwritten.</p>
|
|
41
41
|
* <p>For information about maximum and minimum part sizes and other multipart upload
|
|
42
42
|
* specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
43
|
-
* <
|
|
44
|
-
* <
|
|
45
|
-
* against the provided MD5 value. If they do not match, Amazon S3 returns an error. </p>
|
|
46
|
-
* <p>If the upload request is signed with Signature Version 4, then Amazon Web Services S3 uses the
|
|
47
|
-
* <code>x-amz-content-sha256</code> header as a checksum instead of
|
|
48
|
-
* <code>Content-MD5</code>. For more information see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html">Authenticating
|
|
49
|
-
* Requests: Using the Authorization Header (Amazon Web Services Signature Version 4)</a>. </p>
|
|
50
|
-
* <p>
|
|
51
|
-
* <b>Note:</b> After you initiate multipart upload and upload
|
|
43
|
+
* <note>
|
|
44
|
+
* <p>After you initiate multipart upload and upload
|
|
52
45
|
* one or more parts, you must either complete or abort multipart upload in order to stop
|
|
53
46
|
* getting charged for storage of the uploaded parts. Only after you either complete or abort
|
|
54
47
|
* multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts
|
|
55
48
|
* storage.</p>
|
|
49
|
+
* </note>
|
|
56
50
|
* <p>For more information on multipart uploads, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the
|
|
57
|
-
*
|
|
58
|
-
* <
|
|
59
|
-
* <
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* default. You can optionally tell Amazon S3 to encrypt data at rest using server-side encryption
|
|
68
|
-
* with other key options. The option you use depends on whether you want to use KMS keys
|
|
69
|
-
* (SSE-KMS) or provide your own encryption key (SSE-C). If you choose to provide your own
|
|
70
|
-
* encryption key, the request headers you provide in the request must match the headers you
|
|
71
|
-
* used in the request to initiate the upload by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.
|
|
72
|
-
* For more information, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side
|
|
73
|
-
* Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
74
|
-
* <p>Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are
|
|
75
|
-
* using a customer-provided encryption key (SSE-C), you don't need to specify the encryption
|
|
76
|
-
* parameters in each UploadPart request. Instead, you only need to specify the server-side
|
|
77
|
-
* encryption parameters in the initial Initiate Multipart request. For more information, see
|
|
78
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
|
|
79
|
-
* <p>If you requested server-side encryption using a customer-provided encryption key (SSE-C)
|
|
80
|
-
* in your initiate multipart upload request, you must provide identical encryption
|
|
81
|
-
* information in each part upload using the following headers.</p>
|
|
82
|
-
* <ul>
|
|
83
|
-
* <li>
|
|
84
|
-
* <p>x-amz-server-side-encryption-customer-algorithm</p>
|
|
85
|
-
* </li>
|
|
86
|
-
* <li>
|
|
87
|
-
* <p>x-amz-server-side-encryption-customer-key</p>
|
|
88
|
-
* </li>
|
|
89
|
-
* <li>
|
|
90
|
-
* <p>x-amz-server-side-encryption-customer-key-MD5</p>
|
|
91
|
-
* </li>
|
|
92
|
-
* </ul>
|
|
93
|
-
* <p>
|
|
94
|
-
* <code>UploadPart</code> has the following special errors:</p>
|
|
95
|
-
* <ul>
|
|
96
|
-
* <li>
|
|
51
|
+
* <i>Amazon S3 User Guide </i>.</p>
|
|
52
|
+
* <note>
|
|
53
|
+
* <p>
|
|
54
|
+
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
|
|
55
|
+
* </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
|
|
56
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
57
|
+
* </note>
|
|
58
|
+
* <dl>
|
|
59
|
+
* <dt>Permissions</dt>
|
|
60
|
+
* <dd>
|
|
97
61
|
* <ul>
|
|
98
62
|
* <li>
|
|
99
63
|
* <p>
|
|
100
|
-
* <
|
|
101
|
-
*
|
|
64
|
+
* <b>General purpose bucket permissions</b> - For information on the permissions required to use the multipart upload API, see
|
|
65
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
|
|
66
|
+
* Upload and Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
102
67
|
* </li>
|
|
103
68
|
* <li>
|
|
104
69
|
* <p>
|
|
105
|
-
* <
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
70
|
+
* <b>Directory bucket permissions</b> - To grant access to this API operation on a directory bucket, we recommend that you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
|
|
71
|
+
* <code>CreateSession</code>
|
|
72
|
+
* </a> API operation for session-based authorization. Specifically, you grant the <code>s3express:CreateSession</code> permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the <code>CreateSession</code> API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another <code>CreateSession</code> API call to generate a new session token for use.
|
|
73
|
+
* Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
|
|
74
|
+
* <code>CreateSession</code>
|
|
75
|
+
* </a>.</p>
|
|
109
76
|
* </li>
|
|
77
|
+
* </ul>
|
|
78
|
+
* </dd>
|
|
79
|
+
* <dt>Data integrity</dt>
|
|
80
|
+
* <dd>
|
|
81
|
+
* <p>
|
|
82
|
+
* <b>General purpose bucket</b> - To ensure that data is not corrupted traversing the network, specify the
|
|
83
|
+
* <code>Content-MD5</code> header in the upload part request. Amazon S3 checks the part data against the provided MD5 value. If they do not match, Amazon S3 returns an error. If the upload request is signed with Signature Version 4, then Amazon Web Services S3 uses the
|
|
84
|
+
* <code>x-amz-content-sha256</code> header as a checksum instead of
|
|
85
|
+
* <code>Content-MD5</code>. For more information see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html">Authenticating
|
|
86
|
+
* Requests: Using the Authorization Header (Amazon Web Services Signature Version 4)</a>. </p>
|
|
87
|
+
* <note>
|
|
88
|
+
* <p>
|
|
89
|
+
* <b>Directory buckets</b> - MD5 is not supported by directory buckets. You can use checksum algorithms to check object integrity.</p>
|
|
90
|
+
* </note>
|
|
91
|
+
* </dd>
|
|
92
|
+
* <dt>Encryption</dt>
|
|
93
|
+
* <dd>
|
|
94
|
+
* <ul>
|
|
110
95
|
* <li>
|
|
111
96
|
* <p>
|
|
112
|
-
* <
|
|
113
|
-
*
|
|
97
|
+
* <b>General purpose bucket</b> - Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it
|
|
98
|
+
* writes it to disks in its data centers and decrypts it when you access it. You have
|
|
99
|
+
* mutually exclusive options to protect data using server-side encryption in Amazon S3, depending
|
|
100
|
+
* on how you choose to manage the encryption keys. Specifically, the encryption key options
|
|
101
|
+
* are Amazon S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and Customer-Provided Keys
|
|
102
|
+
* (SSE-C). Amazon S3 encrypts data with server-side encryption using Amazon S3 managed keys (SSE-S3) by
|
|
103
|
+
* default. You can optionally tell Amazon S3 to encrypt data at rest using server-side encryption
|
|
104
|
+
* with other key options. The option you use depends on whether you want to use KMS keys
|
|
105
|
+
* (SSE-KMS) or provide your own encryption key (SSE-C).</p>
|
|
106
|
+
* <p>Server-side encryption is supported by the S3 Multipart Upload operations. Unless you are
|
|
107
|
+
* using a customer-provided encryption key (SSE-C), you don't need to specify the encryption
|
|
108
|
+
* parameters in each UploadPart request. Instead, you only need to specify the server-side
|
|
109
|
+
* encryption parameters in the initial Initiate Multipart request. For more information, see
|
|
110
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
|
|
111
|
+
* <p>If you request server-side encryption using a customer-provided encryption key (SSE-C)
|
|
112
|
+
* in your initiate multipart upload request, you must provide identical encryption
|
|
113
|
+
* information in each part upload using the following request headers.</p>
|
|
114
|
+
* <ul>
|
|
115
|
+
* <li>
|
|
116
|
+
* <p>x-amz-server-side-encryption-customer-algorithm</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>x-amz-server-side-encryption-customer-key</p>
|
|
120
|
+
* </li>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>x-amz-server-side-encryption-customer-key-MD5</p>
|
|
123
|
+
* </li>
|
|
124
|
+
* </ul>
|
|
114
125
|
* </li>
|
|
115
126
|
* <li>
|
|
116
127
|
* <p>
|
|
117
|
-
* <
|
|
128
|
+
* <b>Directory bucket</b> - For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported. </p>
|
|
129
|
+
* </li>
|
|
130
|
+
* </ul>
|
|
131
|
+
* <p>
|
|
132
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side
|
|
133
|
+
* Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
134
|
+
* </dd>
|
|
135
|
+
* <dt>Special errors</dt>
|
|
136
|
+
* <dd>
|
|
137
|
+
* <ul>
|
|
138
|
+
* <li>
|
|
139
|
+
* <p>Error Code: <code>NoSuchUpload</code>
|
|
118
140
|
* </p>
|
|
141
|
+
* <ul>
|
|
142
|
+
* <li>
|
|
143
|
+
* <p>Description: The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.</p>
|
|
144
|
+
* </li>
|
|
145
|
+
* <li>
|
|
146
|
+
* <p>HTTP Status Code: 404 Not Found </p>
|
|
147
|
+
* </li>
|
|
148
|
+
* <li>
|
|
149
|
+
* <p>SOAP Fault Code Prefix: Client</p>
|
|
150
|
+
* </li>
|
|
151
|
+
* </ul>
|
|
119
152
|
* </li>
|
|
120
153
|
* </ul>
|
|
121
|
-
* </
|
|
122
|
-
*
|
|
154
|
+
* </dd>
|
|
155
|
+
* <dt>HTTP Host header syntax</dt>
|
|
156
|
+
* <dd>
|
|
157
|
+
* <p>
|
|
158
|
+
* <b>Directory buckets </b> - The HTTP Host header syntax is <code>
|
|
159
|
+
* <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
|
|
160
|
+
* </dd>
|
|
161
|
+
* </dl>
|
|
123
162
|
* <p>The following operations are related to <code>UploadPart</code>:</p>
|
|
124
163
|
* <ul>
|
|
125
164
|
* <li>
|
|
@@ -23,143 +23,150 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Uploads a part by copying data from an existing object as data source.
|
|
27
|
-
* data source
|
|
28
|
-
* a byte range
|
|
26
|
+
* <p>Uploads a part by copying data from an existing object as data source. To specify the
|
|
27
|
+
* data source, you add the request header <code>x-amz-copy-source</code> in your request. To specify
|
|
28
|
+
* a byte range, you add the request header <code>x-amz-copy-source-range</code> in your
|
|
29
29
|
* request. </p>
|
|
30
30
|
* <p>For information about maximum and minimum part sizes and other multipart upload
|
|
31
31
|
* specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>. </p>
|
|
32
32
|
* <note>
|
|
33
|
-
* <p>Instead of
|
|
34
|
-
* action
|
|
33
|
+
* <p>Instead of copying data from an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
34
|
+
* action to upload new data as a part of an object in your request.</p>
|
|
35
35
|
* </note>
|
|
36
36
|
* <p>You must initiate a multipart upload before you can upload any part. In response to your
|
|
37
|
-
* initiate request
|
|
37
|
+
* initiate request, Amazon S3 returns the upload ID, a unique identifier that you must include in
|
|
38
38
|
* your upload part request.</p>
|
|
39
|
-
* <p>For
|
|
40
|
-
*
|
|
41
|
-
* <
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* <i>Amazon S3 User Guide</i>.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>For information about copying objects using a single atomic action vs. a multipart
|
|
54
|
-
* upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on Objects</a> in
|
|
55
|
-
* the <i>Amazon S3 User Guide</i>.</p>
|
|
56
|
-
* </li>
|
|
57
|
-
* <li>
|
|
58
|
-
* <p>For information about using server-side encryption with customer-provided
|
|
59
|
-
* encryption keys with the <code>UploadPartCopy</code> operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* <p>Note the following additional considerations about the request headers
|
|
63
|
-
* <code>x-amz-copy-source-if-match</code>, <code>x-amz-copy-source-if-none-match</code>,
|
|
64
|
-
* <code>x-amz-copy-source-if-unmodified-since</code>, and
|
|
65
|
-
* <code>x-amz-copy-source-if-modified-since</code>:</p>
|
|
66
|
-
* <p> </p>
|
|
67
|
-
* <ul>
|
|
68
|
-
* <li>
|
|
69
|
-
* <p>
|
|
70
|
-
* <b>Consideration 1</b> - If both of the
|
|
71
|
-
* <code>x-amz-copy-source-if-match</code> and
|
|
72
|
-
* <code>x-amz-copy-source-if-unmodified-since</code> headers are present in the
|
|
73
|
-
* request as follows:</p>
|
|
74
|
-
* <p>
|
|
75
|
-
* <code>x-amz-copy-source-if-match</code> condition evaluates to <code>true</code>,
|
|
76
|
-
* and;</p>
|
|
77
|
-
* <p>
|
|
78
|
-
* <code>x-amz-copy-source-if-unmodified-since</code> condition evaluates to
|
|
79
|
-
* <code>false</code>;</p>
|
|
80
|
-
* <p>Amazon S3 returns <code>200 OK</code> and copies the data.
|
|
81
|
-
* </p>
|
|
82
|
-
* </li>
|
|
83
|
-
* <li>
|
|
84
|
-
* <p>
|
|
85
|
-
* <b>Consideration 2</b> - If both of the
|
|
86
|
-
* <code>x-amz-copy-source-if-none-match</code> and
|
|
87
|
-
* <code>x-amz-copy-source-if-modified-since</code> headers are present in the
|
|
88
|
-
* request as follows:</p>
|
|
89
|
-
* <p>
|
|
90
|
-
* <code>x-amz-copy-source-if-none-match</code> condition evaluates to
|
|
91
|
-
* <code>false</code>, and;</p>
|
|
92
|
-
* <p>
|
|
93
|
-
* <code>x-amz-copy-source-if-modified-since</code> condition evaluates to
|
|
94
|
-
* <code>true</code>;</p>
|
|
95
|
-
* <p>Amazon S3 returns <code>412 Precondition Failed</code> response code.
|
|
96
|
-
* </p>
|
|
97
|
-
* </li>
|
|
98
|
-
* </ul>
|
|
39
|
+
* <p>For conceptual information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading
|
|
40
|
+
* Objects Using Multipart Upload</a> in the
|
|
41
|
+
* <i>Amazon S3 User Guide</i>. For information about copying objects using a single atomic action vs. a multipart
|
|
42
|
+
* upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on Objects</a> in
|
|
43
|
+
* the <i>Amazon S3 User Guide</i>.</p>
|
|
44
|
+
* <note>
|
|
45
|
+
* <p>
|
|
46
|
+
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
|
|
47
|
+
* </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
|
|
48
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
49
|
+
* </note>
|
|
99
50
|
* <dl>
|
|
100
|
-
* <dt>
|
|
51
|
+
* <dt>Authentication and authorization</dt>
|
|
101
52
|
* <dd>
|
|
102
|
-
* <p>
|
|
103
|
-
*
|
|
104
|
-
* version of the object to copy. If the current version is a delete marker and you
|
|
105
|
-
* don't specify a versionId in the <code>x-amz-copy-source</code>, Amazon S3 returns a
|
|
106
|
-
* 404 error, because the object does not exist. If you specify versionId in the
|
|
107
|
-
* <code>x-amz-copy-source</code> and the versionId is a delete marker, Amazon S3
|
|
108
|
-
* returns an HTTP 400 error, because you are not allowed to specify a delete marker
|
|
109
|
-
* as a version for the <code>x-amz-copy-source</code>. </p>
|
|
110
|
-
* <p>You can optionally specify a specific version of the source object to copy by
|
|
111
|
-
* adding the <code>versionId</code> subresource as shown in the following
|
|
112
|
-
* example:</p>
|
|
53
|
+
* <p>All <code>UploadPartCopy</code> requests must be authenticated and signed by using IAM credentials (access key ID and secret access key for the IAM identities). All headers with the <code>x-amz-</code> prefix, including
|
|
54
|
+
* <code>x-amz-copy-source</code>, must be signed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
|
|
113
55
|
* <p>
|
|
114
|
-
* <
|
|
115
|
-
*
|
|
56
|
+
* <b>Directory buckets</b> - You must use IAM credentials to authenticate and authorize your access to the <code>UploadPartCopy</code> API operation, instead of using the
|
|
57
|
+
* temporary security credentials through the <code>CreateSession</code> API operation.</p>
|
|
58
|
+
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
|
|
116
59
|
* </dd>
|
|
117
|
-
* <dt>
|
|
60
|
+
* <dt>Permissions</dt>
|
|
118
61
|
* <dd>
|
|
62
|
+
* <p>You must have <code>READ</code> access to the source object and <code>WRITE</code>
|
|
63
|
+
* access to the destination bucket.</p>
|
|
119
64
|
* <ul>
|
|
120
65
|
* <li>
|
|
66
|
+
* <p>
|
|
67
|
+
* <b>General purpose bucket permissions</b> - You must have the permissions in a policy based on the bucket types of your source bucket and destination bucket in an <code>UploadPartCopy</code> operation.</p>
|
|
121
68
|
* <ul>
|
|
122
69
|
* <li>
|
|
123
|
-
* <p>
|
|
124
|
-
*
|
|
125
|
-
*
|
|
70
|
+
* <p>If the source object is in a general purpose bucket, you must have the <b>
|
|
71
|
+
* <code>s3:GetObject</code>
|
|
72
|
+
* </b> permission to read the source object that is being copied. </p>
|
|
126
73
|
* </li>
|
|
127
74
|
* <li>
|
|
128
|
-
* <p>
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* aborted or completed.</i>
|
|
75
|
+
* <p>If the destination bucket is a general purpose bucket, you must have the <b>
|
|
76
|
+
* <code>s3:PubObject</code>
|
|
77
|
+
* </b> permission to write the object copy to the destination bucket.
|
|
132
78
|
* </p>
|
|
133
79
|
* </li>
|
|
80
|
+
* </ul>
|
|
81
|
+
* <p>For information about permissions required to use the multipart upload API, see
|
|
82
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in the
|
|
83
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
84
|
+
* </li>
|
|
85
|
+
* <li>
|
|
86
|
+
* <p>
|
|
87
|
+
* <b>Directory bucket permissions</b> -
|
|
88
|
+
* You must have permissions in a bucket policy or an IAM identity-based policy based on the source and destination
|
|
89
|
+
* bucket types in an <code>UploadPartCopy</code> operation.</p>
|
|
90
|
+
* <ul>
|
|
91
|
+
* <li>
|
|
92
|
+
* <p>If the source object that you want to copy is in a
|
|
93
|
+
* directory bucket, you must have the <b>
|
|
94
|
+
* <code>s3express:CreateSession</code>
|
|
95
|
+
* </b> permission in
|
|
96
|
+
* the <code>Action</code> element of a policy to read the object
|
|
97
|
+
* .
|
|
98
|
+
* By default, the session is in the <code>ReadWrite</code> mode. If you want to restrict the access, you can explicitly set the <code>s3express:SessionMode</code> condition key to <code>ReadOnly</code> on the copy source bucket.</p>
|
|
99
|
+
* </li>
|
|
134
100
|
* <li>
|
|
135
|
-
* <p>
|
|
136
|
-
* <
|
|
137
|
-
*
|
|
101
|
+
* <p>If the copy destination is a directory bucket, you must have the
|
|
102
|
+
* <b>
|
|
103
|
+
* <code>s3express:CreateSession</code>
|
|
104
|
+
* </b> permission in the
|
|
105
|
+
* <code>Action</code> element of a policy to write the object
|
|
106
|
+
* to the destination. The <code>s3express:SessionMode</code> condition
|
|
107
|
+
* key cannot be set to <code>ReadOnly</code> on the copy destination. </p>
|
|
138
108
|
* </li>
|
|
139
109
|
* </ul>
|
|
110
|
+
* <p>For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
|
|
111
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
112
|
+
* </li>
|
|
113
|
+
* </ul>
|
|
114
|
+
* </dd>
|
|
115
|
+
* <dt>Encryption</dt>
|
|
116
|
+
* <dd>
|
|
117
|
+
* <ul>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>
|
|
120
|
+
* <b>General purpose buckets </b> -
|
|
121
|
+
*
|
|
122
|
+
* For information about using server-side encryption with customer-provided
|
|
123
|
+
* encryption keys with the <code>UploadPartCopy</code> operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>.
|
|
124
|
+
* </p>
|
|
125
|
+
* </li>
|
|
126
|
+
* <li>
|
|
127
|
+
* <p>
|
|
128
|
+
* <b>Directory buckets </b> - For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported.</p>
|
|
140
129
|
* </li>
|
|
130
|
+
* </ul>
|
|
131
|
+
* </dd>
|
|
132
|
+
* <dt>Special errors</dt>
|
|
133
|
+
* <dd>
|
|
134
|
+
* <ul>
|
|
141
135
|
* <li>
|
|
136
|
+
* <p>Error Code: <code>NoSuchUpload</code>
|
|
137
|
+
* </p>
|
|
142
138
|
* <ul>
|
|
143
139
|
* <li>
|
|
144
|
-
* <p>
|
|
145
|
-
*
|
|
146
|
-
*
|
|
140
|
+
* <p>Description: The specified multipart upload does not exist. The
|
|
141
|
+
* upload ID might be invalid, or the multipart upload might have been
|
|
142
|
+
* aborted or completed.</p>
|
|
147
143
|
* </li>
|
|
148
144
|
* <li>
|
|
149
|
-
* <p>
|
|
150
|
-
* <i>Cause: The specified copy source is not supported as a
|
|
151
|
-
* byte-range copy source.</i>
|
|
152
|
-
* </p>
|
|
145
|
+
* <p>HTTP Status Code: 404 Not Found</p>
|
|
153
146
|
* </li>
|
|
147
|
+
* </ul>
|
|
148
|
+
* </li>
|
|
149
|
+
* <li>
|
|
150
|
+
* <p>Error Code: <code>InvalidRequest</code>
|
|
151
|
+
* </p>
|
|
152
|
+
* <ul>
|
|
154
153
|
* <li>
|
|
155
|
-
* <p>
|
|
156
|
-
*
|
|
157
|
-
*
|
|
154
|
+
* <p>Description: The specified copy source is not supported as a
|
|
155
|
+
* byte-range copy source.</p>
|
|
156
|
+
* </li>
|
|
157
|
+
* <li>
|
|
158
|
+
* <p>HTTP Status Code: 400 Bad Request</p>
|
|
158
159
|
* </li>
|
|
159
160
|
* </ul>
|
|
160
161
|
* </li>
|
|
161
162
|
* </ul>
|
|
162
163
|
* </dd>
|
|
164
|
+
* <dt>HTTP Host header syntax</dt>
|
|
165
|
+
* <dd>
|
|
166
|
+
* <p>
|
|
167
|
+
* <b>Directory buckets </b> - The HTTP Host header syntax is <code>
|
|
168
|
+
* <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
|
|
169
|
+
* </dd>
|
|
163
170
|
* </dl>
|
|
164
171
|
* <p>The following operations are related to <code>UploadPartCopy</code>:</p>
|
|
165
172
|
* <ul>
|
|
@@ -252,14 +259,15 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
252
259
|
* @throws {@link S3ServiceException}
|
|
253
260
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
254
261
|
*
|
|
255
|
-
* @example To upload a part by copying
|
|
262
|
+
* @example To upload a part by copying byte range from an existing object as data source
|
|
256
263
|
* ```javascript
|
|
257
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
264
|
+
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
|
|
258
265
|
* const input = {
|
|
259
266
|
* "Bucket": "examplebucket",
|
|
260
267
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
268
|
+
* "CopySourceRange": "bytes=1-100000",
|
|
261
269
|
* "Key": "examplelargeobject",
|
|
262
|
-
* "PartNumber": "
|
|
270
|
+
* "PartNumber": "2",
|
|
263
271
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
264
272
|
* };
|
|
265
273
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -267,23 +275,22 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
267
275
|
* /* response ==
|
|
268
276
|
* {
|
|
269
277
|
* "CopyPartResult": {
|
|
270
|
-
* "ETag": "\"
|
|
271
|
-
* "LastModified": "2016-12-29T21:
|
|
278
|
+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
279
|
+
* "LastModified": "2016-12-29T21:44:28.000Z"
|
|
272
280
|
* }
|
|
273
281
|
* }
|
|
274
282
|
* *\/
|
|
275
|
-
* // example id: to-upload-a-part-by-copying-
|
|
283
|
+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
276
284
|
* ```
|
|
277
285
|
*
|
|
278
|
-
* @example To upload a part by copying
|
|
286
|
+
* @example To upload a part by copying data from an existing object as data source
|
|
279
287
|
* ```javascript
|
|
280
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
288
|
+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
281
289
|
* const input = {
|
|
282
290
|
* "Bucket": "examplebucket",
|
|
283
291
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
284
|
-
* "CopySourceRange": "bytes=1-100000",
|
|
285
292
|
* "Key": "examplelargeobject",
|
|
286
|
-
* "PartNumber": "
|
|
293
|
+
* "PartNumber": "1",
|
|
287
294
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
288
295
|
* };
|
|
289
296
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -291,12 +298,12 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
291
298
|
* /* response ==
|
|
292
299
|
* {
|
|
293
300
|
* "CopyPartResult": {
|
|
294
|
-
* "ETag": "\"
|
|
295
|
-
* "LastModified": "2016-12-29T21:
|
|
301
|
+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
302
|
+
* "LastModified": "2016-12-29T21:24:43.000Z"
|
|
296
303
|
* }
|
|
297
304
|
* }
|
|
298
305
|
* *\/
|
|
299
|
-
* // example id: to-upload-a-part-by-copying-
|
|
306
|
+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
300
307
|
* ```
|
|
301
308
|
*
|
|
302
309
|
*/
|
|
@@ -24,7 +24,10 @@ export interface WriteGetObjectResponseCommandOutput extends __MetadataBearer {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* @public
|
|
27
|
-
* <
|
|
27
|
+
* <note>
|
|
28
|
+
* <p>This operation is not supported by directory buckets.</p>
|
|
29
|
+
* </note>
|
|
30
|
+
* <p>Passes transformed objects to a <code>GetObject</code> operation when using Object Lambda access points. For
|
|
28
31
|
* information about Object Lambda access points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with
|
|
29
32
|
* Object Lambda access points</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
30
33
|
* <p>This operation supports metadata that can be returned by <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>, in addition to
|
|
@@ -103,7 +106,7 @@ export interface WriteGetObjectResponseCommandOutput extends __MetadataBearer {
|
|
|
103
106
|
* SSECustomerAlgorithm: "STRING_VALUE",
|
|
104
107
|
* SSEKMSKeyId: "STRING_VALUE",
|
|
105
108
|
* SSECustomerKeyMD5: "STRING_VALUE",
|
|
106
|
-
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
|
|
109
|
+
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
|
|
107
110
|
* TagCount: Number("int"),
|
|
108
111
|
* VersionId: "STRING_VALUE",
|
|
109
112
|
* BucketKeyEnabled: true || false,
|