@aws-sdk/client-s3 3.454.0 → 3.456.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReplicationStatus = exports.Protocol = exports.BucketVersioningStatus = exports.MFADeleteStatus = exports.Payer = exports.ReplicationRuleStatus = exports.SseKmsEncryptedObjectsStatus = exports.ReplicaModificationsStatus = exports.ReplicationRuleFilter = exports.ExistingObjectReplicationStatus = exports.ReplicationTimeStatus = exports.MetricsStatus = exports.DeleteMarkerReplicationStatus = exports.FilterRuleName = exports.Event = exports.MetricsFilter = exports.BucketLogsPermission = exports.ExpirationStatus = exports.TransitionStorageClass = exports.LifecycleRuleFilter = exports.InventoryFrequency = exports.InventoryOptionalField = exports.InventoryIncludedObjectVersions = exports.InventoryFormat = exports.IntelligentTieringAccessTier = exports.IntelligentTieringStatus = exports.StorageClassAnalysisSchemaVersion = exports.AnalyticsS3ExportFileFormat = exports.AnalyticsFilter = exports.ObjectOwnership = exports.BucketLocationConstraint = exports.BucketCannedACL = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.TaggingDirective = exports.StorageClass = exports.ObjectLockMode = exports.ObjectLockLegalHoldStatus = exports.MetadataDirective = exports.ChecksumAlgorithm = exports.ObjectCannedACL = exports.ServerSideEncryption = exports.OwnerOverride = exports.Permission = exports.Type = exports.BucketAccelerateStatus = exports.NoSuchUpload = exports.RequestPayer = exports.RequestCharged = void 0;
4
- exports.PutObjectRequestFilterSensitiveLog = exports.PutObjectOutputFilterSensitiveLog = exports.PutBucketInventoryConfigurationRequestFilterSensitiveLog = exports.PutBucketEncryptionRequestFilterSensitiveLog = exports.ListPartsRequestFilterSensitiveLog = exports.ListBucketInventoryConfigurationsOutputFilterSensitiveLog = exports.HeadObjectRequestFilterSensitiveLog = exports.HeadObjectOutputFilterSensitiveLog = exports.GetObjectTorrentOutputFilterSensitiveLog = exports.GetObjectAttributesRequestFilterSensitiveLog = exports.GetObjectRequestFilterSensitiveLog = exports.GetObjectOutputFilterSensitiveLog = exports.GetBucketInventoryConfigurationOutputFilterSensitiveLog = exports.InventoryConfigurationFilterSensitiveLog = exports.InventoryDestinationFilterSensitiveLog = exports.InventoryS3BucketDestinationFilterSensitiveLog = exports.InventoryEncryptionFilterSensitiveLog = exports.SSEKMSFilterSensitiveLog = exports.GetBucketEncryptionOutputFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ServerSideEncryptionRuleFilterSensitiveLog = exports.ServerSideEncryptionByDefaultFilterSensitiveLog = exports.CreateMultipartUploadRequestFilterSensitiveLog = exports.CreateMultipartUploadOutputFilterSensitiveLog = exports.CopyObjectRequestFilterSensitiveLog = exports.CopyObjectOutputFilterSensitiveLog = exports.CompleteMultipartUploadRequestFilterSensitiveLog = exports.CompleteMultipartUploadOutputFilterSensitiveLog = exports.MFADelete = exports.ObjectVersionStorageClass = exports.NoSuchBucket = exports.OptionalObjectAttributes = exports.ObjectStorageClass = exports.EncodingType = exports.ArchiveStatus = exports.NotFound = exports.ObjectLockRetentionMode = exports.ObjectLockEnabled = exports.ObjectAttributes = exports.NoSuchKey = exports.InvalidObjectState = exports.ChecksumMode = void 0;
3
+ exports.Protocol = exports.BucketVersioningStatus = exports.MFADeleteStatus = exports.Payer = exports.ReplicationRuleStatus = exports.SseKmsEncryptedObjectsStatus = exports.ReplicaModificationsStatus = exports.ReplicationRuleFilter = exports.ExistingObjectReplicationStatus = exports.ReplicationTimeStatus = exports.MetricsStatus = exports.DeleteMarkerReplicationStatus = exports.FilterRuleName = exports.Event = exports.MetricsFilter = exports.PartitionDateSource = exports.BucketLogsPermission = exports.ExpirationStatus = exports.TransitionStorageClass = exports.LifecycleRuleFilter = exports.InventoryFrequency = exports.InventoryOptionalField = exports.InventoryIncludedObjectVersions = exports.InventoryFormat = exports.IntelligentTieringAccessTier = exports.IntelligentTieringStatus = exports.StorageClassAnalysisSchemaVersion = exports.AnalyticsS3ExportFileFormat = exports.AnalyticsFilter = exports.ObjectOwnership = exports.BucketLocationConstraint = exports.BucketCannedACL = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.TaggingDirective = exports.StorageClass = exports.ObjectLockMode = exports.ObjectLockLegalHoldStatus = exports.MetadataDirective = exports.ChecksumAlgorithm = exports.ObjectCannedACL = exports.ServerSideEncryption = exports.OwnerOverride = exports.Permission = exports.Type = exports.BucketAccelerateStatus = exports.NoSuchUpload = exports.RequestPayer = exports.RequestCharged = void 0;
4
+ exports.PutObjectRequestFilterSensitiveLog = exports.PutObjectOutputFilterSensitiveLog = exports.PutBucketInventoryConfigurationRequestFilterSensitiveLog = exports.PutBucketEncryptionRequestFilterSensitiveLog = exports.ListPartsRequestFilterSensitiveLog = exports.ListBucketInventoryConfigurationsOutputFilterSensitiveLog = exports.HeadObjectRequestFilterSensitiveLog = exports.HeadObjectOutputFilterSensitiveLog = exports.GetObjectTorrentOutputFilterSensitiveLog = exports.GetObjectAttributesRequestFilterSensitiveLog = exports.GetObjectRequestFilterSensitiveLog = exports.GetObjectOutputFilterSensitiveLog = exports.GetBucketInventoryConfigurationOutputFilterSensitiveLog = exports.InventoryConfigurationFilterSensitiveLog = exports.InventoryDestinationFilterSensitiveLog = exports.InventoryS3BucketDestinationFilterSensitiveLog = exports.InventoryEncryptionFilterSensitiveLog = exports.SSEKMSFilterSensitiveLog = exports.GetBucketEncryptionOutputFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ServerSideEncryptionRuleFilterSensitiveLog = exports.ServerSideEncryptionByDefaultFilterSensitiveLog = exports.CreateMultipartUploadRequestFilterSensitiveLog = exports.CreateMultipartUploadOutputFilterSensitiveLog = exports.CopyObjectRequestFilterSensitiveLog = exports.CopyObjectOutputFilterSensitiveLog = exports.CompleteMultipartUploadRequestFilterSensitiveLog = exports.CompleteMultipartUploadOutputFilterSensitiveLog = exports.MFADelete = exports.ObjectVersionStorageClass = exports.NoSuchBucket = exports.OptionalObjectAttributes = exports.ObjectStorageClass = exports.EncodingType = exports.ArchiveStatus = exports.NotFound = exports.ObjectLockRetentionMode = exports.ObjectLockEnabled = exports.ObjectAttributes = exports.NoSuchKey = exports.InvalidObjectState = exports.ChecksumMode = exports.ReplicationStatus = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const S3ServiceException_1 = require("./S3ServiceException");
7
7
  exports.RequestCharged = {
@@ -259,6 +259,10 @@ exports.BucketLogsPermission = {
259
259
  READ: "READ",
260
260
  WRITE: "WRITE",
261
261
  };
262
+ exports.PartitionDateSource = {
263
+ DeliveryTime: "DeliveryTime",
264
+ EventTime: "EventTime",
265
+ };
262
266
  var MetricsFilter;
263
267
  (function (MetricsFilter) {
264
268
  MetricsFilter.visit = (value, visitor) => {
@@ -7119,6 +7119,10 @@ const se_LoggingEnabled = (input, context) => {
7119
7119
  const node = xml_builder_1.XmlNode.of("TargetPrefix", input.TargetPrefix).withName("TargetPrefix");
7120
7120
  bodyNode.addChildNode(node);
7121
7121
  }
7122
+ if (input.TargetObjectKeyFormat != null) {
7123
+ const node = se_TargetObjectKeyFormat(input.TargetObjectKeyFormat, context).withName("TargetObjectKeyFormat");
7124
+ bodyNode.addChildNode(node);
7125
+ }
7122
7126
  return bodyNode;
7123
7127
  };
7124
7128
  const se_MetadataEntry = (input, context) => {
@@ -7406,6 +7410,14 @@ const se_ParquetInput = (input, context) => {
7406
7410
  const bodyNode = new xml_builder_1.XmlNode("ParquetInput");
7407
7411
  return bodyNode;
7408
7412
  };
7413
+ const se_PartitionedPrefix = (input, context) => {
7414
+ const bodyNode = new xml_builder_1.XmlNode("PartitionedPrefix");
7415
+ if (input.PartitionDateSource != null) {
7416
+ const node = xml_builder_1.XmlNode.of("PartitionDateSource", input.PartitionDateSource).withName("PartitionDateSource");
7417
+ bodyNode.addChildNode(node);
7418
+ }
7419
+ return bodyNode;
7420
+ };
7409
7421
  const se_PublicAccessBlockConfiguration = (input, context) => {
7410
7422
  const bodyNode = new xml_builder_1.XmlNode("PublicAccessBlockConfiguration");
7411
7423
  if (input.BlockPublicAcls != null) {
@@ -7821,6 +7833,10 @@ const se_ServerSideEncryptionRules = (input, context) => {
7821
7833
  return node.withName("member");
7822
7834
  });
7823
7835
  };
7836
+ const se_SimplePrefix = (input, context) => {
7837
+ const bodyNode = new xml_builder_1.XmlNode("SimplePrefix");
7838
+ return bodyNode;
7839
+ };
7824
7840
  const se_SourceSelectionCriteria = (input, context) => {
7825
7841
  const bodyNode = new xml_builder_1.XmlNode("SourceSelectionCriteria");
7826
7842
  if (input.SseKmsEncryptedObjects != null) {
@@ -7928,6 +7944,18 @@ const se_TargetGrants = (input, context) => {
7928
7944
  return node.withName("Grant");
7929
7945
  });
7930
7946
  };
7947
+ const se_TargetObjectKeyFormat = (input, context) => {
7948
+ const bodyNode = new xml_builder_1.XmlNode("TargetObjectKeyFormat");
7949
+ if (input.SimplePrefix != null) {
7950
+ const node = se_SimplePrefix(input.SimplePrefix, context).withName("SimplePrefix");
7951
+ bodyNode.addChildNode(node);
7952
+ }
7953
+ if (input.PartitionedPrefix != null) {
7954
+ const node = se_PartitionedPrefix(input.PartitionedPrefix, context).withName("PartitionedPrefix");
7955
+ bodyNode.addChildNode(node);
7956
+ }
7957
+ return bodyNode;
7958
+ };
7931
7959
  const se_Tiering = (input, context) => {
7932
7960
  const bodyNode = new xml_builder_1.XmlNode("Tiering");
7933
7961
  if (input.Days != null) {
@@ -8856,6 +8884,9 @@ const de_LoggingEnabled = (output, context) => {
8856
8884
  if (output["TargetPrefix"] !== undefined) {
8857
8885
  contents.TargetPrefix = (0, smithy_client_1.expectString)(output["TargetPrefix"]);
8858
8886
  }
8887
+ if (output["TargetObjectKeyFormat"] !== undefined) {
8888
+ contents.TargetObjectKeyFormat = de_TargetObjectKeyFormat(output["TargetObjectKeyFormat"], context);
8889
+ }
8859
8890
  return contents;
8860
8891
  };
8861
8892
  const de_Metrics = (output, context) => {
@@ -9195,6 +9226,13 @@ const de_Part = (output, context) => {
9195
9226
  }
9196
9227
  return contents;
9197
9228
  };
9229
+ const de_PartitionedPrefix = (output, context) => {
9230
+ const contents = {};
9231
+ if (output["PartitionDateSource"] !== undefined) {
9232
+ contents.PartitionDateSource = (0, smithy_client_1.expectString)(output["PartitionDateSource"]);
9233
+ }
9234
+ return contents;
9235
+ };
9198
9236
  const de_Parts = (output, context) => {
9199
9237
  return (output || [])
9200
9238
  .filter((e) => e != null)
@@ -9482,6 +9520,10 @@ const de_ServerSideEncryptionRules = (output, context) => {
9482
9520
  return de_ServerSideEncryptionRule(entry, context);
9483
9521
  });
9484
9522
  };
9523
+ const de_SimplePrefix = (output, context) => {
9524
+ const contents = {};
9525
+ return contents;
9526
+ };
9485
9527
  const de_SourceSelectionCriteria = (output, context) => {
9486
9528
  const contents = {};
9487
9529
  if (output["SseKmsEncryptedObjects"] !== undefined) {
@@ -9574,6 +9616,16 @@ const de_TargetGrants = (output, context) => {
9574
9616
  return de_TargetGrant(entry, context);
9575
9617
  });
9576
9618
  };
9619
+ const de_TargetObjectKeyFormat = (output, context) => {
9620
+ const contents = {};
9621
+ if (output["SimplePrefix"] !== undefined) {
9622
+ contents.SimplePrefix = de_SimplePrefix(output["SimplePrefix"], context);
9623
+ }
9624
+ if (output["PartitionedPrefix"] !== undefined) {
9625
+ contents.PartitionedPrefix = de_PartitionedPrefix(output["PartitionedPrefix"], context);
9626
+ }
9627
+ return contents;
9628
+ };
9577
9629
  const de_Tiering = (output, context) => {
9578
9630
  const contents = {};
9579
9631
  if (output["Days"] !== undefined) {
@@ -251,6 +251,10 @@ export const BucketLogsPermission = {
251
251
  READ: "READ",
252
252
  WRITE: "WRITE",
253
253
  };
254
+ export const PartitionDateSource = {
255
+ DeliveryTime: "DeliveryTime",
256
+ EventTime: "EventTime",
257
+ };
254
258
  export var MetricsFilter;
255
259
  (function (MetricsFilter) {
256
260
  MetricsFilter.visit = (value, visitor) => {
@@ -6927,6 +6927,10 @@ const se_LoggingEnabled = (input, context) => {
6927
6927
  const node = __XmlNode.of("TargetPrefix", input.TargetPrefix).withName("TargetPrefix");
6928
6928
  bodyNode.addChildNode(node);
6929
6929
  }
6930
+ if (input.TargetObjectKeyFormat != null) {
6931
+ const node = se_TargetObjectKeyFormat(input.TargetObjectKeyFormat, context).withName("TargetObjectKeyFormat");
6932
+ bodyNode.addChildNode(node);
6933
+ }
6930
6934
  return bodyNode;
6931
6935
  };
6932
6936
  const se_MetadataEntry = (input, context) => {
@@ -7214,6 +7218,14 @@ const se_ParquetInput = (input, context) => {
7214
7218
  const bodyNode = new __XmlNode("ParquetInput");
7215
7219
  return bodyNode;
7216
7220
  };
7221
+ const se_PartitionedPrefix = (input, context) => {
7222
+ const bodyNode = new __XmlNode("PartitionedPrefix");
7223
+ if (input.PartitionDateSource != null) {
7224
+ const node = __XmlNode.of("PartitionDateSource", input.PartitionDateSource).withName("PartitionDateSource");
7225
+ bodyNode.addChildNode(node);
7226
+ }
7227
+ return bodyNode;
7228
+ };
7217
7229
  const se_PublicAccessBlockConfiguration = (input, context) => {
7218
7230
  const bodyNode = new __XmlNode("PublicAccessBlockConfiguration");
7219
7231
  if (input.BlockPublicAcls != null) {
@@ -7629,6 +7641,10 @@ const se_ServerSideEncryptionRules = (input, context) => {
7629
7641
  return node.withName("member");
7630
7642
  });
7631
7643
  };
7644
+ const se_SimplePrefix = (input, context) => {
7645
+ const bodyNode = new __XmlNode("SimplePrefix");
7646
+ return bodyNode;
7647
+ };
7632
7648
  const se_SourceSelectionCriteria = (input, context) => {
7633
7649
  const bodyNode = new __XmlNode("SourceSelectionCriteria");
7634
7650
  if (input.SseKmsEncryptedObjects != null) {
@@ -7736,6 +7752,18 @@ const se_TargetGrants = (input, context) => {
7736
7752
  return node.withName("Grant");
7737
7753
  });
7738
7754
  };
7755
+ const se_TargetObjectKeyFormat = (input, context) => {
7756
+ const bodyNode = new __XmlNode("TargetObjectKeyFormat");
7757
+ if (input.SimplePrefix != null) {
7758
+ const node = se_SimplePrefix(input.SimplePrefix, context).withName("SimplePrefix");
7759
+ bodyNode.addChildNode(node);
7760
+ }
7761
+ if (input.PartitionedPrefix != null) {
7762
+ const node = se_PartitionedPrefix(input.PartitionedPrefix, context).withName("PartitionedPrefix");
7763
+ bodyNode.addChildNode(node);
7764
+ }
7765
+ return bodyNode;
7766
+ };
7739
7767
  const se_Tiering = (input, context) => {
7740
7768
  const bodyNode = new __XmlNode("Tiering");
7741
7769
  if (input.Days != null) {
@@ -8664,6 +8692,9 @@ const de_LoggingEnabled = (output, context) => {
8664
8692
  if (output["TargetPrefix"] !== undefined) {
8665
8693
  contents.TargetPrefix = __expectString(output["TargetPrefix"]);
8666
8694
  }
8695
+ if (output["TargetObjectKeyFormat"] !== undefined) {
8696
+ contents.TargetObjectKeyFormat = de_TargetObjectKeyFormat(output["TargetObjectKeyFormat"], context);
8697
+ }
8667
8698
  return contents;
8668
8699
  };
8669
8700
  const de_Metrics = (output, context) => {
@@ -9003,6 +9034,13 @@ const de_Part = (output, context) => {
9003
9034
  }
9004
9035
  return contents;
9005
9036
  };
9037
+ const de_PartitionedPrefix = (output, context) => {
9038
+ const contents = {};
9039
+ if (output["PartitionDateSource"] !== undefined) {
9040
+ contents.PartitionDateSource = __expectString(output["PartitionDateSource"]);
9041
+ }
9042
+ return contents;
9043
+ };
9006
9044
  const de_Parts = (output, context) => {
9007
9045
  return (output || [])
9008
9046
  .filter((e) => e != null)
@@ -9290,6 +9328,10 @@ const de_ServerSideEncryptionRules = (output, context) => {
9290
9328
  return de_ServerSideEncryptionRule(entry, context);
9291
9329
  });
9292
9330
  };
9331
+ const de_SimplePrefix = (output, context) => {
9332
+ const contents = {};
9333
+ return contents;
9334
+ };
9293
9335
  const de_SourceSelectionCriteria = (output, context) => {
9294
9336
  const contents = {};
9295
9337
  if (output["SseKmsEncryptedObjects"] !== undefined) {
@@ -9382,6 +9424,16 @@ const de_TargetGrants = (output, context) => {
9382
9424
  return de_TargetGrant(entry, context);
9383
9425
  });
9384
9426
  };
9427
+ const de_TargetObjectKeyFormat = (output, context) => {
9428
+ const contents = {};
9429
+ if (output["SimplePrefix"] !== undefined) {
9430
+ contents.SimplePrefix = de_SimplePrefix(output["SimplePrefix"], context);
9431
+ }
9432
+ if (output["PartitionedPrefix"] !== undefined) {
9433
+ contents.PartitionedPrefix = de_PartitionedPrefix(output["PartitionedPrefix"], context);
9434
+ }
9435
+ return contents;
9436
+ };
9385
9437
  const de_Tiering = (output, context) => {
9386
9438
  const contents = {};
9387
9439
  if (output["Days"] !== undefined) {
@@ -181,39 +181,39 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
181
181
  * @throws {@link S3ServiceException}
182
182
  * <p>Base exception class for all service exceptions from S3 service.</p>
183
183
  *
184
- * @example To create a bucket
184
+ * @example To create a bucket in a specific region
185
185
  * ```javascript
186
- * // The following example creates a bucket.
186
+ * // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
187
187
  * const input = {
188
- * "Bucket": "examplebucket"
188
+ * "Bucket": "examplebucket",
189
+ * "CreateBucketConfiguration": {
190
+ * "LocationConstraint": "eu-west-1"
191
+ * }
189
192
  * };
190
193
  * const command = new CreateBucketCommand(input);
191
194
  * const response = await client.send(command);
192
195
  * /* response ==
193
196
  * {
194
- * "Location": "/examplebucket"
197
+ * "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
195
198
  * }
196
199
  * *\/
197
- * // example id: to-create-a-bucket--1472851826060
200
+ * // example id: to-create-a-bucket-in-a-specific-region-1483399072992
198
201
  * ```
199
202
  *
200
- * @example To create a bucket in a specific region
203
+ * @example To create a bucket
201
204
  * ```javascript
202
- * // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
205
+ * // The following example creates a bucket.
203
206
  * const input = {
204
- * "Bucket": "examplebucket",
205
- * "CreateBucketConfiguration": {
206
- * "LocationConstraint": "eu-west-1"
207
- * }
207
+ * "Bucket": "examplebucket"
208
208
  * };
209
209
  * const command = new CreateBucketCommand(input);
210
210
  * const response = await client.send(command);
211
211
  * /* response ==
212
212
  * {
213
- * "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
213
+ * "Location": "/examplebucket"
214
214
  * }
215
215
  * *\/
216
- * // example id: to-create-a-bucket-in-a-specific-region-1483399072992
216
+ * // example id: to-create-a-bucket--1472851826060
217
217
  * ```
218
218
  *
219
219
  */
@@ -72,39 +72,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut
72
72
  * @throws {@link S3ServiceException}
73
73
  * <p>Base exception class for all service exceptions from S3 service.</p>
74
74
  *
75
- * @example To remove tag set from an object version
75
+ * @example To remove tag set from an object
76
76
  * ```javascript
77
- * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
77
+ * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
78
78
  * const input = {
79
79
  * "Bucket": "examplebucket",
80
- * "Key": "HappyFace.jpg",
81
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
80
+ * "Key": "HappyFace.jpg"
82
81
  * };
83
82
  * const command = new DeleteObjectTaggingCommand(input);
84
83
  * const response = await client.send(command);
85
84
  * /* response ==
86
85
  * {
87
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
86
+ * "VersionId": "null"
88
87
  * }
89
88
  * *\/
90
- * // example id: to-remove-tag-set-from-an-object-version-1483145285913
89
+ * // example id: to-remove-tag-set-from-an-object-1483145342862
91
90
  * ```
92
91
  *
93
- * @example To remove tag set from an object
92
+ * @example To remove tag set from an object version
94
93
  * ```javascript
95
- * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
94
+ * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
96
95
  * const input = {
97
96
  * "Bucket": "examplebucket",
98
- * "Key": "HappyFace.jpg"
97
+ * "Key": "HappyFace.jpg",
98
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
99
99
  * };
100
100
  * const command = new DeleteObjectTaggingCommand(input);
101
101
  * const response = await client.send(command);
102
102
  * /* response ==
103
103
  * {
104
- * "VersionId": "null"
104
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
105
105
  * }
106
106
  * *\/
107
- * // example id: to-remove-tag-set-from-an-object-1483145342862
107
+ * // example id: to-remove-tag-set-from-an-object-version-1483145285913
108
108
  * ```
109
109
  *
110
110
  */
@@ -66,6 +66,12 @@ export interface GetBucketLoggingCommandOutput extends GetBucketLoggingOutput, _
66
66
  * // },
67
67
  * // ],
68
68
  * // TargetPrefix: "STRING_VALUE", // required
69
+ * // TargetObjectKeyFormat: { // TargetObjectKeyFormat
70
+ * // SimplePrefix: {},
71
+ * // PartitionedPrefix: { // PartitionedPrefix
72
+ * // PartitionDateSource: "EventTime" || "DeliveryTime",
73
+ * // },
74
+ * // },
69
75
  * // },
70
76
  * // };
71
77
  *
@@ -100,7 +100,7 @@ export interface GetObjectCommandOutput extends Omit<GetObjectOutput, "Body">, _
100
100
  * <note>
101
101
  * <ul>
102
102
  * <li>
103
- * <p> If you supply a <code>versionId</code>, you need the
103
+ * <p>If you supply a <code>versionId</code>, you need the
104
104
  * <code>s3:GetObjectVersion</code> permission to access a specific
105
105
  * version of an object. If you request a specific version, you do not need
106
106
  * to have the <code>s3:GetObject</code> permission. If you request the
@@ -109,9 +109,10 @@ export interface GetObjectCommandOutput extends Omit<GetObjectOutput, "Body">, _
109
109
  * <code>s3:GetObjectVersion</code> permission won't be required.</p>
110
110
  * </li>
111
111
  * <li>
112
- * <p>If the current version of the object is a delete marker, Amazon S3 behaves
113
- * as if the object was deleted and includes <code>x-amz-delete-marker:
114
- * true</code> in the response.</p>
112
+ * <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p>
113
+ * </li>
114
+ * <li>
115
+ * <p>If the specified version is a delete marker, the response returns a 405 (Method Not Allowed) error and the <code>Last-Modified: timestamp</code> response header.</p>
115
116
  * </li>
116
117
  * </ul>
117
118
  * </note>
@@ -287,53 +288,53 @@ export interface GetObjectCommandOutput extends Omit<GetObjectOutput, "Body">, _
287
288
  * @throws {@link S3ServiceException}
288
289
  * <p>Base exception class for all service exceptions from S3 service.</p>
289
290
  *
290
- * @example To retrieve a byte range of an object
291
+ * @example To retrieve an object
291
292
  * ```javascript
292
- * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
293
+ * // The following example retrieves an object for an S3 bucket.
293
294
  * const input = {
294
295
  * "Bucket": "examplebucket",
295
- * "Key": "SampleFile.txt",
296
- * "Range": "bytes=0-9"
296
+ * "Key": "HappyFace.jpg"
297
297
  * };
298
298
  * const command = new GetObjectCommand(input);
299
299
  * const response = await client.send(command);
300
300
  * /* response ==
301
301
  * {
302
302
  * "AcceptRanges": "bytes",
303
- * "ContentLength": "10",
304
- * "ContentRange": "bytes 0-9/43",
305
- * "ContentType": "text/plain",
306
- * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
307
- * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
303
+ * "ContentLength": "3191",
304
+ * "ContentType": "image/jpeg",
305
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
306
+ * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
308
307
  * "Metadata": {},
308
+ * "TagCount": 2,
309
309
  * "VersionId": "null"
310
310
  * }
311
311
  * *\/
312
- * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
312
+ * // example id: to-retrieve-an-object-1481827837012
313
313
  * ```
314
314
  *
315
- * @example To retrieve an object
315
+ * @example To retrieve a byte range of an object
316
316
  * ```javascript
317
- * // The following example retrieves an object for an S3 bucket.
317
+ * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
318
318
  * const input = {
319
319
  * "Bucket": "examplebucket",
320
- * "Key": "HappyFace.jpg"
320
+ * "Key": "SampleFile.txt",
321
+ * "Range": "bytes=0-9"
321
322
  * };
322
323
  * const command = new GetObjectCommand(input);
323
324
  * const response = await client.send(command);
324
325
  * /* response ==
325
326
  * {
326
327
  * "AcceptRanges": "bytes",
327
- * "ContentLength": "3191",
328
- * "ContentType": "image/jpeg",
329
- * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
330
- * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
328
+ * "ContentLength": "10",
329
+ * "ContentRange": "bytes 0-9/43",
330
+ * "ContentType": "text/plain",
331
+ * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
332
+ * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
331
333
  * "Metadata": {},
332
- * "TagCount": 2,
333
334
  * "VersionId": "null"
334
335
  * }
335
336
  * *\/
336
- * // example id: to-retrieve-an-object-1481827837012
337
+ * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
337
338
  * ```
338
339
  *
339
340
  */
@@ -29,9 +29,9 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
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
31
31
  * response body. Because of this, if the <code>HEAD</code> request generates an error, it
32
- * returns a generic <code>400 Bad Request</code>, <code>403 Forbidden</code> or <code>404 Not
33
- * Found</code> code. It is not possible to retrieve the exact exception beyond these error
34
- * codes.</p>
32
+ * returns a generic code, such as <code>400 Bad Request</code>, <code>403 Forbidden</code>, <code>404 Not
33
+ * Found</code>, <code>405 Method Not Allowed</code>, <code>412 Precondition Failed</code>, or <code>304 Not Modified</code>.
34
+ * It's not possible to retrieve the exact exception of these error codes.</p>
35
35
  * <p>If you encrypt an object by using server-side encryption with customer-provided
36
36
  * encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the
37
37
  * metadata from the object, you must use the following headers:</p>
@@ -129,6 +129,17 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
129
129
  * </li>
130
130
  * </ul>
131
131
  * </dd>
132
+ * <dt>Versioning</dt>
133
+ * <dd>
134
+ * <ul>
135
+ * <li>
136
+ * <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p>
137
+ * </li>
138
+ * <li>
139
+ * <p>If the specified version is a delete marker, the response returns a 405 (Method Not Allowed) error and the <code>Last-Modified: timestamp</code> response header.</p>
140
+ * </li>
141
+ * </ul>
142
+ * </dd>
132
143
  * </dl>
133
144
  * <p>The following actions are related to <code>HeadObject</code>:</p>
134
145
  * <ul>
@@ -135,104 +135,104 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
135
135
  * @throws {@link S3ServiceException}
136
136
  * <p>Base exception class for all service exceptions from S3 service.</p>
137
137
  *
138
- * @example To list in-progress multipart uploads on a bucket
138
+ * @example List next set of multipart uploads when previous result is truncated
139
139
  * ```javascript
140
- * // The following example lists in-progress multipart uploads on a specific bucket.
140
+ * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
141
141
  * const input = {
142
- * "Bucket": "examplebucket"
142
+ * "Bucket": "examplebucket",
143
+ * "KeyMarker": "nextkeyfrompreviousresponse",
144
+ * "MaxUploads": "2",
145
+ * "UploadIdMarker": "valuefrompreviousresponse"
143
146
  * };
144
147
  * const command = new ListMultipartUploadsCommand(input);
145
148
  * const response = await client.send(command);
146
149
  * /* response ==
147
150
  * {
151
+ * "Bucket": "acl1",
152
+ * "IsTruncated": true,
153
+ * "KeyMarker": "",
154
+ * "MaxUploads": "2",
155
+ * "NextKeyMarker": "someobjectkey",
156
+ * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
157
+ * "UploadIdMarker": "",
148
158
  * "Uploads": [
149
159
  * {
150
160
  * "Initiated": "2014-05-01T05:40:58.000Z",
151
161
  * "Initiator": {
152
- * "DisplayName": "display-name",
162
+ * "DisplayName": "ownder-display-name",
153
163
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
154
164
  * },
155
165
  * "Key": "JavaFile",
156
166
  * "Owner": {
157
- * "DisplayName": "display-name",
158
- * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
167
+ * "DisplayName": "mohanataws",
168
+ * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
159
169
  * },
160
170
  * "StorageClass": "STANDARD",
161
- * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
171
+ * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
162
172
  * },
163
173
  * {
164
174
  * "Initiated": "2014-05-01T05:41:27.000Z",
165
175
  * "Initiator": {
166
- * "DisplayName": "display-name",
176
+ * "DisplayName": "ownder-display-name",
167
177
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
168
178
  * },
169
179
  * "Key": "JavaFile",
170
180
  * "Owner": {
171
- * "DisplayName": "display-name",
181
+ * "DisplayName": "ownder-display-name",
172
182
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
173
183
  * },
174
184
  * "StorageClass": "STANDARD",
175
- * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
185
+ * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
176
186
  * }
177
187
  * ]
178
188
  * }
179
189
  * *\/
180
- * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
190
+ * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
181
191
  * ```
182
192
  *
183
- * @example List next set of multipart uploads when previous result is truncated
193
+ * @example To list in-progress multipart uploads on a bucket
184
194
  * ```javascript
185
- * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
195
+ * // The following example lists in-progress multipart uploads on a specific bucket.
186
196
  * const input = {
187
- * "Bucket": "examplebucket",
188
- * "KeyMarker": "nextkeyfrompreviousresponse",
189
- * "MaxUploads": "2",
190
- * "UploadIdMarker": "valuefrompreviousresponse"
197
+ * "Bucket": "examplebucket"
191
198
  * };
192
199
  * const command = new ListMultipartUploadsCommand(input);
193
200
  * const response = await client.send(command);
194
201
  * /* response ==
195
202
  * {
196
- * "Bucket": "acl1",
197
- * "IsTruncated": true,
198
- * "KeyMarker": "",
199
- * "MaxUploads": "2",
200
- * "NextKeyMarker": "someobjectkey",
201
- * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
202
- * "UploadIdMarker": "",
203
203
  * "Uploads": [
204
204
  * {
205
205
  * "Initiated": "2014-05-01T05:40:58.000Z",
206
206
  * "Initiator": {
207
- * "DisplayName": "ownder-display-name",
207
+ * "DisplayName": "display-name",
208
208
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
209
209
  * },
210
210
  * "Key": "JavaFile",
211
211
  * "Owner": {
212
- * "DisplayName": "mohanataws",
213
- * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
212
+ * "DisplayName": "display-name",
213
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
214
214
  * },
215
215
  * "StorageClass": "STANDARD",
216
- * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
216
+ * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
217
217
  * },
218
218
  * {
219
219
  * "Initiated": "2014-05-01T05:41:27.000Z",
220
220
  * "Initiator": {
221
- * "DisplayName": "ownder-display-name",
221
+ * "DisplayName": "display-name",
222
222
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
223
223
  * },
224
224
  * "Key": "JavaFile",
225
225
  * "Owner": {
226
- * "DisplayName": "ownder-display-name",
226
+ * "DisplayName": "display-name",
227
227
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
228
228
  * },
229
229
  * "StorageClass": "STANDARD",
230
- * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
230
+ * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
231
231
  * }
232
232
  * ]
233
233
  * }
234
234
  * *\/
235
- * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
235
+ * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
236
236
  * ```
237
237
  *
238
238
  */
@@ -36,7 +36,6 @@ export interface ListObjectVersionsCommandOutput extends ListObjectVersionsOutpu
36
36
  * appropriately.</p>
37
37
  * </note>
38
38
  * <p>To use this operation, you must have READ access to the bucket.</p>
39
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
40
39
  * <p>The following operations are related to <code>ListObjectVersions</code>:</p>
41
40
  * <ul>
42
41
  * <li>