@aws-sdk/client-s3 3.303.0 → 3.304.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.
Files changed (91) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-cjs/models/models_0.js +31 -2
  3. package/dist-es/endpoint/ruleset.js +3 -3
  4. package/dist-es/models/models_0.js +29 -0
  5. package/dist-types/S3.d.ts +751 -662
  6. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +2 -2
  7. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +22 -14
  8. package/dist-types/commands/CopyObjectCommand.d.ts +53 -30
  9. package/dist-types/commands/CreateBucketCommand.d.ts +22 -14
  10. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +74 -48
  11. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -2
  12. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +2 -2
  13. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +7 -5
  14. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -2
  15. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -2
  16. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +1 -2
  17. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +5 -5
  18. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -2
  19. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +4 -3
  20. package/dist-types/commands/DeleteObjectCommand.d.ts +11 -11
  21. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +2 -4
  22. package/dist-types/commands/DeleteObjectsCommand.d.ts +13 -14
  23. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +2 -2
  24. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +5 -4
  25. package/dist-types/commands/GetBucketAclCommand.d.ts +9 -7
  26. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +5 -4
  27. package/dist-types/commands/GetBucketCorsCommand.d.ts +1 -0
  28. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +7 -7
  29. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -2
  30. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -2
  31. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +4 -4
  32. package/dist-types/commands/GetBucketLocationCommand.d.ts +4 -0
  33. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  34. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +5 -6
  35. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -2
  36. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +4 -3
  37. package/dist-types/commands/GetBucketPolicyCommand.d.ts +1 -0
  38. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +2 -1
  40. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -2
  41. package/dist-types/commands/GetObjectAclCommand.d.ts +5 -4
  42. package/dist-types/commands/GetObjectAttributesCommand.d.ts +23 -28
  43. package/dist-types/commands/GetObjectCommand.d.ts +20 -18
  44. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -2
  45. package/dist-types/commands/GetObjectRetentionCommand.d.ts +2 -1
  46. package/dist-types/commands/GetObjectTaggingCommand.d.ts +5 -5
  47. package/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  48. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  49. package/dist-types/commands/HeadBucketCommand.d.ts +15 -9
  50. package/dist-types/commands/HeadObjectCommand.d.ts +20 -19
  51. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +4 -4
  52. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -2
  53. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +5 -5
  54. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +6 -7
  55. package/dist-types/commands/ListBucketsCommand.d.ts +3 -1
  56. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +2 -2
  57. package/dist-types/commands/ListObjectVersionsCommand.d.ts +3 -6
  58. package/dist-types/commands/ListObjectsV2Command.d.ts +11 -12
  59. package/dist-types/commands/ListPartsCommand.d.ts +3 -4
  60. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +4 -3
  61. package/dist-types/commands/PutBucketAclCommand.d.ts +15 -12
  62. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +4 -4
  63. package/dist-types/commands/PutBucketCorsCommand.d.ts +2 -2
  64. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +16 -14
  65. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +7 -8
  66. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +20 -8
  67. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +8 -8
  68. package/dist-types/commands/PutBucketLoggingCommand.d.ts +11 -7
  69. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +4 -4
  70. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +12 -12
  71. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +4 -2
  72. package/dist-types/commands/PutBucketPolicyCommand.d.ts +2 -1
  73. package/dist-types/commands/PutBucketReplicationCommand.d.ts +12 -11
  74. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  75. package/dist-types/commands/PutBucketTaggingCommand.d.ts +12 -12
  76. package/dist-types/commands/PutBucketVersioningCommand.d.ts +4 -4
  77. package/dist-types/commands/PutObjectAclCommand.d.ts +17 -13
  78. package/dist-types/commands/PutObjectCommand.d.ts +44 -53
  79. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +7 -8
  80. package/dist-types/commands/PutObjectRetentionCommand.d.ts +3 -4
  81. package/dist-types/commands/PutObjectTaggingCommand.d.ts +4 -3
  82. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  83. package/dist-types/commands/RestoreObjectCommand.d.ts +49 -68
  84. package/dist-types/commands/SelectObjectContentCommand.d.ts +13 -17
  85. package/dist-types/commands/UploadPartCommand.d.ts +23 -16
  86. package/dist-types/commands/UploadPartCopyCommand.d.ts +7 -5
  87. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +32 -21
  88. package/dist-types/models/models_0.d.ts +460 -362
  89. package/dist-types/models/models_1.d.ts +81 -76
  90. package/dist-types/ts3.4/models/models_0.d.ts +30 -28
  91. package/package.json +1 -1
