@aws-sdk/client-s3 3.774.0 → 3.777.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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/S3Client.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +9 -6
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +16 -16
- package/dist-types/commands/CopyObjectCommand.d.ts +9 -9
- package/dist-types/commands/CreateBucketCommand.d.ts +15 -16
- package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +8 -8
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +7 -4
- package/dist-types/commands/DeleteObjectCommand.d.ts +18 -13
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -12
- package/dist-types/commands/DeleteObjectsCommand.d.ts +30 -31
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAclCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketCorsCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +11 -11
- package/dist-types/commands/GetBucketLocationCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +12 -12
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -6
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +8 -8
- package/dist-types/commands/GetObjectAclCommand.d.ts +29 -29
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectCommand.d.ts +44 -30
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -20
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +18 -5
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/HeadBucketCommand.d.ts +7 -4
- package/dist-types/commands/HeadObjectCommand.d.ts +12 -12
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketsCommand.d.ts +14 -14
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +1 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +62 -63
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +26 -26
- package/dist-types/commands/ListObjectsCommand.d.ts +23 -23
- package/dist-types/commands/ListObjectsV2Command.d.ts +22 -22
- package/dist-types/commands/ListPartsCommand.d.ts +22 -22
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketCorsCommand.d.ts +19 -16
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +18 -15
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +16 -13
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +11 -8
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +8 -5
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +15 -12
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +13 -10
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +10 -7
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +13 -10
- package/dist-types/commands/PutObjectAclCommand.d.ts +11 -8
- package/dist-types/commands/PutObjectCommand.d.ts +68 -74
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +12 -12
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/RestoreObjectCommand.d.ts +12 -9
- package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -0
- package/dist-types/commands/UploadPartCommand.d.ts +9 -9
- package/dist-types/commands/UploadPartCopyCommand.d.ts +21 -22
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -0
- package/package.json +50 -50
|
@@ -245,27 +245,27 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
245
245
|
* @throws {@link S3ServiceException}
|
|
246
246
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
247
247
|
*
|
|
248
|
-
*
|
|
248
|
+
*
|
|
249
249
|
* @example Put bucket lifecycle
|
|
250
250
|
* ```javascript
|
|
251
251
|
* // The following example replaces existing lifecycle configuration, if any, on the specified bucket.
|
|
252
252
|
* const input = {
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
253
|
+
* Bucket: "examplebucket",
|
|
254
|
+
* LifecycleConfiguration: {
|
|
255
|
+
* Rules: [
|
|
256
256
|
* {
|
|
257
|
-
*
|
|
258
|
-
*
|
|
257
|
+
* Expiration: {
|
|
258
|
+
* Days: 3650
|
|
259
259
|
* },
|
|
260
|
-
*
|
|
261
|
-
*
|
|
260
|
+
* Filter: {
|
|
261
|
+
* Prefix: "documents/"
|
|
262
262
|
* },
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
263
|
+
* ID: "TestOnly",
|
|
264
|
+
* Status: "Enabled",
|
|
265
|
+
* Transitions: [
|
|
266
266
|
* {
|
|
267
|
-
*
|
|
268
|
-
*
|
|
267
|
+
* Days: 365,
|
|
268
|
+
* StorageClass: "GLACIER"
|
|
269
269
|
* }
|
|
270
270
|
* ]
|
|
271
271
|
* }
|
|
@@ -273,10 +273,13 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
273
273
|
* }
|
|
274
274
|
* };
|
|
275
275
|
* const command = new PutBucketLifecycleConfigurationCommand(input);
|
|
276
|
-
* await client.send(command);
|
|
277
|
-
*
|
|
276
|
+
* const response = await client.send(command);
|
|
277
|
+
* /* response is
|
|
278
|
+
* { /* metadata only *\/ }
|
|
279
|
+
* *\/
|
|
278
280
|
* ```
|
|
279
281
|
*
|
|
282
|
+
* @public
|
|
280
283
|
*/
|
|
281
284
|
export declare class PutBucketLifecycleConfigurationCommand extends PutBucketLifecycleConfigurationCommand_base {
|
|
282
285
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -166,33 +166,36 @@ declare const PutBucketLoggingCommand_base: {
|
|
|
166
166
|
* @throws {@link S3ServiceException}
|
|
167
167
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
168
168
|
*
|
|
169
|
-
*
|
|
169
|
+
*
|
|
170
170
|
* @example Set logging configuration for a bucket
|
|
171
171
|
* ```javascript
|
|
172
172
|
* // The following example sets logging policy on a bucket. For the Log Delivery group to deliver logs to the destination bucket, it needs permission for the READ_ACP action which the policy grants.
|
|
173
173
|
* const input = {
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
174
|
+
* Bucket: "sourcebucket",
|
|
175
|
+
* BucketLoggingStatus: {
|
|
176
|
+
* LoggingEnabled: {
|
|
177
|
+
* TargetBucket: "targetbucket",
|
|
178
|
+
* TargetGrants: [
|
|
179
179
|
* {
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
180
|
+
* Grantee: {
|
|
181
|
+
* Type: "Group",
|
|
182
|
+
* URI: "http://acs.amazonaws.com/groups/global/AllUsers"
|
|
183
183
|
* },
|
|
184
|
-
*
|
|
184
|
+
* Permission: "READ"
|
|
185
185
|
* }
|
|
186
186
|
* ],
|
|
187
|
-
*
|
|
187
|
+
* TargetPrefix: "MyBucketLogs/"
|
|
188
188
|
* }
|
|
189
189
|
* }
|
|
190
190
|
* };
|
|
191
191
|
* const command = new PutBucketLoggingCommand(input);
|
|
192
|
-
* await client.send(command);
|
|
193
|
-
*
|
|
192
|
+
* const response = await client.send(command);
|
|
193
|
+
* /* response is
|
|
194
|
+
* { /* metadata only *\/ }
|
|
195
|
+
* *\/
|
|
194
196
|
* ```
|
|
195
197
|
*
|
|
198
|
+
* @public
|
|
196
199
|
*/
|
|
197
200
|
export declare class PutBucketLoggingCommand extends PutBucketLoggingCommand_base {
|
|
198
201
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -124,6 +124,7 @@ declare const PutBucketMetricsConfigurationCommand_base: {
|
|
|
124
124
|
* @throws {@link S3ServiceException}
|
|
125
125
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
126
126
|
*
|
|
127
|
+
*
|
|
127
128
|
* @public
|
|
128
129
|
*/
|
|
129
130
|
export declare class PutBucketMetricsConfigurationCommand extends PutBucketMetricsConfigurationCommand_base {
|
|
@@ -168,28 +168,31 @@ declare const PutBucketNotificationConfigurationCommand_base: {
|
|
|
168
168
|
* @throws {@link S3ServiceException}
|
|
169
169
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
170
170
|
*
|
|
171
|
-
*
|
|
171
|
+
*
|
|
172
172
|
* @example Set notification configuration for a bucket
|
|
173
173
|
* ```javascript
|
|
174
174
|
* // The following example sets notification configuration on a bucket to publish the object created events to an SNS topic.
|
|
175
175
|
* const input = {
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
176
|
+
* Bucket: "examplebucket",
|
|
177
|
+
* NotificationConfiguration: {
|
|
178
|
+
* TopicConfigurations: [
|
|
179
179
|
* {
|
|
180
|
-
*
|
|
180
|
+
* Events: [
|
|
181
181
|
* "s3:ObjectCreated:*"
|
|
182
182
|
* ],
|
|
183
|
-
*
|
|
183
|
+
* TopicArn: "arn:aws:sns:us-west-2:123456789012:s3-notification-topic"
|
|
184
184
|
* }
|
|
185
185
|
* ]
|
|
186
186
|
* }
|
|
187
187
|
* };
|
|
188
188
|
* const command = new PutBucketNotificationConfigurationCommand(input);
|
|
189
|
-
* await client.send(command);
|
|
190
|
-
*
|
|
189
|
+
* const response = await client.send(command);
|
|
190
|
+
* /* response is
|
|
191
|
+
* { /* metadata only *\/ }
|
|
192
|
+
* *\/
|
|
191
193
|
* ```
|
|
192
194
|
*
|
|
195
|
+
* @public
|
|
193
196
|
*/
|
|
194
197
|
export declare class PutBucketNotificationConfigurationCommand extends PutBucketNotificationConfigurationCommand_base {
|
|
195
198
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,6 +82,7 @@ declare const PutBucketOwnershipControlsCommand_base: {
|
|
|
82
82
|
* @throws {@link S3ServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
84
84
|
*
|
|
85
|
+
*
|
|
85
86
|
* @public
|
|
86
87
|
*/
|
|
87
88
|
export declare class PutBucketOwnershipControlsCommand extends PutBucketOwnershipControlsCommand_base {
|
|
@@ -133,19 +133,22 @@ declare const PutBucketPolicyCommand_base: {
|
|
|
133
133
|
* @throws {@link S3ServiceException}
|
|
134
134
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
135
135
|
*
|
|
136
|
-
*
|
|
136
|
+
*
|
|
137
137
|
* @example Set bucket policy
|
|
138
138
|
* ```javascript
|
|
139
139
|
* // The following example sets a permission policy on a bucket.
|
|
140
140
|
* const input = {
|
|
141
|
-
*
|
|
142
|
-
*
|
|
141
|
+
* Bucket: "examplebucket",
|
|
142
|
+
* Policy: `{"Version": "2012-10-17", "Statement": [{ "Sid": "id-1","Effect": "Allow","Principal": {"AWS": "arn:aws:iam::123456789012:root"}, "Action": [ "s3:PutObject","s3:PutObjectAcl"], "Resource": ["arn:aws:s3:::acl3/*" ] } ]}`
|
|
143
143
|
* };
|
|
144
144
|
* const command = new PutBucketPolicyCommand(input);
|
|
145
|
-
* await client.send(command);
|
|
146
|
-
*
|
|
145
|
+
* const response = await client.send(command);
|
|
146
|
+
* /* response is
|
|
147
|
+
* { /* metadata only *\/ }
|
|
148
|
+
* *\/
|
|
147
149
|
* ```
|
|
148
150
|
*
|
|
151
|
+
* @public
|
|
149
152
|
*/
|
|
150
153
|
export declare class PutBucketPolicyCommand extends PutBucketPolicyCommand_base {
|
|
151
154
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -192,31 +192,34 @@ declare const PutBucketReplicationCommand_base: {
|
|
|
192
192
|
* @throws {@link S3ServiceException}
|
|
193
193
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
194
194
|
*
|
|
195
|
-
*
|
|
195
|
+
*
|
|
196
196
|
* @example Set replication configuration on a bucket
|
|
197
197
|
* ```javascript
|
|
198
198
|
* // The following example sets replication configuration on a bucket.
|
|
199
199
|
* const input = {
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
200
|
+
* Bucket: "examplebucket",
|
|
201
|
+
* ReplicationConfiguration: {
|
|
202
|
+
* Role: "arn:aws:iam::123456789012:role/examplerole",
|
|
203
|
+
* Rules: [
|
|
204
204
|
* {
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
205
|
+
* Destination: {
|
|
206
|
+
* Bucket: "arn:aws:s3:::destinationbucket",
|
|
207
|
+
* StorageClass: "STANDARD"
|
|
208
208
|
* },
|
|
209
|
-
*
|
|
210
|
-
*
|
|
209
|
+
* Prefix: "",
|
|
210
|
+
* Status: "Enabled"
|
|
211
211
|
* }
|
|
212
212
|
* ]
|
|
213
213
|
* }
|
|
214
214
|
* };
|
|
215
215
|
* const command = new PutBucketReplicationCommand(input);
|
|
216
|
-
* await client.send(command);
|
|
217
|
-
*
|
|
216
|
+
* const response = await client.send(command);
|
|
217
|
+
* /* response is
|
|
218
|
+
* { /* metadata only *\/ }
|
|
219
|
+
* *\/
|
|
218
220
|
* ```
|
|
219
221
|
*
|
|
222
|
+
* @public
|
|
220
223
|
*/
|
|
221
224
|
export declare class PutBucketReplicationCommand extends PutBucketReplicationCommand_base {
|
|
222
225
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -78,21 +78,24 @@ declare const PutBucketRequestPaymentCommand_base: {
|
|
|
78
78
|
* @throws {@link S3ServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
80
80
|
*
|
|
81
|
-
*
|
|
81
|
+
*
|
|
82
82
|
* @example Set request payment configuration on a bucket.
|
|
83
83
|
* ```javascript
|
|
84
84
|
* // The following example sets request payment configuration on a bucket so that person requesting the download is charged.
|
|
85
85
|
* const input = {
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* Bucket: "examplebucket",
|
|
87
|
+
* RequestPaymentConfiguration: {
|
|
88
|
+
* Payer: "Requester"
|
|
89
89
|
* }
|
|
90
90
|
* };
|
|
91
91
|
* const command = new PutBucketRequestPaymentCommand(input);
|
|
92
|
-
* await client.send(command);
|
|
93
|
-
*
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* /* response is
|
|
94
|
+
* { /* metadata only *\/ }
|
|
95
|
+
* *\/
|
|
94
96
|
* ```
|
|
95
97
|
*
|
|
98
|
+
* @public
|
|
96
99
|
*/
|
|
97
100
|
export declare class PutBucketRequestPaymentCommand extends PutBucketRequestPaymentCommand_base {
|
|
98
101
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -123,30 +123,33 @@ declare const PutBucketTaggingCommand_base: {
|
|
|
123
123
|
* @throws {@link S3ServiceException}
|
|
124
124
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
125
125
|
*
|
|
126
|
-
*
|
|
126
|
+
*
|
|
127
127
|
* @example Set tags on a bucket
|
|
128
128
|
* ```javascript
|
|
129
129
|
* // The following example sets tags on a bucket. Any existing tags are replaced.
|
|
130
130
|
* const input = {
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
131
|
+
* Bucket: "examplebucket",
|
|
132
|
+
* Tagging: {
|
|
133
|
+
* TagSet: [
|
|
134
134
|
* {
|
|
135
|
-
*
|
|
136
|
-
*
|
|
135
|
+
* Key: "Key1",
|
|
136
|
+
* Value: "Value1"
|
|
137
137
|
* },
|
|
138
138
|
* {
|
|
139
|
-
*
|
|
140
|
-
*
|
|
139
|
+
* Key: "Key2",
|
|
140
|
+
* Value: "Value2"
|
|
141
141
|
* }
|
|
142
142
|
* ]
|
|
143
143
|
* }
|
|
144
144
|
* };
|
|
145
145
|
* const command = new PutBucketTaggingCommand(input);
|
|
146
|
-
* await client.send(command);
|
|
147
|
-
*
|
|
146
|
+
* const response = await client.send(command);
|
|
147
|
+
* /* response is
|
|
148
|
+
* { /* metadata only *\/ }
|
|
149
|
+
* *\/
|
|
148
150
|
* ```
|
|
149
151
|
*
|
|
152
|
+
* @public
|
|
150
153
|
*/
|
|
151
154
|
export declare class PutBucketTaggingCommand extends PutBucketTaggingCommand_base {
|
|
152
155
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -111,22 +111,25 @@ declare const PutBucketVersioningCommand_base: {
|
|
|
111
111
|
* @throws {@link S3ServiceException}
|
|
112
112
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
113
113
|
*
|
|
114
|
-
*
|
|
114
|
+
*
|
|
115
115
|
* @example Set versioning configuration on a bucket
|
|
116
116
|
* ```javascript
|
|
117
117
|
* // The following example sets versioning configuration on bucket. The configuration enables versioning on the bucket.
|
|
118
118
|
* const input = {
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
119
|
+
* Bucket: "examplebucket",
|
|
120
|
+
* VersioningConfiguration: {
|
|
121
|
+
* MFADelete: "Disabled",
|
|
122
|
+
* Status: "Enabled"
|
|
123
123
|
* }
|
|
124
124
|
* };
|
|
125
125
|
* const command = new PutBucketVersioningCommand(input);
|
|
126
|
-
* await client.send(command);
|
|
127
|
-
*
|
|
126
|
+
* const response = await client.send(command);
|
|
127
|
+
* /* response is
|
|
128
|
+
* { /* metadata only *\/ }
|
|
129
|
+
* *\/
|
|
128
130
|
* ```
|
|
129
131
|
*
|
|
132
|
+
* @public
|
|
130
133
|
*/
|
|
131
134
|
export declare class PutBucketVersioningCommand extends PutBucketVersioningCommand_base {
|
|
132
135
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -207,27 +207,30 @@ declare const PutBucketWebsiteCommand_base: {
|
|
|
207
207
|
* @throws {@link S3ServiceException}
|
|
208
208
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
209
209
|
*
|
|
210
|
-
*
|
|
210
|
+
*
|
|
211
211
|
* @example Set website configuration on a bucket
|
|
212
212
|
* ```javascript
|
|
213
213
|
* // The following example adds website configuration to a bucket.
|
|
214
214
|
* const input = {
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
215
|
+
* Bucket: "examplebucket",
|
|
216
|
+
* ContentMD5: "",
|
|
217
|
+
* WebsiteConfiguration: {
|
|
218
|
+
* ErrorDocument: {
|
|
219
|
+
* Key: "error.html"
|
|
220
220
|
* },
|
|
221
|
-
*
|
|
222
|
-
*
|
|
221
|
+
* IndexDocument: {
|
|
222
|
+
* Suffix: "index.html"
|
|
223
223
|
* }
|
|
224
224
|
* }
|
|
225
225
|
* };
|
|
226
226
|
* const command = new PutBucketWebsiteCommand(input);
|
|
227
|
-
* await client.send(command);
|
|
228
|
-
*
|
|
227
|
+
* const response = await client.send(command);
|
|
228
|
+
* /* response is
|
|
229
|
+
* { /* metadata only *\/ }
|
|
230
|
+
* *\/
|
|
229
231
|
* ```
|
|
230
232
|
*
|
|
233
|
+
* @public
|
|
231
234
|
*/
|
|
232
235
|
export declare class PutBucketWebsiteCommand extends PutBucketWebsiteCommand_base {
|
|
233
236
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -275,22 +275,25 @@ declare const PutObjectAclCommand_base: {
|
|
|
275
275
|
* @throws {@link S3ServiceException}
|
|
276
276
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
277
277
|
*
|
|
278
|
-
*
|
|
278
|
+
*
|
|
279
279
|
* @example To grant permissions using object ACL
|
|
280
280
|
* ```javascript
|
|
281
281
|
* // The following example adds grants to an object ACL. The first permission grants user1 and user2 FULL_CONTROL and the AllUsers group READ permission.
|
|
282
282
|
* const input = {
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
283
|
+
* AccessControlPolicy: { /* empty *\/ },
|
|
284
|
+
* Bucket: "examplebucket",
|
|
285
|
+
* GrantFullControl: "emailaddress=user1@example.com,emailaddress=user2@example.com",
|
|
286
|
+
* GrantRead: "uri=http://acs.amazonaws.com/groups/global/AllUsers",
|
|
287
|
+
* Key: "HappyFace.jpg"
|
|
288
288
|
* };
|
|
289
289
|
* const command = new PutObjectAclCommand(input);
|
|
290
|
-
* await client.send(command);
|
|
291
|
-
*
|
|
290
|
+
* const response = await client.send(command);
|
|
291
|
+
* /* response is
|
|
292
|
+
* { /* empty *\/ }
|
|
293
|
+
* *\/
|
|
292
294
|
* ```
|
|
293
295
|
*
|
|
296
|
+
* @public
|
|
294
297
|
*/
|
|
295
298
|
export declare class PutObjectAclCommand extends PutObjectAclCommand_base {
|
|
296
299
|
/** @internal type navigation helper, not in runtime. */
|