@aws-sdk/client-s3 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/S3.js +0 -3
- package/dist-cjs/S3Client.js +0 -8
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -62
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -133
- package/dist-cjs/commands/CopyObjectCommand.js +0 -193
- package/dist-cjs/commands/CreateBucketCommand.js +0 -142
- package/dist-cjs/commands/CreateMultipartUploadCommand.js +0 -281
- package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/DeleteBucketCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketCorsCommand.js +0 -45
- package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +0 -47
- package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +0 -59
- package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +0 -42
- package/dist-cjs/commands/DeleteBucketPolicyCommand.js +0 -56
- package/dist-cjs/commands/DeleteBucketReplicationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketTaggingCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +0 -50
- package/dist-cjs/commands/DeleteObjectCommand.js +0 -54
- package/dist-cjs/commands/DeleteObjectTaggingCommand.js +0 -48
- package/dist-cjs/commands/DeleteObjectsCommand.js +0 -80
- package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +0 -52
- package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +0 -50
- package/dist-cjs/commands/GetBucketAclCommand.js +0 -39
- package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketCorsCommand.js +0 -44
- package/dist-cjs/commands/GetBucketEncryptionCommand.js +0 -45
- package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +0 -79
- package/dist-cjs/commands/GetBucketLocationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketLoggingCommand.js +0 -39
- package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +0 -60
- package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +0 -41
- package/dist-cjs/commands/GetBucketPolicyCommand.js +0 -50
- package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +0 -54
- package/dist-cjs/commands/GetBucketReplicationCommand.js +0 -58
- package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +0 -34
- package/dist-cjs/commands/GetBucketTaggingCommand.js +0 -55
- package/dist-cjs/commands/GetBucketVersioningCommand.js +0 -48
- package/dist-cjs/commands/GetBucketWebsiteCommand.js +0 -44
- package/dist-cjs/commands/GetObjectAclCommand.js +0 -50
- package/dist-cjs/commands/GetObjectCommand.js +0 -204
- package/dist-cjs/commands/GetObjectLegalHoldCommand.js +0 -25
- package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +0 -27
- package/dist-cjs/commands/GetObjectRetentionCommand.js +0 -25
- package/dist-cjs/commands/GetObjectTaggingCommand.js +0 -51
- package/dist-cjs/commands/GetObjectTorrentCommand.js +0 -40
- package/dist-cjs/commands/GetPublicAccessBlockCommand.js +0 -63
- package/dist-cjs/commands/HeadBucketCommand.js +0 -39
- package/dist-cjs/commands/HeadObjectCommand.js +0 -135
- package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +0 -63
- package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +0 -46
- package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +0 -62
- package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +0 -64
- package/dist-cjs/commands/ListBucketsCommand.js +0 -24
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -74
- package/dist-cjs/commands/ListObjectVersionsCommand.js +0 -62
- package/dist-cjs/commands/ListObjectsCommand.js +0 -61
- package/dist-cjs/commands/ListObjectsV2Command.js +0 -65
- package/dist-cjs/commands/ListPartsCommand.js +0 -68
- package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +0 -69
- package/dist-cjs/commands/PutBucketAclCommand.js +0 -213
- package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +0 -139
- package/dist-cjs/commands/PutBucketCorsCommand.js +0 -80
- package/dist-cjs/commands/PutBucketEncryptionCommand.js +0 -56
- package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +0 -106
- package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +0 -124
- package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +0 -117
- package/dist-cjs/commands/PutBucketLoggingCommand.js +0 -103
- package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +0 -74
- package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +0 -85
- package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +0 -40
- package/dist-cjs/commands/PutBucketPolicyCommand.js +0 -53
- package/dist-cjs/commands/PutBucketReplicationCommand.js +0 -93
- package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +0 -42
- package/dist-cjs/commands/PutBucketTaggingCommand.js +0 -102
- package/dist-cjs/commands/PutBucketVersioningCommand.js +0 -72
- package/dist-cjs/commands/PutBucketWebsiteCommand.js +0 -149
- package/dist-cjs/commands/PutObjectAclCommand.js +0 -200
- package/dist-cjs/commands/PutObjectCommand.js +0 -118
- package/dist-cjs/commands/PutObjectLegalHoldCommand.js +0 -27
- package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +0 -44
- package/dist-cjs/commands/PutObjectRetentionCommand.js +0 -36
- package/dist-cjs/commands/PutObjectTaggingCommand.js +0 -127
- package/dist-cjs/commands/PutPublicAccessBlockCommand.js +0 -68
- package/dist-cjs/commands/RestoreObjectCommand.js +0 -315
- package/dist-cjs/commands/SelectObjectContentCommand.js +0 -140
- package/dist-cjs/commands/UploadPartCommand.js +0 -161
- package/dist-cjs/commands/UploadPartCopyCommand.js +0 -202
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -46
- package/dist-cjs/commands/index.js +95 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -101
- package/dist-cjs/models/models_0.js +0 -753
- package/dist-cjs/models/models_1.js +0 -96
- package/dist-cjs/pagination/ListObjectsV2Paginator.js +0 -10
- package/dist-cjs/pagination/ListPartsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restXml.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +7 -0
- package/dist-cjs/waiters/waitForBucketExists.js +0 -9
- package/dist-cjs/waiters/waitForBucketNotExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectNotExists.js +0 -9
- package/dist-es/commands/index.js +92 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -101
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-types/commands/index.d.ts +92 -0
- package/dist-types/index.d.ts +5 -101
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/S3.d.ts +93 -5172
- package/dist-types/ts3.4/S3Client.d.ts +30 -109
- package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -129
- package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -189
- package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -138
- package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -277
- package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -200
- package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -131
- package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -61
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -65
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -209
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -135
- package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -102
- package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -120
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -113
- package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -99
- package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -81
- package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -89
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -98
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -68
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -145
- package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -196
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +5 -121
- package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -123
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -311
- package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -136
- package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +5 -164
- package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -198
- package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +5 -49
- package/dist-types/ts3.4/commands/index.d.ts +92 -0
- package/dist-types/ts3.4/index.d.ts +5 -101
- package/dist-types/ts3.4/models/models_0.d.ts +1305 -7281
- package/dist-types/ts3.4/models/models_1.d.ts +223 -956
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +4 -0
- package/package.json +46 -46
|
@@ -1,181 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { UploadPartOutput, UploadPartRequest } from "../models/models_1";
|
|
5
5
|
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
|
|
6
6
|
declare type UploadPartCommandInputType = Pick<UploadPartRequest, Exclude<keyof UploadPartRequest, "Body">> & {
|
|
7
|
-
|
|
8
|
-
* For *`UploadPartRequest["Body"]`*, see {@link UploadPartRequest.Body}.
|
|
9
|
-
*/
|
|
7
|
+
|
|
10
8
|
Body?: UploadPartRequest["Body"] | string | Uint8Array | Buffer;
|
|
11
9
|
};
|
|
12
|
-
|
|
13
|
-
* This interface extends from `UploadPartRequest` interface. There are more parameters than `Body` defined in {@link UploadPartRequest}
|
|
14
|
-
*/
|
|
10
|
+
|
|
15
11
|
export interface UploadPartCommandInput extends UploadPartCommandInputType {
|
|
16
12
|
}
|
|
17
13
|
export interface UploadPartCommandOutput extends UploadPartOutput, __MetadataBearer {
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
* <p>Uploads a part in a multipart upload.</p>
|
|
21
|
-
* <note>
|
|
22
|
-
* <p>In this operation, you provide part data in your request. However, you have an option
|
|
23
|
-
* to specify your existing Amazon S3 object as a data source for the part you are uploading. To
|
|
24
|
-
* upload a part from an existing object, you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> operation.
|
|
25
|
-
* </p>
|
|
26
|
-
* </note>
|
|
27
|
-
*
|
|
28
|
-
* <p>You must initiate a multipart upload (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>)
|
|
29
|
-
* before you can upload any part. In response to your initiate request, Amazon S3 returns an
|
|
30
|
-
* upload ID, a unique identifier, that you must include in your upload part request.</p>
|
|
31
|
-
* <p>Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely
|
|
32
|
-
* identifies a part and also defines its position within the object being created. If you
|
|
33
|
-
* upload a new part using the same part number that was used with a previous part, the
|
|
34
|
-
* previously uploaded part is overwritten. Each part must be at least 5 MB in size, except
|
|
35
|
-
* the last part. There is no size limit on the last part of your multipart upload.</p>
|
|
36
|
-
* <p>To ensure that data is not corrupted when traversing the network, specify the
|
|
37
|
-
* <code>Content-MD5</code> header in the upload part request. Amazon S3 checks the part data
|
|
38
|
-
* against the provided MD5 value. If they do not match, Amazon S3 returns an error. </p>
|
|
39
|
-
*
|
|
40
|
-
* <p>If the upload request is signed with Signature Version 4, then Amazon Web Services S3 uses the
|
|
41
|
-
* <code>x-amz-content-sha256</code> header as a checksum instead of
|
|
42
|
-
* <code>Content-MD5</code>. For more information see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html">Authenticating Requests: Using the Authorization Header (Amazon Web Services Signature Version
|
|
43
|
-
* 4)</a>. </p>
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* <p>
|
|
48
|
-
* <b>Note:</b> After you initiate multipart upload and upload
|
|
49
|
-
* one or more parts, you must either complete or abort multipart upload in order to stop
|
|
50
|
-
* getting charged for storage of the uploaded parts. Only after you either complete or abort
|
|
51
|
-
* multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts
|
|
52
|
-
* storage.</p>
|
|
53
|
-
*
|
|
54
|
-
* <p>For more information on multipart uploads, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the
|
|
55
|
-
* <i>Amazon S3 User Guide </i>.</p>
|
|
56
|
-
* <p>For information on the permissions required to use the multipart upload API, go to
|
|
57
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
|
|
58
|
-
* Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
59
|
-
*
|
|
60
|
-
* <p>You can optionally request server-side encryption where Amazon S3 encrypts your data as it
|
|
61
|
-
* writes it to disks in its data centers and decrypts it for you when you access it. You have
|
|
62
|
-
* the option of providing your own encryption key, or you can use the Amazon Web Services managed encryption
|
|
63
|
-
* keys. If you choose to provide your own encryption key, the request headers you provide in
|
|
64
|
-
* the request must match the headers you used in the request to initiate the upload by using
|
|
65
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>. For more information, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side Encryption</a> in
|
|
66
|
-
* the <i>Amazon S3 User Guide</i>.</p>
|
|
67
|
-
*
|
|
68
|
-
* <p>Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are
|
|
69
|
-
* using a customer-provided encryption key, you don't need to specify the encryption
|
|
70
|
-
* parameters in each UploadPart request. Instead, you only need to specify the server-side
|
|
71
|
-
* encryption parameters in the initial Initiate Multipart request. For more information, see
|
|
72
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
|
|
73
|
-
*
|
|
74
|
-
* <p>If you requested server-side encryption using a customer-provided encryption key in your
|
|
75
|
-
* initiate multipart upload request, you must provide identical encryption information in
|
|
76
|
-
* each part upload using the following headers.</p>
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* <ul>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>x-amz-server-side-encryption-customer-algorithm</p>
|
|
82
|
-
* </li>
|
|
83
|
-
* <li>
|
|
84
|
-
* <p>x-amz-server-side-encryption-customer-key</p>
|
|
85
|
-
* </li>
|
|
86
|
-
* <li>
|
|
87
|
-
* <p>x-amz-server-side-encryption-customer-key-MD5</p>
|
|
88
|
-
* </li>
|
|
89
|
-
* </ul>
|
|
90
|
-
*
|
|
91
|
-
* <p class="title">
|
|
92
|
-
* <b>Special Errors</b>
|
|
93
|
-
* </p>
|
|
94
|
-
* <ul>
|
|
95
|
-
* <li>
|
|
96
|
-
* <ul>
|
|
97
|
-
* <li>
|
|
98
|
-
* <p>
|
|
99
|
-
* <i>Code: NoSuchUpload</i>
|
|
100
|
-
* </p>
|
|
101
|
-
* </li>
|
|
102
|
-
* <li>
|
|
103
|
-
* <p>
|
|
104
|
-
* <i>Cause: The specified multipart upload does not exist. The upload
|
|
105
|
-
* ID might be invalid, or the multipart upload might have been aborted or
|
|
106
|
-
* completed.</i>
|
|
107
|
-
* </p>
|
|
108
|
-
* </li>
|
|
109
|
-
* <li>
|
|
110
|
-
* <p>
|
|
111
|
-
* <i> HTTP Status Code: 404 Not Found </i>
|
|
112
|
-
* </p>
|
|
113
|
-
* </li>
|
|
114
|
-
* <li>
|
|
115
|
-
* <p>
|
|
116
|
-
* <i>SOAP Fault Code Prefix: Client</i>
|
|
117
|
-
* </p>
|
|
118
|
-
* </li>
|
|
119
|
-
* </ul>
|
|
120
|
-
* </li>
|
|
121
|
-
* </ul>
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* <p class="title">
|
|
129
|
-
* <b>Related Resources</b>
|
|
130
|
-
* </p>
|
|
131
|
-
* <ul>
|
|
132
|
-
* <li>
|
|
133
|
-
* <p>
|
|
134
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
|
|
135
|
-
* </p>
|
|
136
|
-
* </li>
|
|
137
|
-
* <li>
|
|
138
|
-
* <p>
|
|
139
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a>
|
|
140
|
-
* </p>
|
|
141
|
-
* </li>
|
|
142
|
-
* <li>
|
|
143
|
-
* <p>
|
|
144
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a>
|
|
145
|
-
* </p>
|
|
146
|
-
* </li>
|
|
147
|
-
* <li>
|
|
148
|
-
* <p>
|
|
149
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
|
|
150
|
-
* </p>
|
|
151
|
-
* </li>
|
|
152
|
-
* <li>
|
|
153
|
-
* <p>
|
|
154
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
|
|
155
|
-
* </p>
|
|
156
|
-
* </li>
|
|
157
|
-
* </ul>
|
|
158
|
-
* @example
|
|
159
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
160
|
-
* ```javascript
|
|
161
|
-
* import { S3Client, UploadPartCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
162
|
-
* // const { S3Client, UploadPartCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
163
|
-
* const client = new S3Client(config);
|
|
164
|
-
* const command = new UploadPartCommand(input);
|
|
165
|
-
* const response = await client.send(command);
|
|
166
|
-
* ```
|
|
167
|
-
*
|
|
168
|
-
* @see {@link UploadPartCommandInput} for command's `input` shape.
|
|
169
|
-
* @see {@link UploadPartCommandOutput} for command's `response` shape.
|
|
170
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
15
|
+
|
|
173
16
|
export declare class UploadPartCommand extends $Command<UploadPartCommandInput, UploadPartCommandOutput, S3ClientResolvedConfig> {
|
|
174
17
|
readonly input: UploadPartCommandInput;
|
|
175
18
|
constructor(input: UploadPartCommandInput);
|
|
176
|
-
|
|
177
|
-
* @internal
|
|
178
|
-
*/
|
|
19
|
+
|
|
179
20
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UploadPartCommandInput, UploadPartCommandOutput>;
|
|
180
21
|
private serialize;
|
|
181
22
|
private deserialize;
|
|
@@ -6,207 +6,11 @@ export interface UploadPartCopyCommandInput extends UploadPartCopyRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Uploads a part by copying data from an existing object as data source. You specify the
|
|
11
|
-
* data source by adding the request header <code>x-amz-copy-source</code> in your request and
|
|
12
|
-
* a byte range by adding the request header <code>x-amz-copy-source-range</code> in your
|
|
13
|
-
* request. </p>
|
|
14
|
-
* <p>The minimum allowable part size for a multipart upload is 5 MB. For more information
|
|
15
|
-
* about multipart upload limits, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html">Quick
|
|
16
|
-
* Facts</a> in the <i>Amazon S3 User Guide</i>. </p>
|
|
17
|
-
* <note>
|
|
18
|
-
* <p>Instead of using an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
19
|
-
* action and provide data in your request.</p>
|
|
20
|
-
* </note>
|
|
21
|
-
*
|
|
22
|
-
* <p>You must initiate a multipart upload before you can upload any part. In response to your
|
|
23
|
-
* initiate request. Amazon S3 returns a unique identifier, the upload ID, that you must include in
|
|
24
|
-
* your upload part request.</p>
|
|
25
|
-
* <p>For more information about using the <code>UploadPartCopy</code> operation, see the
|
|
26
|
-
* following:</p>
|
|
27
|
-
*
|
|
28
|
-
* <ul>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>For conceptual information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
|
|
31
|
-
* Upload</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>For information about permissions required to use the multipart upload API, see
|
|
35
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
|
|
36
|
-
* Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>For information about copying objects using a single atomic action vs. the
|
|
40
|
-
* multipart upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on
|
|
41
|
-
* Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>For information about using server-side encryption with customer-provided
|
|
45
|
-
* encryption keys with the UploadPartCopy operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* <p>Note the following additional considerations about the request headers
|
|
49
|
-
* <code>x-amz-copy-source-if-match</code>, <code>x-amz-copy-source-if-none-match</code>,
|
|
50
|
-
* <code>x-amz-copy-source-if-unmodified-since</code>, and
|
|
51
|
-
* <code>x-amz-copy-source-if-modified-since</code>:</p>
|
|
52
|
-
* <p> </p>
|
|
53
|
-
* <ul>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <b>Consideration 1</b> - If both of the
|
|
57
|
-
* <code>x-amz-copy-source-if-match</code> and
|
|
58
|
-
* <code>x-amz-copy-source-if-unmodified-since</code> headers are present in the
|
|
59
|
-
* request as follows:</p>
|
|
60
|
-
* <p>
|
|
61
|
-
* <code>x-amz-copy-source-if-match</code> condition evaluates to <code>true</code>,
|
|
62
|
-
* and;</p>
|
|
63
|
-
* <p>
|
|
64
|
-
* <code>x-amz-copy-source-if-unmodified-since</code> condition evaluates to
|
|
65
|
-
* <code>false</code>;</p>
|
|
66
|
-
* <p>Amazon S3 returns <code>200 OK</code> and copies the data.
|
|
67
|
-
* </p>
|
|
68
|
-
*
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>
|
|
72
|
-
* <b>Consideration 2</b> - If both of the
|
|
73
|
-
* <code>x-amz-copy-source-if-none-match</code> and
|
|
74
|
-
* <code>x-amz-copy-source-if-modified-since</code> headers are present in the
|
|
75
|
-
* request as follows:</p>
|
|
76
|
-
* <p>
|
|
77
|
-
* <code>x-amz-copy-source-if-none-match</code> condition evaluates to
|
|
78
|
-
* <code>false</code>, and;</p>
|
|
79
|
-
* <p>
|
|
80
|
-
* <code>x-amz-copy-source-if-modified-since</code> condition evaluates to
|
|
81
|
-
* <code>true</code>;</p>
|
|
82
|
-
* <p>Amazon S3 returns <code>412 Precondition Failed</code> response code.
|
|
83
|
-
* </p>
|
|
84
|
-
* </li>
|
|
85
|
-
* </ul>
|
|
86
|
-
* <p>
|
|
87
|
-
* <b>Versioning</b>
|
|
88
|
-
* </p>
|
|
89
|
-
* <p>If your bucket has versioning enabled, you could have multiple versions of the same
|
|
90
|
-
* object. By default, <code>x-amz-copy-source</code> identifies the current version of the
|
|
91
|
-
* object to copy. If the current version is a delete marker and you don't specify a versionId
|
|
92
|
-
* in the <code>x-amz-copy-source</code>, Amazon S3 returns a 404 error, because the object does
|
|
93
|
-
* not exist. If you specify versionId in the <code>x-amz-copy-source</code> and the versionId
|
|
94
|
-
* is a delete marker, Amazon S3 returns an HTTP 400 error, because you are not allowed to specify
|
|
95
|
-
* a delete marker as a version for the <code>x-amz-copy-source</code>. </p>
|
|
96
|
-
* <p>You can optionally specify a specific version of the source object to copy by adding the
|
|
97
|
-
* <code>versionId</code> subresource as shown in the following example:</p>
|
|
98
|
-
* <p>
|
|
99
|
-
* <code>x-amz-copy-source: /bucket/object?versionId=version id</code>
|
|
100
|
-
* </p>
|
|
101
|
-
*
|
|
102
|
-
* <p class="title">
|
|
103
|
-
* <b>Special Errors</b>
|
|
104
|
-
* </p>
|
|
105
|
-
* <ul>
|
|
106
|
-
* <li>
|
|
107
|
-
* <ul>
|
|
108
|
-
* <li>
|
|
109
|
-
* <p>
|
|
110
|
-
* <i>Code: NoSuchUpload</i>
|
|
111
|
-
* </p>
|
|
112
|
-
* </li>
|
|
113
|
-
* <li>
|
|
114
|
-
* <p>
|
|
115
|
-
* <i>Cause: The specified multipart upload does not exist. The upload
|
|
116
|
-
* ID might be invalid, or the multipart upload might have been aborted or
|
|
117
|
-
* completed.</i>
|
|
118
|
-
* </p>
|
|
119
|
-
* </li>
|
|
120
|
-
* <li>
|
|
121
|
-
* <p>
|
|
122
|
-
* <i>HTTP Status Code: 404 Not Found</i>
|
|
123
|
-
* </p>
|
|
124
|
-
* </li>
|
|
125
|
-
* </ul>
|
|
126
|
-
* </li>
|
|
127
|
-
* <li>
|
|
128
|
-
* <ul>
|
|
129
|
-
* <li>
|
|
130
|
-
* <p>
|
|
131
|
-
* <i>Code: InvalidRequest</i>
|
|
132
|
-
* </p>
|
|
133
|
-
* </li>
|
|
134
|
-
* <li>
|
|
135
|
-
* <p>
|
|
136
|
-
* <i>Cause: The specified copy source is not supported as a byte-range
|
|
137
|
-
* copy source.</i>
|
|
138
|
-
* </p>
|
|
139
|
-
* </li>
|
|
140
|
-
* <li>
|
|
141
|
-
* <p>
|
|
142
|
-
* <i>HTTP Status Code: 400 Bad Request</i>
|
|
143
|
-
* </p>
|
|
144
|
-
* </li>
|
|
145
|
-
* </ul>
|
|
146
|
-
* </li>
|
|
147
|
-
* </ul>
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* <p class="title">
|
|
155
|
-
* <b>Related Resources</b>
|
|
156
|
-
* </p>
|
|
157
|
-
* <ul>
|
|
158
|
-
* <li>
|
|
159
|
-
* <p>
|
|
160
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
|
|
161
|
-
* </p>
|
|
162
|
-
* </li>
|
|
163
|
-
* <li>
|
|
164
|
-
* <p>
|
|
165
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
|
|
166
|
-
* </p>
|
|
167
|
-
* </li>
|
|
168
|
-
* <li>
|
|
169
|
-
* <p>
|
|
170
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a>
|
|
171
|
-
* </p>
|
|
172
|
-
* </li>
|
|
173
|
-
* <li>
|
|
174
|
-
* <p>
|
|
175
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a>
|
|
176
|
-
* </p>
|
|
177
|
-
* </li>
|
|
178
|
-
* <li>
|
|
179
|
-
* <p>
|
|
180
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
|
|
181
|
-
* </p>
|
|
182
|
-
* </li>
|
|
183
|
-
* <li>
|
|
184
|
-
* <p>
|
|
185
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
|
|
186
|
-
* </p>
|
|
187
|
-
* </li>
|
|
188
|
-
* </ul>
|
|
189
|
-
* @example
|
|
190
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
191
|
-
* ```javascript
|
|
192
|
-
* import { S3Client, UploadPartCopyCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
193
|
-
* // const { S3Client, UploadPartCopyCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
194
|
-
* const client = new S3Client(config);
|
|
195
|
-
* const command = new UploadPartCopyCommand(input);
|
|
196
|
-
* const response = await client.send(command);
|
|
197
|
-
* ```
|
|
198
|
-
*
|
|
199
|
-
* @see {@link UploadPartCopyCommandInput} for command's `input` shape.
|
|
200
|
-
* @see {@link UploadPartCopyCommandOutput} for command's `response` shape.
|
|
201
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
202
|
-
*
|
|
203
|
-
*/
|
|
9
|
+
|
|
204
10
|
export declare class UploadPartCopyCommand extends $Command<UploadPartCopyCommandInput, UploadPartCopyCommandOutput, S3ClientResolvedConfig> {
|
|
205
11
|
readonly input: UploadPartCopyCommandInput;
|
|
206
12
|
constructor(input: UploadPartCopyCommandInput);
|
|
207
|
-
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
13
|
+
|
|
210
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UploadPartCopyCommandInput, UploadPartCopyCommandOutput>;
|
|
211
15
|
private serialize;
|
|
212
16
|
private deserialize;
|
|
@@ -1,66 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { WriteGetObjectResponseRequest } from "../models/models_1";
|
|
5
5
|
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
|
|
6
6
|
declare type WriteGetObjectResponseCommandInputType = Pick<WriteGetObjectResponseRequest, Exclude<keyof WriteGetObjectResponseRequest, "Body">> & {
|
|
7
|
-
|
|
8
|
-
* For *`WriteGetObjectResponseRequest["Body"]`*, see {@link WriteGetObjectResponseRequest.Body}.
|
|
9
|
-
*/
|
|
7
|
+
|
|
10
8
|
Body?: WriteGetObjectResponseRequest["Body"] | string | Uint8Array | Buffer;
|
|
11
9
|
};
|
|
12
|
-
|
|
13
|
-
* This interface extends from `WriteGetObjectResponseRequest` interface. There are more parameters than `Body` defined in {@link WriteGetObjectResponseRequest}
|
|
14
|
-
*/
|
|
10
|
+
|
|
15
11
|
export interface WriteGetObjectResponseCommandInput extends WriteGetObjectResponseCommandInputType {
|
|
16
12
|
}
|
|
17
13
|
export interface WriteGetObjectResponseCommandOutput extends __MetadataBearer {
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
* <p>Passes transformed
|
|
21
|
-
* objects to a <code>GetObject</code> operation when using Object Lambda access points. For information about
|
|
22
|
-
* Object Lambda access points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with
|
|
23
|
-
* Object Lambda access points</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
24
|
-
* <p>This operation supports metadata that can be returned by <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>, in addition to
|
|
25
|
-
* <code>RequestRoute</code>, <code>RequestToken</code>, <code>StatusCode</code>,
|
|
26
|
-
* <code>ErrorCode</code>, and <code>ErrorMessage</code>. The <code>GetObject</code>
|
|
27
|
-
* response metadata is supported so that the <code>WriteGetObjectResponse</code> caller,
|
|
28
|
-
* typically an Lambda function, can provide the same metadata when it internally invokes
|
|
29
|
-
* <code>GetObject</code>. When <code>WriteGetObjectResponse</code> is called by a
|
|
30
|
-
* customer-owned Lambda function, the metadata returned to the end user
|
|
31
|
-
* <code>GetObject</code> call might differ from what Amazon S3 would normally return.</p>
|
|
32
|
-
* <p>You can include any number of metadata headers. When including a metadata header, it should be
|
|
33
|
-
* prefaced with <code>x-amz-meta</code>. For example, <code>x-amz-meta-my-custom-header: MyCustomValue</code>.
|
|
34
|
-
* The primary use case for this is to forward <code>GetObject</code> metadata.</p>
|
|
35
|
-
* <p>Amazon Web Services provides some prebuilt Lambda functions that you can use with S3 Object Lambda to detect and redact
|
|
36
|
-
* personally identifiable information (PII) and decompress S3 objects. These Lambda functions
|
|
37
|
-
* are available in the Amazon Web Services Serverless Application Repository, and can be selected through the Amazon Web Services Management Console when you create your
|
|
38
|
-
* Object Lambda access point.</p>
|
|
39
|
-
* <p>Example 1: PII Access Control - This Lambda function uses Amazon Comprehend, a natural language processing (NLP) service using machine learning to find insights and relationships in text. It automatically detects personally identifiable information (PII) such as names, addresses, dates, credit card numbers, and social security numbers from documents in your Amazon S3 bucket. </p>
|
|
40
|
-
* <p>Example 2: PII Redaction - This Lambda function uses Amazon Comprehend, a natural language processing (NLP) service using machine learning to find insights and relationships in text. It automatically redacts personally identifiable information (PII) such as names, addresses, dates, credit card numbers, and social security numbers from documents in your Amazon S3 bucket. </p>
|
|
41
|
-
* <p>Example 3: Decompression - The Lambda function S3ObjectLambdaDecompression, is equipped to decompress objects stored in S3 in one of six compressed file formats including bzip2, gzip, snappy, zlib, zstandard and ZIP. </p>
|
|
42
|
-
* <p>For information on how to view and use these functions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-examples.html">Using Amazon Web Services built Lambda functions</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { S3Client, WriteGetObjectResponseCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
47
|
-
* // const { S3Client, WriteGetObjectResponseCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
48
|
-
* const client = new S3Client(config);
|
|
49
|
-
* const command = new WriteGetObjectResponseCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link WriteGetObjectResponseCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link WriteGetObjectResponseCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
15
|
+
|
|
58
16
|
export declare class WriteGetObjectResponseCommand extends $Command<WriteGetObjectResponseCommandInput, WriteGetObjectResponseCommandOutput, S3ClientResolvedConfig> {
|
|
59
17
|
readonly input: WriteGetObjectResponseCommandInput;
|
|
60
18
|
constructor(input: WriteGetObjectResponseCommandInput);
|
|
61
|
-
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
19
|
+
|
|
64
20
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<WriteGetObjectResponseCommandInput, WriteGetObjectResponseCommandOutput>;
|
|
65
21
|
private serialize;
|
|
66
22
|
private deserialize;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export * from "./AbortMultipartUploadCommand";
|
|
2
|
+
export * from "./CompleteMultipartUploadCommand";
|
|
3
|
+
export * from "./CopyObjectCommand";
|
|
4
|
+
export * from "./CreateBucketCommand";
|
|
5
|
+
export * from "./CreateMultipartUploadCommand";
|
|
6
|
+
export * from "./DeleteBucketAnalyticsConfigurationCommand";
|
|
7
|
+
export * from "./DeleteBucketCommand";
|
|
8
|
+
export * from "./DeleteBucketCorsCommand";
|
|
9
|
+
export * from "./DeleteBucketEncryptionCommand";
|
|
10
|
+
export * from "./DeleteBucketIntelligentTieringConfigurationCommand";
|
|
11
|
+
export * from "./DeleteBucketInventoryConfigurationCommand";
|
|
12
|
+
export * from "./DeleteBucketLifecycleCommand";
|
|
13
|
+
export * from "./DeleteBucketMetricsConfigurationCommand";
|
|
14
|
+
export * from "./DeleteBucketOwnershipControlsCommand";
|
|
15
|
+
export * from "./DeleteBucketPolicyCommand";
|
|
16
|
+
export * from "./DeleteBucketReplicationCommand";
|
|
17
|
+
export * from "./DeleteBucketTaggingCommand";
|
|
18
|
+
export * from "./DeleteBucketWebsiteCommand";
|
|
19
|
+
export * from "./DeleteObjectCommand";
|
|
20
|
+
export * from "./DeleteObjectTaggingCommand";
|
|
21
|
+
export * from "./DeleteObjectsCommand";
|
|
22
|
+
export * from "./DeletePublicAccessBlockCommand";
|
|
23
|
+
export * from "./GetBucketAccelerateConfigurationCommand";
|
|
24
|
+
export * from "./GetBucketAclCommand";
|
|
25
|
+
export * from "./GetBucketAnalyticsConfigurationCommand";
|
|
26
|
+
export * from "./GetBucketCorsCommand";
|
|
27
|
+
export * from "./GetBucketEncryptionCommand";
|
|
28
|
+
export * from "./GetBucketIntelligentTieringConfigurationCommand";
|
|
29
|
+
export * from "./GetBucketInventoryConfigurationCommand";
|
|
30
|
+
export * from "./GetBucketLifecycleConfigurationCommand";
|
|
31
|
+
export * from "./GetBucketLocationCommand";
|
|
32
|
+
export * from "./GetBucketLoggingCommand";
|
|
33
|
+
export * from "./GetBucketMetricsConfigurationCommand";
|
|
34
|
+
export * from "./GetBucketNotificationConfigurationCommand";
|
|
35
|
+
export * from "./GetBucketOwnershipControlsCommand";
|
|
36
|
+
export * from "./GetBucketPolicyCommand";
|
|
37
|
+
export * from "./GetBucketPolicyStatusCommand";
|
|
38
|
+
export * from "./GetBucketReplicationCommand";
|
|
39
|
+
export * from "./GetBucketRequestPaymentCommand";
|
|
40
|
+
export * from "./GetBucketTaggingCommand";
|
|
41
|
+
export * from "./GetBucketVersioningCommand";
|
|
42
|
+
export * from "./GetBucketWebsiteCommand";
|
|
43
|
+
export * from "./GetObjectAclCommand";
|
|
44
|
+
export * from "./GetObjectCommand";
|
|
45
|
+
export * from "./GetObjectLegalHoldCommand";
|
|
46
|
+
export * from "./GetObjectLockConfigurationCommand";
|
|
47
|
+
export * from "./GetObjectRetentionCommand";
|
|
48
|
+
export * from "./GetObjectTaggingCommand";
|
|
49
|
+
export * from "./GetObjectTorrentCommand";
|
|
50
|
+
export * from "./GetPublicAccessBlockCommand";
|
|
51
|
+
export * from "./HeadBucketCommand";
|
|
52
|
+
export * from "./HeadObjectCommand";
|
|
53
|
+
export * from "./ListBucketAnalyticsConfigurationsCommand";
|
|
54
|
+
export * from "./ListBucketIntelligentTieringConfigurationsCommand";
|
|
55
|
+
export * from "./ListBucketInventoryConfigurationsCommand";
|
|
56
|
+
export * from "./ListBucketMetricsConfigurationsCommand";
|
|
57
|
+
export * from "./ListBucketsCommand";
|
|
58
|
+
export * from "./ListMultipartUploadsCommand";
|
|
59
|
+
export * from "./ListObjectVersionsCommand";
|
|
60
|
+
export * from "./ListObjectsCommand";
|
|
61
|
+
export * from "./ListObjectsV2Command";
|
|
62
|
+
export * from "./ListPartsCommand";
|
|
63
|
+
export * from "./PutBucketAccelerateConfigurationCommand";
|
|
64
|
+
export * from "./PutBucketAclCommand";
|
|
65
|
+
export * from "./PutBucketAnalyticsConfigurationCommand";
|
|
66
|
+
export * from "./PutBucketCorsCommand";
|
|
67
|
+
export * from "./PutBucketEncryptionCommand";
|
|
68
|
+
export * from "./PutBucketIntelligentTieringConfigurationCommand";
|
|
69
|
+
export * from "./PutBucketInventoryConfigurationCommand";
|
|
70
|
+
export * from "./PutBucketLifecycleConfigurationCommand";
|
|
71
|
+
export * from "./PutBucketLoggingCommand";
|
|
72
|
+
export * from "./PutBucketMetricsConfigurationCommand";
|
|
73
|
+
export * from "./PutBucketNotificationConfigurationCommand";
|
|
74
|
+
export * from "./PutBucketOwnershipControlsCommand";
|
|
75
|
+
export * from "./PutBucketPolicyCommand";
|
|
76
|
+
export * from "./PutBucketReplicationCommand";
|
|
77
|
+
export * from "./PutBucketRequestPaymentCommand";
|
|
78
|
+
export * from "./PutBucketTaggingCommand";
|
|
79
|
+
export * from "./PutBucketVersioningCommand";
|
|
80
|
+
export * from "./PutBucketWebsiteCommand";
|
|
81
|
+
export * from "./PutObjectAclCommand";
|
|
82
|
+
export * from "./PutObjectCommand";
|
|
83
|
+
export * from "./PutObjectLegalHoldCommand";
|
|
84
|
+
export * from "./PutObjectLockConfigurationCommand";
|
|
85
|
+
export * from "./PutObjectRetentionCommand";
|
|
86
|
+
export * from "./PutObjectTaggingCommand";
|
|
87
|
+
export * from "./PutPublicAccessBlockCommand";
|
|
88
|
+
export * from "./RestoreObjectCommand";
|
|
89
|
+
export * from "./SelectObjectContentCommand";
|
|
90
|
+
export * from "./UploadPartCommand";
|
|
91
|
+
export * from "./UploadPartCopyCommand";
|
|
92
|
+
export * from "./WriteGetObjectResponseCommand";
|