@aws-sdk/client-s3 3.775.0 → 3.779.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-cjs/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +9 -6
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +16 -16
- package/dist-types/commands/CopyObjectCommand.d.ts +9 -9
- package/dist-types/commands/CreateBucketCommand.d.ts +15 -16
- package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +8 -8
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +7 -4
- package/dist-types/commands/DeleteObjectCommand.d.ts +18 -13
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -12
- package/dist-types/commands/DeleteObjectsCommand.d.ts +30 -31
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAclCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketCorsCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +11 -11
- package/dist-types/commands/GetBucketLocationCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +12 -12
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -6
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +8 -8
- package/dist-types/commands/GetObjectAclCommand.d.ts +29 -29
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectCommand.d.ts +45 -31
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -20
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +18 -5
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/HeadBucketCommand.d.ts +7 -4
- package/dist-types/commands/HeadObjectCommand.d.ts +12 -12
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketsCommand.d.ts +14 -14
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +1 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +62 -63
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +26 -26
- package/dist-types/commands/ListObjectsCommand.d.ts +23 -23
- package/dist-types/commands/ListObjectsV2Command.d.ts +22 -22
- package/dist-types/commands/ListPartsCommand.d.ts +22 -22
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketCorsCommand.d.ts +19 -16
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +18 -15
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +16 -13
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +11 -8
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +8 -5
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +15 -12
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +13 -10
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +10 -7
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +13 -10
- package/dist-types/commands/PutObjectAclCommand.d.ts +11 -8
- package/dist-types/commands/PutObjectCommand.d.ts +68 -74
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +12 -12
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/RestoreObjectCommand.d.ts +17 -16
- package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -0
- package/dist-types/commands/UploadPartCommand.d.ts +9 -9
- package/dist-types/commands/UploadPartCopyCommand.d.ts +21 -22
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +47 -48
- package/dist-types/models/models_1.d.ts +13 -14
- package/package.json +2 -2
|
@@ -126,23 +126,23 @@ declare const GetBucketPolicyCommand_base: {
|
|
|
126
126
|
* @throws {@link S3ServiceException}
|
|
127
127
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
128
128
|
*
|
|
129
|
-
*
|
|
129
|
+
*
|
|
130
130
|
* @example To get bucket policy
|
|
131
131
|
* ```javascript
|
|
132
132
|
* // The following example returns bucket policy associated with a bucket.
|
|
133
133
|
* const input = {
|
|
134
|
-
*
|
|
134
|
+
* Bucket: "examplebucket"
|
|
135
135
|
* };
|
|
136
136
|
* const command = new GetBucketPolicyCommand(input);
|
|
137
137
|
* const response = await client.send(command);
|
|
138
|
-
* /* response
|
|
138
|
+
* /* response is
|
|
139
139
|
* {
|
|
140
|
-
*
|
|
140
|
+
* Policy: `{"Version":"2008-10-17","Id":"LogPolicy","Statement":[{"Sid":"Enables the log delivery group to publish logs to your bucket ","Effect":"Allow","Principal":{"AWS":"111122223333"},"Action":["s3:GetBucketAcl","s3:GetObjectAcl","s3:PutObject"],"Resource":["arn:aws:s3:::policytest1/*","arn:aws:s3:::policytest1"]}]}`
|
|
141
141
|
* }
|
|
142
142
|
* *\/
|
|
143
|
-
* // example id: to-get-bucket-policy-1481595098424
|
|
144
143
|
* ```
|
|
145
144
|
*
|
|
145
|
+
* @public
|
|
146
146
|
*/
|
|
147
147
|
export declare class GetBucketPolicyCommand extends GetBucketPolicyCommand_base {
|
|
148
148
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -88,6 +88,7 @@ declare const GetBucketPolicyStatusCommand_base: {
|
|
|
88
88
|
* @throws {@link S3ServiceException}
|
|
89
89
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
90
90
|
*
|
|
91
|
+
*
|
|
91
92
|
* @public
|
|
92
93
|
*/
|
|
93
94
|
export declare class GetBucketPolicyStatusCommand extends GetBucketPolicyStatusCommand_base {
|
|
@@ -150,35 +150,35 @@ declare const GetBucketReplicationCommand_base: {
|
|
|
150
150
|
* @throws {@link S3ServiceException}
|
|
151
151
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
152
152
|
*
|
|
153
|
-
*
|
|
153
|
+
*
|
|
154
154
|
* @example To get replication configuration set on a bucket
|
|
155
155
|
* ```javascript
|
|
156
156
|
* // The following example returns replication configuration set on a bucket.
|
|
157
157
|
* const input = {
|
|
158
|
-
*
|
|
158
|
+
* Bucket: "examplebucket"
|
|
159
159
|
* };
|
|
160
160
|
* const command = new GetBucketReplicationCommand(input);
|
|
161
161
|
* const response = await client.send(command);
|
|
162
|
-
* /* response
|
|
162
|
+
* /* response is
|
|
163
163
|
* {
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
164
|
+
* ReplicationConfiguration: {
|
|
165
|
+
* Role: "arn:aws:iam::acct-id:role/example-role",
|
|
166
|
+
* Rules: [
|
|
167
167
|
* {
|
|
168
|
-
*
|
|
169
|
-
*
|
|
168
|
+
* Destination: {
|
|
169
|
+
* Bucket: "arn:aws:s3:::destination-bucket"
|
|
170
170
|
* },
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
171
|
+
* ID: "MWIwNTkwZmItMTE3MS00ZTc3LWJkZDEtNzRmODQwYzc1OTQy",
|
|
172
|
+
* Prefix: "Tax",
|
|
173
|
+
* Status: "Enabled"
|
|
174
174
|
* }
|
|
175
175
|
* ]
|
|
176
176
|
* }
|
|
177
177
|
* }
|
|
178
178
|
* *\/
|
|
179
|
-
* // example id: to-get-replication-configuration-set-on-a-bucket-1481593597175
|
|
180
179
|
* ```
|
|
181
180
|
*
|
|
181
|
+
* @public
|
|
182
182
|
*/
|
|
183
183
|
export declare class GetBucketReplicationCommand extends GetBucketReplicationCommand_base {
|
|
184
184
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -68,23 +68,23 @@ declare const GetBucketRequestPaymentCommand_base: {
|
|
|
68
68
|
* @throws {@link S3ServiceException}
|
|
69
69
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
70
70
|
*
|
|
71
|
-
*
|
|
71
|
+
*
|
|
72
72
|
* @example To get bucket versioning configuration
|
|
73
73
|
* ```javascript
|
|
74
74
|
* // The following example retrieves bucket versioning configuration.
|
|
75
75
|
* const input = {
|
|
76
|
-
*
|
|
76
|
+
* Bucket: "examplebucket"
|
|
77
77
|
* };
|
|
78
78
|
* const command = new GetBucketRequestPaymentCommand(input);
|
|
79
79
|
* const response = await client.send(command);
|
|
80
|
-
* /* response
|
|
80
|
+
* /* response is
|
|
81
81
|
* {
|
|
82
|
-
*
|
|
82
|
+
* Payer: "BucketOwner"
|
|
83
83
|
* }
|
|
84
84
|
* *\/
|
|
85
|
-
* // example id: to-get-bucket-versioning-configuration-1483037183929
|
|
86
85
|
* ```
|
|
87
86
|
*
|
|
87
|
+
* @public
|
|
88
88
|
*/
|
|
89
89
|
export declare class GetBucketRequestPaymentCommand extends GetBucketRequestPaymentCommand_base {
|
|
90
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -92,32 +92,32 @@ declare const GetBucketTaggingCommand_base: {
|
|
|
92
92
|
* @throws {@link S3ServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
94
94
|
*
|
|
95
|
-
*
|
|
95
|
+
*
|
|
96
96
|
* @example To get tag set associated with a bucket
|
|
97
97
|
* ```javascript
|
|
98
98
|
* // The following example returns tag set associated with a bucket
|
|
99
99
|
* const input = {
|
|
100
|
-
*
|
|
100
|
+
* Bucket: "examplebucket"
|
|
101
101
|
* };
|
|
102
102
|
* const command = new GetBucketTaggingCommand(input);
|
|
103
103
|
* const response = await client.send(command);
|
|
104
|
-
* /* response
|
|
104
|
+
* /* response is
|
|
105
105
|
* {
|
|
106
|
-
*
|
|
106
|
+
* TagSet: [
|
|
107
107
|
* {
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* Key: "key1",
|
|
109
|
+
* Value: "value1"
|
|
110
110
|
* },
|
|
111
111
|
* {
|
|
112
|
-
*
|
|
113
|
-
*
|
|
112
|
+
* Key: "key2",
|
|
113
|
+
* Value: "value2"
|
|
114
114
|
* }
|
|
115
115
|
* ]
|
|
116
116
|
* }
|
|
117
117
|
* *\/
|
|
118
|
-
* // example id: to-get-tag-set-associated-with-a-bucket-1481593232107
|
|
119
118
|
* ```
|
|
120
119
|
*
|
|
120
|
+
* @public
|
|
121
121
|
*/
|
|
122
122
|
export declare class GetBucketTaggingCommand extends GetBucketTaggingCommand_base {
|
|
123
123
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -81,24 +81,24 @@ declare const GetBucketVersioningCommand_base: {
|
|
|
81
81
|
* @throws {@link S3ServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
83
83
|
*
|
|
84
|
-
*
|
|
84
|
+
*
|
|
85
85
|
* @example To get bucket versioning configuration
|
|
86
86
|
* ```javascript
|
|
87
87
|
* // The following example retrieves bucket versioning configuration.
|
|
88
88
|
* const input = {
|
|
89
|
-
*
|
|
89
|
+
* Bucket: "examplebucket"
|
|
90
90
|
* };
|
|
91
91
|
* const command = new GetBucketVersioningCommand(input);
|
|
92
92
|
* const response = await client.send(command);
|
|
93
|
-
* /* response
|
|
93
|
+
* /* response is
|
|
94
94
|
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* MFADelete: "Disabled",
|
|
96
|
+
* Status: "Enabled"
|
|
97
97
|
* }
|
|
98
98
|
* *\/
|
|
99
|
-
* // example id: to-get-bucket-versioning-configuration-1483037183929
|
|
100
99
|
* ```
|
|
101
100
|
*
|
|
101
|
+
* @public
|
|
102
102
|
*/
|
|
103
103
|
export declare class GetBucketVersioningCommand extends GetBucketVersioningCommand_base {
|
|
104
104
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -101,28 +101,28 @@ declare const GetBucketWebsiteCommand_base: {
|
|
|
101
101
|
* @throws {@link S3ServiceException}
|
|
102
102
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
103
103
|
*
|
|
104
|
-
*
|
|
104
|
+
*
|
|
105
105
|
* @example To get bucket website configuration
|
|
106
106
|
* ```javascript
|
|
107
107
|
* // The following example retrieves website configuration of a bucket.
|
|
108
108
|
* const input = {
|
|
109
|
-
*
|
|
109
|
+
* Bucket: "examplebucket"
|
|
110
110
|
* };
|
|
111
111
|
* const command = new GetBucketWebsiteCommand(input);
|
|
112
112
|
* const response = await client.send(command);
|
|
113
|
-
* /* response
|
|
113
|
+
* /* response is
|
|
114
114
|
* {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
115
|
+
* ErrorDocument: {
|
|
116
|
+
* Key: "error.html"
|
|
117
117
|
* },
|
|
118
|
-
*
|
|
119
|
-
*
|
|
118
|
+
* IndexDocument: {
|
|
119
|
+
* Suffix: "index.html"
|
|
120
120
|
* }
|
|
121
121
|
* }
|
|
122
122
|
* *\/
|
|
123
|
-
* // example id: to-get-bucket-website-configuration-1483037016926
|
|
124
123
|
* ```
|
|
125
124
|
*
|
|
125
|
+
* @public
|
|
126
126
|
*/
|
|
127
127
|
export declare class GetBucketWebsiteCommand extends GetBucketWebsiteCommand_base {
|
|
128
128
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -118,61 +118,61 @@ declare const GetObjectAclCommand_base: {
|
|
|
118
118
|
* @throws {@link S3ServiceException}
|
|
119
119
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
120
120
|
*
|
|
121
|
-
*
|
|
121
|
+
*
|
|
122
122
|
* @example To retrieve object ACL
|
|
123
123
|
* ```javascript
|
|
124
124
|
* // The following example retrieves access control list (ACL) of an object.
|
|
125
125
|
* const input = {
|
|
126
|
-
*
|
|
127
|
-
*
|
|
126
|
+
* Bucket: "examplebucket",
|
|
127
|
+
* Key: "HappyFace.jpg"
|
|
128
128
|
* };
|
|
129
129
|
* const command = new GetObjectAclCommand(input);
|
|
130
130
|
* const response = await client.send(command);
|
|
131
|
-
* /* response
|
|
131
|
+
* /* response is
|
|
132
132
|
* {
|
|
133
|
-
*
|
|
133
|
+
* Grants: [
|
|
134
134
|
* {
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
135
|
+
* Grantee: {
|
|
136
|
+
* DisplayName: "owner-display-name",
|
|
137
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
138
|
+
* Type: "CanonicalUser"
|
|
139
139
|
* },
|
|
140
|
-
*
|
|
140
|
+
* Permission: "WRITE"
|
|
141
141
|
* },
|
|
142
142
|
* {
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
143
|
+
* Grantee: {
|
|
144
|
+
* DisplayName: "owner-display-name",
|
|
145
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
146
|
+
* Type: "CanonicalUser"
|
|
147
147
|
* },
|
|
148
|
-
*
|
|
148
|
+
* Permission: "WRITE_ACP"
|
|
149
149
|
* },
|
|
150
150
|
* {
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
151
|
+
* Grantee: {
|
|
152
|
+
* DisplayName: "owner-display-name",
|
|
153
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
154
|
+
* Type: "CanonicalUser"
|
|
155
155
|
* },
|
|
156
|
-
*
|
|
156
|
+
* Permission: "READ"
|
|
157
157
|
* },
|
|
158
158
|
* {
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
159
|
+
* Grantee: {
|
|
160
|
+
* DisplayName: "owner-display-name",
|
|
161
|
+
* ID: "852b113eexamplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
162
|
+
* Type: "CanonicalUser"
|
|
163
163
|
* },
|
|
164
|
-
*
|
|
164
|
+
* Permission: "READ_ACP"
|
|
165
165
|
* }
|
|
166
166
|
* ],
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
167
|
+
* Owner: {
|
|
168
|
+
* DisplayName: "owner-display-name",
|
|
169
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
170
170
|
* }
|
|
171
171
|
* }
|
|
172
172
|
* *\/
|
|
173
|
-
* // example id: to-retrieve-object-acl-1481833557740
|
|
174
173
|
* ```
|
|
175
174
|
*
|
|
175
|
+
* @public
|
|
176
176
|
*/
|
|
177
177
|
export declare class GetObjectAclCommand extends GetObjectAclCommand_base {
|
|
178
178
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -312,6 +312,7 @@ declare const GetObjectAttributesCommand_base: {
|
|
|
312
312
|
* @throws {@link S3ServiceException}
|
|
313
313
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
314
314
|
*
|
|
315
|
+
*
|
|
315
316
|
* @public
|
|
316
317
|
*/
|
|
317
318
|
export declare class GetObjectAttributesCommand extends GetObjectAttributesCommand_base {
|
|
@@ -112,7 +112,7 @@ declare const GetObjectCommand_base: {
|
|
|
112
112
|
* Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
113
113
|
* <p>
|
|
114
114
|
* <b>Directory buckets </b> -
|
|
115
|
-
*
|
|
115
|
+
* Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.
|
|
116
116
|
* Unsupported storage class values won't write a destination object and will respond with the HTTP status code <code>400 Bad Request</code>.</p>
|
|
117
117
|
* </dd>
|
|
118
118
|
* <dt>Encryption</dt>
|
|
@@ -235,6 +235,11 @@ declare const GetObjectCommand_base: {
|
|
|
235
235
|
* };
|
|
236
236
|
* const command = new GetObjectCommand(input);
|
|
237
237
|
* const response = await client.send(command);
|
|
238
|
+
* // consume or destroy the stream to free the socket.
|
|
239
|
+
* const bytes = await response.Body.transformToByteArray();
|
|
240
|
+
* // const str = await response.Body.transformToString();
|
|
241
|
+
* // response.Body.destroy(); // only applicable to Node.js Readable streams.
|
|
242
|
+
*
|
|
238
243
|
* // { // GetObjectOutput
|
|
239
244
|
* // Body: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes
|
|
240
245
|
* // DeleteMarker: true || false,
|
|
@@ -303,56 +308,65 @@ declare const GetObjectCommand_base: {
|
|
|
303
308
|
* @throws {@link S3ServiceException}
|
|
304
309
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
305
310
|
*
|
|
306
|
-
*
|
|
307
|
-
* @example To retrieve an object
|
|
311
|
+
*
|
|
312
|
+
* @example To retrieve a byte range of an object
|
|
308
313
|
* ```javascript
|
|
309
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
314
|
+
* // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
|
|
310
315
|
* const input = {
|
|
311
|
-
*
|
|
312
|
-
*
|
|
316
|
+
* Bucket: "examplebucket",
|
|
317
|
+
* Key: "SampleFile.txt",
|
|
318
|
+
* Range: "bytes=0-9"
|
|
313
319
|
* };
|
|
314
320
|
* const command = new GetObjectCommand(input);
|
|
315
321
|
* const response = await client.send(command);
|
|
316
|
-
*
|
|
322
|
+
* // consume or destroy the stream to free the socket.
|
|
323
|
+
* const bytes = await response.Body.transformToByteArray();
|
|
324
|
+
* // const str = await response.Body.transformToString();
|
|
325
|
+
* // response.Body.destroy(); // only applicable to Node.js Readable streams.
|
|
326
|
+
*
|
|
327
|
+
* /* response is
|
|
317
328
|
* {
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
* "
|
|
324
|
-
*
|
|
325
|
-
*
|
|
329
|
+
* AcceptRanges: "bytes",
|
|
330
|
+
* ContentLength: 10,
|
|
331
|
+
* ContentRange: "bytes 0-9/43",
|
|
332
|
+
* ContentType: "text/plain",
|
|
333
|
+
* ETag: `"0d94420ffd0bc68cd3d152506b97a9cc"`,
|
|
334
|
+
* LastModified: "2014-10-09T22:57:28.000Z",
|
|
335
|
+
* Metadata: { /* empty *\/ },
|
|
336
|
+
* VersionId: "null"
|
|
326
337
|
* }
|
|
327
338
|
* *\/
|
|
328
|
-
* // example id: to-retrieve-an-object-1481827837012
|
|
329
339
|
* ```
|
|
330
340
|
*
|
|
331
|
-
* @example To retrieve
|
|
341
|
+
* @example To retrieve an object
|
|
332
342
|
* ```javascript
|
|
333
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
343
|
+
* // The following example retrieves an object for an S3 bucket.
|
|
334
344
|
* const input = {
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
* "Range": "bytes=0-9"
|
|
345
|
+
* Bucket: "examplebucket",
|
|
346
|
+
* Key: "HappyFace.jpg"
|
|
338
347
|
* };
|
|
339
348
|
* const command = new GetObjectCommand(input);
|
|
340
349
|
* const response = await client.send(command);
|
|
341
|
-
*
|
|
350
|
+
* // consume or destroy the stream to free the socket.
|
|
351
|
+
* const bytes = await response.Body.transformToByteArray();
|
|
352
|
+
* // const str = await response.Body.transformToString();
|
|
353
|
+
* // response.Body.destroy(); // only applicable to Node.js Readable streams.
|
|
354
|
+
*
|
|
355
|
+
* /* response is
|
|
342
356
|
* {
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
357
|
+
* AcceptRanges: "bytes",
|
|
358
|
+
* ContentLength: 3191,
|
|
359
|
+
* ContentType: "image/jpeg",
|
|
360
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
361
|
+
* LastModified: "2016-12-15T01:19:41.000Z",
|
|
362
|
+
* Metadata: { /* empty *\/ },
|
|
363
|
+
* TagCount: 2,
|
|
364
|
+
* VersionId: "null"
|
|
351
365
|
* }
|
|
352
366
|
* *\/
|
|
353
|
-
* // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
|
|
354
367
|
* ```
|
|
355
368
|
*
|
|
369
|
+
* @public
|
|
356
370
|
*/
|
|
357
371
|
export declare class GetObjectCommand extends GetObjectCommand_base {
|
|
358
372
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -73,6 +73,7 @@ declare const GetObjectLegalHoldCommand_base: {
|
|
|
73
73
|
* @throws {@link S3ServiceException}
|
|
74
74
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
75
75
|
*
|
|
76
|
+
*
|
|
76
77
|
* @public
|
|
77
78
|
*/
|
|
78
79
|
export declare class GetObjectLegalHoldCommand extends GetObjectLegalHoldCommand_base {
|
|
@@ -77,6 +77,7 @@ declare const GetObjectLockConfigurationCommand_base: {
|
|
|
77
77
|
* @throws {@link S3ServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
79
79
|
*
|
|
80
|
+
*
|
|
80
81
|
* @public
|
|
81
82
|
*/
|
|
82
83
|
export declare class GetObjectLockConfigurationCommand extends GetObjectLockConfigurationCommand_base {
|
|
@@ -74,6 +74,7 @@ declare const GetObjectRetentionCommand_base: {
|
|
|
74
74
|
* @throws {@link S3ServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
76
76
|
*
|
|
77
|
+
*
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
80
|
export declare class GetObjectRetentionCommand extends GetObjectRetentionCommand_base {
|
|
@@ -95,58 +95,57 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
95
95
|
* @throws {@link S3ServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
97
97
|
*
|
|
98
|
-
*
|
|
98
|
+
*
|
|
99
99
|
* @example To retrieve tag set of a specific object version
|
|
100
100
|
* ```javascript
|
|
101
101
|
* // The following example retrieves tag set of an object. The request specifies object version.
|
|
102
102
|
* const input = {
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
103
|
+
* Bucket: "examplebucket",
|
|
104
|
+
* Key: "exampleobject",
|
|
105
|
+
* VersionId: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
106
106
|
* };
|
|
107
107
|
* const command = new GetObjectTaggingCommand(input);
|
|
108
108
|
* const response = await client.send(command);
|
|
109
|
-
* /* response
|
|
109
|
+
* /* response is
|
|
110
110
|
* {
|
|
111
|
-
*
|
|
111
|
+
* TagSet: [
|
|
112
112
|
* {
|
|
113
|
-
*
|
|
114
|
-
*
|
|
113
|
+
* Key: "Key1",
|
|
114
|
+
* Value: "Value1"
|
|
115
115
|
* }
|
|
116
116
|
* ],
|
|
117
|
-
*
|
|
117
|
+
* VersionId: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
118
118
|
* }
|
|
119
119
|
* *\/
|
|
120
|
-
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
|
|
121
120
|
* ```
|
|
122
121
|
*
|
|
123
122
|
* @example To retrieve tag set of an object
|
|
124
123
|
* ```javascript
|
|
125
124
|
* // The following example retrieves tag set of an object.
|
|
126
125
|
* const input = {
|
|
127
|
-
*
|
|
128
|
-
*
|
|
126
|
+
* Bucket: "examplebucket",
|
|
127
|
+
* Key: "HappyFace.jpg"
|
|
129
128
|
* };
|
|
130
129
|
* const command = new GetObjectTaggingCommand(input);
|
|
131
130
|
* const response = await client.send(command);
|
|
132
|
-
* /* response
|
|
131
|
+
* /* response is
|
|
133
132
|
* {
|
|
134
|
-
*
|
|
133
|
+
* TagSet: [
|
|
135
134
|
* {
|
|
136
|
-
*
|
|
137
|
-
*
|
|
135
|
+
* Key: "Key4",
|
|
136
|
+
* Value: "Value4"
|
|
138
137
|
* },
|
|
139
138
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
139
|
+
* Key: "Key3",
|
|
140
|
+
* Value: "Value3"
|
|
142
141
|
* }
|
|
143
142
|
* ],
|
|
144
|
-
*
|
|
143
|
+
* VersionId: "null"
|
|
145
144
|
* }
|
|
146
145
|
* *\/
|
|
147
|
-
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
|
|
148
146
|
* ```
|
|
149
147
|
*
|
|
148
|
+
* @public
|
|
150
149
|
*/
|
|
151
150
|
export declare class GetObjectTaggingCommand extends GetObjectTaggingCommand_base {
|
|
152
151
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -62,6 +62,11 @@ declare const GetObjectTorrentCommand_base: {
|
|
|
62
62
|
* };
|
|
63
63
|
* const command = new GetObjectTorrentCommand(input);
|
|
64
64
|
* const response = await client.send(command);
|
|
65
|
+
* // consume or destroy the stream to free the socket.
|
|
66
|
+
* const bytes = await response.Body.transformToByteArray();
|
|
67
|
+
* // const str = await response.Body.transformToString();
|
|
68
|
+
* // response.Body.destroy(); // only applicable to Node.js Readable streams.
|
|
69
|
+
*
|
|
65
70
|
* // { // GetObjectTorrentOutput
|
|
66
71
|
* // Body: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes
|
|
67
72
|
* // RequestCharged: "requester",
|
|
@@ -78,19 +83,27 @@ declare const GetObjectTorrentCommand_base: {
|
|
|
78
83
|
* @throws {@link S3ServiceException}
|
|
79
84
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
80
85
|
*
|
|
81
|
-
*
|
|
86
|
+
*
|
|
82
87
|
* @example To retrieve torrent files for an object
|
|
83
88
|
* ```javascript
|
|
84
89
|
* // The following example retrieves torrent files of an object.
|
|
85
90
|
* const input = {
|
|
86
|
-
*
|
|
87
|
-
*
|
|
91
|
+
* Bucket: "examplebucket",
|
|
92
|
+
* Key: "HappyFace.jpg"
|
|
88
93
|
* };
|
|
89
94
|
* const command = new GetObjectTorrentCommand(input);
|
|
90
|
-
* await client.send(command);
|
|
91
|
-
* //
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* // consume or destroy the stream to free the socket.
|
|
97
|
+
* const bytes = await response.Body.transformToByteArray();
|
|
98
|
+
* // const str = await response.Body.transformToString();
|
|
99
|
+
* // response.Body.destroy(); // only applicable to Node.js Readable streams.
|
|
100
|
+
*
|
|
101
|
+
* /* response is
|
|
102
|
+
* { /* empty *\/ }
|
|
103
|
+
* *\/
|
|
92
104
|
* ```
|
|
93
105
|
*
|
|
106
|
+
* @public
|
|
94
107
|
*/
|
|
95
108
|
export declare class GetObjectTorrentCommand extends GetObjectTorrentCommand_base {
|
|
96
109
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -99,6 +99,7 @@ declare const GetPublicAccessBlockCommand_base: {
|
|
|
99
99
|
* @throws {@link S3ServiceException}
|
|
100
100
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
101
101
|
*
|
|
102
|
+
*
|
|
102
103
|
* @public
|
|
103
104
|
*/
|
|
104
105
|
export declare class GetPublicAccessBlockCommand extends GetPublicAccessBlockCommand_base {
|
|
@@ -129,18 +129,21 @@ declare const HeadBucketCommand_base: {
|
|
|
129
129
|
* @throws {@link S3ServiceException}
|
|
130
130
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
131
131
|
*
|
|
132
|
-
*
|
|
132
|
+
*
|
|
133
133
|
* @example To determine if bucket exists
|
|
134
134
|
* ```javascript
|
|
135
135
|
* // This operation checks to see if a bucket exists.
|
|
136
136
|
* const input = {
|
|
137
|
-
*
|
|
137
|
+
* Bucket: "acl1"
|
|
138
138
|
* };
|
|
139
139
|
* const command = new HeadBucketCommand(input);
|
|
140
|
-
* await client.send(command);
|
|
141
|
-
*
|
|
140
|
+
* const response = await client.send(command);
|
|
141
|
+
* /* response is
|
|
142
|
+
* { /* metadata only *\/ }
|
|
143
|
+
* *\/
|
|
142
144
|
* ```
|
|
143
145
|
*
|
|
146
|
+
* @public
|
|
144
147
|
*/
|
|
145
148
|
export declare class HeadBucketCommand extends HeadBucketCommand_base {
|
|
146
149
|
/** @internal type navigation helper, not in runtime. */
|