@aws-sdk/client-s3 3.298.0 → 3.300.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/commands/AbortMultipartUploadCommand.d.ts +7 -0
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +26 -0
- package/dist-types/commands/CopyObjectCommand.d.ts +45 -0
- package/dist-types/commands/CreateBucketCommand.d.ts +14 -0
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +34 -0
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/DeleteBucketCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +4 -0
- package/dist-types/commands/DeleteObjectCommand.d.ts +9 -0
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +6 -0
- package/dist-types/commands/DeleteObjectsCommand.d.ts +17 -0
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketAclCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/GetBucketCorsCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketLocationCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +4 -0
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +4 -0
- package/dist-types/commands/GetObjectAclCommand.d.ts +7 -0
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +15 -0
- package/dist-types/commands/GetObjectCommand.d.ts +23 -0
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +7 -0
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +7 -0
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +7 -0
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +6 -0
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +4 -0
- package/dist-types/commands/HeadBucketCommand.d.ts +4 -0
- package/dist-types/commands/HeadObjectCommand.d.ts +17 -0
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +5 -0
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +4 -0
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +5 -0
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +5 -0
- package/dist-types/commands/ListBucketsCommand.d.ts +1 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +10 -0
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +10 -0
- package/dist-types/commands/ListObjectsCommand.d.ts +10 -0
- package/dist-types/commands/ListObjectsV2Command.d.ts +12 -0
- package/dist-types/commands/ListPartsCommand.d.ts +12 -0
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +8 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +30 -0
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/PutBucketCorsCommand.d.ts +26 -0
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +17 -0
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +30 -0
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +33 -0
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +60 -0
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +24 -0
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +26 -0
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +65 -0
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +12 -0
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +8 -0
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +71 -0
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +9 -0
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +14 -0
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +11 -0
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +33 -0
- package/dist-types/commands/PutObjectAclCommand.d.ts +33 -0
- package/dist-types/commands/PutObjectCommand.d.ts +41 -0
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +12 -0
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +18 -0
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +14 -0
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +17 -0
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +12 -0
- package/dist-types/commands/RestoreObjectCommand.d.ts +88 -0
- package/dist-types/commands/SelectObjectContentCommand.d.ts +45 -0
- package/dist-types/commands/UploadPartCommand.d.ts +19 -0
- package/dist-types/commands/UploadPartCopyCommand.d.ts +21 -0
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +44 -0
- package/package.json +16 -16
|
@@ -113,6 +113,66 @@ export interface PutBucketLifecycleConfigurationCommandOutput extends __Metadata
|
|
|
113
113
|
* import { S3Client, PutBucketLifecycleConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
114
114
|
* // const { S3Client, PutBucketLifecycleConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
115
115
|
* const client = new S3Client(config);
|
|
116
|
+
* const input = {
|
|
117
|
+
* Bucket: "STRING_VALUE", // required
|
|
118
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
119
|
+
* LifecycleConfiguration: {
|
|
120
|
+
* Rules: [ // required
|
|
121
|
+
* {
|
|
122
|
+
* Expiration: {
|
|
123
|
+
* Date: new Date("TIMESTAMP"),
|
|
124
|
+
* Days: Number("int"),
|
|
125
|
+
* ExpiredObjectDeleteMarker: true || false,
|
|
126
|
+
* },
|
|
127
|
+
* ID: "STRING_VALUE",
|
|
128
|
+
* Prefix: "STRING_VALUE",
|
|
129
|
+
* Filter: { // Union: only one key present
|
|
130
|
+
* Prefix: "STRING_VALUE",
|
|
131
|
+
* Tag: {
|
|
132
|
+
* Key: "STRING_VALUE", // required
|
|
133
|
+
* Value: "STRING_VALUE", // required
|
|
134
|
+
* },
|
|
135
|
+
* ObjectSizeGreaterThan: Number("long"),
|
|
136
|
+
* ObjectSizeLessThan: Number("long"),
|
|
137
|
+
* And: {
|
|
138
|
+
* Prefix: "STRING_VALUE",
|
|
139
|
+
* Tags: [
|
|
140
|
+
* {
|
|
141
|
+
* Key: "STRING_VALUE", // required
|
|
142
|
+
* Value: "STRING_VALUE", // required
|
|
143
|
+
* },
|
|
144
|
+
* ],
|
|
145
|
+
* ObjectSizeGreaterThan: Number("long"),
|
|
146
|
+
* ObjectSizeLessThan: Number("long"),
|
|
147
|
+
* },
|
|
148
|
+
* },
|
|
149
|
+
* Status: "Enabled" || "Disabled", // required
|
|
150
|
+
* Transitions: [
|
|
151
|
+
* {
|
|
152
|
+
* Date: new Date("TIMESTAMP"),
|
|
153
|
+
* Days: Number("int"),
|
|
154
|
+
* StorageClass: "GLACIER" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "DEEP_ARCHIVE" || "GLACIER_IR",
|
|
155
|
+
* },
|
|
156
|
+
* ],
|
|
157
|
+
* NoncurrentVersionTransitions: [
|
|
158
|
+
* {
|
|
159
|
+
* NoncurrentDays: Number("int"),
|
|
160
|
+
* StorageClass: "GLACIER" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "DEEP_ARCHIVE" || "GLACIER_IR",
|
|
161
|
+
* NewerNoncurrentVersions: Number("int"),
|
|
162
|
+
* },
|
|
163
|
+
* ],
|
|
164
|
+
* NoncurrentVersionExpiration: {
|
|
165
|
+
* NoncurrentDays: Number("int"),
|
|
166
|
+
* NewerNoncurrentVersions: Number("int"),
|
|
167
|
+
* },
|
|
168
|
+
* AbortIncompleteMultipartUpload: {
|
|
169
|
+
* DaysAfterInitiation: Number("int"),
|
|
170
|
+
* },
|
|
171
|
+
* },
|
|
172
|
+
* ],
|
|
173
|
+
* },
|
|
174
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
175
|
+
* };
|
|
116
176
|
* const command = new PutBucketLifecycleConfigurationCommand(input);
|
|
117
177
|
* const response = await client.send(command);
|
|
118
178
|
* ```
|
|
@@ -101,6 +101,30 @@ export interface PutBucketLoggingCommandOutput extends __MetadataBearer {
|
|
|
101
101
|
* import { S3Client, PutBucketLoggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
102
102
|
* // const { S3Client, PutBucketLoggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
103
103
|
* const client = new S3Client(config);
|
|
104
|
+
* const input = {
|
|
105
|
+
* Bucket: "STRING_VALUE", // required
|
|
106
|
+
* BucketLoggingStatus: {
|
|
107
|
+
* LoggingEnabled: {
|
|
108
|
+
* TargetBucket: "STRING_VALUE", // required
|
|
109
|
+
* TargetGrants: [
|
|
110
|
+
* {
|
|
111
|
+
* Grantee: {
|
|
112
|
+
* DisplayName: "STRING_VALUE",
|
|
113
|
+
* EmailAddress: "STRING_VALUE",
|
|
114
|
+
* ID: "STRING_VALUE",
|
|
115
|
+
* URI: "STRING_VALUE",
|
|
116
|
+
* Type: "CanonicalUser" || "AmazonCustomerByEmail" || "Group", // required
|
|
117
|
+
* },
|
|
118
|
+
* Permission: "FULL_CONTROL" || "READ" || "WRITE",
|
|
119
|
+
* },
|
|
120
|
+
* ],
|
|
121
|
+
* TargetPrefix: "STRING_VALUE", // required
|
|
122
|
+
* },
|
|
123
|
+
* },
|
|
124
|
+
* ContentMD5: "STRING_VALUE",
|
|
125
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
126
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
127
|
+
* };
|
|
104
128
|
* const command = new PutBucketLoggingCommand(input);
|
|
105
129
|
* const response = await client.send(command);
|
|
106
130
|
* ```
|
|
@@ -72,6 +72,32 @@ export interface PutBucketMetricsConfigurationCommandOutput extends __MetadataBe
|
|
|
72
72
|
* import { S3Client, PutBucketMetricsConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
73
73
|
* // const { S3Client, PutBucketMetricsConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
74
74
|
* const client = new S3Client(config);
|
|
75
|
+
* const input = {
|
|
76
|
+
* Bucket: "STRING_VALUE", // required
|
|
77
|
+
* Id: "STRING_VALUE", // required
|
|
78
|
+
* MetricsConfiguration: {
|
|
79
|
+
* Id: "STRING_VALUE", // required
|
|
80
|
+
* Filter: { // Union: only one key present
|
|
81
|
+
* Prefix: "STRING_VALUE",
|
|
82
|
+
* Tag: {
|
|
83
|
+
* Key: "STRING_VALUE", // required
|
|
84
|
+
* Value: "STRING_VALUE", // required
|
|
85
|
+
* },
|
|
86
|
+
* AccessPointArn: "STRING_VALUE",
|
|
87
|
+
* And: {
|
|
88
|
+
* Prefix: "STRING_VALUE",
|
|
89
|
+
* Tags: [
|
|
90
|
+
* {
|
|
91
|
+
* Key: "STRING_VALUE", // required
|
|
92
|
+
* Value: "STRING_VALUE", // required
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* AccessPointArn: "STRING_VALUE",
|
|
96
|
+
* },
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
100
|
+
* };
|
|
75
101
|
* const command = new PutBucketMetricsConfigurationCommand(input);
|
|
76
102
|
* const response = await client.send(command);
|
|
77
103
|
* ```
|
|
@@ -80,6 +80,71 @@ export interface PutBucketNotificationConfigurationCommandOutput extends __Metad
|
|
|
80
80
|
* import { S3Client, PutBucketNotificationConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
81
81
|
* // const { S3Client, PutBucketNotificationConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
82
82
|
* const client = new S3Client(config);
|
|
83
|
+
* const input = {
|
|
84
|
+
* Bucket: "STRING_VALUE", // required
|
|
85
|
+
* NotificationConfiguration: {
|
|
86
|
+
* TopicConfigurations: [
|
|
87
|
+
* {
|
|
88
|
+
* Id: "STRING_VALUE",
|
|
89
|
+
* TopicArn: "STRING_VALUE", // required
|
|
90
|
+
* Events: [ // required
|
|
91
|
+
* "STRING_VALUE",
|
|
92
|
+
* ],
|
|
93
|
+
* Filter: {
|
|
94
|
+
* Key: {
|
|
95
|
+
* FilterRules: [
|
|
96
|
+
* {
|
|
97
|
+
* Name: "prefix" || "suffix",
|
|
98
|
+
* Value: "STRING_VALUE",
|
|
99
|
+
* },
|
|
100
|
+
* ],
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* ],
|
|
105
|
+
* QueueConfigurations: [
|
|
106
|
+
* {
|
|
107
|
+
* Id: "STRING_VALUE",
|
|
108
|
+
* QueueArn: "STRING_VALUE", // required
|
|
109
|
+
* Events: [ // required
|
|
110
|
+
* "STRING_VALUE",
|
|
111
|
+
* ],
|
|
112
|
+
* Filter: {
|
|
113
|
+
* Key: {
|
|
114
|
+
* FilterRules: [
|
|
115
|
+
* {
|
|
116
|
+
* Name: "prefix" || "suffix",
|
|
117
|
+
* Value: "STRING_VALUE",
|
|
118
|
+
* },
|
|
119
|
+
* ],
|
|
120
|
+
* },
|
|
121
|
+
* },
|
|
122
|
+
* },
|
|
123
|
+
* ],
|
|
124
|
+
* LambdaFunctionConfigurations: [
|
|
125
|
+
* {
|
|
126
|
+
* Id: "STRING_VALUE",
|
|
127
|
+
* LambdaFunctionArn: "STRING_VALUE", // required
|
|
128
|
+
* Events: [ // required
|
|
129
|
+
* "STRING_VALUE",
|
|
130
|
+
* ],
|
|
131
|
+
* Filter: {
|
|
132
|
+
* Key: {
|
|
133
|
+
* FilterRules: [
|
|
134
|
+
* {
|
|
135
|
+
* Name: "prefix" || "suffix",
|
|
136
|
+
* Value: "STRING_VALUE",
|
|
137
|
+
* },
|
|
138
|
+
* ],
|
|
139
|
+
* },
|
|
140
|
+
* },
|
|
141
|
+
* },
|
|
142
|
+
* ],
|
|
143
|
+
* EventBridgeConfiguration: {},
|
|
144
|
+
* },
|
|
145
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
146
|
+
* SkipDestinationValidation: true || false,
|
|
147
|
+
* };
|
|
83
148
|
* const command = new PutBucketNotificationConfigurationCommand(input);
|
|
84
149
|
* const response = await client.send(command);
|
|
85
150
|
* ```
|
|
@@ -42,6 +42,18 @@ export interface PutBucketOwnershipControlsCommandOutput extends __MetadataBeare
|
|
|
42
42
|
* import { S3Client, PutBucketOwnershipControlsCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
43
43
|
* // const { S3Client, PutBucketOwnershipControlsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
44
44
|
* const client = new S3Client(config);
|
|
45
|
+
* const input = {
|
|
46
|
+
* Bucket: "STRING_VALUE", // required
|
|
47
|
+
* ContentMD5: "STRING_VALUE",
|
|
48
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
49
|
+
* OwnershipControls: {
|
|
50
|
+
* Rules: [ // required
|
|
51
|
+
* {
|
|
52
|
+
* ObjectOwnership: "BucketOwnerPreferred" || "ObjectWriter" || "BucketOwnerEnforced", // required
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* },
|
|
56
|
+
* };
|
|
45
57
|
* const command = new PutBucketOwnershipControlsCommand(input);
|
|
46
58
|
* const response = await client.send(command);
|
|
47
59
|
* ```
|
|
@@ -52,6 +52,14 @@ export interface PutBucketPolicyCommandOutput extends __MetadataBearer {
|
|
|
52
52
|
* import { S3Client, PutBucketPolicyCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
53
53
|
* // const { S3Client, PutBucketPolicyCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
54
54
|
* const client = new S3Client(config);
|
|
55
|
+
* const input = {
|
|
56
|
+
* Bucket: "STRING_VALUE", // required
|
|
57
|
+
* ContentMD5: "STRING_VALUE",
|
|
58
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
59
|
+
* ConfirmRemoveSelfBucketAccess: true || false,
|
|
60
|
+
* Policy: "STRING_VALUE", // required
|
|
61
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
62
|
+
* };
|
|
55
63
|
* const command = new PutBucketPolicyCommand(input);
|
|
56
64
|
* const response = await client.send(command);
|
|
57
65
|
* ```
|
|
@@ -87,6 +87,77 @@ export interface PutBucketReplicationCommandOutput extends __MetadataBearer {
|
|
|
87
87
|
* import { S3Client, PutBucketReplicationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
88
88
|
* // const { S3Client, PutBucketReplicationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
89
89
|
* const client = new S3Client(config);
|
|
90
|
+
* const input = {
|
|
91
|
+
* Bucket: "STRING_VALUE", // required
|
|
92
|
+
* ContentMD5: "STRING_VALUE",
|
|
93
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
94
|
+
* ReplicationConfiguration: {
|
|
95
|
+
* Role: "STRING_VALUE", // required
|
|
96
|
+
* Rules: [ // required
|
|
97
|
+
* {
|
|
98
|
+
* ID: "STRING_VALUE",
|
|
99
|
+
* Priority: Number("int"),
|
|
100
|
+
* Prefix: "STRING_VALUE",
|
|
101
|
+
* Filter: { // Union: only one key present
|
|
102
|
+
* Prefix: "STRING_VALUE",
|
|
103
|
+
* Tag: {
|
|
104
|
+
* Key: "STRING_VALUE", // required
|
|
105
|
+
* Value: "STRING_VALUE", // required
|
|
106
|
+
* },
|
|
107
|
+
* And: {
|
|
108
|
+
* Prefix: "STRING_VALUE",
|
|
109
|
+
* Tags: [
|
|
110
|
+
* {
|
|
111
|
+
* Key: "STRING_VALUE", // required
|
|
112
|
+
* Value: "STRING_VALUE", // required
|
|
113
|
+
* },
|
|
114
|
+
* ],
|
|
115
|
+
* },
|
|
116
|
+
* },
|
|
117
|
+
* Status: "Enabled" || "Disabled", // required
|
|
118
|
+
* SourceSelectionCriteria: {
|
|
119
|
+
* SseKmsEncryptedObjects: {
|
|
120
|
+
* Status: "Enabled" || "Disabled", // required
|
|
121
|
+
* },
|
|
122
|
+
* ReplicaModifications: {
|
|
123
|
+
* Status: "Enabled" || "Disabled", // required
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* ExistingObjectReplication: {
|
|
127
|
+
* Status: "Enabled" || "Disabled", // required
|
|
128
|
+
* },
|
|
129
|
+
* Destination: {
|
|
130
|
+
* Bucket: "STRING_VALUE", // required
|
|
131
|
+
* Account: "STRING_VALUE",
|
|
132
|
+
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR",
|
|
133
|
+
* AccessControlTranslation: {
|
|
134
|
+
* Owner: "Destination", // required
|
|
135
|
+
* },
|
|
136
|
+
* EncryptionConfiguration: {
|
|
137
|
+
* ReplicaKmsKeyID: "STRING_VALUE",
|
|
138
|
+
* },
|
|
139
|
+
* ReplicationTime: {
|
|
140
|
+
* Status: "Enabled" || "Disabled", // required
|
|
141
|
+
* Time: {
|
|
142
|
+
* Minutes: Number("int"),
|
|
143
|
+
* },
|
|
144
|
+
* },
|
|
145
|
+
* Metrics: {
|
|
146
|
+
* Status: "Enabled" || "Disabled", // required
|
|
147
|
+
* EventThreshold: {
|
|
148
|
+
* Minutes: Number("int"),
|
|
149
|
+
* },
|
|
150
|
+
* },
|
|
151
|
+
* },
|
|
152
|
+
* DeleteMarkerReplication: {
|
|
153
|
+
* Status: "Enabled" || "Disabled",
|
|
154
|
+
* },
|
|
155
|
+
* },
|
|
156
|
+
* ],
|
|
157
|
+
* },
|
|
158
|
+
* Token: "STRING_VALUE",
|
|
159
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
160
|
+
* };
|
|
90
161
|
* const command = new PutBucketReplicationCommand(input);
|
|
91
162
|
* const response = await client.send(command);
|
|
92
163
|
* ```
|
|
@@ -43,6 +43,15 @@ export interface PutBucketRequestPaymentCommandOutput extends __MetadataBearer {
|
|
|
43
43
|
* import { S3Client, PutBucketRequestPaymentCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
44
44
|
* // const { S3Client, PutBucketRequestPaymentCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
45
45
|
* const client = new S3Client(config);
|
|
46
|
+
* const input = {
|
|
47
|
+
* Bucket: "STRING_VALUE", // required
|
|
48
|
+
* ContentMD5: "STRING_VALUE",
|
|
49
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
50
|
+
* RequestPaymentConfiguration: {
|
|
51
|
+
* Payer: "Requester" || "BucketOwner", // required
|
|
52
|
+
* },
|
|
53
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
54
|
+
* };
|
|
46
55
|
* const command = new PutBucketRequestPaymentCommand(input);
|
|
47
56
|
* const response = await client.send(command);
|
|
48
57
|
* ```
|
|
@@ -100,6 +100,20 @@ export interface PutBucketTaggingCommandOutput extends __MetadataBearer {
|
|
|
100
100
|
* import { S3Client, PutBucketTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
101
101
|
* // const { S3Client, PutBucketTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
102
102
|
* const client = new S3Client(config);
|
|
103
|
+
* const input = {
|
|
104
|
+
* Bucket: "STRING_VALUE", // required
|
|
105
|
+
* ContentMD5: "STRING_VALUE",
|
|
106
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
107
|
+
* Tagging: {
|
|
108
|
+
* TagSet: [ // required
|
|
109
|
+
* {
|
|
110
|
+
* Key: "STRING_VALUE", // required
|
|
111
|
+
* Value: "STRING_VALUE", // required
|
|
112
|
+
* },
|
|
113
|
+
* ],
|
|
114
|
+
* },
|
|
115
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
116
|
+
* };
|
|
103
117
|
* const command = new PutBucketTaggingCommand(input);
|
|
104
118
|
* const response = await client.send(command);
|
|
105
119
|
* ```
|
|
@@ -68,6 +68,17 @@ export interface PutBucketVersioningCommandOutput extends __MetadataBearer {
|
|
|
68
68
|
* import { S3Client, PutBucketVersioningCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
69
69
|
* // const { S3Client, PutBucketVersioningCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
70
70
|
* const client = new S3Client(config);
|
|
71
|
+
* const input = {
|
|
72
|
+
* Bucket: "STRING_VALUE", // required
|
|
73
|
+
* ContentMD5: "STRING_VALUE",
|
|
74
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
75
|
+
* MFA: "STRING_VALUE",
|
|
76
|
+
* VersioningConfiguration: {
|
|
77
|
+
* MFADelete: "Enabled" || "Disabled",
|
|
78
|
+
* Status: "Enabled" || "Suspended",
|
|
79
|
+
* },
|
|
80
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
81
|
+
* };
|
|
71
82
|
* const command = new PutBucketVersioningCommand(input);
|
|
72
83
|
* const response = await client.send(command);
|
|
73
84
|
* ```
|
|
@@ -147,6 +147,39 @@ export interface PutBucketWebsiteCommandOutput extends __MetadataBearer {
|
|
|
147
147
|
* import { S3Client, PutBucketWebsiteCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
148
148
|
* // const { S3Client, PutBucketWebsiteCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
149
149
|
* const client = new S3Client(config);
|
|
150
|
+
* const input = {
|
|
151
|
+
* Bucket: "STRING_VALUE", // required
|
|
152
|
+
* ContentMD5: "STRING_VALUE",
|
|
153
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
154
|
+
* WebsiteConfiguration: {
|
|
155
|
+
* ErrorDocument: {
|
|
156
|
+
* Key: "STRING_VALUE", // required
|
|
157
|
+
* },
|
|
158
|
+
* IndexDocument: {
|
|
159
|
+
* Suffix: "STRING_VALUE", // required
|
|
160
|
+
* },
|
|
161
|
+
* RedirectAllRequestsTo: {
|
|
162
|
+
* HostName: "STRING_VALUE", // required
|
|
163
|
+
* Protocol: "http" || "https",
|
|
164
|
+
* },
|
|
165
|
+
* RoutingRules: [
|
|
166
|
+
* {
|
|
167
|
+
* Condition: {
|
|
168
|
+
* HttpErrorCodeReturnedEquals: "STRING_VALUE",
|
|
169
|
+
* KeyPrefixEquals: "STRING_VALUE",
|
|
170
|
+
* },
|
|
171
|
+
* Redirect: {
|
|
172
|
+
* HostName: "STRING_VALUE",
|
|
173
|
+
* HttpRedirectCode: "STRING_VALUE",
|
|
174
|
+
* Protocol: "http" || "https",
|
|
175
|
+
* ReplaceKeyPrefixWith: "STRING_VALUE",
|
|
176
|
+
* ReplaceKeyWith: "STRING_VALUE",
|
|
177
|
+
* },
|
|
178
|
+
* },
|
|
179
|
+
* ],
|
|
180
|
+
* },
|
|
181
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
182
|
+
* };
|
|
150
183
|
* const command = new PutBucketWebsiteCommand(input);
|
|
151
184
|
* const response = await client.send(command);
|
|
152
185
|
* ```
|
|
@@ -204,6 +204,39 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
|
|
|
204
204
|
* import { S3Client, PutObjectAclCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
205
205
|
* // const { S3Client, PutObjectAclCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
206
206
|
* const client = new S3Client(config);
|
|
207
|
+
* const input = {
|
|
208
|
+
* ACL: "private" || "public-read" || "public-read-write" || "authenticated-read" || "aws-exec-read" || "bucket-owner-read" || "bucket-owner-full-control",
|
|
209
|
+
* AccessControlPolicy: {
|
|
210
|
+
* Grants: [
|
|
211
|
+
* {
|
|
212
|
+
* Grantee: {
|
|
213
|
+
* DisplayName: "STRING_VALUE",
|
|
214
|
+
* EmailAddress: "STRING_VALUE",
|
|
215
|
+
* ID: "STRING_VALUE",
|
|
216
|
+
* URI: "STRING_VALUE",
|
|
217
|
+
* Type: "CanonicalUser" || "AmazonCustomerByEmail" || "Group", // required
|
|
218
|
+
* },
|
|
219
|
+
* Permission: "FULL_CONTROL" || "WRITE" || "WRITE_ACP" || "READ" || "READ_ACP",
|
|
220
|
+
* },
|
|
221
|
+
* ],
|
|
222
|
+
* Owner: {
|
|
223
|
+
* DisplayName: "STRING_VALUE",
|
|
224
|
+
* ID: "STRING_VALUE",
|
|
225
|
+
* },
|
|
226
|
+
* },
|
|
227
|
+
* Bucket: "STRING_VALUE", // required
|
|
228
|
+
* ContentMD5: "STRING_VALUE",
|
|
229
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
230
|
+
* GrantFullControl: "STRING_VALUE",
|
|
231
|
+
* GrantRead: "STRING_VALUE",
|
|
232
|
+
* GrantReadACP: "STRING_VALUE",
|
|
233
|
+
* GrantWrite: "STRING_VALUE",
|
|
234
|
+
* GrantWriteACP: "STRING_VALUE",
|
|
235
|
+
* Key: "STRING_VALUE", // required
|
|
236
|
+
* RequestPayer: "requester",
|
|
237
|
+
* VersionId: "STRING_VALUE",
|
|
238
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
239
|
+
* };
|
|
207
240
|
* const command = new PutObjectAclCommand(input);
|
|
208
241
|
* const response = await client.send(command);
|
|
209
242
|
* ```
|
|
@@ -134,6 +134,47 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
134
134
|
* import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
135
135
|
* // const { S3Client, PutObjectCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
136
136
|
* const client = new S3Client(config);
|
|
137
|
+
* const input = {
|
|
138
|
+
* ACL: "private" || "public-read" || "public-read-write" || "authenticated-read" || "aws-exec-read" || "bucket-owner-read" || "bucket-owner-full-control",
|
|
139
|
+
* Body: "STREAMING_BLOB_VALUE",
|
|
140
|
+
* Bucket: "STRING_VALUE", // required
|
|
141
|
+
* CacheControl: "STRING_VALUE",
|
|
142
|
+
* ContentDisposition: "STRING_VALUE",
|
|
143
|
+
* ContentEncoding: "STRING_VALUE",
|
|
144
|
+
* ContentLanguage: "STRING_VALUE",
|
|
145
|
+
* ContentLength: Number("long"),
|
|
146
|
+
* ContentMD5: "STRING_VALUE",
|
|
147
|
+
* ContentType: "STRING_VALUE",
|
|
148
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
149
|
+
* ChecksumCRC32: "STRING_VALUE",
|
|
150
|
+
* ChecksumCRC32C: "STRING_VALUE",
|
|
151
|
+
* ChecksumSHA1: "STRING_VALUE",
|
|
152
|
+
* ChecksumSHA256: "STRING_VALUE",
|
|
153
|
+
* Expires: new Date("TIMESTAMP"),
|
|
154
|
+
* GrantFullControl: "STRING_VALUE",
|
|
155
|
+
* GrantRead: "STRING_VALUE",
|
|
156
|
+
* GrantReadACP: "STRING_VALUE",
|
|
157
|
+
* GrantWriteACP: "STRING_VALUE",
|
|
158
|
+
* Key: "STRING_VALUE", // required
|
|
159
|
+
* Metadata: {
|
|
160
|
+
* "<keys>": "STRING_VALUE",
|
|
161
|
+
* },
|
|
162
|
+
* ServerSideEncryption: "AES256" || "aws:kms",
|
|
163
|
+
* StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR",
|
|
164
|
+
* WebsiteRedirectLocation: "STRING_VALUE",
|
|
165
|
+
* SSECustomerAlgorithm: "STRING_VALUE",
|
|
166
|
+
* SSECustomerKey: "STRING_VALUE",
|
|
167
|
+
* SSECustomerKeyMD5: "STRING_VALUE",
|
|
168
|
+
* SSEKMSKeyId: "STRING_VALUE",
|
|
169
|
+
* SSEKMSEncryptionContext: "STRING_VALUE",
|
|
170
|
+
* BucketKeyEnabled: true || false,
|
|
171
|
+
* RequestPayer: "requester",
|
|
172
|
+
* Tagging: "STRING_VALUE",
|
|
173
|
+
* ObjectLockMode: "GOVERNANCE" || "COMPLIANCE",
|
|
174
|
+
* ObjectLockRetainUntilDate: new Date("TIMESTAMP"),
|
|
175
|
+
* ObjectLockLegalHoldStatus: "ON" || "OFF",
|
|
176
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
177
|
+
* };
|
|
137
178
|
* const command = new PutObjectCommand(input);
|
|
138
179
|
* const response = await client.send(command);
|
|
139
180
|
* ```
|
|
@@ -29,6 +29,18 @@ export interface PutObjectLegalHoldCommandOutput extends PutObjectLegalHoldOutpu
|
|
|
29
29
|
* import { S3Client, PutObjectLegalHoldCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
30
30
|
* // const { S3Client, PutObjectLegalHoldCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
31
31
|
* const client = new S3Client(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* Bucket: "STRING_VALUE", // required
|
|
34
|
+
* Key: "STRING_VALUE", // required
|
|
35
|
+
* LegalHold: {
|
|
36
|
+
* Status: "ON" || "OFF",
|
|
37
|
+
* },
|
|
38
|
+
* RequestPayer: "requester",
|
|
39
|
+
* VersionId: "STRING_VALUE",
|
|
40
|
+
* ContentMD5: "STRING_VALUE",
|
|
41
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
42
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
43
|
+
* };
|
|
32
44
|
* const command = new PutObjectLegalHoldCommand(input);
|
|
33
45
|
* const response = await client.send(command);
|
|
34
46
|
* ```
|
|
@@ -46,6 +46,24 @@ export interface PutObjectLockConfigurationCommandOutput extends PutObjectLockCo
|
|
|
46
46
|
* import { S3Client, PutObjectLockConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
47
47
|
* // const { S3Client, PutObjectLockConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
48
48
|
* const client = new S3Client(config);
|
|
49
|
+
* const input = {
|
|
50
|
+
* Bucket: "STRING_VALUE", // required
|
|
51
|
+
* ObjectLockConfiguration: {
|
|
52
|
+
* ObjectLockEnabled: "Enabled",
|
|
53
|
+
* Rule: {
|
|
54
|
+
* DefaultRetention: {
|
|
55
|
+
* Mode: "GOVERNANCE" || "COMPLIANCE",
|
|
56
|
+
* Days: Number("int"),
|
|
57
|
+
* Years: Number("int"),
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* RequestPayer: "requester",
|
|
62
|
+
* Token: "STRING_VALUE",
|
|
63
|
+
* ContentMD5: "STRING_VALUE",
|
|
64
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
65
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
66
|
+
* };
|
|
49
67
|
* const command = new PutObjectLockConfigurationCommand(input);
|
|
50
68
|
* const response = await client.send(command);
|
|
51
69
|
* ```
|
|
@@ -31,6 +31,20 @@ export interface PutObjectRetentionCommandOutput extends PutObjectRetentionOutpu
|
|
|
31
31
|
* import { S3Client, PutObjectRetentionCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
32
32
|
* // const { S3Client, PutObjectRetentionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
33
33
|
* const client = new S3Client(config);
|
|
34
|
+
* const input = {
|
|
35
|
+
* Bucket: "STRING_VALUE", // required
|
|
36
|
+
* Key: "STRING_VALUE", // required
|
|
37
|
+
* Retention: {
|
|
38
|
+
* Mode: "GOVERNANCE" || "COMPLIANCE",
|
|
39
|
+
* RetainUntilDate: new Date("TIMESTAMP"),
|
|
40
|
+
* },
|
|
41
|
+
* RequestPayer: "requester",
|
|
42
|
+
* VersionId: "STRING_VALUE",
|
|
43
|
+
* BypassGovernanceRetention: true || false,
|
|
44
|
+
* ContentMD5: "STRING_VALUE",
|
|
45
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
46
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
47
|
+
* };
|
|
34
48
|
* const command = new PutObjectRetentionCommand(input);
|
|
35
49
|
* const response = await client.send(command);
|
|
36
50
|
* ```
|
|
@@ -117,6 +117,23 @@ export interface PutObjectTaggingCommandOutput extends PutObjectTaggingOutput, _
|
|
|
117
117
|
* import { S3Client, PutObjectTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
118
118
|
* // const { S3Client, PutObjectTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
119
119
|
* const client = new S3Client(config);
|
|
120
|
+
* const input = {
|
|
121
|
+
* Bucket: "STRING_VALUE", // required
|
|
122
|
+
* Key: "STRING_VALUE", // required
|
|
123
|
+
* VersionId: "STRING_VALUE",
|
|
124
|
+
* ContentMD5: "STRING_VALUE",
|
|
125
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
126
|
+
* Tagging: {
|
|
127
|
+
* TagSet: [ // required
|
|
128
|
+
* {
|
|
129
|
+
* Key: "STRING_VALUE", // required
|
|
130
|
+
* Value: "STRING_VALUE", // required
|
|
131
|
+
* },
|
|
132
|
+
* ],
|
|
133
|
+
* },
|
|
134
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
135
|
+
* RequestPayer: "requester",
|
|
136
|
+
* };
|
|
120
137
|
* const command = new PutObjectTaggingCommand(input);
|
|
121
138
|
* const response = await client.send(command);
|
|
122
139
|
* ```
|
|
@@ -64,6 +64,18 @@ export interface PutPublicAccessBlockCommandOutput extends __MetadataBearer {
|
|
|
64
64
|
* import { S3Client, PutPublicAccessBlockCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
65
65
|
* // const { S3Client, PutPublicAccessBlockCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
66
66
|
* const client = new S3Client(config);
|
|
67
|
+
* const input = {
|
|
68
|
+
* Bucket: "STRING_VALUE", // required
|
|
69
|
+
* ContentMD5: "STRING_VALUE",
|
|
70
|
+
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256",
|
|
71
|
+
* PublicAccessBlockConfiguration: {
|
|
72
|
+
* BlockPublicAcls: true || false,
|
|
73
|
+
* IgnorePublicAcls: true || false,
|
|
74
|
+
* BlockPublicPolicy: true || false,
|
|
75
|
+
* RestrictPublicBuckets: true || false,
|
|
76
|
+
* },
|
|
77
|
+
* ExpectedBucketOwner: "STRING_VALUE",
|
|
78
|
+
* };
|
|
67
79
|
* const command = new PutPublicAccessBlockCommand(input);
|
|
68
80
|
* const response = await client.send(command);
|
|
69
81
|
* ```
|