@@ -24,16 +24,18 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
24
24
  * permission to set the ACL of an object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#permissions">What
25
25
  * permissions can I grant?</a> in the <i>Amazon S3 User Guide</i>.</p>
26
26
  * <p>This action is not supported by Amazon S3 on Outposts.</p>
27
- * <p>Depending on your application needs, you can choose to set
28
- * the ACL on an object using either the request body or the headers. For example, if you have
29
- * an existing application that updates a bucket ACL using the request body, you can continue
30
- * to use that approach. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
27
+ * <p>Depending on your application needs, you can choose to set the ACL on an object using
28
+ * either the request body or the headers. For example, if you have an existing application
29
+ * that updates a bucket ACL using the request body, you can continue to use that approach.
30
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a>
31
+ * in the <i>Amazon S3 User Guide</i>.</p>
31
32
  * <important>
32
- * <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs are disabled and no longer affect permissions.
33
- * You must use policies to grant access to your bucket and the objects in it. Requests to set ACLs or update ACLs fail and
34
- * return the <code>AccessControlListNotSupported</code> error code. Requests to read ACLs are still supported.
35
- * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object ownership</a>
36
- * in the <i>Amazon S3 User Guide</i>.</p>
33
+ * <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs
34
+ * are disabled and no longer affect permissions. You must use policies to grant access to
35
+ * your bucket and the objects in it. Requests to set ACLs or update ACLs fail and return
36
+ * the <code>AccessControlListNotSupported</code> error code. Requests to read ACLs are
37
+ * still supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object
38
+ * ownership</a> in the <i>Amazon S3 User Guide</i>.</p>
37
39
  * </important>
38
40
  * <p>
39
41
  * <b>Access Permissions</b>
@@ -45,7 +47,8 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
45
47
  * a set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined set
46
48
  * of grantees and permissions. Specify the canned ACL name as the value of
47
49
  * <code>x-amz-ac</code>l. If you use this header, you cannot use other access
48
- * 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>
50
+ * 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
51
+ * ACL</a>.</p>
49
52
  * </li>
50
53
  * <li>
51
54
  * <p>Specify access permissions explicitly with the <code>x-amz-grant-read</code>,
@@ -54,14 +57,15 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
54
57
  * specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who
55
58
  * will receive the permission. If you use these ACL-specific headers, you cannot use
56
59
  * <code>x-amz-acl</code> header to set a canned ACL. These parameters map to the set
57
- * 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)
58
- * Overview</a>.</p>
60
+ * 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
61
+ * List (ACL) Overview</a>.</p>
59
62
  * <p>You specify each grantee as a type=value pair, where the type is one of the
60
63
  * following:</p>
61
64
  * <ul>
62
65
  * <li>
63
66
  * <p>
64
- * <code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p>
67
+ * <code>id</code> – if the value specified is the canonical user ID of an
68
+ * Amazon Web Services account</p>
65
69
  * </li>
66
70
  * <li>
67
71
  * <p>
@@ -31,12 +31,16 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
31
31
  * @public
32
32
  * <p>Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object
33
33
  * to it.</p>
34
- * <p>Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the
35
- * entire object to the bucket.</p>
34
+ * <note>
35
+ * <p>Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the
36
+ * entire object to the bucket. You cannot use <code>PutObject</code> to only update a
37
+ * single piece of metadata for an existing object. You must put the entire object with
38
+ * updated metadata if you want to update some values.</p>
39
+ * </note>
36
40
  * <p>Amazon S3 is a distributed system. If it receives multiple write requests for the same object
37
- * simultaneously, it overwrites all but the last object written. Amazon S3 does not provide object
38
- * locking; if you need this, make sure to build it into your application layer or use
39
- * versioning instead.</p>
41
+ * simultaneously, it overwrites all but the last object written. To prevent objects from
42
+ * being deleted or overwritten, you can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Amazon S3 Object
43
+ * Lock</a>.</p>
40
44
  * <p>To ensure that data is not corrupted traversing the network, use the
41
45
  * <code>Content-MD5</code> header. When you use this header, Amazon S3 checks the object
42
46
  * against the provided MD5 value and, if they do not match, returns an error. Additionally,
