@aws-sdk/client-s3 3.844.0 → 3.845.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/README.md +40 -0
- package/dist-cjs/index.js +594 -121
- package/dist-es/S3.js +10 -0
- package/dist-es/commands/CreateBucketMetadataConfigurationCommand.js +31 -0
- package/dist-es/commands/DeleteBucketMetadataConfigurationCommand.js +26 -0
- package/dist-es/commands/GetBucketMetadataConfigurationCommand.js +28 -0
- package/dist-es/commands/ListPartsCommand.js +1 -1
- package/dist-es/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.js +31 -0
- package/dist-es/commands/UpdateBucketMetadataJournalTableConfigurationCommand.js +31 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +16 -24
- package/dist-es/models/models_1.js +24 -0
- package/dist-es/protocols/Aws_restXml.js +325 -3
- package/dist-types/S3.d.ts +35 -0
- package/dist-types/S3Client.d.ts +7 -2
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +17 -22
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +46 -57
- package/dist-types/commands/CopyObjectCommand.d.ts +95 -106
- package/dist-types/commands/CreateBucketCommand.d.ts +70 -82
- package/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +182 -0
- package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +25 -12
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +88 -113
- package/dist-types/commands/CreateSessionCommand.d.ts +45 -50
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +7 -9
- package/dist-types/commands/DeleteBucketCommand.d.ts +10 -12
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +4 -5
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +16 -18
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -6
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +23 -28
- package/dist-types/commands/DeleteBucketMetadataConfigurationCommand.d.ts +114 -0
- package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +26 -8
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +9 -12
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +5 -6
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +20 -23
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +5 -7
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +2 -3
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +9 -10
- package/dist-types/commands/DeleteObjectCommand.d.ts +37 -23
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +7 -7
- package/dist-types/commands/DeleteObjectsCommand.d.ts +37 -44
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +6 -6
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +14 -17
- package/dist-types/commands/GetBucketAclCommand.d.ts +9 -11
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +8 -11
- package/dist-types/commands/GetBucketCorsCommand.d.ts +4 -6
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +16 -19
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +6 -8
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +28 -37
- package/dist-types/commands/GetBucketLocationCommand.d.ts +4 -5
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +2 -2
- package/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +146 -0
- package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +25 -8
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +10 -11
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +7 -8
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +9 -8
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +24 -29
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +5 -6
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +11 -12
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +2 -3
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +2 -3
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +3 -3
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +6 -7
- package/dist-types/commands/GetObjectAclCommand.d.ts +9 -11
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +55 -70
- package/dist-types/commands/GetObjectCommand.d.ts +66 -81
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -2
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -2
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +8 -10
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +4 -5
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +10 -12
- package/dist-types/commands/HeadBucketCommand.d.ts +33 -35
- package/dist-types/commands/HeadObjectCommand.d.ts +50 -62
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +14 -17
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +12 -15
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +15 -18
- package/dist-types/commands/ListBucketsCommand.d.ts +10 -9
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +9 -9
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +41 -49
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +7 -9
- package/dist-types/commands/ListObjectsCommand.d.ts +8 -7
- package/dist-types/commands/ListObjectsV2Command.d.ts +28 -31
- package/dist-types/commands/ListPartsCommand.d.ts +21 -24
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +14 -18
- package/dist-types/commands/PutBucketAclCommand.d.ts +51 -62
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +23 -25
- package/dist-types/commands/PutBucketCorsCommand.d.ts +23 -27
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +40 -48
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +11 -12
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +33 -37
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +51 -60
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +26 -33
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +12 -14
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +29 -35
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +4 -6
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +24 -29
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +31 -38
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +4 -5
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +21 -27
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +20 -23
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +19 -18
- package/dist-types/commands/PutObjectAclCommand.d.ts +53 -61
- package/dist-types/commands/PutObjectCommand.d.ts +56 -66
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -3
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +10 -11
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +4 -4
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +18 -24
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +10 -12
- package/dist-types/commands/RenameObjectCommand.d.ts +34 -40
- package/dist-types/commands/RestoreObjectCommand.d.ts +76 -85
- package/dist-types/commands/SelectObjectContentCommand.d.ts +50 -59
- package/dist-types/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.d.ts +161 -0
- package/dist-types/commands/UpdateBucketMetadataJournalTableConfigurationCommand.d.ts +113 -0
- package/dist-types/commands/UploadPartCommand.d.ts +64 -74
- package/dist-types/commands/UploadPartCopyCommand.d.ts +80 -96
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +29 -33
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +2688 -3603
- package/dist-types/models/models_1.d.ts +2120 -743
- package/dist-types/protocols/Aws_restXml.d.ts +45 -0
- package/dist-types/ts3.4/S3.d.ts +109 -0
- package/dist-types/ts3.4/S3Client.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateBucketMetadataConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteBucketMetadataConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetBucketMetadataConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateBucketMetadataJournalTableConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +93 -206
- package/dist-types/ts3.4/models/models_1.d.ts +238 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
- package/package.json +15 -15
|
@@ -31,18 +31,17 @@ declare const GetObjectCommand_base: {
|
|
|
31
31
|
* <p>Retrieves an object from Amazon S3.</p>
|
|
32
32
|
* <p>In the <code>GetObject</code> request, specify the full key name for the object.</p>
|
|
33
33
|
* <p>
|
|
34
|
-
* <b>General purpose buckets</b> - Both the virtual-hosted-style
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* Header Bucket Specification</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
34
|
+
* <b>General purpose buckets</b> - Both the virtual-hosted-style requests
|
|
35
|
+
* and the path-style requests are supported. For a virtual hosted-style request example, if you have the
|
|
36
|
+
* object <code>photos/2006/February/sample.jpg</code>, specify the object key name as
|
|
37
|
+
* <code>/photos/2006/February/sample.jpg</code>. For a path-style request example, if you have the
|
|
38
|
+
* object <code>photos/2006/February/sample.jpg</code> in the bucket named <code>examplebucket</code>,
|
|
39
|
+
* specify the object key name as <code>/examplebucket/photos/2006/February/sample.jpg</code>. For more
|
|
40
|
+
* information about request types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket">HTTP Host Header Bucket
|
|
41
|
+
* Specification</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
43
42
|
* <p>
|
|
44
43
|
* <b>Directory buckets</b> -
|
|
45
|
-
*
|
|
44
|
+
* Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object <code>photos/2006/February/sample.jpg</code> in the bucket named <code>amzn-s3-demo-bucket--usw2-az1--x-s3</code>, specify the object key name as <code>/photos/2006/February/sample.jpg</code>. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
46
45
|
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
47
46
|
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
48
47
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
@@ -52,35 +51,28 @@ declare const GetObjectCommand_base: {
|
|
|
52
51
|
* <ul>
|
|
53
52
|
* <li>
|
|
54
53
|
* <p>
|
|
55
|
-
* <b>General purpose bucket permissions</b> - You
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* <code>s3:GetObjectVersion</code> permission is not required in this
|
|
70
|
-
* scenario. </p>
|
|
71
|
-
* <p>If the object that you request doesn’t exist, the error that Amazon S3 returns
|
|
72
|
-
* depends on whether you also have the <code>s3:ListBucket</code>
|
|
73
|
-
* permission.</p>
|
|
54
|
+
* <b>General purpose bucket permissions</b> - You must have the
|
|
55
|
+
* required permissions in a policy. To use <code>GetObject</code>, you must have the
|
|
56
|
+
* <code>READ</code> access to the object (or version). If you grant <code>READ</code> access
|
|
57
|
+
* to the anonymous user, the <code>GetObject</code> operation returns the object without using
|
|
58
|
+
* an authorization header. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying permissions in a
|
|
59
|
+
* policy</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
60
|
+
* <p>If you include a <code>versionId</code> in your request header, you must have the
|
|
61
|
+
* <code>s3:GetObjectVersion</code> permission to access a specific version of an object. The
|
|
62
|
+
* <code>s3:GetObject</code> permission is not required in this scenario.</p>
|
|
63
|
+
* <p>If you request the current version of an object without a specific <code>versionId</code>
|
|
64
|
+
* in the request header, only the <code>s3:GetObject</code> permission is required. The
|
|
65
|
+
* <code>s3:GetObjectVersion</code> permission is not required in this scenario. </p>
|
|
66
|
+
* <p>If the object that you request doesn’t exist, the error that Amazon S3 returns depends on
|
|
67
|
+
* whether you also have the <code>s3:ListBucket</code> permission.</p>
|
|
74
68
|
* <ul>
|
|
75
69
|
* <li>
|
|
76
|
-
* <p>If you have the <code>s3:ListBucket</code> permission on the
|
|
77
|
-
*
|
|
78
|
-
* error.</p>
|
|
70
|
+
* <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an
|
|
71
|
+
* HTTP status code <code>404 Not Found</code> error.</p>
|
|
79
72
|
* </li>
|
|
80
73
|
* <li>
|
|
81
|
-
* <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3
|
|
82
|
-
*
|
|
83
|
-
* error.</p>
|
|
74
|
+
* <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP
|
|
75
|
+
* status code <code>403 Access Denied</code> error.</p>
|
|
84
76
|
* </li>
|
|
85
77
|
* </ul>
|
|
86
78
|
* </li>
|
|
@@ -92,60 +84,54 @@ declare const GetObjectCommand_base: {
|
|
|
92
84
|
* Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
|
|
93
85
|
* <code>CreateSession</code>
|
|
94
86
|
* </a>.</p>
|
|
95
|
-
* <p>If
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* in IAM identity-based policies and KMS key policies for the KMS
|
|
100
|
-
* key.</p>
|
|
87
|
+
* <p>If the object is
|
|
88
|
+
* encrypted using SSE-KMS, you must also have the <code>kms:GenerateDataKey</code> and
|
|
89
|
+
* <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies
|
|
90
|
+
* for the KMS key.</p>
|
|
101
91
|
* </li>
|
|
102
92
|
* </ul>
|
|
103
93
|
* </dd>
|
|
104
94
|
* <dt>Storage classes</dt>
|
|
105
95
|
* <dd>
|
|
106
|
-
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
96
|
+
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class,
|
|
97
|
+
* the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the
|
|
98
|
+
* S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a
|
|
99
|
+
* copy using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this operation returns an <code>InvalidObjectState</code>
|
|
100
|
+
* error. For information about restoring archived objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the
|
|
101
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
113
102
|
* <p>
|
|
114
103
|
* <b>Directory buckets </b> -
|
|
115
|
-
*
|
|
104
|
+
* Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.
|
|
116
105
|
* Unsupported storage class values won't write a destination object and will respond with the HTTP status code <code>400 Bad Request</code>.</p>
|
|
117
106
|
* </dd>
|
|
118
107
|
* <dt>Encryption</dt>
|
|
119
108
|
* <dd>
|
|
120
|
-
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>,
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* you’ll get an HTTP <code>400 Bad Request</code> error.</p>
|
|
109
|
+
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be sent
|
|
110
|
+
* for the <code>GetObject</code> requests, if your object uses server-side encryption with Amazon S3
|
|
111
|
+
* managed encryption keys (SSE-S3), server-side encryption with Key Management Service (KMS) keys (SSE-KMS), or
|
|
112
|
+
* dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS). If you include the header in
|
|
113
|
+
* your <code>GetObject</code> requests for the object that uses these types of keys, you’ll get an
|
|
114
|
+
* HTTP <code>400 Bad Request</code> error.</p>
|
|
127
115
|
* <p>
|
|
128
116
|
* <b>Directory buckets</b> -
|
|
129
|
-
*
|
|
117
|
+
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more
|
|
130
118
|
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
131
119
|
* </dd>
|
|
132
120
|
* <dt>Overriding response header values through the request</dt>
|
|
133
121
|
* <dd>
|
|
134
122
|
* <p>There are times when you want to override certain response header values of a
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* <p>You can override values for a set of response headers. These modified response
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* <p>To override values for a set of response headers in the <code>GetObject</code>
|
|
148
|
-
* response, you can use the following query parameters in the request.</p>
|
|
123
|
+
* <code>GetObject</code> response. For example, you might override the
|
|
124
|
+
* <code>Content-Disposition</code> response header value through your <code>GetObject</code>
|
|
125
|
+
* request.</p>
|
|
126
|
+
* <p>You can override values for a set of response headers. These modified response header values
|
|
127
|
+
* are included only in a successful response, that is, when the HTTP status code <code>200 OK</code>
|
|
128
|
+
* is returned. The headers you can override using the following query parameters in the request are
|
|
129
|
+
* a subset of the headers that Amazon S3 accepts when you create an object. </p>
|
|
130
|
+
* <p>The response headers that you can override for the <code>GetObject</code> response are
|
|
131
|
+
* <code>Cache-Control</code>, <code>Content-Disposition</code>, <code>Content-Encoding</code>,
|
|
132
|
+
* <code>Content-Language</code>, <code>Content-Type</code>, and <code>Expires</code>.</p>
|
|
133
|
+
* <p>To override values for a set of response headers in the <code>GetObject</code> response, you
|
|
134
|
+
* can use the following query parameters in the request.</p>
|
|
149
135
|
* <ul>
|
|
150
136
|
* <li>
|
|
151
137
|
* <p>
|
|
@@ -179,9 +165,9 @@ declare const GetObjectCommand_base: {
|
|
|
179
165
|
* </li>
|
|
180
166
|
* </ul>
|
|
181
167
|
* <note>
|
|
182
|
-
* <p>When you use these parameters, you must sign the request by using either an
|
|
183
|
-
*
|
|
184
|
-
*
|
|
168
|
+
* <p>When you use these parameters, you must sign the request by using either an Authorization
|
|
169
|
+
* header or a presigned URL. These parameters cannot be used with an unsigned (anonymous)
|
|
170
|
+
* request.</p>
|
|
185
171
|
* </note>
|
|
186
172
|
* </dd>
|
|
187
173
|
* <dt>HTTP Host header syntax</dt>
|
|
@@ -294,13 +280,12 @@ declare const GetObjectCommand_base: {
|
|
|
294
280
|
*
|
|
295
281
|
* @throws {@link InvalidObjectState} (client fault)
|
|
296
282
|
* <p>Object is archived and inaccessible until restored.</p>
|
|
297
|
-
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
* the <i>Amazon S3 User Guide</i>.</p>
|
|
283
|
+
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the
|
|
284
|
+
* S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the
|
|
285
|
+
* S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a copy
|
|
286
|
+
* using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this operation returns an <code>InvalidObjectState</code> error. For
|
|
287
|
+
* information about restoring archived objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the
|
|
288
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
304
289
|
*
|
|
305
290
|
* @throws {@link NoSuchKey} (client fault)
|
|
306
291
|
* <p>The specified key does not exist.</p>
|
|
@@ -30,8 +30,7 @@ declare const GetObjectLegalHoldCommand_base: {
|
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
|
-
* <p>Gets an object's current legal hold status. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking
|
|
34
|
-
* Objects</a>.</p>
|
|
33
|
+
* <p>Gets an object's current legal hold status. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
|
|
35
34
|
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
|
|
36
35
|
* <p>The following action is related to <code>GetObjectLegalHold</code>:</p>
|
|
37
36
|
* <ul>
|
|
@@ -30,9 +30,9 @@ declare const GetObjectLockConfigurationCommand_base: {
|
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
|
-
* <p>Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* <p>Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration
|
|
34
|
+
* will be applied by default to every new object placed in the specified bucket. For more information, see
|
|
35
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
|
|
36
36
|
* <p>The following action is related to <code>GetObjectLockConfiguration</code>:</p>
|
|
37
37
|
* <ul>
|
|
38
38
|
* <li>
|
|
@@ -30,8 +30,7 @@ declare const GetObjectRetentionCommand_base: {
|
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
|
-
* <p>Retrieves an object's retention settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking
|
|
34
|
-
* Objects</a>.</p>
|
|
33
|
+
* <p>Retrieves an object's retention settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
|
|
35
34
|
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
|
|
36
35
|
* <p>The following action is related to <code>GetObjectRetention</code>:</p>
|
|
37
36
|
* <ul>
|
|
@@ -30,16 +30,14 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
|
-
* <p>Returns the tag-set of an object. You send the GET request against the tagging
|
|
34
|
-
*
|
|
35
|
-
* <p>To use this operation, you must have permission to perform the
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* <p> By default, the bucket owner has this permission and can grant this permission to
|
|
42
|
-
* others.</p>
|
|
33
|
+
* <p>Returns the tag-set of an object. You send the GET request against the tagging subresource
|
|
34
|
+
* associated with the object.</p>
|
|
35
|
+
* <p>To use this operation, you must have permission to perform the <code>s3:GetObjectTagging</code>
|
|
36
|
+
* action. By default, the GET action returns information about current version of an object. For a
|
|
37
|
+
* versioned bucket, you can have multiple versions of an object in your bucket. To retrieve tags of any
|
|
38
|
+
* other version, use the versionId query parameter. You also need permission for the
|
|
39
|
+
* <code>s3:GetObjectVersionTagging</code> action.</p>
|
|
40
|
+
* <p> By default, the bucket owner has this permission and can grant this permission to others.</p>
|
|
43
41
|
* <p> For information about the Amazon S3 object tagging feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html">Object Tagging</a>.</p>
|
|
44
42
|
* <p>The following actions are related to <code>GetObjectTagging</code>:</p>
|
|
45
43
|
* <ul>
|
|
@@ -31,12 +31,11 @@ declare const GetObjectTorrentCommand_base: {
|
|
|
31
31
|
* <note>
|
|
32
32
|
* <p>This operation is not supported for directory buckets.</p>
|
|
33
33
|
* </note>
|
|
34
|
-
* <p>Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're
|
|
35
|
-
*
|
|
34
|
+
* <p>Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're distributing
|
|
35
|
+
* large files.</p>
|
|
36
36
|
* <note>
|
|
37
|
-
* <p>You can get torrent only for objects that are less than 5 GB in size, and that are
|
|
38
|
-
*
|
|
39
|
-
* key.</p>
|
|
37
|
+
* <p>You can get torrent only for objects that are less than 5 GB in size, and that are not encrypted
|
|
38
|
+
* using server-side encryption with a customer-provided encryption key.</p>
|
|
40
39
|
* </note>
|
|
41
40
|
* <p>To use GET, you must have READ access to the object.</p>
|
|
42
41
|
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
|
|
@@ -30,25 +30,23 @@ declare const GetPublicAccessBlockCommand_base: {
|
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
|
-
* <p>Retrieves the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
33
|
+
* <p>Retrieves the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use this
|
|
34
|
+
* operation, you must have the <code>s3:GetBucketPublicAccessBlock</code> permission. For more information
|
|
35
|
+
* about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
|
|
36
|
+
* Policy</a>.</p>
|
|
37
37
|
* <important>
|
|
38
|
-
* <p>When Amazon S3 evaluates the <code>PublicAccessBlock</code> configuration for a bucket or
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* account-level settings.</p>
|
|
38
|
+
* <p>When Amazon S3 evaluates the <code>PublicAccessBlock</code> configuration for a bucket or an object, it
|
|
39
|
+
* checks the <code>PublicAccessBlock</code> configuration for both the bucket (or the bucket that
|
|
40
|
+
* contains the object) and the bucket owner's account. If the <code>PublicAccessBlock</code> settings
|
|
41
|
+
* are different between the bucket and the account, Amazon S3 uses the most restrictive combination of the
|
|
42
|
+
* bucket-level and account-level settings.</p>
|
|
44
43
|
* </important>
|
|
45
44
|
* <p>For more information about when Amazon S3 considers a bucket or an object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a>.</p>
|
|
46
45
|
* <p>The following operations are related to <code>GetPublicAccessBlock</code>:</p>
|
|
47
46
|
* <ul>
|
|
48
47
|
* <li>
|
|
49
48
|
* <p>
|
|
50
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block
|
|
51
|
-
* Public Access</a>
|
|
49
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block Public Access</a>
|
|
52
50
|
* </p>
|
|
53
51
|
* </li>
|
|
54
52
|
* <li>
|
|
@@ -27,33 +27,31 @@ declare const HeadBucketCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>You can use this operation to determine if a bucket exists and if you have permission to
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* <p>You can use this operation to determine if a bucket exists and if you have permission to access it.
|
|
31
|
+
* The action returns a <code>200 OK</code> if the bucket exists and you have permission to access
|
|
32
|
+
* it.</p>
|
|
33
33
|
* <note>
|
|
34
|
-
* <p>If the bucket does not exist or you do not have permission to access it, the
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
34
|
+
* <p>If the bucket does not exist or you do not have permission to access it, the <code>HEAD</code>
|
|
35
|
+
* request returns a generic <code>400 Bad Request</code>, <code>403 Forbidden</code> or <code>404 Not
|
|
36
|
+
* Found</code> code. A message body is not included, so you cannot determine the exception beyond
|
|
37
|
+
* these HTTP response codes.</p>
|
|
38
38
|
* </note>
|
|
39
39
|
* <dl>
|
|
40
40
|
* <dt>Authentication and authorization</dt>
|
|
41
41
|
* <dd>
|
|
42
42
|
* <p>
|
|
43
|
-
* <b>General purpose buckets</b> - Request to public
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
|
|
43
|
+
* <b>General purpose buckets</b> - Request to public buckets that
|
|
44
|
+
* grant the s3:ListBucket permission publicly do not need to be signed. All other
|
|
45
|
+
* <code>HeadBucket</code> requests must be authenticated and signed by using IAM credentials
|
|
46
|
+
* (access key ID and secret access key for the IAM identities). All headers with the
|
|
47
|
+
* <code>x-amz-</code> prefix, including <code>x-amz-copy-source</code>, must be signed. For more
|
|
48
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
|
|
50
49
|
* <p>
|
|
51
|
-
* <b>Directory buckets</b> - You must use IAM
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your
|
|
56
|
-
* behalf.</p>
|
|
50
|
+
* <b>Directory buckets</b> - You must use IAM credentials to
|
|
51
|
+
* authenticate and authorize your access to the <code>HeadBucket</code> API operation, instead of
|
|
52
|
+
* using the temporary security credentials through the <code>CreateSession</code> API
|
|
53
|
+
* operation.</p>
|
|
54
|
+
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
|
|
57
55
|
* </dd>
|
|
58
56
|
* <dt>Permissions</dt>
|
|
59
57
|
* <dd>
|
|
@@ -61,26 +59,26 @@ declare const HeadBucketCommand_base: {
|
|
|
61
59
|
* <ul>
|
|
62
60
|
* <li>
|
|
63
61
|
* <p>
|
|
64
|
-
* <b>General purpose bucket permissions</b> - To
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* permissions to your Amazon S3 resources</a> in the
|
|
70
|
-
* <i>Amazon S3 User Guide</i>.</p>
|
|
62
|
+
* <b>General purpose bucket permissions</b> - To use this
|
|
63
|
+
* operation, you must have permissions to perform the <code>s3:ListBucket</code> action. The
|
|
64
|
+
* bucket owner has this permission by default and can grant this permission to others. For more
|
|
65
|
+
* information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing access permissions to your
|
|
66
|
+
* Amazon S3 resources</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
71
67
|
* </li>
|
|
72
68
|
* <li>
|
|
73
69
|
* <p>
|
|
74
|
-
* <b>Directory bucket permissions</b> -
|
|
75
|
-
*
|
|
70
|
+
* <b>Directory bucket permissions</b> - You must have the
|
|
71
|
+
* <b>
|
|
76
72
|
* <code>s3express:CreateSession</code>
|
|
77
73
|
* </b> permission in the
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* <p>For more information about example bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
|
|
83
|
-
*
|
|
74
|
+
* <code>Action</code> element of a policy. By default, the session is in the
|
|
75
|
+
* <code>ReadWrite</code> mode. If you want to restrict the access, you can explicitly set the
|
|
76
|
+
* <code>s3express:SessionMode</code> condition key to <code>ReadOnly</code> on the
|
|
77
|
+
* bucket.</p>
|
|
78
|
+
* <p>For more information about example bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
|
|
79
|
+
* bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services
|
|
80
|
+
* Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
|
|
81
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
84
82
|
* </li>
|
|
85
83
|
* </ul>
|
|
86
84
|
* </dd>
|