@aws-sdk/client-s3 3.533.0 → 3.535.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/S3.d.ts +3 -1
- package/dist-types/S3Client.d.ts +1 -1
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +2 -1
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +3 -2
- package/dist-types/commands/CopyObjectCommand.d.ts +8 -5
- package/dist-types/commands/CreateBucketCommand.d.ts +31 -21
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +2 -1
- package/dist-types/commands/CreateSessionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/commands/DeleteObjectCommand.d.ts +8 -6
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +13 -12
- package/dist-types/commands/DeleteObjectsCommand.d.ts +24 -23
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketAclCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketCorsCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +5 -4
- package/dist-types/commands/GetBucketLocationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectAclCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +21 -20
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +2 -1
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/commands/HeadBucketCommand.d.ts +3 -2
- package/dist-types/commands/HeadObjectCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketsCommand.d.ts +2 -1
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +2 -1
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +2 -1
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListObjectsCommand.d.ts +2 -1
- package/dist-types/commands/ListObjectsV2Command.d.ts +2 -1
- package/dist-types/commands/ListPartsCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketAclCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketCorsCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +5 -9
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectAclCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectCommand.d.ts +53 -52
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +2 -1
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/commands/RestoreObjectCommand.d.ts +3 -61
- package/dist-types/commands/SelectObjectContentCommand.d.ts +2 -1
- package/dist-types/commands/UploadPartCommand.d.ts +2 -1
- package/dist-types/commands/UploadPartCopyCommand.d.ts +16 -15
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +1105 -1099
- package/dist-types/models/models_1.d.ts +362 -362
- package/dist-types/ts3.4/S3.d.ts +2 -0
- package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +9 -0
- package/package.json +57 -57
|
@@ -22,10 +22,10 @@ export interface PutBucketEncryptionCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketEncryptionCommand_base: {
|
|
24
24
|
new (input: PutBucketEncryptionCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketEncryptionCommandInput, PutBucketEncryptionCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketEncryptionCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketEncryptionCommandInput, PutBucketEncryptionCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -98,6 +98,7 @@ declare const PutBucketEncryptionCommand_base: {
|
|
|
98
98
|
* @throws {@link S3ServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
100
100
|
*
|
|
101
|
+
* @public
|
|
101
102
|
*/
|
|
102
103
|
export declare class PutBucketEncryptionCommand extends PutBucketEncryptionCommand_base {
|
|
103
104
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutBucketIntelligentTieringConfigurationCommandOutput extends _
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketIntelligentTieringConfigurationCommand_base: {
|
|
24
24
|
new (input: PutBucketIntelligentTieringConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketIntelligentTieringConfigurationCommandInput, PutBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketIntelligentTieringConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketIntelligentTieringConfigurationCommandInput, PutBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -135,6 +135,7 @@ declare const PutBucketIntelligentTieringConfigurationCommand_base: {
|
|
|
135
135
|
* @throws {@link S3ServiceException}
|
|
136
136
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
137
137
|
*
|
|
138
|
+
* @public
|
|
138
139
|
*/
|
|
139
140
|
export declare class PutBucketIntelligentTieringConfigurationCommand extends PutBucketIntelligentTieringConfigurationCommand_base {
|
|
140
141
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutBucketInventoryConfigurationCommandOutput extends __Metadata
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketInventoryConfigurationCommand_base: {
|
|
24
24
|
new (input: PutBucketInventoryConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketInventoryConfigurationCommandInput, PutBucketInventoryConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketInventoryConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketInventoryConfigurationCommandInput, PutBucketInventoryConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -167,6 +167,7 @@ declare const PutBucketInventoryConfigurationCommand_base: {
|
|
|
167
167
|
* @throws {@link S3ServiceException}
|
|
168
168
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
169
169
|
*
|
|
170
|
+
* @public
|
|
170
171
|
*/
|
|
171
172
|
export declare class PutBucketInventoryConfigurationCommand extends PutBucketInventoryConfigurationCommand_base {
|
|
172
173
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutBucketLifecycleConfigurationCommandOutput extends __Metadata
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
24
24
|
new (input: PutBucketLifecycleConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketLifecycleConfigurationCommandInput, PutBucketLifecycleConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketLifecycleConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketLifecycleConfigurationCommandInput, PutBucketLifecycleConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -35,11 +35,8 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
35
35
|
* lifecycle configuration. For information about lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html">Managing
|
|
36
36
|
* your storage lifecycle</a>.</p>
|
|
37
37
|
* <note>
|
|
38
|
-
* <p>Bucket lifecycle configuration now supports specifying a lifecycle rule using an
|
|
39
|
-
*
|
|
40
|
-
* this section describes the latest API. The previous version of the API supported
|
|
41
|
-
* filtering based only on an object key name prefix, which is supported for backward
|
|
42
|
-
* compatibility. For the related API description, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html">PutBucketLifecycle</a>.</p>
|
|
38
|
+
* <p>Bucket lifecycle configuration now supports specifying a lifecycle rule using an object key name prefix, one or more object tags, object size, or any combination of these. Accordingly, this section describes the latest API. The previous version of the API supported filtering based only on an object key name prefix, which is supported for backward compatibility.
|
|
39
|
+
* For the related API description, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html">PutBucketLifecycle</a>.</p>
|
|
43
40
|
* </note>
|
|
44
41
|
* <dl>
|
|
45
42
|
* <dt>Rules</dt>
|
|
@@ -50,9 +47,7 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
50
47
|
* Each rule consists of the following:</p>
|
|
51
48
|
* <ul>
|
|
52
49
|
* <li>
|
|
53
|
-
* <p>A filter identifying a subset of objects to which the rule applies. The
|
|
54
|
-
* filter can be based on a key name prefix, object tags, or a combination of
|
|
55
|
-
* both.</p>
|
|
50
|
+
* <p>A filter identifying a subset of objects to which the rule applies. The filter can be based on a key name prefix, object tags, object size, or any combination of these.</p>
|
|
56
51
|
* </li>
|
|
57
52
|
* <li>
|
|
58
53
|
* <p>A status indicating whether the rule is in effect.</p>
|
|
@@ -204,6 +199,7 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
204
199
|
* @throws {@link S3ServiceException}
|
|
205
200
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
206
201
|
*
|
|
202
|
+
* @public
|
|
207
203
|
* @example Put bucket lifecycle
|
|
208
204
|
* ```javascript
|
|
209
205
|
* // The following example replaces existing lifecycle configuration, if any, on the specified bucket.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketLoggingCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketLoggingCommand_base: {
|
|
24
24
|
new (input: PutBucketLoggingCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketLoggingCommandInput, PutBucketLoggingCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketLoggingCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketLoggingCommandInput, PutBucketLoggingCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -165,6 +165,7 @@ declare const PutBucketLoggingCommand_base: {
|
|
|
165
165
|
* @throws {@link S3ServiceException}
|
|
166
166
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
167
167
|
*
|
|
168
|
+
* @public
|
|
168
169
|
* @example Set logging configuration for a bucket
|
|
169
170
|
* ```javascript
|
|
170
171
|
* // The following example sets logging policy on a bucket. For the Log Delivery group to deliver logs to the destination bucket, it needs permission for the READ_ACP action which the policy grants.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketMetricsConfigurationCommandOutput extends __MetadataBe
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketMetricsConfigurationCommand_base: {
|
|
24
24
|
new (input: PutBucketMetricsConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketMetricsConfigurationCommandInput, PutBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketMetricsConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketMetricsConfigurationCommandInput, PutBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -123,6 +123,7 @@ declare const PutBucketMetricsConfigurationCommand_base: {
|
|
|
123
123
|
* @throws {@link S3ServiceException}
|
|
124
124
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
125
125
|
*
|
|
126
|
+
* @public
|
|
126
127
|
*/
|
|
127
128
|
export declare class PutBucketMetricsConfigurationCommand extends PutBucketMetricsConfigurationCommand_base {
|
|
128
129
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutBucketNotificationConfigurationCommandOutput extends __Metad
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketNotificationConfigurationCommand_base: {
|
|
24
24
|
new (input: PutBucketNotificationConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketNotificationConfigurationCommandInput, PutBucketNotificationConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketNotificationConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketNotificationConfigurationCommandInput, PutBucketNotificationConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -167,6 +167,7 @@ declare const PutBucketNotificationConfigurationCommand_base: {
|
|
|
167
167
|
* @throws {@link S3ServiceException}
|
|
168
168
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
169
169
|
*
|
|
170
|
+
* @public
|
|
170
171
|
* @example Set notification configuration for a bucket
|
|
171
172
|
* ```javascript
|
|
172
173
|
* // The following example sets notification configuration on a bucket to publish the object created events to an SNS topic.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketOwnershipControlsCommandOutput extends __MetadataBeare
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketOwnershipControlsCommand_base: {
|
|
24
24
|
new (input: PutBucketOwnershipControlsCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketOwnershipControlsCommandInput, PutBucketOwnershipControlsCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketOwnershipControlsCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketOwnershipControlsCommandInput, PutBucketOwnershipControlsCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -81,6 +81,7 @@ declare const PutBucketOwnershipControlsCommand_base: {
|
|
|
81
81
|
* @throws {@link S3ServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
83
83
|
*
|
|
84
|
+
* @public
|
|
84
85
|
*/
|
|
85
86
|
export declare class PutBucketOwnershipControlsCommand extends PutBucketOwnershipControlsCommand_base {
|
|
86
87
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutBucketPolicyCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketPolicyCommand_base: {
|
|
24
24
|
new (input: PutBucketPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketPolicyCommandInput, PutBucketPolicyCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketPolicyCommandInput, PutBucketPolicyCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Applies an Amazon S3 bucket policy to an Amazon S3 bucket.</p>
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>
|
|
@@ -122,6 +122,7 @@ declare const PutBucketPolicyCommand_base: {
|
|
|
122
122
|
* @throws {@link S3ServiceException}
|
|
123
123
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
124
124
|
*
|
|
125
|
+
* @public
|
|
125
126
|
* @example Set bucket policy
|
|
126
127
|
* ```javascript
|
|
127
128
|
* // The following example sets a permission policy on a bucket.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketReplicationCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketReplicationCommand_base: {
|
|
24
24
|
new (input: PutBucketReplicationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketReplicationCommandInput, PutBucketReplicationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketReplicationCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketReplicationCommandInput, PutBucketReplicationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -192,6 +192,7 @@ declare const PutBucketReplicationCommand_base: {
|
|
|
192
192
|
* @throws {@link S3ServiceException}
|
|
193
193
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
194
194
|
*
|
|
195
|
+
* @public
|
|
195
196
|
* @example Set replication configuration on a bucket
|
|
196
197
|
* ```javascript
|
|
197
198
|
* // The following example sets replication configuration on a bucket.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketRequestPaymentCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketRequestPaymentCommand_base: {
|
|
24
24
|
new (input: PutBucketRequestPaymentCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketRequestPaymentCommandInput, PutBucketRequestPaymentCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketRequestPaymentCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketRequestPaymentCommandInput, PutBucketRequestPaymentCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -77,6 +77,7 @@ declare const PutBucketRequestPaymentCommand_base: {
|
|
|
77
77
|
* @throws {@link S3ServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
79
79
|
*
|
|
80
|
+
* @public
|
|
80
81
|
* @example Set request payment configuration on a bucket.
|
|
81
82
|
* ```javascript
|
|
82
83
|
* // The following example sets request payment configuration on a bucket so that person requesting the download is charged.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketTaggingCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketTaggingCommand_base: {
|
|
24
24
|
new (input: PutBucketTaggingCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketTaggingCommandInput, PutBucketTaggingCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketTaggingCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketTaggingCommandInput, PutBucketTaggingCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -122,6 +122,7 @@ declare const PutBucketTaggingCommand_base: {
|
|
|
122
122
|
* @throws {@link S3ServiceException}
|
|
123
123
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
124
124
|
*
|
|
125
|
+
* @public
|
|
125
126
|
* @example Set tags on a bucket
|
|
126
127
|
* ```javascript
|
|
127
128
|
* // The following example sets tags on a bucket. Any existing tags are replaced.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketVersioningCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketVersioningCommand_base: {
|
|
24
24
|
new (input: PutBucketVersioningCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketVersioningCommandInput, PutBucketVersioningCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketVersioningCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketVersioningCommandInput, PutBucketVersioningCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -102,6 +102,7 @@ declare const PutBucketVersioningCommand_base: {
|
|
|
102
102
|
* @throws {@link S3ServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
104
104
|
*
|
|
105
|
+
* @public
|
|
105
106
|
* @example Set versioning configuration on a bucket
|
|
106
107
|
* ```javascript
|
|
107
108
|
* // The following example sets versioning configuration on bucket. The configuration enables versioning on the bucket.
|
|
@@ -22,10 +22,10 @@ export interface PutBucketWebsiteCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutBucketWebsiteCommand_base: {
|
|
24
24
|
new (input: PutBucketWebsiteCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketWebsiteCommandInput, PutBucketWebsiteCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutBucketWebsiteCommandInput): import("@smithy/smithy-client").CommandImpl<PutBucketWebsiteCommandInput, PutBucketWebsiteCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -206,6 +206,7 @@ declare const PutBucketWebsiteCommand_base: {
|
|
|
206
206
|
* @throws {@link S3ServiceException}
|
|
207
207
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
208
208
|
*
|
|
209
|
+
* @public
|
|
209
210
|
* @example Set website configuration on a bucket
|
|
210
211
|
* ```javascript
|
|
211
212
|
* // The following example adds website configuration to a bucket.
|
|
@@ -22,10 +22,10 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutObjectAclCommand_base: {
|
|
24
24
|
new (input: PutObjectAclCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectAclCommandInput, PutObjectAclCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutObjectAclCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectAclCommandInput, PutObjectAclCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -274,6 +274,7 @@ declare const PutObjectAclCommand_base: {
|
|
|
274
274
|
* @throws {@link S3ServiceException}
|
|
275
275
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
276
276
|
*
|
|
277
|
+
* @public
|
|
277
278
|
* @example To grant permissions using object ACL
|
|
278
279
|
* ```javascript
|
|
279
280
|
* // The following example adds grants to an object ACL. The first permission grants user1 and user2 FULL_CONTROL and the AllUsers group READ permission.
|
|
@@ -23,10 +23,10 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
23
23
|
}
|
|
24
24
|
declare const PutObjectCommand_base: {
|
|
25
25
|
new (input: PutObjectCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectCommandInput, PutObjectCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PutObjectCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectCommandInput, PutObjectCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
|
-
* @public
|
|
30
30
|
* <p>Adds an object to a bucket.</p>
|
|
31
31
|
* <note>
|
|
32
32
|
* <ul>
|
|
@@ -232,149 +232,150 @@ declare const PutObjectCommand_base: {
|
|
|
232
232
|
* @throws {@link S3ServiceException}
|
|
233
233
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
234
234
|
*
|
|
235
|
-
* @
|
|
235
|
+
* @public
|
|
236
|
+
* @example To create an object.
|
|
236
237
|
* ```javascript
|
|
237
|
-
* // The following example
|
|
238
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
238
239
|
* const input = {
|
|
239
240
|
* "Body": "filetoupload",
|
|
240
241
|
* "Bucket": "examplebucket",
|
|
241
|
-
* "Key": "
|
|
242
|
-
* "ServerSideEncryption": "AES256",
|
|
243
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
242
|
+
* "Key": "objectkey"
|
|
244
243
|
* };
|
|
245
244
|
* const command = new PutObjectCommand(input);
|
|
246
245
|
* const response = await client.send(command);
|
|
247
246
|
* /* response ==
|
|
248
247
|
* {
|
|
249
248
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
250
|
-
* "
|
|
251
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
249
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
252
250
|
* }
|
|
253
251
|
* *\/
|
|
254
|
-
* // example id: to-
|
|
252
|
+
* // example id: to-create-an-object-1483147613675
|
|
255
253
|
* ```
|
|
256
254
|
*
|
|
257
|
-
* @example To
|
|
255
|
+
* @example To upload object and specify user-defined metadata
|
|
258
256
|
* ```javascript
|
|
259
|
-
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
257
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
260
258
|
* const input = {
|
|
261
259
|
* "Body": "filetoupload",
|
|
262
260
|
* "Bucket": "examplebucket",
|
|
263
|
-
* "Key": "
|
|
261
|
+
* "Key": "exampleobject",
|
|
262
|
+
* "Metadata": {
|
|
263
|
+
* "metadata1": "value1",
|
|
264
|
+
* "metadata2": "value2"
|
|
265
|
+
* }
|
|
264
266
|
* };
|
|
265
267
|
* const command = new PutObjectCommand(input);
|
|
266
268
|
* const response = await client.send(command);
|
|
267
269
|
* /* response ==
|
|
268
270
|
* {
|
|
269
271
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
270
|
-
* "VersionId": "
|
|
272
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
271
273
|
* }
|
|
272
274
|
* *\/
|
|
273
|
-
* // example id: to-
|
|
275
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
274
276
|
* ```
|
|
275
277
|
*
|
|
276
|
-
* @example To upload an object
|
|
278
|
+
* @example To upload an object
|
|
277
279
|
* ```javascript
|
|
278
|
-
* // The following example uploads an object. The
|
|
280
|
+
* // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
|
|
279
281
|
* const input = {
|
|
280
282
|
* "Body": "HappyFace.jpg",
|
|
281
283
|
* "Bucket": "examplebucket",
|
|
282
|
-
* "Key": "HappyFace.jpg"
|
|
283
|
-
* "ServerSideEncryption": "AES256",
|
|
284
|
-
* "StorageClass": "STANDARD_IA"
|
|
284
|
+
* "Key": "HappyFace.jpg"
|
|
285
285
|
* };
|
|
286
286
|
* const command = new PutObjectCommand(input);
|
|
287
287
|
* const response = await client.send(command);
|
|
288
288
|
* /* response ==
|
|
289
289
|
* {
|
|
290
290
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
291
|
-
* "
|
|
292
|
-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
291
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
293
292
|
* }
|
|
294
293
|
* *\/
|
|
295
|
-
* // example id: to-upload-an-object-
|
|
294
|
+
* // example id: to-upload-an-object-1481760101010
|
|
296
295
|
* ```
|
|
297
296
|
*
|
|
298
|
-
* @example To upload an object and specify
|
|
297
|
+
* @example To upload an object and specify canned ACL.
|
|
299
298
|
* ```javascript
|
|
300
|
-
* // The following example uploads
|
|
299
|
+
* // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
301
300
|
* const input = {
|
|
302
|
-
* "
|
|
301
|
+
* "ACL": "authenticated-read",
|
|
302
|
+
* "Body": "filetoupload",
|
|
303
303
|
* "Bucket": "examplebucket",
|
|
304
|
-
* "Key": "
|
|
305
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
304
|
+
* "Key": "exampleobject"
|
|
306
305
|
* };
|
|
307
306
|
* const command = new PutObjectCommand(input);
|
|
308
307
|
* const response = await client.send(command);
|
|
309
308
|
* /* response ==
|
|
310
309
|
* {
|
|
311
310
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
312
|
-
* "VersionId": "
|
|
311
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
313
312
|
* }
|
|
314
313
|
* *\/
|
|
315
|
-
* // example id: to-upload-an-object-and-specify-
|
|
314
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
316
315
|
* ```
|
|
317
316
|
*
|
|
318
|
-
* @example To upload object
|
|
317
|
+
* @example To upload an object (specify optional headers)
|
|
319
318
|
* ```javascript
|
|
320
|
-
* // The following example
|
|
319
|
+
* // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
|
|
321
320
|
* const input = {
|
|
322
|
-
* "Body": "
|
|
321
|
+
* "Body": "HappyFace.jpg",
|
|
323
322
|
* "Bucket": "examplebucket",
|
|
324
|
-
* "Key": "
|
|
325
|
-
* "
|
|
326
|
-
*
|
|
327
|
-
* "metadata2": "value2"
|
|
328
|
-
* }
|
|
323
|
+
* "Key": "HappyFace.jpg",
|
|
324
|
+
* "ServerSideEncryption": "AES256",
|
|
325
|
+
* "StorageClass": "STANDARD_IA"
|
|
329
326
|
* };
|
|
330
327
|
* const command = new PutObjectCommand(input);
|
|
331
328
|
* const response = await client.send(command);
|
|
332
329
|
* /* response ==
|
|
333
330
|
* {
|
|
334
331
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
335
|
-
* "
|
|
332
|
+
* "ServerSideEncryption": "AES256",
|
|
333
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
336
334
|
* }
|
|
337
335
|
* *\/
|
|
338
|
-
* // example id: to-upload-object-
|
|
336
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
339
337
|
* ```
|
|
340
338
|
*
|
|
341
|
-
* @example To upload an object and specify
|
|
339
|
+
* @example To upload an object and specify optional tags
|
|
342
340
|
* ```javascript
|
|
343
|
-
* // The following example uploads
|
|
341
|
+
* // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
|
|
344
342
|
* const input = {
|
|
345
|
-
* "
|
|
346
|
-
* "Body": "filetoupload",
|
|
343
|
+
* "Body": "c:\\HappyFace.jpg",
|
|
347
344
|
* "Bucket": "examplebucket",
|
|
348
|
-
* "Key": "
|
|
345
|
+
* "Key": "HappyFace.jpg",
|
|
346
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
349
347
|
* };
|
|
350
348
|
* const command = new PutObjectCommand(input);
|
|
351
349
|
* const response = await client.send(command);
|
|
352
350
|
* /* response ==
|
|
353
351
|
* {
|
|
354
352
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
355
|
-
* "VersionId": "
|
|
353
|
+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
356
354
|
* }
|
|
357
355
|
* *\/
|
|
358
|
-
* // example id: to-upload-an-object-and-specify-
|
|
356
|
+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
359
357
|
* ```
|
|
360
358
|
*
|
|
361
|
-
* @example To upload an object
|
|
359
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
362
360
|
* ```javascript
|
|
363
|
-
* // The following example uploads an object
|
|
361
|
+
* // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
364
362
|
* const input = {
|
|
365
|
-
* "Body": "
|
|
363
|
+
* "Body": "filetoupload",
|
|
366
364
|
* "Bucket": "examplebucket",
|
|
367
|
-
* "Key": "
|
|
365
|
+
* "Key": "exampleobject",
|
|
366
|
+
* "ServerSideEncryption": "AES256",
|
|
367
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
368
368
|
* };
|
|
369
369
|
* const command = new PutObjectCommand(input);
|
|
370
370
|
* const response = await client.send(command);
|
|
371
371
|
* /* response ==
|
|
372
372
|
* {
|
|
373
373
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
374
|
-
* "
|
|
374
|
+
* "ServerSideEncryption": "AES256",
|
|
375
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
375
376
|
* }
|
|
376
377
|
* *\/
|
|
377
|
-
* // example id: to-upload-an-object-
|
|
378
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
378
379
|
* ```
|
|
379
380
|
*
|
|
380
381
|
*/
|
|
@@ -22,10 +22,10 @@ export interface PutObjectLegalHoldCommandOutput extends PutObjectLegalHoldOutpu
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutObjectLegalHoldCommand_base: {
|
|
24
24
|
new (input: PutObjectLegalHoldCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectLegalHoldCommandInput, PutObjectLegalHoldCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutObjectLegalHoldCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectLegalHoldCommandInput, PutObjectLegalHoldCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -68,6 +68,7 @@ declare const PutObjectLegalHoldCommand_base: {
|
|
|
68
68
|
* @throws {@link S3ServiceException}
|
|
69
69
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
70
70
|
*
|
|
71
|
+
* @public
|
|
71
72
|
*/
|
|
72
73
|
export declare class PutObjectLegalHoldCommand extends PutObjectLegalHoldCommand_base {
|
|
73
74
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutObjectLockConfigurationCommandOutput extends PutObjectLockCo
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutObjectLockConfigurationCommand_base: {
|
|
24
24
|
new (input: PutObjectLockConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectLockConfigurationCommandInput, PutObjectLockConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutObjectLockConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectLockConfigurationCommandInput, PutObjectLockConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -91,6 +91,7 @@ declare const PutObjectLockConfigurationCommand_base: {
|
|
|
91
91
|
* @throws {@link S3ServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
93
93
|
*
|
|
94
|
+
* @public
|
|
94
95
|
*/
|
|
95
96
|
export declare class PutObjectLockConfigurationCommand extends PutObjectLockConfigurationCommand_base {
|
|
96
97
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutObjectRetentionCommandOutput extends PutObjectRetentionOutpu
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutObjectRetentionCommand_base: {
|
|
24
24
|
new (input: PutObjectRetentionCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutObjectRetentionCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>This operation is not supported by directory buckets.</p>
|
|
31
31
|
* </note>
|
|
@@ -71,6 +71,7 @@ declare const PutObjectRetentionCommand_base: {
|
|
|
71
71
|
* @throws {@link S3ServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
73
73
|
*
|
|
74
|
+
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class PutObjectRetentionCommand extends PutObjectRetentionCommand_base {
|
|
76
77
|
}
|