@@ -46,76 +50,63 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
46
50
  * <ul>
47
51
  * <li>
48
52
  * <p>To successfully complete the <code>PutObject</code> request, you must have the
49
- * <code>s3:PutObject</code> in your IAM permissions.</p>
53
+ * <code>s3:PutObject</code> in your IAM permissions.</p>
50
54
  * </li>
51
55
  * <li>
52
56
  * <p>To successfully change the objects acl of your <code>PutObject</code> request,
53
- * you must have the <code>s3:PutObjectAcl</code> in your IAM permissions.</p>
57
+ * you must have the <code>s3:PutObjectAcl</code> in your IAM permissions.</p>
58
+ * </li>
59
+ * <li>
60
+ * <p>To successfully set the tag-set with your <code>PutObject</code> request, you
61
+ * must have the <code>s3:PutObjectTagging</code> in your IAM permissions.</p>
54
62
  * </li>
55
63
  * <li>
56
- * <p> The <code>Content-MD5</code> header is required for any request to upload an object
57
- * with a retention period configured using Amazon S3 Object Lock. For more information about
58
- * Amazon S3 Object Lock, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html">Amazon S3 Object Lock Overview</a>
59
- * in the <i>Amazon S3 User Guide</i>. </p>
64
+ * <p> The <code>Content-MD5</code> header is required for any request to upload an
65
+ * object with a retention period configured using Amazon S3 Object Lock. For more
66
+ * information about Amazon S3 Object Lock, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html">Amazon S3 Object Lock
67
+ * Overview</a> in the <i>Amazon S3 User Guide</i>. </p>
60
68
  * </li>
61
69
  * </ul>
62
70
  * </note>
63
- * <p>
64
- * <b>Server-side Encryption</b>
65
- * </p>
66
- * <p>You can optionally request server-side encryption. With server-side encryption, Amazon S3 encrypts
67
- * your data as it writes it to disks in its data centers and decrypts the data
68
- * when you access it. You have the option to provide your own encryption key or use Amazon Web Services
69
- * managed encryption keys (SSE-S3 or SSE-KMS). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side
70
- * Encryption</a>.</p>
71
- * <p>If you request server-side encryption using Amazon Web Services Key Management Service (SSE-KMS), you can enable
72
- * an S3 Bucket Key at the object-level. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html">Amazon S3 Bucket Keys</a> in the
73
- * <i>Amazon S3 User Guide</i>.</p>
74
- * <p>
75
- * <b>Access Control List (ACL)-Specific Request
76
- * Headers</b>
77
- * </p>
78
- * <p>You can use headers to grant ACL- based permissions. By default, all objects are
79
- * private. Only the owner has full access control. When adding a new object, you can grant
80
- * permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These
81
- * permissions are then added to the ACL on the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List
82
- * (ACL) Overview</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html">Managing ACLs Using the REST
83
- * API</a>. </p>
71
+ * <p>You have three mutually exclusive options to protect data using server-side encryption
72
+ * in Amazon S3, depending on how you choose to manage the encryption keys. Specifically, the
73
+ * encryption key options are Amazon S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and
74
+ * customer-provided keys (SSE-C). Amazon S3 encrypts data with server-side encryption by using
75
+ * Amazon S3 managed keys (SSE-S3) by default. You can optionally tell Amazon S3 to encrypt data at by
76
+ * rest using server-side encryption with other key options. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using
77
+ * Server-Side Encryption</a>.</p>
78
+ * <p>When adding a new object, you can use headers to grant ACL-based permissions to
79
+ * individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are
80
+ * then added to the ACL on the object. By default, all objects are private. Only the owner
81
+ * has full access control. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a>
82
+ * and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html">Managing
83
+ * ACLs Using the REST API</a>. </p>
84
84
  * <p>If the bucket that you're uploading objects to uses the bucket owner enforced setting
85
85
  * for S3 Object Ownership, ACLs are disabled and no longer affect permissions. Buckets that
86
86
  * use this setting only accept PUT requests that don't specify an ACL or PUT requests that
