@aws-sdk/client-s3 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/S3.js +0 -3
- package/dist-cjs/S3Client.js +0 -8
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -62
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -133
- package/dist-cjs/commands/CopyObjectCommand.js +0 -193
- package/dist-cjs/commands/CreateBucketCommand.js +0 -142
- package/dist-cjs/commands/CreateMultipartUploadCommand.js +0 -281
- package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/DeleteBucketCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketCorsCommand.js +0 -45
- package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +0 -47
- package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +0 -59
- package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +0 -42
- package/dist-cjs/commands/DeleteBucketPolicyCommand.js +0 -56
- package/dist-cjs/commands/DeleteBucketReplicationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketTaggingCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +0 -50
- package/dist-cjs/commands/DeleteObjectCommand.js +0 -54
- package/dist-cjs/commands/DeleteObjectTaggingCommand.js +0 -48
- package/dist-cjs/commands/DeleteObjectsCommand.js +0 -80
- package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +0 -52
- package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +0 -50
- package/dist-cjs/commands/GetBucketAclCommand.js +0 -39
- package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketCorsCommand.js +0 -44
- package/dist-cjs/commands/GetBucketEncryptionCommand.js +0 -45
- package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +0 -79
- package/dist-cjs/commands/GetBucketLocationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketLoggingCommand.js +0 -39
- package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +0 -60
- package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +0 -41
- package/dist-cjs/commands/GetBucketPolicyCommand.js +0 -50
- package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +0 -54
- package/dist-cjs/commands/GetBucketReplicationCommand.js +0 -58
- package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +0 -34
- package/dist-cjs/commands/GetBucketTaggingCommand.js +0 -55
- package/dist-cjs/commands/GetBucketVersioningCommand.js +0 -48
- package/dist-cjs/commands/GetBucketWebsiteCommand.js +0 -44
- package/dist-cjs/commands/GetObjectAclCommand.js +0 -50
- package/dist-cjs/commands/GetObjectCommand.js +0 -204
- package/dist-cjs/commands/GetObjectLegalHoldCommand.js +0 -25
- package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +0 -27
- package/dist-cjs/commands/GetObjectRetentionCommand.js +0 -25
- package/dist-cjs/commands/GetObjectTaggingCommand.js +0 -51
- package/dist-cjs/commands/GetObjectTorrentCommand.js +0 -40
- package/dist-cjs/commands/GetPublicAccessBlockCommand.js +0 -63
- package/dist-cjs/commands/HeadBucketCommand.js +0 -39
- package/dist-cjs/commands/HeadObjectCommand.js +0 -135
- package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +0 -63
- package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +0 -46
- package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +0 -62
- package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +0 -64
- package/dist-cjs/commands/ListBucketsCommand.js +0 -24
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -74
- package/dist-cjs/commands/ListObjectVersionsCommand.js +0 -62
- package/dist-cjs/commands/ListObjectsCommand.js +0 -61
- package/dist-cjs/commands/ListObjectsV2Command.js +0 -65
- package/dist-cjs/commands/ListPartsCommand.js +0 -68
- package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +0 -69
- package/dist-cjs/commands/PutBucketAclCommand.js +0 -213
- package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +0 -139
- package/dist-cjs/commands/PutBucketCorsCommand.js +0 -80
- package/dist-cjs/commands/PutBucketEncryptionCommand.js +0 -56
- package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +0 -106
- package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +0 -124
- package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +0 -117
- package/dist-cjs/commands/PutBucketLoggingCommand.js +0 -103
- package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +0 -74
- package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +0 -85
- package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +0 -40
- package/dist-cjs/commands/PutBucketPolicyCommand.js +0 -53
- package/dist-cjs/commands/PutBucketReplicationCommand.js +0 -93
- package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +0 -42
- package/dist-cjs/commands/PutBucketTaggingCommand.js +0 -102
- package/dist-cjs/commands/PutBucketVersioningCommand.js +0 -72
- package/dist-cjs/commands/PutBucketWebsiteCommand.js +0 -149
- package/dist-cjs/commands/PutObjectAclCommand.js +0 -200
- package/dist-cjs/commands/PutObjectCommand.js +0 -118
- package/dist-cjs/commands/PutObjectLegalHoldCommand.js +0 -27
- package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +0 -44
- package/dist-cjs/commands/PutObjectRetentionCommand.js +0 -36
- package/dist-cjs/commands/PutObjectTaggingCommand.js +0 -127
- package/dist-cjs/commands/PutPublicAccessBlockCommand.js +0 -68
- package/dist-cjs/commands/RestoreObjectCommand.js +0 -315
- package/dist-cjs/commands/SelectObjectContentCommand.js +0 -140
- package/dist-cjs/commands/UploadPartCommand.js +0 -161
- package/dist-cjs/commands/UploadPartCopyCommand.js +0 -202
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -46
- package/dist-cjs/commands/index.js +95 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -101
- package/dist-cjs/models/models_0.js +0 -753
- package/dist-cjs/models/models_1.js +0 -96
- package/dist-cjs/pagination/ListObjectsV2Paginator.js +0 -10
- package/dist-cjs/pagination/ListPartsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restXml.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +7 -0
- package/dist-cjs/waiters/waitForBucketExists.js +0 -9
- package/dist-cjs/waiters/waitForBucketNotExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectNotExists.js +0 -9
- package/dist-es/commands/index.js +92 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -101
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-types/commands/index.d.ts +92 -0
- package/dist-types/index.d.ts +5 -101
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/S3.d.ts +93 -5172
- package/dist-types/ts3.4/S3Client.d.ts +30 -109
- package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -129
- package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -189
- package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -138
- package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -277
- package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -200
- package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -131
- package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -61
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -65
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -209
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -135
- package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -102
- package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -120
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -113
- package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -99
- package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -81
- package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -89
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -98
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -68
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -145
- package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -196
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +5 -121
- package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -123
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -311
- package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -136
- package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +5 -164
- package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -198
- package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +5 -49
- package/dist-types/ts3.4/commands/index.d.ts +92 -0
- package/dist-types/ts3.4/index.d.ts +5 -101
- package/dist-types/ts3.4/models/models_0.d.ts +1305 -7281
- package/dist-types/ts3.4/models/models_1.d.ts +223 -956
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +4 -0
- package/package.json +46 -46
|
@@ -6,218 +6,11 @@ export interface PutBucketAclCommandInput extends PutBucketAclRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutBucketAclCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Sets the permissions on an existing bucket using access control lists (ACL). For more
|
|
11
|
-
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. To set
|
|
12
|
-
* the ACL of a bucket, you must have <code>WRITE_ACP</code> permission.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>You can use one of the following two ways to set a bucket's permissions:</p>
|
|
15
|
-
* <ul>
|
|
16
|
-
* <li>
|
|
17
|
-
* <p>Specify the ACL in the request body</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>Specify permissions using request headers</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* </ul>
|
|
23
|
-
*
|
|
24
|
-
* <note>
|
|
25
|
-
* <p>You cannot specify access permission using both the body and the request
|
|
26
|
-
* headers.</p>
|
|
27
|
-
* </note>
|
|
28
|
-
*
|
|
29
|
-
* <p>Depending on your application needs, you may choose to set the ACL on a bucket using
|
|
30
|
-
* either the request body or the headers. For example, if you have an existing application
|
|
31
|
-
* that updates a bucket ACL using the request body, then you can continue to use that
|
|
32
|
-
* approach.</p>
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* <p>
|
|
36
|
-
* <b>Access Permissions</b>
|
|
37
|
-
* </p>
|
|
38
|
-
* <p>You can set access permissions using one of the following methods:</p>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. Amazon S3 supports
|
|
42
|
-
* a set of predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL
|
|
43
|
-
* has a predefined set of grantees and permissions. Specify the canned ACL name as the
|
|
44
|
-
* value of <code>x-amz-acl</code>. If you use this header, you cannot use other access
|
|
45
|
-
* control-specific headers in your request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a>.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Specify access permissions explicitly with the <code>x-amz-grant-read</code>,
|
|
49
|
-
* <code>x-amz-grant-read-acp</code>, <code>x-amz-grant-write-acp</code>, and
|
|
50
|
-
* <code>x-amz-grant-full-control</code> headers. When using these headers, you
|
|
51
|
-
* specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who
|
|
52
|
-
* will receive the permission. If you use these ACL-specific headers, you cannot use
|
|
53
|
-
* the <code>x-amz-acl</code> header to set a canned ACL. These parameters map to the
|
|
54
|
-
* set of permissions that Amazon S3 supports in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL)
|
|
55
|
-
* Overview</a>.</p>
|
|
56
|
-
* <p>You specify each grantee as a type=value pair, where the type is one of the
|
|
57
|
-
* following:</p>
|
|
58
|
-
* <ul>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>
|
|
61
|
-
* <code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>
|
|
65
|
-
* <code>uri</code> – if you are granting permissions to a predefined
|
|
66
|
-
* group</p>
|
|
67
|
-
* </li>
|
|
68
|
-
* <li>
|
|
69
|
-
* <p>
|
|
70
|
-
* <code>emailAddress</code> – if the value specified is the email address of
|
|
71
|
-
* an Amazon Web Services account</p>
|
|
72
|
-
* <note>
|
|
73
|
-
* <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
|
|
74
|
-
* <ul>
|
|
75
|
-
* <li>
|
|
76
|
-
* <p>US East (N. Virginia)</p>
|
|
77
|
-
* </li>
|
|
78
|
-
* <li>
|
|
79
|
-
* <p>US West (N. California)</p>
|
|
80
|
-
* </li>
|
|
81
|
-
* <li>
|
|
82
|
-
* <p> US West (Oregon)</p>
|
|
83
|
-
* </li>
|
|
84
|
-
* <li>
|
|
85
|
-
* <p> Asia Pacific (Singapore)</p>
|
|
86
|
-
* </li>
|
|
87
|
-
* <li>
|
|
88
|
-
* <p>Asia Pacific (Sydney)</p>
|
|
89
|
-
* </li>
|
|
90
|
-
* <li>
|
|
91
|
-
* <p>Asia Pacific (Tokyo)</p>
|
|
92
|
-
* </li>
|
|
93
|
-
* <li>
|
|
94
|
-
* <p>Europe (Ireland)</p>
|
|
95
|
-
* </li>
|
|
96
|
-
* <li>
|
|
97
|
-
* <p>South America (São Paulo)</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* </ul>
|
|
100
|
-
* <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>
|
|
101
|
-
* </note>
|
|
102
|
-
* </li>
|
|
103
|
-
* </ul>
|
|
104
|
-
* <p>For example, the following <code>x-amz-grant-write</code> header grants create,
|
|
105
|
-
* overwrite, and delete objects permission to LogDelivery group predefined by Amazon S3 and
|
|
106
|
-
* two Amazon Web Services accounts identified by their email addresses.</p>
|
|
107
|
-
* <p>
|
|
108
|
-
* <code>x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery",
|
|
109
|
-
* id="111122223333", id="555566667777" </code>
|
|
110
|
-
* </p>
|
|
111
|
-
*
|
|
112
|
-
* </li>
|
|
113
|
-
* </ul>
|
|
114
|
-
* <p>You can use either a canned ACL or specify access permissions explicitly. You cannot do
|
|
115
|
-
* both.</p>
|
|
116
|
-
* <p>
|
|
117
|
-
* <b>Grantee Values</b>
|
|
118
|
-
* </p>
|
|
119
|
-
* <p>You can specify the person (grantee) to whom you're assigning access rights (using
|
|
120
|
-
* request elements) in the following ways:</p>
|
|
121
|
-
* <ul>
|
|
122
|
-
* <li>
|
|
123
|
-
* <p>By the person's ID:</p>
|
|
124
|
-
* <p>
|
|
125
|
-
* <code><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
126
|
-
* xsi:type="CanonicalUser"><ID><>ID<></ID><DisplayName><>GranteesEmail<></DisplayName>
|
|
127
|
-
* </Grantee></code>
|
|
128
|
-
* </p>
|
|
129
|
-
* <p>DisplayName is optional and ignored in the request</p>
|
|
130
|
-
* </li>
|
|
131
|
-
* <li>
|
|
132
|
-
* <p>By URI:</p>
|
|
133
|
-
* <p>
|
|
134
|
-
* <code><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
135
|
-
* xsi:type="Group"><URI><>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<></URI></Grantee></code>
|
|
136
|
-
* </p>
|
|
137
|
-
* </li>
|
|
138
|
-
* <li>
|
|
139
|
-
* <p>By Email address:</p>
|
|
140
|
-
* <p>
|
|
141
|
-
* <code><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
142
|
-
* xsi:type="AmazonCustomerByEmail"><EmailAddress><>Grantees@email.com<></EmailAddress>lt;/Grantee></code>
|
|
143
|
-
* </p>
|
|
144
|
-
* <p>The grantee is resolved to the CanonicalUser and, in a response to a GET Object
|
|
145
|
-
* acl request, appears as the CanonicalUser. </p>
|
|
146
|
-
* <note>
|
|
147
|
-
* <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
|
|
148
|
-
* <ul>
|
|
149
|
-
* <li>
|
|
150
|
-
* <p>US East (N. Virginia)</p>
|
|
151
|
-
* </li>
|
|
152
|
-
* <li>
|
|
153
|
-
* <p>US West (N. California)</p>
|
|
154
|
-
* </li>
|
|
155
|
-
* <li>
|
|
156
|
-
* <p> US West (Oregon)</p>
|
|
157
|
-
* </li>
|
|
158
|
-
* <li>
|
|
159
|
-
* <p> Asia Pacific (Singapore)</p>
|
|
160
|
-
* </li>
|
|
161
|
-
* <li>
|
|
162
|
-
* <p>Asia Pacific (Sydney)</p>
|
|
163
|
-
* </li>
|
|
164
|
-
* <li>
|
|
165
|
-
* <p>Asia Pacific (Tokyo)</p>
|
|
166
|
-
* </li>
|
|
167
|
-
* <li>
|
|
168
|
-
* <p>Europe (Ireland)</p>
|
|
169
|
-
* </li>
|
|
170
|
-
* <li>
|
|
171
|
-
* <p>South America (São Paulo)</p>
|
|
172
|
-
* </li>
|
|
173
|
-
* </ul>
|
|
174
|
-
* <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>
|
|
175
|
-
* </note>
|
|
176
|
-
* </li>
|
|
177
|
-
* </ul>
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* <p class="title">
|
|
181
|
-
* <b>Related Resources</b>
|
|
182
|
-
* </p>
|
|
183
|
-
* <ul>
|
|
184
|
-
* <li>
|
|
185
|
-
* <p>
|
|
186
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>
|
|
187
|
-
* </p>
|
|
188
|
-
* </li>
|
|
189
|
-
* <li>
|
|
190
|
-
* <p>
|
|
191
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html">DeleteBucket</a>
|
|
192
|
-
* </p>
|
|
193
|
-
* </li>
|
|
194
|
-
* <li>
|
|
195
|
-
* <p>
|
|
196
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a>
|
|
197
|
-
* </p>
|
|
198
|
-
* </li>
|
|
199
|
-
* </ul>
|
|
200
|
-
* @example
|
|
201
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
202
|
-
* ```javascript
|
|
203
|
-
* import { S3Client, PutBucketAclCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
204
|
-
* // const { S3Client, PutBucketAclCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
205
|
-
* const client = new S3Client(config);
|
|
206
|
-
* const command = new PutBucketAclCommand(input);
|
|
207
|
-
* const response = await client.send(command);
|
|
208
|
-
* ```
|
|
209
|
-
*
|
|
210
|
-
* @see {@link PutBucketAclCommandInput} for command's `input` shape.
|
|
211
|
-
* @see {@link PutBucketAclCommandOutput} for command's `response` shape.
|
|
212
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
9
|
+
|
|
215
10
|
export declare class PutBucketAclCommand extends $Command<PutBucketAclCommandInput, PutBucketAclCommandOutput, S3ClientResolvedConfig> {
|
|
216
11
|
readonly input: PutBucketAclCommandInput;
|
|
217
12
|
constructor(input: PutBucketAclCommandInput);
|
|
218
|
-
|
|
219
|
-
* @internal
|
|
220
|
-
*/
|
|
13
|
+
|
|
221
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutBucketAclCommandInput, PutBucketAclCommandOutput>;
|
|
222
15
|
private serialize;
|
|
223
16
|
private deserialize;
|
|
@@ -6,144 +6,11 @@ export interface PutBucketAnalyticsConfigurationCommandInput extends PutBucketAn
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutBucketAnalyticsConfigurationCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Sets an analytics configuration for the bucket (specified by the analytics configuration
|
|
11
|
-
* ID). You can have up to 1,000 analytics configurations per bucket.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>You can choose to have storage class analysis export analysis reports sent to a
|
|
14
|
-
* comma-separated values (CSV) flat file. See the <code>DataExport</code> request element.
|
|
15
|
-
* Reports are updated daily and are based on the object filters that you configure. When
|
|
16
|
-
* selecting data export, you specify a destination bucket and an optional destination prefix
|
|
17
|
-
* where the file is written. You can export the data to a destination bucket in a different
|
|
18
|
-
* account. However, the destination bucket must be in the same Region as the bucket that you
|
|
19
|
-
* are making the PUT analytics configuration to. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics – Storage Class
|
|
20
|
-
* Analysis</a>. </p>
|
|
21
|
-
*
|
|
22
|
-
* <important>
|
|
23
|
-
* <p>You must create a bucket policy on the destination bucket where the exported file is
|
|
24
|
-
* written to grant permissions to Amazon S3 to write objects to the bucket. For an example
|
|
25
|
-
* policy, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9">Granting Permissions for Amazon S3 Inventory and Storage Class Analysis</a>.</p>
|
|
26
|
-
* </important>
|
|
27
|
-
*
|
|
28
|
-
* <p>To use this operation, you must have permissions to perform the
|
|
29
|
-
* <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission
|
|
30
|
-
* by default. The bucket owner can grant this permission to others. For more information
|
|
31
|
-
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
|
|
32
|
-
* Resources</a>.</p>
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* <p class="title">
|
|
36
|
-
* <b>Special Errors</b>
|
|
37
|
-
* </p>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <ul>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>
|
|
43
|
-
* <i>HTTP Error: HTTP 400 Bad Request</i>
|
|
44
|
-
* </p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>
|
|
48
|
-
* <i>Code: InvalidArgument</i>
|
|
49
|
-
* </p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>
|
|
53
|
-
* <i>Cause: Invalid argument.</i>
|
|
54
|
-
* </p>
|
|
55
|
-
* </li>
|
|
56
|
-
* </ul>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <ul>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>
|
|
62
|
-
* <i>HTTP Error: HTTP 400 Bad Request</i>
|
|
63
|
-
* </p>
|
|
64
|
-
* </li>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>
|
|
67
|
-
* <i>Code: TooManyConfigurations</i>
|
|
68
|
-
* </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>
|
|
72
|
-
* <i>Cause: You are attempting to create a new configuration but have
|
|
73
|
-
* already reached the 1,000-configuration limit.</i>
|
|
74
|
-
* </p>
|
|
75
|
-
* </li>
|
|
76
|
-
* </ul>
|
|
77
|
-
* </li>
|
|
78
|
-
* <li>
|
|
79
|
-
* <ul>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>
|
|
82
|
-
* <i>HTTP Error: HTTP 403 Forbidden</i>
|
|
83
|
-
* </p>
|
|
84
|
-
* </li>
|
|
85
|
-
* <li>
|
|
86
|
-
* <p>
|
|
87
|
-
* <i>Code: AccessDenied</i>
|
|
88
|
-
* </p>
|
|
89
|
-
* </li>
|
|
90
|
-
* <li>
|
|
91
|
-
* <p>
|
|
92
|
-
* <i>Cause: You are not the owner of the specified bucket, or you do
|
|
93
|
-
* not have the s3:PutAnalyticsConfiguration bucket permission to set the
|
|
94
|
-
* configuration on the bucket.</i>
|
|
95
|
-
* </p>
|
|
96
|
-
* </li>
|
|
97
|
-
* </ul>
|
|
98
|
-
* </li>
|
|
99
|
-
* </ul>
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* <p class="title">
|
|
107
|
-
* <b>Related Resources</b>
|
|
108
|
-
* </p>
|
|
109
|
-
* <ul>
|
|
110
|
-
* <li>
|
|
111
|
-
* <p>
|
|
112
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAnalyticsConfiguration.html">GetBucketAnalyticsConfiguration</a>
|
|
113
|
-
* </p>
|
|
114
|
-
* </li>
|
|
115
|
-
* <li>
|
|
116
|
-
* <p>
|
|
117
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketAnalyticsConfiguration.html">DeleteBucketAnalyticsConfiguration</a>
|
|
118
|
-
* </p>
|
|
119
|
-
* </li>
|
|
120
|
-
* <li>
|
|
121
|
-
* <p>
|
|
122
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html">ListBucketAnalyticsConfigurations</a>
|
|
123
|
-
* </p>
|
|
124
|
-
* </li>
|
|
125
|
-
* </ul>
|
|
126
|
-
* @example
|
|
127
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
128
|
-
* ```javascript
|
|
129
|
-
* import { S3Client, PutBucketAnalyticsConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
130
|
-
* // const { S3Client, PutBucketAnalyticsConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
131
|
-
* const client = new S3Client(config);
|
|
132
|
-
* const command = new PutBucketAnalyticsConfigurationCommand(input);
|
|
133
|
-
* const response = await client.send(command);
|
|
134
|
-
* ```
|
|
135
|
-
*
|
|
136
|
-
* @see {@link PutBucketAnalyticsConfigurationCommandInput} for command's `input` shape.
|
|
137
|
-
* @see {@link PutBucketAnalyticsConfigurationCommandOutput} for command's `response` shape.
|
|
138
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
9
|
+
|
|
141
10
|
export declare class PutBucketAnalyticsConfigurationCommand extends $Command<PutBucketAnalyticsConfigurationCommandInput, PutBucketAnalyticsConfigurationCommandOutput, S3ClientResolvedConfig> {
|
|
142
11
|
readonly input: PutBucketAnalyticsConfigurationCommandInput;
|
|
143
12
|
constructor(input: PutBucketAnalyticsConfigurationCommandInput);
|
|
144
|
-
|
|
145
|
-
* @internal
|
|
146
|
-
*/
|
|
13
|
+
|
|
147
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutBucketAnalyticsConfigurationCommandInput, PutBucketAnalyticsConfigurationCommandOutput>;
|
|
148
15
|
private serialize;
|
|
149
16
|
private deserialize;
|
|
@@ -6,85 +6,11 @@ export interface PutBucketCorsCommandInput extends PutBucketCorsRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutBucketCorsCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Sets the <code>cors</code> configuration for your bucket. If the configuration exists,
|
|
11
|
-
* Amazon S3 replaces it.</p>
|
|
12
|
-
* <p>To use this operation, you must be allowed to perform the <code>s3:PutBucketCORS</code>
|
|
13
|
-
* action. By default, the bucket owner has this permission and can grant it to others.</p>
|
|
14
|
-
* <p>You set this configuration on a bucket so that the bucket can service cross-origin
|
|
15
|
-
* requests. For example, you might want to enable a request whose origin is
|
|
16
|
-
* <code>http://www.example.com</code> to access your Amazon S3 bucket at
|
|
17
|
-
* <code>my.example.bucket.com</code> by using the browser's <code>XMLHttpRequest</code>
|
|
18
|
-
* capability.</p>
|
|
19
|
-
* <p>To enable cross-origin resource sharing (CORS) on a bucket, you add the
|
|
20
|
-
* <code>cors</code> subresource to the bucket. The <code>cors</code> subresource is an XML
|
|
21
|
-
* document in which you configure rules that identify origins and the HTTP methods that can
|
|
22
|
-
* be executed on your bucket. The document is limited to 64 KB in size. </p>
|
|
23
|
-
* <p>When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request) against a
|
|
24
|
-
* bucket, it evaluates the <code>cors</code> configuration on the bucket and uses the first
|
|
25
|
-
* <code>CORSRule</code> rule that matches the incoming browser request to enable a
|
|
26
|
-
* cross-origin request. For a rule to match, the following conditions must be met:</p>
|
|
27
|
-
* <ul>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>The request's <code>Origin</code> header must match <code>AllowedOrigin</code>
|
|
30
|
-
* elements.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>The request method (for example, GET, PUT, HEAD, and so on) or the
|
|
34
|
-
* <code>Access-Control-Request-Method</code> header in case of a pre-flight
|
|
35
|
-
* <code>OPTIONS</code> request must be one of the <code>AllowedMethod</code>
|
|
36
|
-
* elements. </p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Every header specified in the <code>Access-Control-Request-Headers</code> request
|
|
40
|
-
* header of a pre-flight request must match an <code>AllowedHeader</code> element.
|
|
41
|
-
* </p>
|
|
42
|
-
* </li>
|
|
43
|
-
* </ul>
|
|
44
|
-
* <p> For more information about CORS, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling
|
|
45
|
-
* Cross-Origin Resource Sharing</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
46
|
-
*
|
|
47
|
-
* <p class="title">
|
|
48
|
-
* <b>Related Resources</b>
|
|
49
|
-
* </p>
|
|
50
|
-
* <ul>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>
|
|
53
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketCors.html">GetBucketCors</a>
|
|
54
|
-
* </p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html">DeleteBucketCors</a>
|
|
59
|
-
* </p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html">RESTOPTIONSobject</a>
|
|
64
|
-
* </p>
|
|
65
|
-
* </li>
|
|
66
|
-
* </ul>
|
|
67
|
-
* @example
|
|
68
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
69
|
-
* ```javascript
|
|
70
|
-
* import { S3Client, PutBucketCorsCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
71
|
-
* // const { S3Client, PutBucketCorsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
72
|
-
* const client = new S3Client(config);
|
|
73
|
-
* const command = new PutBucketCorsCommand(input);
|
|
74
|
-
* const response = await client.send(command);
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @see {@link PutBucketCorsCommandInput} for command's `input` shape.
|
|
78
|
-
* @see {@link PutBucketCorsCommandOutput} for command's `response` shape.
|
|
79
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
9
|
+
|
|
82
10
|
export declare class PutBucketCorsCommand extends $Command<PutBucketCorsCommandInput, PutBucketCorsCommandOutput, S3ClientResolvedConfig> {
|
|
83
11
|
readonly input: PutBucketCorsCommandInput;
|
|
84
12
|
constructor(input: PutBucketCorsCommandInput);
|
|
85
|
-
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
13
|
+
|
|
88
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutBucketCorsCommandInput, PutBucketCorsCommandOutput>;
|
|
89
15
|
private serialize;
|
|
90
16
|
private deserialize;
|
|
@@ -6,61 +6,11 @@ export interface PutBucketEncryptionCommandInput extends PutBucketEncryptionRequ
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutBucketEncryptionCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>This action uses the <code>encryption</code> subresource to configure default
|
|
11
|
-
* encryption and Amazon S3 Bucket Key for an existing bucket.</p>
|
|
12
|
-
* <p>Default encryption for a bucket can use server-side encryption with Amazon S3-managed keys
|
|
13
|
-
* (SSE-S3) or customer managed keys (SSE-KMS). If you specify default encryption
|
|
14
|
-
* using SSE-KMS, you can also configure Amazon S3 Bucket Key. For information about default
|
|
15
|
-
* encryption, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 default bucket encryption</a>
|
|
16
|
-
* in the <i>Amazon S3 User Guide</i>. For more information about S3 Bucket Keys,
|
|
17
|
-
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html">Amazon S3 Bucket Keys</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
18
|
-
* <important>
|
|
19
|
-
* <p>This action requires Amazon Web Services Signature Version 4. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html"> Authenticating Requests (Amazon Web Services Signature
|
|
20
|
-
* Version 4)</a>. </p>
|
|
21
|
-
* </important>
|
|
22
|
-
* <p>To use this operation, you must have permissions to perform the
|
|
23
|
-
* <code>s3:PutEncryptionConfiguration</code> action. The bucket owner has this permission
|
|
24
|
-
* by default. The bucket owner can grant this permission to others. For more information
|
|
25
|
-
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
|
|
26
|
-
* Resources</a> in the Amazon S3 User Guide. </p>
|
|
27
|
-
*
|
|
28
|
-
* <p class="title">
|
|
29
|
-
* <b>Related Resources</b>
|
|
30
|
-
* </p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html">GetBucketEncryption</a>
|
|
35
|
-
* </p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>
|
|
39
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html">DeleteBucketEncryption</a>
|
|
40
|
-
* </p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { S3Client, PutBucketEncryptionCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
47
|
-
* // const { S3Client, PutBucketEncryptionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
48
|
-
* const client = new S3Client(config);
|
|
49
|
-
* const command = new PutBucketEncryptionCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link PutBucketEncryptionCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link PutBucketEncryptionCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
9
|
+
|
|
58
10
|
export declare class PutBucketEncryptionCommand extends $Command<PutBucketEncryptionCommandInput, PutBucketEncryptionCommandOutput, S3ClientResolvedConfig> {
|
|
59
11
|
readonly input: PutBucketEncryptionCommandInput;
|
|
60
12
|
constructor(input: PutBucketEncryptionCommandInput);
|
|
61
|
-
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
13
|
+
|
|
64
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutBucketEncryptionCommandInput, PutBucketEncryptionCommandOutput>;
|
|
65
15
|
private serialize;
|
|
66
16
|
private deserialize;
|
|
@@ -6,111 +6,11 @@ export interface PutBucketIntelligentTieringConfigurationCommandInput extends Pu
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutBucketIntelligentTieringConfigurationCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Puts a S3 Intelligent-Tiering configuration to the specified bucket.
|
|
11
|
-
* You can have up to 1,000 S3 Intelligent-Tiering configurations per bucket.</p>
|
|
12
|
-
* <p>The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in two low latency and high throughput access tiers. For data that can be accessed asynchronously, you can choose to activate automatic archiving capabilities within the S3 Intelligent-Tiering storage class.</p>
|
|
13
|
-
* <p>The S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.</p>
|
|
14
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access">Storage class for automatically optimizing frequently and infrequently accessed objects</a>.</p>
|
|
15
|
-
* <p>Operations related to
|
|
16
|
-
* <code>PutBucketIntelligentTieringConfiguration</code> include: </p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>
|
|
20
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketIntelligentTieringConfiguration.html">DeleteBucketIntelligentTieringConfiguration</a>
|
|
21
|
-
* </p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>
|
|
25
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketIntelligentTieringConfiguration.html">GetBucketIntelligentTieringConfiguration</a>
|
|
26
|
-
* </p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>
|
|
30
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketIntelligentTieringConfigurations.html">ListBucketIntelligentTieringConfigurations</a>
|
|
31
|
-
* </p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
* <note>
|
|
35
|
-
* <p>You only need S3 Intelligent-Tiering enabled on a bucket if you want to automatically
|
|
36
|
-
* move objects stored in the S3 Intelligent-Tiering storage class to the
|
|
37
|
-
* Archive Access or Deep Archive Access tier.</p>
|
|
38
|
-
* </note>
|
|
39
|
-
*
|
|
40
|
-
* <p class="title">
|
|
41
|
-
* <b>Special Errors</b>
|
|
42
|
-
* </p>
|
|
43
|
-
* <ul>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p class="title">
|
|
46
|
-
* <b>HTTP 400 Bad Request Error</b>
|
|
47
|
-
* </p>
|
|
48
|
-
* <ul>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>
|
|
51
|
-
* <i>Code:</i> InvalidArgument</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>
|
|
55
|
-
* <i>Cause:</i> Invalid Argument</p>
|
|
56
|
-
* </li>
|
|
57
|
-
* </ul>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p class="title">
|
|
61
|
-
* <b>HTTP 400 Bad Request Error</b>
|
|
62
|
-
* </p>
|
|
63
|
-
* <ul>
|
|
64
|
-
* <li>
|
|
65
|
-
* <p>
|
|
66
|
-
* <i>Code:</i> TooManyConfigurations</p>
|
|
67
|
-
* </li>
|
|
68
|
-
* <li>
|
|
69
|
-
* <p>
|
|
70
|
-
* <i>Cause:</i> You are attempting to create a new configuration
|
|
71
|
-
* but have already reached the 1,000-configuration limit. </p>
|
|
72
|
-
* </li>
|
|
73
|
-
* </ul>
|
|
74
|
-
* </li>
|
|
75
|
-
* <li>
|
|
76
|
-
* <p class="title">
|
|
77
|
-
* <b>HTTP 403 Forbidden Error</b>
|
|
78
|
-
* </p>
|
|
79
|
-
* <ul>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>
|
|
82
|
-
* <i>Code:</i> AccessDenied</p>
|
|
83
|
-
* </li>
|
|
84
|
-
* <li>
|
|
85
|
-
* <p>
|
|
86
|
-
* <i>Cause:</i> You are not the owner of the specified bucket,
|
|
87
|
-
* or you do not have the <code>s3:PutIntelligentTieringConfiguration</code> bucket
|
|
88
|
-
* permission to set the configuration on the bucket. </p>
|
|
89
|
-
* </li>
|
|
90
|
-
* </ul>
|
|
91
|
-
* </li>
|
|
92
|
-
* </ul>
|
|
93
|
-
* @example
|
|
94
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
95
|
-
* ```javascript
|
|
96
|
-
* import { S3Client, PutBucketIntelligentTieringConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
97
|
-
* // const { S3Client, PutBucketIntelligentTieringConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
98
|
-
* const client = new S3Client(config);
|
|
99
|
-
* const command = new PutBucketIntelligentTieringConfigurationCommand(input);
|
|
100
|
-
* const response = await client.send(command);
|
|
101
|
-
* ```
|
|
102
|
-
*
|
|
103
|
-
* @see {@link PutBucketIntelligentTieringConfigurationCommandInput} for command's `input` shape.
|
|
104
|
-
* @see {@link PutBucketIntelligentTieringConfigurationCommandOutput} for command's `response` shape.
|
|
105
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
106
|
-
*
|
|
107
|
-
*/
|
|
9
|
+
|
|
108
10
|
export declare class PutBucketIntelligentTieringConfigurationCommand extends $Command<PutBucketIntelligentTieringConfigurationCommandInput, PutBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig> {
|
|
109
11
|
readonly input: PutBucketIntelligentTieringConfigurationCommandInput;
|
|
110
12
|
constructor(input: PutBucketIntelligentTieringConfigurationCommandInput);
|
|
111
|
-
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
13
|
+
|
|
114
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutBucketIntelligentTieringConfigurationCommandInput, PutBucketIntelligentTieringConfigurationCommandOutput>;
|
|
115
15
|
private serialize;
|
|
116
16
|
private deserialize;
|