@aws-sdk/client-s3 3.353.0 → 3.357.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restXml.js +57 -55
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/protocols/Aws_restXml.js +9 -7
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/S3Client.d.ts +1 -1
- package/dist-types/commands/CopyObjectCommand.d.ts +26 -23
- package/dist-types/commands/CreateBucketCommand.d.ts +32 -103
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +3 -1
- package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +3 -3
- package/dist-types/commands/GetObjectCommand.d.ts +48 -47
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
- package/dist-types/commands/HeadObjectCommand.d.ts +19 -12
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +34 -32
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +2 -0
- package/dist-types/commands/ListObjectsCommand.d.ts +1 -0
- package/dist-types/commands/ListObjectsV2Command.d.ts +1 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +11 -10
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +7 -6
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutObjectCommand.d.ts +39 -41
- package/dist-types/commands/RestoreObjectCommand.d.ts +5 -5
- package/dist-types/commands/SelectObjectContentCommand.d.ts +9 -4
- package/dist-types/commands/UploadPartCommand.d.ts +3 -6
- package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +3 -6
- package/dist-types/models/models_0.d.ts +107 -56
- package/dist-types/models/models_1.d.ts +9 -9
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +6 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +6 -6
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -0
- package/package.json +43 -44
|
@@ -40,7 +40,7 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
40
40
|
* request types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket">HTTP Host
|
|
41
41
|
* Header Bucket Specification</a>.</p>
|
|
42
42
|
* <p>For more information about returning the ACL of an object, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a>.</p>
|
|
43
|
-
* <p>If the object you are retrieving is stored in the S3 Glacier or
|
|
43
|
+
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval or
|
|
44
44
|
* S3 Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive or
|
|
45
45
|
* S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you must first restore a
|
|
46
46
|
* copy using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this action returns an
|
|
@@ -48,21 +48,28 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
48
48
|
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring
|
|
49
49
|
* Archived Objects</a>.</p>
|
|
50
50
|
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not
|
|
51
|
-
* be sent for GET requests if your object uses server-side encryption with KMS
|
|
52
|
-
* (SSE-KMS)
|
|
53
|
-
*
|
|
51
|
+
* be sent for GET requests if your object uses server-side encryption with Key Management Service (KMS)
|
|
52
|
+
* keys (SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or
|
|
53
|
+
* server-side encryption with Amazon S3 managed encryption keys (SSE-S3). If your object does use
|
|
54
|
+
* these types of keys, you’ll get an HTTP 400 Bad Request error.</p>
|
|
54
55
|
* <p>If you encrypt an object by using server-side encryption with customer-provided
|
|
55
56
|
* encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object,
|
|
56
57
|
* you must use the following headers:</p>
|
|
57
58
|
* <ul>
|
|
58
59
|
* <li>
|
|
59
|
-
* <p>
|
|
60
|
+
* <p>
|
|
61
|
+
* <code>x-amz-server-side-encryption-customer-algorithm</code>
|
|
62
|
+
* </p>
|
|
60
63
|
* </li>
|
|
61
64
|
* <li>
|
|
62
|
-
* <p>
|
|
65
|
+
* <p>
|
|
66
|
+
* <code>x-amz-server-side-encryption-customer-key</code>
|
|
67
|
+
* </p>
|
|
63
68
|
* </li>
|
|
64
69
|
* <li>
|
|
65
|
-
* <p>
|
|
70
|
+
* <p>
|
|
71
|
+
* <code>x-amz-server-side-encryption-customer-key-MD5</code>
|
|
72
|
+
* </p>
|
|
66
73
|
* </li>
|
|
67
74
|
* </ul>
|
|
68
75
|
* <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption
|
|
@@ -76,22 +83,16 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
76
83
|
* <dd>
|
|
77
84
|
* <p>You need the relevant read object (or version) permission for this operation. For more
|
|
78
85
|
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
|
|
79
|
-
* Policy</a>. If the object you request
|
|
86
|
+
* Policy</a>. If the object that you request doesn’t exist, the error that Amazon S3 returns depends
|
|
80
87
|
* on whether you also have the <code>s3:ListBucket</code> permission.</p>
|
|
81
|
-
* <
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* return an HTTP status code 404 ("no such key") error.</p>
|
|
85
|
-
* </li>
|
|
86
|
-
* <li>
|
|
87
|
-
* <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3 will return an
|
|
88
|
+
* <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3
|
|
89
|
+
* returns an HTTP status code 404 (Not Found) error.</p>
|
|
90
|
+
* <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3 returns an
|
|
88
91
|
* HTTP status code 403 ("access denied") error.</p>
|
|
89
|
-
* </li>
|
|
90
|
-
* </ul>
|
|
91
92
|
* </dd>
|
|
92
93
|
* <dt>Versioning</dt>
|
|
93
94
|
* <dd>
|
|
94
|
-
* <p>By default, the GET action returns the current version of an object. To return a
|
|
95
|
+
* <p>By default, the <code>GET</code> action returns the current version of an object. To return a
|
|
95
96
|
* different version, use the <code>versionId</code> subresource.</p>
|
|
96
97
|
* <note>
|
|
97
98
|
* <ul>
|
|
@@ -114,17 +115,17 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
114
115
|
* </dd>
|
|
115
116
|
* <dt>Overriding Response Header Values</dt>
|
|
116
117
|
* <dd>
|
|
117
|
-
* <p>There are times when you want to override certain response header values in a GET
|
|
118
|
+
* <p>There are times when you want to override certain response header values in a <code>GET</code>
|
|
118
119
|
* response. For example, you might override the <code>Content-Disposition</code> response
|
|
119
|
-
*
|
|
120
|
+
* header value in your <code>GET</code> request.</p>
|
|
120
121
|
* <p>You can override values for a set of response headers using the following query
|
|
121
122
|
* parameters. These response header values are sent only on a successful request, that is,
|
|
122
123
|
* when status code 200 OK is returned. The set of headers you can override using these
|
|
123
124
|
* parameters is a subset of the headers that Amazon S3 accepts when you create an object. The
|
|
124
|
-
* response headers that you can override for the GET response are <code>Content-Type</code>,
|
|
125
|
+
* response headers that you can override for the <code>GET</code> response are <code>Content-Type</code>,
|
|
125
126
|
* <code>Content-Language</code>, <code>Expires</code>, <code>Cache-Control</code>,
|
|
126
127
|
* <code>Content-Disposition</code>, and <code>Content-Encoding</code>. To override these
|
|
127
|
-
* header values in the GET response, you use the following request parameters.</p>
|
|
128
|
+
* header values in the <code>GET</code> response, you use the following request parameters.</p>
|
|
128
129
|
* <note>
|
|
129
130
|
* <p>You must sign the request, either using an Authorization header or a presigned URL,
|
|
130
131
|
* when using these parameters. They cannot be used with an unsigned (anonymous)
|
|
@@ -166,13 +167,13 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
166
167
|
* <dt>Overriding Response Header Values</dt>
|
|
167
168
|
* <dd>
|
|
168
169
|
* <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
170
|
+
* present in the request as follows: <code>If-Match</code> condition evaluates to
|
|
171
|
+
* <code>true</code>, and; <code>If-Unmodified-Since</code> condition evaluates to
|
|
172
|
+
* <code>false</code>; then, S3 returns 200 OK and the data requested. </p>
|
|
172
173
|
* <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
174
|
+
* present in the request as follows:<code> If-None-Match</code> condition evaluates to
|
|
175
|
+
* <code>false</code>, and; <code>If-Modified-Since</code> condition evaluates to
|
|
176
|
+
* <code>true</code>; then, S3 returns 304 Not Modified response code.</p>
|
|
176
177
|
* <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
|
|
177
178
|
* </dd>
|
|
178
179
|
* </dl>
|
|
@@ -278,53 +279,53 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
278
279
|
* @throws {@link S3ServiceException}
|
|
279
280
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
280
281
|
*
|
|
281
|
-
* @example To retrieve an object
|
|
282
|
+
* @example To retrieve a byte range of an object
|
|
282
283
|
* ```javascript
|
|
283
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
284
|
+
* // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
|
|
284
285
|
* const input = {
|
|
285
286
|
* "Bucket": "examplebucket",
|
|
286
|
-
* "Key": "
|
|
287
|
+
* "Key": "SampleFile.txt",
|
|
288
|
+
* "Range": "bytes=0-9"
|
|
287
289
|
* };
|
|
288
290
|
* const command = new GetObjectCommand(input);
|
|
289
291
|
* const response = await client.send(command);
|
|
290
292
|
* /* response ==
|
|
291
293
|
* {
|
|
292
294
|
* "AcceptRanges": "bytes",
|
|
293
|
-
* "ContentLength": "
|
|
294
|
-
* "
|
|
295
|
-
* "
|
|
296
|
-
* "
|
|
295
|
+
* "ContentLength": "10",
|
|
296
|
+
* "ContentRange": "bytes 0-9/43",
|
|
297
|
+
* "ContentType": "text/plain",
|
|
298
|
+
* "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
|
299
|
+
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
297
300
|
* "Metadata": {},
|
|
298
|
-
* "TagCount": 2,
|
|
299
301
|
* "VersionId": "null"
|
|
300
302
|
* }
|
|
301
303
|
* *\/
|
|
302
|
-
* // example id: to-retrieve-an-object
|
|
304
|
+
* // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
|
|
303
305
|
* ```
|
|
304
306
|
*
|
|
305
|
-
* @example To retrieve
|
|
307
|
+
* @example To retrieve an object
|
|
306
308
|
* ```javascript
|
|
307
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
309
|
+
* // The following example retrieves an object for an S3 bucket.
|
|
308
310
|
* const input = {
|
|
309
311
|
* "Bucket": "examplebucket",
|
|
310
|
-
* "Key": "
|
|
311
|
-
* "Range": "bytes=0-9"
|
|
312
|
+
* "Key": "HappyFace.jpg"
|
|
312
313
|
* };
|
|
313
314
|
* const command = new GetObjectCommand(input);
|
|
314
315
|
* const response = await client.send(command);
|
|
315
316
|
* /* response ==
|
|
316
317
|
* {
|
|
317
318
|
* "AcceptRanges": "bytes",
|
|
318
|
-
* "ContentLength": "
|
|
319
|
-
* "
|
|
320
|
-
* "
|
|
321
|
-
* "
|
|
322
|
-
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
319
|
+
* "ContentLength": "3191",
|
|
320
|
+
* "ContentType": "image/jpeg",
|
|
321
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
322
|
+
* "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
|
|
323
323
|
* "Metadata": {},
|
|
324
|
+
* "TagCount": 2,
|
|
324
325
|
* "VersionId": "null"
|
|
325
326
|
* }
|
|
326
327
|
* *\/
|
|
327
|
-
* // example id: to-retrieve-
|
|
328
|
+
* // example id: to-retrieve-an-object-1481827837012
|
|
328
329
|
* ```
|
|
329
330
|
*
|
|
330
331
|
*/
|
|
@@ -88,13 +88,12 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
|
|
|
88
88
|
* @throws {@link S3ServiceException}
|
|
89
89
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
90
90
|
*
|
|
91
|
-
* @example To retrieve tag set of
|
|
91
|
+
* @example To retrieve tag set of an object
|
|
92
92
|
* ```javascript
|
|
93
|
-
* // The following example retrieves tag set of an object.
|
|
93
|
+
* // The following example retrieves tag set of an object.
|
|
94
94
|
* const input = {
|
|
95
95
|
* "Bucket": "examplebucket",
|
|
96
|
-
* "Key": "
|
|
97
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
96
|
+
* "Key": "HappyFace.jpg"
|
|
98
97
|
* };
|
|
99
98
|
* const command = new GetObjectTaggingCommand(input);
|
|
100
99
|
* const response = await client.send(command);
|
|
@@ -102,22 +101,27 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
|
|
|
102
101
|
* {
|
|
103
102
|
* "TagSet": [
|
|
104
103
|
* {
|
|
105
|
-
* "Key": "
|
|
106
|
-
* "Value": "
|
|
104
|
+
* "Key": "Key4",
|
|
105
|
+
* "Value": "Value4"
|
|
106
|
+
* },
|
|
107
|
+
* {
|
|
108
|
+
* "Key": "Key3",
|
|
109
|
+
* "Value": "Value3"
|
|
107
110
|
* }
|
|
108
111
|
* ],
|
|
109
|
-
* "VersionId": "
|
|
112
|
+
* "VersionId": "null"
|
|
110
113
|
* }
|
|
111
114
|
* *\/
|
|
112
|
-
* // example id: to-retrieve-tag-set-of-
|
|
115
|
+
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
|
|
113
116
|
* ```
|
|
114
117
|
*
|
|
115
|
-
* @example To retrieve tag set of
|
|
118
|
+
* @example To retrieve tag set of a specific object version
|
|
116
119
|
* ```javascript
|
|
117
|
-
* // The following example retrieves tag set of an object.
|
|
120
|
+
* // The following example retrieves tag set of an object. The request specifies object version.
|
|
118
121
|
* const input = {
|
|
119
122
|
* "Bucket": "examplebucket",
|
|
120
|
-
* "Key": "
|
|
123
|
+
* "Key": "exampleobject",
|
|
124
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
121
125
|
* };
|
|
122
126
|
* const command = new GetObjectTaggingCommand(input);
|
|
123
127
|
* const response = await client.send(command);
|
|
@@ -125,18 +129,14 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
|
|
|
125
129
|
* {
|
|
126
130
|
* "TagSet": [
|
|
127
131
|
* {
|
|
128
|
-
* "Key": "
|
|
129
|
-
* "Value": "
|
|
130
|
-
* },
|
|
131
|
-
* {
|
|
132
|
-
* "Key": "Key3",
|
|
133
|
-
* "Value": "Value3"
|
|
132
|
+
* "Key": "Key1",
|
|
133
|
+
* "Value": "Value1"
|
|
134
134
|
* }
|
|
135
135
|
* ],
|
|
136
|
-
* "VersionId": "
|
|
136
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
137
137
|
* }
|
|
138
138
|
* *\/
|
|
139
|
-
* // example id: to-retrieve-tag-set-of-
|
|
139
|
+
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
|
|
140
140
|
* ```
|
|
141
141
|
*
|
|
142
142
|
*/
|
|
@@ -23,8 +23,8 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>The HEAD action retrieves metadata from an object without returning the object itself.
|
|
27
|
-
* This action is useful if you're only interested in an object's metadata. To use HEAD
|
|
26
|
+
* <p>The <code>HEAD</code> action retrieves metadata from an object without returning the object itself.
|
|
27
|
+
* This action is useful if you're only interested in an object's metadata. To use <code>HEAD</code>, you
|
|
28
28
|
* must have READ access to the object.</p>
|
|
29
29
|
* <p>A <code>HEAD</code> request has the same options as a <code>GET</code> action on an
|
|
30
30
|
* object. The response is identical to the <code>GET</code> response except that there is no
|
|
@@ -37,13 +37,19 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
|
|
|
37
37
|
* metadata from the object, you must use the following headers:</p>
|
|
38
38
|
* <ul>
|
|
39
39
|
* <li>
|
|
40
|
-
* <p>
|
|
40
|
+
* <p>
|
|
41
|
+
* <code>x-amz-server-side-encryption-customer-algorithm</code>
|
|
42
|
+
* </p>
|
|
41
43
|
* </li>
|
|
42
44
|
* <li>
|
|
43
|
-
* <p>
|
|
45
|
+
* <p>
|
|
46
|
+
* <code>x-amz-server-side-encryption-customer-key</code>
|
|
47
|
+
* </p>
|
|
44
48
|
* </li>
|
|
45
49
|
* <li>
|
|
46
|
-
* <p>
|
|
50
|
+
* <p>
|
|
51
|
+
* <code>x-amz-server-side-encryption-customer-key-MD5</code>
|
|
52
|
+
* </p>
|
|
47
53
|
* </li>
|
|
48
54
|
* </ul>
|
|
49
55
|
* <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption
|
|
@@ -52,10 +58,11 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
|
|
|
52
58
|
* <ul>
|
|
53
59
|
* <li>
|
|
54
60
|
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>,
|
|
55
|
-
* should not be sent for GET requests if your object uses server-side
|
|
56
|
-
* with KMS keys (SSE-KMS)
|
|
57
|
-
*
|
|
58
|
-
*
|
|
61
|
+
* should not be sent for <code>GET</code> requests if your object uses server-side
|
|
62
|
+
* encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer server-side
|
|
63
|
+
* encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side encryption with Amazon S3
|
|
64
|
+
* managed encryption keys (SSE-S3). If your object does use these types of keys,
|
|
65
|
+
* you’ll get an HTTP 400 Bad Request error.</p>
|
|
59
66
|
* </li>
|
|
60
67
|
* <li>
|
|
61
68
|
* <p> The last modified property in this case is the creation date of the
|
|
@@ -109,16 +116,16 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
|
|
|
109
116
|
* <dd>
|
|
110
117
|
* <p>You need the relevant read object (or version) permission for this operation. For more
|
|
111
118
|
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, resources, and condition keys for Amazon S3</a>.
|
|
112
|
-
* If the object you request
|
|
119
|
+
* If the object you request doesn't exist, the error that Amazon S3 returns depends
|
|
113
120
|
* on whether you also have the s3:ListBucket permission.</p>
|
|
114
121
|
* <ul>
|
|
115
122
|
* <li>
|
|
116
123
|
* <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns
|
|
117
|
-
* an HTTP status code 404
|
|
124
|
+
* an HTTP status code 404 error.</p>
|
|
118
125
|
* </li>
|
|
119
126
|
* <li>
|
|
120
127
|
* <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP
|
|
121
|
-
* status code 403
|
|
128
|
+
* status code 403 error.</p>
|
|
122
129
|
* </li>
|
|
123
130
|
* </ul>
|
|
124
131
|
* </dd>
|
|
@@ -84,6 +84,7 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
|
|
|
84
84
|
* Prefix: "STRING_VALUE",
|
|
85
85
|
* UploadIdMarker: "STRING_VALUE",
|
|
86
86
|
* ExpectedBucketOwner: "STRING_VALUE",
|
|
87
|
+
* RequestPayer: "requester",
|
|
87
88
|
* };
|
|
88
89
|
* const command = new ListMultipartUploadsCommand(input);
|
|
89
90
|
* const response = await client.send(command);
|
|
@@ -120,6 +121,7 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
|
|
|
120
121
|
* // },
|
|
121
122
|
* // ],
|
|
122
123
|
* // EncodingType: "url",
|
|
124
|
+
* // RequestCharged: "requester",
|
|
123
125
|
* // };
|
|
124
126
|
*
|
|
125
127
|
* ```
|
|
@@ -133,104 +135,104 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
|
|
|
133
135
|
* @throws {@link S3ServiceException}
|
|
134
136
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
135
137
|
*
|
|
136
|
-
* @example
|
|
138
|
+
* @example List next set of multipart uploads when previous result is truncated
|
|
137
139
|
* ```javascript
|
|
138
|
-
* // The following example
|
|
140
|
+
* // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
|
|
139
141
|
* const input = {
|
|
140
|
-
* "Bucket": "examplebucket"
|
|
142
|
+
* "Bucket": "examplebucket",
|
|
143
|
+
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
144
|
+
* "MaxUploads": "2",
|
|
145
|
+
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
141
146
|
* };
|
|
142
147
|
* const command = new ListMultipartUploadsCommand(input);
|
|
143
148
|
* const response = await client.send(command);
|
|
144
149
|
* /* response ==
|
|
145
150
|
* {
|
|
151
|
+
* "Bucket": "acl1",
|
|
152
|
+
* "IsTruncated": true,
|
|
153
|
+
* "KeyMarker": "",
|
|
154
|
+
* "MaxUploads": "2",
|
|
155
|
+
* "NextKeyMarker": "someobjectkey",
|
|
156
|
+
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
157
|
+
* "UploadIdMarker": "",
|
|
146
158
|
* "Uploads": [
|
|
147
159
|
* {
|
|
148
160
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
149
161
|
* "Initiator": {
|
|
150
|
-
* "DisplayName": "display-name",
|
|
162
|
+
* "DisplayName": "ownder-display-name",
|
|
151
163
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
152
164
|
* },
|
|
153
165
|
* "Key": "JavaFile",
|
|
154
166
|
* "Owner": {
|
|
155
|
-
* "DisplayName": "
|
|
156
|
-
* "ID": "
|
|
167
|
+
* "DisplayName": "mohanataws",
|
|
168
|
+
* "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
157
169
|
* },
|
|
158
170
|
* "StorageClass": "STANDARD",
|
|
159
|
-
* "UploadId": "
|
|
171
|
+
* "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
160
172
|
* },
|
|
161
173
|
* {
|
|
162
174
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
163
175
|
* "Initiator": {
|
|
164
|
-
* "DisplayName": "display-name",
|
|
176
|
+
* "DisplayName": "ownder-display-name",
|
|
165
177
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
166
178
|
* },
|
|
167
179
|
* "Key": "JavaFile",
|
|
168
180
|
* "Owner": {
|
|
169
|
-
* "DisplayName": "display-name",
|
|
181
|
+
* "DisplayName": "ownder-display-name",
|
|
170
182
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
171
183
|
* },
|
|
172
184
|
* "StorageClass": "STANDARD",
|
|
173
|
-
* "UploadId": "
|
|
185
|
+
* "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
174
186
|
* }
|
|
175
187
|
* ]
|
|
176
188
|
* }
|
|
177
189
|
* *\/
|
|
178
|
-
* // example id:
|
|
190
|
+
* // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
|
|
179
191
|
* ```
|
|
180
192
|
*
|
|
181
|
-
* @example
|
|
193
|
+
* @example To list in-progress multipart uploads on a bucket
|
|
182
194
|
* ```javascript
|
|
183
|
-
* // The following example
|
|
195
|
+
* // The following example lists in-progress multipart uploads on a specific bucket.
|
|
184
196
|
* const input = {
|
|
185
|
-
* "Bucket": "examplebucket"
|
|
186
|
-
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
187
|
-
* "MaxUploads": "2",
|
|
188
|
-
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
197
|
+
* "Bucket": "examplebucket"
|
|
189
198
|
* };
|
|
190
199
|
* const command = new ListMultipartUploadsCommand(input);
|
|
191
200
|
* const response = await client.send(command);
|
|
192
201
|
* /* response ==
|
|
193
202
|
* {
|
|
194
|
-
* "Bucket": "acl1",
|
|
195
|
-
* "IsTruncated": true,
|
|
196
|
-
* "KeyMarker": "",
|
|
197
|
-
* "MaxUploads": "2",
|
|
198
|
-
* "NextKeyMarker": "someobjectkey",
|
|
199
|
-
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
200
|
-
* "UploadIdMarker": "",
|
|
201
203
|
* "Uploads": [
|
|
202
204
|
* {
|
|
203
205
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
204
206
|
* "Initiator": {
|
|
205
|
-
* "DisplayName": "
|
|
207
|
+
* "DisplayName": "display-name",
|
|
206
208
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
207
209
|
* },
|
|
208
210
|
* "Key": "JavaFile",
|
|
209
211
|
* "Owner": {
|
|
210
|
-
* "DisplayName": "
|
|
211
|
-
* "ID": "
|
|
212
|
+
* "DisplayName": "display-name",
|
|
213
|
+
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
212
214
|
* },
|
|
213
215
|
* "StorageClass": "STANDARD",
|
|
214
|
-
* "UploadId": "
|
|
216
|
+
* "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
215
217
|
* },
|
|
216
218
|
* {
|
|
217
219
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
218
220
|
* "Initiator": {
|
|
219
|
-
* "DisplayName": "
|
|
221
|
+
* "DisplayName": "display-name",
|
|
220
222
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
221
223
|
* },
|
|
222
224
|
* "Key": "JavaFile",
|
|
223
225
|
* "Owner": {
|
|
224
|
-
* "DisplayName": "
|
|
226
|
+
* "DisplayName": "display-name",
|
|
225
227
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
226
228
|
* },
|
|
227
229
|
* "StorageClass": "STANDARD",
|
|
228
|
-
* "UploadId": "
|
|
230
|
+
* "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
229
231
|
* }
|
|
230
232
|
* ]
|
|
231
233
|
* }
|
|
232
234
|
* *\/
|
|
233
|
-
* // example id: list-
|
|
235
|
+
* // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
|
|
234
236
|
* ```
|
|
235
237
|
*
|
|
236
238
|
*/
|
|
@@ -74,6 +74,7 @@ export interface ListObjectVersionsCommandOutput extends ListObjectVersionsOutpu
|
|
|
74
74
|
* Prefix: "STRING_VALUE",
|
|
75
75
|
* VersionIdMarker: "STRING_VALUE",
|
|
76
76
|
* ExpectedBucketOwner: "STRING_VALUE",
|
|
77
|
+
* RequestPayer: "requester",
|
|
77
78
|
* };
|
|
78
79
|
* const command = new ListObjectVersionsCommand(input);
|
|
79
80
|
* const response = await client.send(command);
|
|
@@ -123,6 +124,7 @@ export interface ListObjectVersionsCommandOutput extends ListObjectVersionsOutpu
|
|
|
123
124
|
* // },
|
|
124
125
|
* // ],
|
|
125
126
|
* // EncodingType: "url",
|
|
127
|
+
* // RequestCharged: "requester",
|
|
126
128
|
* // };
|
|
127
129
|
*
|
|
128
130
|
* ```
|
|
@@ -112,6 +112,7 @@ export interface ListObjectsV2CommandOutput extends ListObjectsV2Output, __Metad
|
|
|
112
112
|
* // ContinuationToken: "STRING_VALUE",
|
|
113
113
|
* // NextContinuationToken: "STRING_VALUE",
|
|
114
114
|
* // StartAfter: "STRING_VALUE",
|
|
115
|
+
* // RequestCharged: "requester",
|
|
115
116
|
* // };
|
|
116
117
|
*
|
|
117
118
|
* ```
|
|
@@ -54,7 +54,7 @@ export interface PutBucketAclCommandOutput extends __MetadataBearer {
|
|
|
54
54
|
* <dl>
|
|
55
55
|
* <dt>Permissions</dt>
|
|
56
56
|
* <dd>
|
|
57
|
-
* <p>You can set access permissions using one of the following methods:</p>
|
|
57
|
+
* <p>You can set access permissions by using one of the following methods:</p>
|
|
58
58
|
* <ul>
|
|
59
59
|
* <li>
|
|
60
60
|
* <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. Amazon S3 supports
|
|
@@ -25,20 +25,21 @@ export interface PutBucketEncryptionCommandOutput extends __MetadataBearer {
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>This action uses the <code>encryption</code> subresource to configure default encryption
|
|
27
27
|
* and Amazon S3 Bucket Keys for an existing bucket.</p>
|
|
28
|
-
* <p>By default, all buckets have a default encryption configuration that
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* encryption with
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* <
|
|
28
|
+
* <p>By default, all buckets have a default encryption configuration that uses server-side
|
|
29
|
+
* encryption with Amazon S3 managed keys (SSE-S3). You can optionally configure default encryption
|
|
30
|
+
* for a bucket by using server-side encryption with Key Management Service (KMS) keys (SSE-KMS),
|
|
31
|
+
* dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side
|
|
32
|
+
* encryption with customer-provided keys (SSE-C). If you specify default encryption by using
|
|
33
|
+
* SSE-KMS, you can also configure Amazon S3 Bucket Keys. For information about bucket default
|
|
34
|
+
* encryption, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 bucket default encryption</a>
|
|
35
|
+
* in the <i>Amazon S3 User Guide</i>. For more information about S3 Bucket Keys, see
|
|
36
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html">Amazon S3 Bucket
|
|
37
|
+
* Keys</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
37
38
|
* <important>
|
|
38
39
|
* <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">
|
|
39
40
|
* Authenticating Requests (Amazon Web Services Signature Version 4)</a>. </p>
|
|
40
41
|
* </important>
|
|
41
|
-
* <p>To use this operation, you must have
|
|
42
|
+
* <p>To use this operation, you must have permission to perform the
|
|
42
43
|
* <code>s3:PutEncryptionConfiguration</code> action. The bucket owner has this permission
|
|
43
44
|
* by default. The bucket owner can grant this permission to others. For more information
|
|
44
45
|
* 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
|
|
@@ -44,11 +44,11 @@ export interface PutBucketLifecycleConfigurationCommandOutput extends __Metadata
|
|
|
44
44
|
* of the following:</p>
|
|
45
45
|
* <ul>
|
|
46
46
|
* <li>
|
|
47
|
-
* <p>
|
|
47
|
+
* <p>A filter identifying a subset of objects to which the rule applies. The filter can
|
|
48
48
|
* be based on a key name prefix, object tags, or a combination of both.</p>
|
|
49
49
|
* </li>
|
|
50
50
|
* <li>
|
|
51
|
-
* <p>
|
|
51
|
+
* <p>A status indicating whether the rule is in effect.</p>
|
|
52
52
|
* </li>
|
|
53
53
|
* <li>
|
|
54
54
|
* <p>One or more lifecycle transition and expiration actions that you want Amazon S3 to
|
|
@@ -70,7 +70,7 @@ export interface PutBucketLifecycleConfigurationCommandOutput extends __Metadata
|
|
|
70
70
|
* resource owner can optionally grant access permissions to others by writing an access
|
|
71
71
|
* policy. For this operation, a user must get the <code>s3:PutLifecycleConfiguration</code>
|
|
72
72
|
* permission.</p>
|
|
73
|
-
* <p>You can also explicitly deny permissions.
|
|
73
|
+
* <p>You can also explicitly deny permissions. An explicit deny also supersedes any other
|
|
74
74
|
* permissions. If you want to block users or accounts from removing or deleting objects from
|
|
75
75
|
* your bucket, you must deny them permissions for the following actions:</p>
|
|
76
76
|
* <ul>
|