87
- * specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code> canned
88
- * ACL or an equivalent form of this ACL expressed in the XML format. PUT requests that contain other
89
- * ACLs (for example, custom grants to certain Amazon Web Services accounts) fail and return a
90
- * <code>400</code> error with the error code
91
- * <code>AccessControlListNotSupported</code>.</p>
92
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling ownership of
93
- * objects and disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
87
+ * specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code>
88
+ * canned ACL or an equivalent form of this ACL expressed in the XML format. PUT requests that
89
+ * contain other ACLs (for example, custom grants to certain Amazon Web Services accounts) fail and return a
90
+ * <code>400</code> error with the error code <code>AccessControlListNotSupported</code>.
91
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling ownership of
92
+ * objects and disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
94
93
  * <note>
95
- * <p>If your bucket uses the bucket owner enforced setting for Object Ownership,
96
- * all objects written to the bucket by any account will be owned by the bucket owner.</p>
94
+ * <p>If your bucket uses the bucket owner enforced setting for Object Ownership, all
95
+ * objects written to the bucket by any account will be owned by the bucket owner.</p>
97
96
  * </note>
98
- * <p>
99
- * <b>Storage Class Options</b>
100
- * </p>
101
97
  * <p>By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The
102
98
  * STANDARD storage class provides high durability and high availability. Depending on
103
99
  * performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses
104
100
  * the OUTPOSTS Storage Class. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage Classes</a> in the
105
- * <i>Amazon S3 User Guide</i>.</p>
106
- * <p>
107
- * <b>Versioning</b>
108
- * </p>
101
+ * <i>Amazon S3 User Guide</i>.</p>
109
102
  * <p>If you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID
110
103
  * for the object being stored. Amazon S3 returns this ID in the response. When you enable
111
104
  * versioning for a bucket, if Amazon S3 receives multiple write requests for the same object
112
- * simultaneously, it stores all of the objects.</p>
113
- * <p>For more information about versioning, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html">Adding Objects to
105
+ * simultaneously, it stores all of the objects. For more information about versioning, see
106
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html">Adding Objects to
114
107
  * Versioning Enabled Buckets</a>. For information about returning the versioning state
115
108
  * of a bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html">GetBucketVersioning</a>. </p>
116
- * <p class="title">
117
- * <b>Related Resources</b>
118
- * </p>
109
+ * <p>For more information about related Amazon S3 APIs, see the following:</p>
119
110
  * <ul>
120
111
  * <li>
121
112
  * <p>
@@ -21,22 +21,21 @@ export interface PutObjectLockConfigurationCommandOutput extends PutObjectLockCo
21
21
  * @public
22
22
  * <p>Places an Object Lock configuration on the specified bucket. The rule specified in the
23
23
  * Object Lock configuration will be applied by default to every new object placed in the
24
- * specified bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.
25
- * </p>
24
+ * specified bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>. </p>
26
25
  * <note>
27
26
  * <ul>
28
27
  * <li>
29
28
  * <p>The <code>DefaultRetention</code> settings require both a mode and a
30
- * period.</p>
29
+ * period.</p>
31
30
  * </li>
32
31
  * <li>
33
- * <p>The <code>DefaultRetention</code> period can be either <code>Days</code>
34
- * or <code>Years</code> but you must select one. You cannot specify <code>Days</code>
35
- * and <code>Years</code> at the same time.</p>
32
+ * <p>The <code>DefaultRetention</code> period can be either <code>Days</code> or
33
+ * <code>Years</code> but you must select one. You cannot specify
34
+ * <code>Days</code> and <code>Years</code> at the same time.</p>
36
35
  * </li>
37
36
  * <li>
38
- * <p>You can only enable Object Lock for new buckets. If you want to turn on
39
- * Object Lock for an existing bucket, contact Amazon Web Services Support.</p>
37
+ * <p>You can only enable Object Lock for new buckets. If you want to turn on Object
38
+ * Lock for an existing bucket, contact Amazon Web Services Support.</p>
40
39
  * </li>
41
40
  * </ul>
42
41
  * </note>
