@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
|
@@ -27,268 +27,190 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa
|
|
|
27
27
|
* used to associate all of the parts in the specific multipart upload. You specify this
|
|
28
28
|
* upload ID in each of your subsequent upload part requests (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>). You also include this
|
|
29
29
|
* upload ID in the final request to either complete or abort the multipart upload
|
|
30
|
-
* request
|
|
31
|
-
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a>.</p>
|
|
32
|
-
* <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the
|
|
33
|
-
* upload must complete within the number of days specified in the bucket lifecycle
|
|
34
|
-
* configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort
|
|
35
|
-
* action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle
|
|
36
|
-
* Configuration</a>.</p>
|
|
37
|
-
* <p>For information about the permissions required to use the multipart upload API, see
|
|
38
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
|
|
39
|
-
* Upload and Permissions</a>.</p>
|
|
40
|
-
* <p>For request signing, multipart upload is just a series of regular requests. You initiate
|
|
41
|
-
* a multipart upload, send one or more requests to upload parts, and then complete the
|
|
42
|
-
* multipart upload process. You sign each request individually. There is nothing special
|
|
43
|
-
* about signing multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a>.</p>
|
|
30
|
+
* request. For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
44
31
|
* <note>
|
|
45
32
|
* <p>After you initiate a multipart upload and upload one or more parts, to stop being
|
|
46
33
|
* charged for storing the uploaded parts, you must either complete or abort the multipart
|
|
47
|
-
* upload. Amazon S3 frees up the space used to store the parts and
|
|
34
|
+
* upload. Amazon S3 frees up the space used to store the parts and stops charging you for
|
|
48
35
|
* storing them only after you either complete or abort a multipart upload. </p>
|
|
49
36
|
* </note>
|
|
50
|
-
* <p>
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* multipart upload,
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* (SSE-S3), an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key
|
|
70
|
-
* (SSE-C). </p>
|
|
71
|
-
* <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester
|
|
72
|
-
* must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
|
|
73
|
-
* actions on the key. These permissions are required because Amazon S3 must decrypt and read data
|
|
74
|
-
* from the encrypted file parts before it completes the multipart upload. For more
|
|
75
|
-
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
|
|
76
|
-
* and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
|
|
77
|
-
* server-side encryption with Amazon Web Services KMS</a> in the
|
|
78
|
-
* <i>Amazon S3 User Guide</i>.</p>
|
|
79
|
-
* <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account as the KMS key,
|
|
80
|
-
* then you must have these permissions on the key policy. If your IAM user or role belongs
|
|
81
|
-
* to a different account than the key, then you must have the permissions on both the key
|
|
82
|
-
* policy and your IAM user or role.</p>
|
|
83
|
-
* <p> For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Protecting Data Using Server-Side
|
|
84
|
-
* Encryption</a>.</p>
|
|
37
|
+
* <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the created multipart
|
|
38
|
+
* upload must be completed within the number of days specified in the bucket lifecycle
|
|
39
|
+
* configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort
|
|
40
|
+
* action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle
|
|
41
|
+
* Configuration</a>.</p>
|
|
42
|
+
* <note>
|
|
43
|
+
* <ul>
|
|
44
|
+
* <li>
|
|
45
|
+
* <p>
|
|
46
|
+
* <b>Directory buckets </b> - S3 Lifecycle is not supported by directory buckets.</p>
|
|
47
|
+
* </li>
|
|
48
|
+
* <li>
|
|
49
|
+
* <p>
|
|
50
|
+
* <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>
|
|
51
|
+
* </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
|
|
52
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
53
|
+
* </li>
|
|
54
|
+
* </ul>
|
|
55
|
+
* </note>
|
|
85
56
|
* <dl>
|
|
86
|
-
* <dt>
|
|
57
|
+
* <dt>Request signing</dt>
|
|
87
58
|
* <dd>
|
|
88
|
-
* <p>
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* <
|
|
92
|
-
* <li>
|
|
93
|
-
* <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. For
|
|
94
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned
|
|
95
|
-
* ACL</a>.</p>
|
|
96
|
-
* </li>
|
|
97
|
-
* <li>
|
|
98
|
-
* <p>Specify access permissions explicitly with the
|
|
99
|
-
* <code>x-amz-grant-read</code>, <code>x-amz-grant-read-acp</code>,
|
|
100
|
-
* <code>x-amz-grant-write-acp</code>, and
|
|
101
|
-
* <code>x-amz-grant-full-control</code> headers. These parameters map to
|
|
102
|
-
* the set of permissions that Amazon S3 supports in an ACL. For more information,
|
|
103
|
-
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a>.</p>
|
|
104
|
-
* </li>
|
|
105
|
-
* </ul>
|
|
106
|
-
* <p>You can use either a canned ACL or specify access permissions explicitly. You
|
|
107
|
-
* cannot do both.</p>
|
|
59
|
+
* <p>For request signing, multipart upload is just a series of regular requests. You initiate
|
|
60
|
+
* a multipart upload, send one or more requests to upload parts, and then complete the
|
|
61
|
+
* multipart upload process. You sign each request individually. There is nothing special
|
|
62
|
+
* about signing multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
108
63
|
* </dd>
|
|
109
|
-
* <dt>
|
|
64
|
+
* <dt>Permissions</dt>
|
|
110
65
|
* <dd>
|
|
111
|
-
* <p>Amazon S3 encrypts data by using server-side encryption with an Amazon S3 managed key
|
|
112
|
-
* (SSE-S3) by default. Server-side encryption is for data encryption at rest. Amazon S3
|
|
113
|
-
* encrypts your data as it writes it to disks in its data centers and decrypts it
|
|
114
|
-
* when you access it. You can request that Amazon S3 encrypts data at rest by using
|
|
115
|
-
* server-side encryption with other key options. The option you use depends on
|
|
116
|
-
* whether you want to use KMS keys (SSE-KMS) or provide your own encryption keys
|
|
117
|
-
* (SSE-C).</p>
|
|
118
66
|
* <ul>
|
|
119
67
|
* <li>
|
|
120
|
-
* <p>
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* <
|
|
125
|
-
* <
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* <code>x-amz-server-side-encryption-aws-kms-key-id</code>
|
|
133
|
-
* </p>
|
|
134
|
-
* </li>
|
|
135
|
-
* <li>
|
|
136
|
-
* <p>
|
|
137
|
-
* <code>x-amz-server-side-encryption-context</code>
|
|
138
|
-
* </p>
|
|
139
|
-
* </li>
|
|
140
|
-
* </ul>
|
|
141
|
-
* <note>
|
|
142
|
-
* <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but
|
|
143
|
-
* don't provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>,
|
|
144
|
-
* Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code> key) in KMS to
|
|
145
|
-
* protect the data.</p>
|
|
146
|
-
* </note>
|
|
147
|
-
* <important>
|
|
148
|
-
* <p>All <code>GET</code> and <code>PUT</code> requests for an object
|
|
149
|
-
* protected by KMS fail if you don't make them by using Secure Sockets
|
|
150
|
-
* Layer (SSL), Transport Layer Security (TLS), or Signature Version
|
|
151
|
-
* 4.</p>
|
|
152
|
-
* </important>
|
|
153
|
-
* <p>For more information about server-side encryption with KMS keys
|
|
154
|
-
* (SSE-KMS), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting Data
|
|
155
|
-
* Using Server-Side Encryption with KMS keys</a>.</p>
|
|
68
|
+
* <p>
|
|
69
|
+
* <b>General purpose bucket permissions</b> - For information about the permissions required to use the multipart upload API, see
|
|
70
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
|
|
71
|
+
* upload and permissions</a> in the <i>Amazon S3 User Guide</i>. </p>
|
|
72
|
+
* <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester
|
|
73
|
+
* must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
|
|
74
|
+
* actions on the key. These permissions are required because Amazon S3 must decrypt and read data
|
|
75
|
+
* from the encrypted file parts before it completes the multipart upload. For more
|
|
76
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
|
|
77
|
+
* and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
|
|
78
|
+
* server-side encryption with Amazon Web Services KMS</a> in the
|
|
79
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
156
80
|
* </li>
|
|
157
81
|
* <li>
|
|
158
|
-
* <p>
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* <
|
|
164
|
-
*
|
|
165
|
-
* </p>
|
|
166
|
-
* </li>
|
|
167
|
-
* <li>
|
|
168
|
-
* <p>
|
|
169
|
-
* <code>x-amz-server-side-encryption-customer-key</code>
|
|
170
|
-
* </p>
|
|
171
|
-
* </li>
|
|
172
|
-
* <li>
|
|
173
|
-
* <p>
|
|
174
|
-
* <code>x-amz-server-side-encryption-customer-key-MD5</code>
|
|
175
|
-
* </p>
|
|
176
|
-
* </li>
|
|
177
|
-
* </ul>
|
|
178
|
-
* <p>For more information about server-side encryption with customer-provided
|
|
179
|
-
* encryption keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">
|
|
180
|
-
* Protecting data using server-side encryption with customer-provided
|
|
181
|
-
* encryption keys (SSE-C)</a>.</p>
|
|
82
|
+
* <p>
|
|
83
|
+
* <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">
|
|
84
|
+
* <code>CreateSession</code>
|
|
85
|
+
* </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.
|
|
86
|
+
* 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">
|
|
87
|
+
* <code>CreateSession</code>
|
|
88
|
+
* </a>.</p>
|
|
182
89
|
* </li>
|
|
183
90
|
* </ul>
|
|
184
91
|
* </dd>
|
|
185
|
-
* <dt>
|
|
92
|
+
* <dt>Encryption</dt>
|
|
186
93
|
* <dd>
|
|
187
|
-
* <p>You also can use the following access control–related headers with this
|
|
188
|
-
* operation. By default, all objects are private. Only the owner has full access
|
|
189
|
-
* control. When adding a new object, you can grant permissions to individual
|
|
190
|
-
* Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are then
|
|
191
|
-
* added to the access control list (ACL) on the object. For more information, see
|
|
192
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. With this operation, you can grant access permissions
|
|
193
|
-
* using one of the following two methods:</p>
|
|
194
94
|
* <ul>
|
|
195
95
|
* <li>
|
|
196
|
-
* <p>
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* </li>
|
|
215
|
-
* <li>
|
|
216
|
-
* <p>
|
|
217
|
-
* <code>x-amz-grant-write</code>
|
|
218
|
-
* </p>
|
|
219
|
-
* </li>
|
|
220
|
-
* <li>
|
|
221
|
-
* <p>
|
|
222
|
-
* <code>x-amz-grant-read-acp</code>
|
|
223
|
-
* </p>
|
|
224
|
-
* </li>
|
|
225
|
-
* <li>
|
|
226
|
-
* <p>
|
|
227
|
-
* <code>x-amz-grant-write-acp</code>
|
|
228
|
-
* </p>
|
|
229
|
-
* </li>
|
|
230
|
-
* <li>
|
|
231
|
-
* <p>
|
|
232
|
-
* <code>x-amz-grant-full-control</code>
|
|
233
|
-
* </p>
|
|
234
|
-
* </li>
|
|
235
|
-
* </ul>
|
|
236
|
-
* <p>You specify each grantee as a type=value pair, where the type is one of
|
|
237
|
-
* the following:</p>
|
|
96
|
+
* <p>
|
|
97
|
+
* <b>General purpose buckets</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. Amazon S3
|
|
99
|
+
* automatically encrypts all new objects that are uploaded to an S3 bucket. When doing a
|
|
100
|
+
* multipart upload, if you don't specify encryption information in your request, the
|
|
101
|
+
* encryption setting of the uploaded parts is set to the default encryption configuration of
|
|
102
|
+
* the destination bucket. By default, all buckets have a base level of encryption
|
|
103
|
+
* configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). If the
|
|
104
|
+
* destination bucket has a default encryption configuration that uses server-side encryption
|
|
105
|
+
* with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key (SSE-C),
|
|
106
|
+
* Amazon S3 uses the corresponding KMS key, or a customer-provided key to encrypt the uploaded
|
|
107
|
+
* parts. When you perform a CreateMultipartUpload operation, if you want to use a different
|
|
108
|
+
* type of encryption setting for the uploaded parts, you can request that Amazon S3 encrypts the
|
|
109
|
+
* object with a different encryption key (such as an Amazon S3 managed key, a KMS key, or a customer-provided key). When the encryption
|
|
110
|
+
* setting in your request is different from the default encryption configuration of the
|
|
111
|
+
* destination bucket, the encryption setting in your request takes precedence. If you choose
|
|
112
|
+
* to provide your own encryption key, the request headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
113
|
+
* and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> requests must match the headers you used in the <code>CreateMultipartUpload</code> request.</p>
|
|
238
114
|
* <ul>
|
|
239
115
|
* <li>
|
|
240
|
-
* <p>
|
|
241
|
-
* <code>
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
116
|
+
* <p>Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key
|
|
117
|
+
* (<code>aws/s3</code>) and KMS customer managed keys stored in Key Management Service (KMS) –
|
|
118
|
+
* If you want Amazon Web Services to manage the keys used to encrypt data, specify the
|
|
119
|
+
* following headers in the request.</p>
|
|
120
|
+
* <ul>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>
|
|
123
|
+
* <code>x-amz-server-side-encryption</code>
|
|
124
|
+
* </p>
|
|
125
|
+
* </li>
|
|
126
|
+
* <li>
|
|
127
|
+
* <p>
|
|
128
|
+
* <code>x-amz-server-side-encryption-aws-kms-key-id</code>
|
|
129
|
+
* </p>
|
|
130
|
+
* </li>
|
|
131
|
+
* <li>
|
|
132
|
+
* <p>
|
|
133
|
+
* <code>x-amz-server-side-encryption-context</code>
|
|
134
|
+
* </p>
|
|
135
|
+
* </li>
|
|
136
|
+
* </ul>
|
|
253
137
|
* <note>
|
|
254
|
-
* <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
|
|
255
138
|
* <ul>
|
|
256
139
|
* <li>
|
|
257
|
-
* <p>
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
* </li>
|
|
262
|
-
* <li>
|
|
263
|
-
* <p> US West (Oregon)</p>
|
|
264
|
-
* </li>
|
|
265
|
-
* <li>
|
|
266
|
-
* <p> Asia Pacific (Singapore)</p>
|
|
267
|
-
* </li>
|
|
268
|
-
* <li>
|
|
269
|
-
* <p>Asia Pacific (Sydney)</p>
|
|
140
|
+
* <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but
|
|
141
|
+
* don't provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>,
|
|
142
|
+
* Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code> key) in KMS to
|
|
143
|
+
* protect the data.</p>
|
|
270
144
|
* </li>
|
|
271
145
|
* <li>
|
|
272
|
-
* <p>
|
|
146
|
+
* <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester
|
|
147
|
+
* must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
|
|
148
|
+
* actions on the key. These permissions are required because Amazon S3 must decrypt and read data
|
|
149
|
+
* from the encrypted file parts before it completes the multipart upload. For more
|
|
150
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
|
|
151
|
+
* and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
|
|
152
|
+
* server-side encryption with Amazon Web Services KMS</a> in the
|
|
153
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
273
154
|
* </li>
|
|
274
155
|
* <li>
|
|
275
|
-
* <p>
|
|
156
|
+
* <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account as the KMS key,
|
|
157
|
+
* then you must have these permissions on the key policy. If your IAM user or role is in a different account from the key, then you must have the permissions on both the key
|
|
158
|
+
* policy and your IAM user or role.</p>
|
|
276
159
|
* </li>
|
|
277
160
|
* <li>
|
|
278
|
-
* <p>
|
|
161
|
+
* <p>All <code>GET</code> and <code>PUT</code> requests for an object
|
|
162
|
+
* protected by KMS fail if you don't make them by using Secure Sockets
|
|
163
|
+
* Layer (SSL), Transport Layer Security (TLS), or Signature Version
|
|
164
|
+
* 4. For information about configuring any of the officially supported Amazon Web Services
|
|
165
|
+
* SDKs and Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version">Specifying the Signature Version in Request Authentication</a>
|
|
166
|
+
* in the <i>Amazon S3 User Guide</i>.</p>
|
|
279
167
|
* </li>
|
|
280
168
|
* </ul>
|
|
281
|
-
* <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
|
|
282
169
|
* </note>
|
|
170
|
+
* <p>For more information about server-side encryption with KMS keys
|
|
171
|
+
* (SSE-KMS), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting Data
|
|
172
|
+
* Using Server-Side Encryption with KMS keys</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
173
|
+
* </li>
|
|
174
|
+
* <li>
|
|
175
|
+
* <p>Use customer-provided encryption keys (SSE-C) – If you want to manage
|
|
176
|
+
* your own encryption keys, provide all the following headers in the
|
|
177
|
+
* request.</p>
|
|
178
|
+
* <ul>
|
|
179
|
+
* <li>
|
|
180
|
+
* <p>
|
|
181
|
+
* <code>x-amz-server-side-encryption-customer-algorithm</code>
|
|
182
|
+
* </p>
|
|
183
|
+
* </li>
|
|
184
|
+
* <li>
|
|
185
|
+
* <p>
|
|
186
|
+
* <code>x-amz-server-side-encryption-customer-key</code>
|
|
187
|
+
* </p>
|
|
188
|
+
* </li>
|
|
189
|
+
* <li>
|
|
190
|
+
* <p>
|
|
191
|
+
* <code>x-amz-server-side-encryption-customer-key-MD5</code>
|
|
192
|
+
* </p>
|
|
193
|
+
* </li>
|
|
194
|
+
* </ul>
|
|
195
|
+
* <p>For more information about server-side encryption with customer-provided
|
|
196
|
+
* encryption keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">
|
|
197
|
+
* Protecting data using server-side encryption with customer-provided
|
|
198
|
+
* encryption keys (SSE-C)</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
283
199
|
* </li>
|
|
284
200
|
* </ul>
|
|
285
|
-
*
|
|
201
|
+
* </li>
|
|
202
|
+
* <li>
|
|
286
203
|
* <p>
|
|
287
|
-
* <
|
|
288
|
-
* </p>
|
|
204
|
+
* <b>Directory buckets</b> -For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported.</p>
|
|
289
205
|
* </li>
|
|
290
206
|
* </ul>
|
|
291
207
|
* </dd>
|
|
208
|
+
* <dt>HTTP Host header syntax</dt>
|
|
209
|
+
* <dd>
|
|
210
|
+
* <p>
|
|
211
|
+
* <b>Directory buckets </b> - The HTTP Host header syntax is <code>
|
|
212
|
+
* <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
|
|
213
|
+
* </dd>
|
|
292
214
|
* </dl>
|
|
293
215
|
* <p>The following operations are related to <code>CreateMultipartUpload</code>:</p>
|
|
294
216
|
* <ul>
|
|
@@ -342,7 +264,7 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa
|
|
|
342
264
|
* "<keys>": "STRING_VALUE",
|
|
343
265
|
* },
|
|
344
266
|
* ServerSideEncryption: "AES256" || "aws:kms" || "aws:kms:dsse",
|
|
345
|
-
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
|
|
267
|
+
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
|
|
346
268
|
* WebsiteRedirectLocation: "STRING_VALUE",
|
|
347
269
|
* SSECustomerAlgorithm: "STRING_VALUE",
|
|
348
270
|
* SSECustomerKey: "STRING_VALUE",
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CreateSessionOutput, CreateSessionRequest } from "../models/models_0";
|
|
5
|
+
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSessionCommandInput extends CreateSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSessionCommandOutput extends CreateSessionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a session that establishes temporary security credentials to support fast authentication and authorization for the Zonal endpoint APIs on directory buckets.
|
|
27
|
+
* For more information about Zonal endpoint APIs that include the Availability Zone in the request endpoint, see
|
|
28
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html">S3 Express One Zone APIs</a> in the <i>Amazon S3 User Guide</i>.
|
|
29
|
+
* </p>
|
|
30
|
+
* <p>To make Zonal endpoint API requests on a directory bucket, use the <code>CreateSession</code>
|
|
31
|
+
* API operation. Specifically, you grant <code>s3express:CreateSession</code> permission to a
|
|
32
|
+
* bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the
|
|
33
|
+
* <code>CreateSession</code> API request on the bucket, which returns temporary security
|
|
34
|
+
* credentials that include the access key ID, secret access key, session token, and
|
|
35
|
+
* expiration. These credentials have associated permissions to access the Zonal endpoint APIs. After
|
|
36
|
+
* the session is created, you don’t need to use other policies to grant permissions to each
|
|
37
|
+
* Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your requests by
|
|
38
|
+
* applying the temporary security credentials of the session to the request headers and
|
|
39
|
+
* following the SigV4 protocol for authentication. You also apply the session token to the
|
|
40
|
+
* <code>x-amz-s3session-token</code> request header for authorization. Temporary security
|
|
41
|
+
* credentials are scoped to the bucket and expire after 5 minutes. After the expiration time,
|
|
42
|
+
* any calls that you make with those credentials will fail. You must use IAM credentials
|
|
43
|
+
* again to make a <code>CreateSession</code> API request that generates a new set of
|
|
44
|
+
* temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond
|
|
45
|
+
* the original specified interval.</p>
|
|
46
|
+
* <p>If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid
|
|
47
|
+
* service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to
|
|
48
|
+
* initiate and manage requests to the CreateSession API. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication">Performance guidelines and design patterns</a> in the
|
|
49
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
50
|
+
* <note>
|
|
51
|
+
* <ul>
|
|
52
|
+
* <li>
|
|
53
|
+
* <p>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</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
|
|
54
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
55
|
+
* </li>
|
|
56
|
+
* <li>
|
|
57
|
+
* <p>
|
|
58
|
+
* <b>
|
|
59
|
+
* <code>CopyObject</code> API operation</b> - Unlike other Zonal endpoint APIs, the <code>CopyObject</code> API operation doesn't use the temporary security credentials returned from the <code>CreateSession</code> API operation for authentication and authorization. For information about authentication and authorization of the <code>CopyObject</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>.</p>
|
|
60
|
+
* </li>
|
|
61
|
+
* <li>
|
|
62
|
+
* <p>
|
|
63
|
+
* <b>
|
|
64
|
+
* <code>HeadBucket</code> API operation</b> - Unlike other Zonal endpoint APIs, the <code>HeadBucket</code> API operation doesn't use the temporary security credentials returned from the <code>CreateSession</code> API operation for authentication and authorization. For information about authentication and authorization of the <code>HeadBucket</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a>.</p>
|
|
65
|
+
* </li>
|
|
66
|
+
* </ul>
|
|
67
|
+
* </note>
|
|
68
|
+
* <dl>
|
|
69
|
+
* <dt>Permissions</dt>
|
|
70
|
+
* <dd>
|
|
71
|
+
* <p>To obtain temporary security credentials, you must create a bucket policy or an IAM identity-based policy that
|
|
72
|
+
* grants <code>s3express:CreateSession</code> permission to the bucket. In a
|
|
73
|
+
* policy, you can have the <code>s3express:SessionMode</code> condition key to
|
|
74
|
+
* control who can create a <code>ReadWrite</code> or <code>ReadOnly</code> session.
|
|
75
|
+
* For more information about <code>ReadWrite</code> or <code>ReadOnly</code>
|
|
76
|
+
* sessions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters">
|
|
77
|
+
* <code>x-amz-create-session-mode</code>
|
|
78
|
+
* </a>. For example policies, see
|
|
79
|
+
* <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
|
|
80
|
+
* <i>Amazon S3 User Guide</i>. </p>
|
|
81
|
+
* <p>To grant cross-account access to Zonal endpoint APIs, the bucket policy should also grant both accounts the <code>s3express:CreateSession</code> permission.</p>
|
|
82
|
+
* </dd>
|
|
83
|
+
* <dt>HTTP Host header syntax</dt>
|
|
84
|
+
* <dd>
|
|
85
|
+
* <p>
|
|
86
|
+
* <b>Directory buckets </b> - The HTTP Host header syntax is <code>
|
|
87
|
+
* <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
|
|
88
|
+
* </dd>
|
|
89
|
+
* </dl>
|
|
90
|
+
* @example
|
|
91
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
92
|
+
* ```javascript
|
|
93
|
+
* import { S3Client, CreateSessionCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
94
|
+
* // const { S3Client, CreateSessionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
95
|
+
* const client = new S3Client(config);
|
|
96
|
+
* const input = { // CreateSessionRequest
|
|
97
|
+
* SessionMode: "ReadOnly" || "ReadWrite",
|
|
98
|
+
* Bucket: "STRING_VALUE", // required
|
|
99
|
+
* };
|
|
100
|
+
* const command = new CreateSessionCommand(input);
|
|
101
|
+
* const response = await client.send(command);
|
|
102
|
+
* // { // CreateSessionOutput
|
|
103
|
+
* // Credentials: { // SessionCredentials
|
|
104
|
+
* // AccessKeyId: "STRING_VALUE", // required
|
|
105
|
+
* // SecretAccessKey: "STRING_VALUE", // required
|
|
106
|
+
* // SessionToken: "STRING_VALUE", // required
|
|
107
|
+
* // Expiration: new Date("TIMESTAMP"), // required
|
|
108
|
+
* // },
|
|
109
|
+
* // };
|
|
110
|
+
*
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @param CreateSessionCommandInput - {@link CreateSessionCommandInput}
|
|
114
|
+
* @returns {@link CreateSessionCommandOutput}
|
|
115
|
+
* @see {@link CreateSessionCommandInput} for command's `input` shape.
|
|
116
|
+
* @see {@link CreateSessionCommandOutput} for command's `response` shape.
|
|
117
|
+
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link NoSuchBucket} (client fault)
|
|
120
|
+
* <p>The specified bucket does not exist.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link S3ServiceException}
|
|
123
|
+
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
export declare class CreateSessionCommand extends $Command<CreateSessionCommandInput, CreateSessionCommandOutput, S3ClientResolvedConfig> {
|
|
127
|
+
readonly input: CreateSessionCommandInput;
|
|
128
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
constructor(input: CreateSessionCommandInput);
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateSessionCommandInput, CreateSessionCommandOutput>;
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
private serialize;
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
private deserialize;
|
|
145
|
+
}
|
|
@@ -23,7 +23,10 @@ export interface DeleteBucketAnalyticsConfigurationCommandOutput extends __Metad
|
|
|
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>Deletes an analytics configuration for the bucket (specified by the analytics
|
|
27
30
|
* configuration ID).</p>
|
|
28
31
|
* <p>To use this operation, you must have permissions to perform the
|
|
29
32
|
* <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission
|