@@ -20,10 +20,9 @@ export interface PutObjectRetentionCommandOutput extends PutObjectRetentionOutpu
20
20
  /**
21
21
  * @public
22
22
  * <p>Places an Object Retention configuration on an object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.
23
- * Users or accounts require the <code>s3:PutObjectRetention</code> permission in order to place
24
- * an Object Retention configuration on objects. Bypassing a Governance Retention configuration
25
- * requires the <code>s3:BypassGovernanceRetention</code> permission.
26
- * </p>
23
+ * Users or accounts require the <code>s3:PutObjectRetention</code> permission in order to
24
+ * place an Object Retention configuration on objects. Bypassing a Governance Retention
25
+ * configuration requires the <code>s3:BypassGovernanceRetention</code> permission. </p>
27
26
  * <p>This action is not supported by Amazon S3 on Outposts.</p>
28
27
  * @example
29
28
  * Use a bare-bones client and the command you need to make an API call.
@@ -46,7 +46,8 @@ export interface PutObjectTaggingCommandOutput extends PutObjectTaggingOutput, _
46
46
  * <li>
47
47
  * <p>
48
48
  * <i>Cause: The tag provided was not a valid tag. This error can occur
49
- * if the tag did not pass input validation. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html">Object Tagging</a>.</i>
49
+ * if the tag did not pass input validation. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html">Object
50
+ * Tagging</a>.</i>
50
51
  * </p>
51
52
  * </li>
52
53
  * </ul>
@@ -74,8 +75,8 @@ export interface PutObjectTaggingCommandOutput extends PutObjectTaggingOutput, _
74
75
  * </li>
75
76
  * <li>
76
77
  * <p>
77
- * <i>Cause: A conflicting conditional action is currently in
78
- * progress against this resource. Please try again.</i>
78
+ * <i>Cause: A conflicting conditional action is currently in progress
79
+ * against this resource. Please try again.</i>
79
80
  * </p>
80
81
  * </li>
81
82
  * </ul>
@@ -22,7 +22,7 @@ export interface PutPublicAccessBlockCommandOutput extends __MetadataBearer {
22
22
  * <p>Creates or modifies the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket.
23
23
  * To use this operation, you must have the <code>s3:PutBucketPublicAccessBlock</code>
24
24
  * permission. For more information about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
25
- * Policy</a>.</p>
25
+ * Policy</a>.</p>
26
26
  * <important>
27
27
  * <p>When Amazon S3 evaluates the <code>PublicAccessBlock</code> configuration for a bucket or
28
28
  * an object, it checks the <code>PublicAccessBlock</code> configuration for both the
@@ -34,27 +34,13 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
34
34
  * </ul>
35
35
  * <p>To use this operation, you must have permissions to perform the
36
36
  * <code>s3:RestoreObject</code> action. The bucket owner has this permission by default
37
- * and can grant this permission to others. For more information 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
38
- * Resources</a> in the <i>Amazon S3 User Guide</i>.</p>
39
- * <p>
40
- * <b>Querying Archives with Select Requests</b>
41
- * </p>
42
- * <p>You use a select type of request to perform SQL queries on archived objects. The
43
- * archived objects that are being queried by the select request must be formatted as
44
- * uncompressed comma-separated values (CSV) files. You can run queries and custom analytics
45
- * on your archived data without having to restore your data to a hotter Amazon S3 tier. For an
46
- * overview about select requests, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html">Querying Archived Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
47
- * <p>When making a select request, do the following:</p>
37
+ * and can grant this permission to others. For more information 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
38
+ * Access Permissions to Your Amazon S3 Resources</a> in the
39
+ * <i>Amazon S3 User Guide</i>.</p>
40
+ * <p>For more information about the <code>S3</code> structure in the request body, see the
41
+ * following:</p>
48
42
  * <ul>
49
43
  * <li>
50
- * <p>Define an output location for the select query's output. This must be an Amazon S3
51
- * bucket in the same Amazon Web Services Region as the bucket that contains the archive object that is
52
- * being queried. The Amazon Web Services account that initiates the job must have permissions to write
53
- * to the S3 bucket. You can specify the storage class and encryption for the output
54
- * objects stored in the bucket. For more information about output, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html">Querying Archived Objects</a>
55
- * in the <i>Amazon S3 User Guide</i>.</p>
56
- * <p>For more information about the <code>S3</code> structure in the request body, see
57
- * the following:</p>
58
44
  * <ul>
59
45
  * <li>
60
46
  * <p>
@@ -63,8 +49,8 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
63
49
  * </li>
64
50
  * <li>
65
51
  * <p>
66
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Managing Access with
67
- * ACLs</a> in the <i>Amazon S3 User Guide</i>
52
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Managing Access with ACLs</a> in the
53
+ * <i>Amazon S3 User Guide</i>
68
54
  * </p>
69
55
  * </li>
70
56
  * <li>
@@ -108,8 +94,6 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
108
94
  * </ul>
109
95
  * </li>
110
96
  * </ul>
111
- * <p>For more information about using SQL with S3 Glacier Select restore, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html">SQL Reference for Amazon S3 Select and
112
- * S3 Glacier Select</a> in the <i>Amazon S3 User Guide</i>. </p>
113
97
  * <p>When making a select request, you can also do the following:</p>
114
98
  * <ul>
115
99
  * <li>
@@ -129,7 +113,7 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
129
113
  * </li>
130
114
  * <li>
131
115
  * <p>You can issue more than one select request on the same Amazon S3 object. Amazon S3 doesn't
132
- * deduplicate requests, so avoid issuing duplicate requests.</p>
116
+ * duplicate requests, so avoid issuing duplicate requests.</p>
133
117
  * </li>
134
118
  * <li>
135
119
  * <p> Amazon S3 accepts a select request even if the object has already been restored. A
@@ -139,65 +123,69 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
139
123
  * <p>
140
124
  * <b>Restoring objects</b>
141
125
  * </p>
142
- * <p>Objects that you archive to the S3 Glacier or
126
+ * <p>Objects that you archive to the S3 Glacier Flexible Retrieval or
143
127
  * S3 Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive or
144
- * S3 Intelligent-Tiering Deep Archive tiers are not accessible in real time. For objects in
145
- * Archive Access or Deep Archive Access tiers you must first initiate a restore request, and
146
- * then wait until the object is moved into the Frequent Access tier. For objects in
147
- * S3 Glacier or S3 Glacier Deep Archive storage classes you must
148
- * first initiate a restore request, and then wait until a temporary copy of the object is
149
- * available. To access an archived object, you must restore the object for the duration
150
- * (number of days) that you specify.</p>
128
+ * S3 Intelligent-Tiering Deep Archive tiers, are not accessible in real time. For objects in the
129
+ * S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage
130
+ * classes, you must first initiate a restore request, and then wait until a temporary copy of
131
+ * the object is available. If you want a permanent copy of the object, create a copy of it in
132
+ * the Amazon S3 Standard storage class in your S3 bucket. To access an archived object, you must
133
+ * restore the object for the duration (number of days) that you specify. For objects in the
134
+ * Archive Access or Deep Archive Access tiers of S3 Intelligent-Tiering, you must first
135
+ * initiate a restore request, and then wait until the object is moved into the Frequent
136
+ * Access tier.</p>
151
137
  * <p>To restore a specific object version, you can provide a version ID. If you don't provide
152
138
  * a version ID, Amazon S3 restores the current version.</p>
153
- * <p>When restoring an archived object (or using a select request), you can specify one of
154
- * the following data access tier options in the <code>Tier</code> element of the request
155
- * body: </p>
139
+ * <p>When restoring an archived object, you can specify one of the following data access tier
140
+ * options in the <code>Tier</code> element of the request body: </p>
156
141
  * <ul>
157
142
  * <li>
158
143
  * <p>
159
144
  * <code>Expedited</code> - Expedited retrievals allow you to quickly access your
160
- * data stored in the S3 Glacier storage class or S3 Intelligent-Tiering Archive
161
- * tier when occasional urgent requests for a subset of archives are required. For all
162
- * but the largest archived objects (250 MB+), data accessed using Expedited retrievals
163
- * is typically made available within 1–5 minutes. Provisioned capacity ensures that
164
- * retrieval capacity for Expedited retrievals is available when you need it. Expedited
165
- * retrievals and provisioned capacity are not available for objects stored in the
166
- * S3 Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier.</p>
145
+ * data stored in the S3 Glacier Flexible Retrieval storage class or
146
+ * S3 Intelligent-Tiering Archive tier when occasional urgent requests for a subset of archives
147
+ * are required. For all but the largest archived objects (250 MB+), data accessed using
148
+ * Expedited retrievals is typically made available within 1–5 minutes. Provisioned
149
+ * capacity ensures that retrieval capacity for Expedited retrievals is available when
150
+ * you need it. Expedited retrievals and provisioned capacity are not available for
151
+ * objects stored in the S3 Glacier Deep Archive storage class or
152
+ * S3 Intelligent-Tiering Deep Archive tier.</p>
167
153
  * </li>
168
154
  * <li>
169
155
  * <p>
170
156
  * <code>Standard</code> - Standard retrievals allow you to access any of your
171
157
  * archived objects within several hours. This is the default option for retrieval
172
158
  * requests that do not specify the retrieval option. Standard retrievals typically
173
- * finish within 3–5 hours for objects stored in the S3 Glacier storage
174
- * class or S3 Intelligent-Tiering Archive tier. They typically finish within 12 hours for
175
- * objects stored in the S3 Glacier Deep Archive storage class or
159
+ * finish within 3–5 hours for objects stored in the S3 Glacier Flexible
160
+ * Retrieval storage class or S3 Intelligent-Tiering Archive tier. They typically finish within
161
+ * 12 hours for objects stored in the S3 Glacier Deep Archive storage class or
176
162
  * S3 Intelligent-Tiering Deep Archive tier. Standard retrievals are free for objects stored in
177
163
  * S3 Intelligent-Tiering.</p>
178
164
  * </li>
179
165
  * <li>
180
166
  * <p>
181
- * <code>Bulk</code> - Bulk retrievals are the lowest-cost retrieval option in
182
- * S3 Glacier, enabling you to retrieve large amounts, even petabytes, of data
183
- * inexpensively. Bulk retrievals typically finish within 5–12 hours for objects stored
184
- * in the S3 Glacier storage class or S3 Intelligent-Tiering Archive tier. They
185
- * typically finish within 48 hours for objects stored in the
186
- * S3 Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier. Bulk
187
- * retrievals are free for objects stored in S3 Intelligent-Tiering.</p>
167
+ * <code>Bulk</code> - Bulk retrievals free for objects stored in the S3 Glacier
168
+ * Flexible Retrieval and S3 Intelligent-Tiering storage classes, enabling you to
169
+ * retrieve large amounts, even petabytes, of data at no cost. Bulk retrievals typically
170
+ * finish within 5–12 hours for objects stored in the S3 Glacier
171
+ * Flexible Retrieval storage class or S3 Intelligent-Tiering Archive tier. Bulk retrievals are
172
+ * also the lowest-cost retrieval option when restoring objects from
173
+ * S3 Glacier Deep Archive. They typically finish within 48 hours for objects
174
+ * stored in the S3 Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive
175
+ * tier. </p>
188
176
  * </li>
189
177
  * </ul>
190
178
  * <p>For more information about archive retrieval options and provisioned capacity for
191
- * <code>Expedited</code> data access, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the <i>Amazon S3 User Guide</i>. </p>
179
+ * <code>Expedited</code> data access, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in
180
+ * the <i>Amazon S3 User Guide</i>. </p>
192
181
  * <p>You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed
193
- * while it is in progress. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html">
194
- * Upgrading the speed of an in-progress restore</a> in the
182
+ * while it is in progress. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html"> Upgrading the speed of an in-progress restore</a> in the
195
183
  * <i>Amazon S3 User Guide</i>. </p>
196
184
  * <p>To get the status of object restoration, you can send a <code>HEAD</code> request.
197
185
  * Operations return the <code>x-amz-restore</code> header, which provides information about
198
186
  * the restoration status, in the response. You can use Amazon S3 event notifications to notify you
199
- * when a restore is initiated or completed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html">Configuring Amazon S3 Event Notifications</a> in
200
- * the <i>Amazon S3 User Guide</i>.</p>
187
+ * when a restore is initiated or completed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html">Configuring Amazon S3
188
+ * Event Notifications</a> in the <i>Amazon S3 User Guide</i>.</p>
201
189
  * <p>After restoring an archived object, you can update the restoration period by reissuing
202
190
  * the request with a new period. Amazon S3 updates the restoration period relative to the current
203
191
  * time and charges only for the request-there are no data transfer charges. You cannot
@@ -207,13 +195,13 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
207
195
  * action, the object expiration overrides the life span that you specify in a restore
208
196
  * request. For example, if you restore an object copy for 10 days, but the object is
209
197
  * scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information
210
- * about lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object Lifecycle Management</a> in
211
- * <i>Amazon S3 User Guide</i>.</p>
198
+ * about lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object Lifecycle Management</a>
199
+ * in <i>Amazon S3 User Guide</i>.</p>
212
200
  * <p>
213
201
  * <b>Responses</b>
214
202
  * </p>
215
- * <p>A successful action returns either the <code>200 OK</code> or <code>202
216
- * Accepted</code> status code. </p>
203
+ * <p>A successful action returns either the <code>200 OK</code> or <code>202 Accepted</code>
204
+ * status code. </p>
217
205
  * <ul>
218
206
  * <li>
219
207
  * <p>If the object is not previously restored, then Amazon S3 returns <code>202
@@ -295,13 +283,6 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
295
283
  * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketNotificationConfiguration.html">GetBucketNotificationConfiguration</a>
296
284
  * </p>
297
285
  * </li>
298
- * <li>
299
- * <p>
300
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html">SQL Reference for
301
- * Amazon S3 Select and S3 Glacier Select </a> in the
302
- * <i>Amazon S3 User Guide</i>
303
- * </p>
304
- * </li>
305
286
  * </ul>
306
287
  * @example
307
288
  * Use a bare-bones client and the command you need to make an API call.
@@ -26,19 +26,16 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
26
26
  * specified SQL expression. You must also specify the data serialization format for the
27
27
  * response.</p>
28
28
  * <p>This action is not supported by Amazon S3 on Outposts.</p>
29
- * <p>For more information about Amazon S3 Select,
30
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
31
- * Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
32
- * Command</a> in the <i>Amazon S3 User Guide</i>.</p>
33
- * <p>For more information about using SQL with Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html"> SQL Reference for Amazon S3 Select
34
- * and S3 Glacier Select</a> in the <i>Amazon S3 User Guide</i>.</p>
29
+ * <p>For more information about Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
30
+ * Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
31
+ * Command</a> in the <i>Amazon S3 User Guide</i>.</p>
35
32
  * <p></p>
36
33
  * <p>
37
34
  * <b>Permissions</b>
38
35
  * </p>
39
36
  * <p>You must have <code>s3:GetObject</code> permission for this operation. Amazon S3 Select does
40
- * not support anonymous access. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a Policy</a>
41
- * in the <i>Amazon S3 User Guide</i>.</p>
37
+ * not support anonymous access. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying
38
+ * Permissions in a Policy</a> in the <i>Amazon S3 User Guide</i>.</p>
42
39
  * <p></p>
43
40
  * <p>
44
41
  * <i>Object Data Formats</i>
@@ -69,14 +66,13 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
69
66
  * <i>Server-side encryption</i> - Amazon S3 Select supports querying
70
67
  * objects that are protected with server-side encryption.</p>
71
68
  * <p>For objects that are encrypted with customer-provided encryption keys (SSE-C), you
72
- * must use HTTPS, and you must use the headers that are documented in the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>. For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption
73
- * (Using Customer-Provided Encryption Keys)</a> in the
69
+ * must use HTTPS, and you must use the headers that are documented in the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>. For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side
70
+ * Encryption (Using Customer-Provided Encryption Keys)</a> in the
74
71
  * <i>Amazon S3 User Guide</i>.</p>
75
- * <p>For objects that are encrypted with Amazon S3 managed encryption keys (SSE-S3) and
76
- * Amazon Web Services KMS keys (SSE-KMS),
77
- * server-side encryption is handled transparently, so you don't need to specify
78
- * anything. For more information about server-side encryption, including SSE-S3 and
79
- * SSE-KMS, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Protecting Data Using
72
+ * <p>For objects that are encrypted with Amazon S3 managed keys (SSE-S3) and Amazon Web Services KMS keys
73
+ * (SSE-KMS), server-side encryption is handled transparently, so you don't need to
74
+ * specify anything. For more information about server-side encryption, including SSE-S3
75
+ * and SSE-KMS, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Protecting Data Using
80
76
  * Server-Side Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
81
77
  * </li>
82
78
  * </ul>
@@ -103,8 +99,8 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
103
99
  * <li>
104
100
  * <p>GLACIER, DEEP_ARCHIVE and REDUCED_REDUNDANCY storage classes: You cannot specify
105
101
  * the GLACIER, DEEP_ARCHIVE, or <code>REDUCED_REDUNDANCY</code> storage classes. For
106
- * more information, about storage classes see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#storage-class-intro">Storage Classes</a>
107
- * in the <i>Amazon S3 User Guide</i>.</p>
102
+ * more information, about storage classes see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#storage-class-intro">Storage
103
+ * Classes</a> in the <i>Amazon S3 User Guide</i>.</p>
108
104
  * </li>
109
105
  * </ul>
110
106
  * <p></p>