@effect-aws/client-s3 1.6.0 → 1.9.3

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.
Files changed (68) hide show
  1. package/Errors/package.json +6 -0
  2. package/S3ClientInstance/package.json +6 -0
  3. package/S3Service/package.json +6 -0
  4. package/S3ServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -10
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +23 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/S3ClientInstance.d.ts +24 -0
  10. package/dist/cjs/S3ClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/S3ClientInstance.js +50 -0
  12. package/dist/cjs/S3ClientInstance.js.map +1 -0
  13. package/{lib → dist/cjs}/S3Service.d.ts +17 -137
  14. package/dist/cjs/S3Service.d.ts.map +1 -0
  15. package/dist/cjs/S3Service.js +164 -0
  16. package/dist/cjs/S3Service.js.map +1 -0
  17. package/dist/cjs/S3ServiceConfig.d.ts +25 -0
  18. package/dist/cjs/S3ServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/S3ServiceConfig.js +35 -0
  20. package/dist/cjs/S3ServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +25 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/S3ClientInstance.d.ts +24 -0
  28. package/dist/dts/S3ClientInstance.d.ts.map +1 -0
  29. package/dist/dts/S3Service.d.ts +446 -0
  30. package/dist/dts/S3Service.d.ts.map +1 -0
  31. package/dist/dts/S3ServiceConfig.d.ts +25 -0
  32. package/dist/dts/S3ServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +20 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/S3ClientInstance.js +23 -0
  38. package/dist/esm/S3ClientInstance.js.map +1 -0
  39. package/dist/esm/S3Service.js +137 -0
  40. package/dist/esm/S3Service.js.map +1 -0
  41. package/dist/esm/S3ServiceConfig.js +31 -0
  42. package/dist/esm/S3ServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +61 -44
  47. package/src/Errors.ts +56 -0
  48. package/src/S3ClientInstance.ts +33 -0
  49. package/src/S3Service.ts +1584 -0
  50. package/src/S3ServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -137
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -22
  55. package/lib/S3ClientInstance.d.ts +0 -31
  56. package/lib/S3ClientInstance.js +0 -57
  57. package/lib/S3ClientInstanceConfig.d.ts +0 -23
  58. package/lib/S3ClientInstanceConfig.js +0 -44
  59. package/lib/S3Service.js +0 -192
  60. package/lib/esm/Errors.js +0 -19
  61. package/lib/esm/S3ClientInstance.js +0 -30
  62. package/lib/esm/S3ClientInstanceConfig.js +0 -40
  63. package/lib/esm/S3Service.js +0 -188
  64. package/lib/esm/index.js +0 -5
  65. package/lib/index.d.ts +0 -4
  66. package/lib/index.js +0 -21
  67. package/project.json +0 -77
  68. package/vitest.config.ts +0 -3
@@ -0,0 +1,1584 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ AbortMultipartUploadCommand,
6
+ type AbortMultipartUploadCommandInput,
7
+ type AbortMultipartUploadCommandOutput,
8
+ CompleteMultipartUploadCommand,
9
+ type CompleteMultipartUploadCommandInput,
10
+ type CompleteMultipartUploadCommandOutput,
11
+ CopyObjectCommand,
12
+ type CopyObjectCommandInput,
13
+ type CopyObjectCommandOutput,
14
+ CreateBucketCommand,
15
+ type CreateBucketCommandInput,
16
+ type CreateBucketCommandOutput,
17
+ CreateBucketMetadataTableConfigurationCommand,
18
+ type CreateBucketMetadataTableConfigurationCommandInput,
19
+ type CreateBucketMetadataTableConfigurationCommandOutput,
20
+ CreateMultipartUploadCommand,
21
+ type CreateMultipartUploadCommandInput,
22
+ type CreateMultipartUploadCommandOutput,
23
+ CreateSessionCommand,
24
+ type CreateSessionCommandInput,
25
+ type CreateSessionCommandOutput,
26
+ DeleteBucketAnalyticsConfigurationCommand,
27
+ type DeleteBucketAnalyticsConfigurationCommandInput,
28
+ type DeleteBucketAnalyticsConfigurationCommandOutput,
29
+ DeleteBucketCommand,
30
+ type DeleteBucketCommandInput,
31
+ type DeleteBucketCommandOutput,
32
+ DeleteBucketCorsCommand,
33
+ type DeleteBucketCorsCommandInput,
34
+ type DeleteBucketCorsCommandOutput,
35
+ DeleteBucketEncryptionCommand,
36
+ type DeleteBucketEncryptionCommandInput,
37
+ type DeleteBucketEncryptionCommandOutput,
38
+ DeleteBucketIntelligentTieringConfigurationCommand,
39
+ type DeleteBucketIntelligentTieringConfigurationCommandInput,
40
+ type DeleteBucketIntelligentTieringConfigurationCommandOutput,
41
+ DeleteBucketInventoryConfigurationCommand,
42
+ type DeleteBucketInventoryConfigurationCommandInput,
43
+ type DeleteBucketInventoryConfigurationCommandOutput,
44
+ DeleteBucketLifecycleCommand,
45
+ type DeleteBucketLifecycleCommandInput,
46
+ type DeleteBucketLifecycleCommandOutput,
47
+ DeleteBucketMetadataTableConfigurationCommand,
48
+ type DeleteBucketMetadataTableConfigurationCommandInput,
49
+ type DeleteBucketMetadataTableConfigurationCommandOutput,
50
+ DeleteBucketMetricsConfigurationCommand,
51
+ type DeleteBucketMetricsConfigurationCommandInput,
52
+ type DeleteBucketMetricsConfigurationCommandOutput,
53
+ DeleteBucketOwnershipControlsCommand,
54
+ type DeleteBucketOwnershipControlsCommandInput,
55
+ type DeleteBucketOwnershipControlsCommandOutput,
56
+ DeleteBucketPolicyCommand,
57
+ type DeleteBucketPolicyCommandInput,
58
+ type DeleteBucketPolicyCommandOutput,
59
+ DeleteBucketReplicationCommand,
60
+ type DeleteBucketReplicationCommandInput,
61
+ type DeleteBucketReplicationCommandOutput,
62
+ DeleteBucketTaggingCommand,
63
+ type DeleteBucketTaggingCommandInput,
64
+ type DeleteBucketTaggingCommandOutput,
65
+ DeleteBucketWebsiteCommand,
66
+ type DeleteBucketWebsiteCommandInput,
67
+ type DeleteBucketWebsiteCommandOutput,
68
+ DeleteObjectCommand,
69
+ type DeleteObjectCommandInput,
70
+ type DeleteObjectCommandOutput,
71
+ DeleteObjectsCommand,
72
+ type DeleteObjectsCommandInput,
73
+ type DeleteObjectsCommandOutput,
74
+ DeleteObjectTaggingCommand,
75
+ type DeleteObjectTaggingCommandInput,
76
+ type DeleteObjectTaggingCommandOutput,
77
+ DeletePublicAccessBlockCommand,
78
+ type DeletePublicAccessBlockCommandInput,
79
+ type DeletePublicAccessBlockCommandOutput,
80
+ GetBucketAccelerateConfigurationCommand,
81
+ type GetBucketAccelerateConfigurationCommandInput,
82
+ type GetBucketAccelerateConfigurationCommandOutput,
83
+ GetBucketAclCommand,
84
+ type GetBucketAclCommandInput,
85
+ type GetBucketAclCommandOutput,
86
+ GetBucketAnalyticsConfigurationCommand,
87
+ type GetBucketAnalyticsConfigurationCommandInput,
88
+ type GetBucketAnalyticsConfigurationCommandOutput,
89
+ GetBucketCorsCommand,
90
+ type GetBucketCorsCommandInput,
91
+ type GetBucketCorsCommandOutput,
92
+ GetBucketEncryptionCommand,
93
+ type GetBucketEncryptionCommandInput,
94
+ type GetBucketEncryptionCommandOutput,
95
+ GetBucketIntelligentTieringConfigurationCommand,
96
+ type GetBucketIntelligentTieringConfigurationCommandInput,
97
+ type GetBucketIntelligentTieringConfigurationCommandOutput,
98
+ GetBucketInventoryConfigurationCommand,
99
+ type GetBucketInventoryConfigurationCommandInput,
100
+ type GetBucketInventoryConfigurationCommandOutput,
101
+ GetBucketLifecycleConfigurationCommand,
102
+ type GetBucketLifecycleConfigurationCommandInput,
103
+ type GetBucketLifecycleConfigurationCommandOutput,
104
+ GetBucketLocationCommand,
105
+ type GetBucketLocationCommandInput,
106
+ type GetBucketLocationCommandOutput,
107
+ GetBucketLoggingCommand,
108
+ type GetBucketLoggingCommandInput,
109
+ type GetBucketLoggingCommandOutput,
110
+ GetBucketMetadataTableConfigurationCommand,
111
+ type GetBucketMetadataTableConfigurationCommandInput,
112
+ type GetBucketMetadataTableConfigurationCommandOutput,
113
+ GetBucketMetricsConfigurationCommand,
114
+ type GetBucketMetricsConfigurationCommandInput,
115
+ type GetBucketMetricsConfigurationCommandOutput,
116
+ GetBucketNotificationConfigurationCommand,
117
+ type GetBucketNotificationConfigurationCommandInput,
118
+ type GetBucketNotificationConfigurationCommandOutput,
119
+ GetBucketOwnershipControlsCommand,
120
+ type GetBucketOwnershipControlsCommandInput,
121
+ type GetBucketOwnershipControlsCommandOutput,
122
+ GetBucketPolicyCommand,
123
+ type GetBucketPolicyCommandInput,
124
+ type GetBucketPolicyCommandOutput,
125
+ GetBucketPolicyStatusCommand,
126
+ type GetBucketPolicyStatusCommandInput,
127
+ type GetBucketPolicyStatusCommandOutput,
128
+ GetBucketReplicationCommand,
129
+ type GetBucketReplicationCommandInput,
130
+ type GetBucketReplicationCommandOutput,
131
+ GetBucketRequestPaymentCommand,
132
+ type GetBucketRequestPaymentCommandInput,
133
+ type GetBucketRequestPaymentCommandOutput,
134
+ GetBucketTaggingCommand,
135
+ type GetBucketTaggingCommandInput,
136
+ type GetBucketTaggingCommandOutput,
137
+ GetBucketVersioningCommand,
138
+ type GetBucketVersioningCommandInput,
139
+ type GetBucketVersioningCommandOutput,
140
+ GetBucketWebsiteCommand,
141
+ type GetBucketWebsiteCommandInput,
142
+ type GetBucketWebsiteCommandOutput,
143
+ GetObjectAclCommand,
144
+ type GetObjectAclCommandInput,
145
+ type GetObjectAclCommandOutput,
146
+ GetObjectAttributesCommand,
147
+ type GetObjectAttributesCommandInput,
148
+ type GetObjectAttributesCommandOutput,
149
+ GetObjectCommand,
150
+ type GetObjectCommandInput,
151
+ type GetObjectCommandOutput,
152
+ GetObjectLegalHoldCommand,
153
+ type GetObjectLegalHoldCommandInput,
154
+ type GetObjectLegalHoldCommandOutput,
155
+ GetObjectLockConfigurationCommand,
156
+ type GetObjectLockConfigurationCommandInput,
157
+ type GetObjectLockConfigurationCommandOutput,
158
+ GetObjectRetentionCommand,
159
+ type GetObjectRetentionCommandInput,
160
+ type GetObjectRetentionCommandOutput,
161
+ GetObjectTaggingCommand,
162
+ type GetObjectTaggingCommandInput,
163
+ type GetObjectTaggingCommandOutput,
164
+ GetObjectTorrentCommand,
165
+ type GetObjectTorrentCommandInput,
166
+ type GetObjectTorrentCommandOutput,
167
+ GetPublicAccessBlockCommand,
168
+ type GetPublicAccessBlockCommandInput,
169
+ type GetPublicAccessBlockCommandOutput,
170
+ HeadBucketCommand,
171
+ type HeadBucketCommandInput,
172
+ type HeadBucketCommandOutput,
173
+ HeadObjectCommand,
174
+ type HeadObjectCommandInput,
175
+ type HeadObjectCommandOutput,
176
+ ListBucketAnalyticsConfigurationsCommand,
177
+ type ListBucketAnalyticsConfigurationsCommandInput,
178
+ type ListBucketAnalyticsConfigurationsCommandOutput,
179
+ ListBucketIntelligentTieringConfigurationsCommand,
180
+ type ListBucketIntelligentTieringConfigurationsCommandInput,
181
+ type ListBucketIntelligentTieringConfigurationsCommandOutput,
182
+ ListBucketInventoryConfigurationsCommand,
183
+ type ListBucketInventoryConfigurationsCommandInput,
184
+ type ListBucketInventoryConfigurationsCommandOutput,
185
+ ListBucketMetricsConfigurationsCommand,
186
+ type ListBucketMetricsConfigurationsCommandInput,
187
+ type ListBucketMetricsConfigurationsCommandOutput,
188
+ ListBucketsCommand,
189
+ type ListBucketsCommandInput,
190
+ type ListBucketsCommandOutput,
191
+ ListDirectoryBucketsCommand,
192
+ type ListDirectoryBucketsCommandInput,
193
+ type ListDirectoryBucketsCommandOutput,
194
+ ListMultipartUploadsCommand,
195
+ type ListMultipartUploadsCommandInput,
196
+ type ListMultipartUploadsCommandOutput,
197
+ ListObjectsCommand,
198
+ type ListObjectsCommandInput,
199
+ type ListObjectsCommandOutput,
200
+ ListObjectsV2Command,
201
+ type ListObjectsV2CommandInput,
202
+ type ListObjectsV2CommandOutput,
203
+ ListObjectVersionsCommand,
204
+ type ListObjectVersionsCommandInput,
205
+ type ListObjectVersionsCommandOutput,
206
+ ListPartsCommand,
207
+ type ListPartsCommandInput,
208
+ type ListPartsCommandOutput,
209
+ PutBucketAccelerateConfigurationCommand,
210
+ type PutBucketAccelerateConfigurationCommandInput,
211
+ type PutBucketAccelerateConfigurationCommandOutput,
212
+ PutBucketAclCommand,
213
+ type PutBucketAclCommandInput,
214
+ type PutBucketAclCommandOutput,
215
+ PutBucketAnalyticsConfigurationCommand,
216
+ type PutBucketAnalyticsConfigurationCommandInput,
217
+ type PutBucketAnalyticsConfigurationCommandOutput,
218
+ PutBucketCorsCommand,
219
+ type PutBucketCorsCommandInput,
220
+ type PutBucketCorsCommandOutput,
221
+ PutBucketEncryptionCommand,
222
+ type PutBucketEncryptionCommandInput,
223
+ type PutBucketEncryptionCommandOutput,
224
+ PutBucketIntelligentTieringConfigurationCommand,
225
+ type PutBucketIntelligentTieringConfigurationCommandInput,
226
+ type PutBucketIntelligentTieringConfigurationCommandOutput,
227
+ PutBucketInventoryConfigurationCommand,
228
+ type PutBucketInventoryConfigurationCommandInput,
229
+ type PutBucketInventoryConfigurationCommandOutput,
230
+ PutBucketLifecycleConfigurationCommand,
231
+ type PutBucketLifecycleConfigurationCommandInput,
232
+ type PutBucketLifecycleConfigurationCommandOutput,
233
+ PutBucketLoggingCommand,
234
+ type PutBucketLoggingCommandInput,
235
+ type PutBucketLoggingCommandOutput,
236
+ PutBucketMetricsConfigurationCommand,
237
+ type PutBucketMetricsConfigurationCommandInput,
238
+ type PutBucketMetricsConfigurationCommandOutput,
239
+ PutBucketNotificationConfigurationCommand,
240
+ type PutBucketNotificationConfigurationCommandInput,
241
+ type PutBucketNotificationConfigurationCommandOutput,
242
+ PutBucketOwnershipControlsCommand,
243
+ type PutBucketOwnershipControlsCommandInput,
244
+ type PutBucketOwnershipControlsCommandOutput,
245
+ PutBucketPolicyCommand,
246
+ type PutBucketPolicyCommandInput,
247
+ type PutBucketPolicyCommandOutput,
248
+ PutBucketReplicationCommand,
249
+ type PutBucketReplicationCommandInput,
250
+ type PutBucketReplicationCommandOutput,
251
+ PutBucketRequestPaymentCommand,
252
+ type PutBucketRequestPaymentCommandInput,
253
+ type PutBucketRequestPaymentCommandOutput,
254
+ PutBucketTaggingCommand,
255
+ type PutBucketTaggingCommandInput,
256
+ type PutBucketTaggingCommandOutput,
257
+ PutBucketVersioningCommand,
258
+ type PutBucketVersioningCommandInput,
259
+ type PutBucketVersioningCommandOutput,
260
+ PutBucketWebsiteCommand,
261
+ type PutBucketWebsiteCommandInput,
262
+ type PutBucketWebsiteCommandOutput,
263
+ PutObjectAclCommand,
264
+ type PutObjectAclCommandInput,
265
+ type PutObjectAclCommandOutput,
266
+ PutObjectCommand,
267
+ type PutObjectCommandInput,
268
+ type PutObjectCommandOutput,
269
+ PutObjectLegalHoldCommand,
270
+ type PutObjectLegalHoldCommandInput,
271
+ type PutObjectLegalHoldCommandOutput,
272
+ PutObjectLockConfigurationCommand,
273
+ type PutObjectLockConfigurationCommandInput,
274
+ type PutObjectLockConfigurationCommandOutput,
275
+ PutObjectRetentionCommand,
276
+ type PutObjectRetentionCommandInput,
277
+ type PutObjectRetentionCommandOutput,
278
+ PutObjectTaggingCommand,
279
+ type PutObjectTaggingCommandInput,
280
+ type PutObjectTaggingCommandOutput,
281
+ PutPublicAccessBlockCommand,
282
+ type PutPublicAccessBlockCommandInput,
283
+ type PutPublicAccessBlockCommandOutput,
284
+ RestoreObjectCommand,
285
+ type RestoreObjectCommandInput,
286
+ type RestoreObjectCommandOutput,
287
+ type S3Client,
288
+ type S3ClientConfig,
289
+ SelectObjectContentCommand,
290
+ type SelectObjectContentCommandInput,
291
+ type SelectObjectContentCommandOutput,
292
+ UploadPartCommand,
293
+ type UploadPartCommandInput,
294
+ type UploadPartCommandOutput,
295
+ UploadPartCopyCommand,
296
+ type UploadPartCopyCommandInput,
297
+ type UploadPartCopyCommandOutput,
298
+ WriteGetObjectResponseCommand,
299
+ type WriteGetObjectResponseCommandInput,
300
+ type WriteGetObjectResponseCommandOutput,
301
+ } from "@aws-sdk/client-s3";
302
+ import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
303
+ import type { RequestPresigningArguments } from "@aws-sdk/types";
304
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
305
+ import { Service } from "@effect-aws/commons";
306
+ import { Effect, Layer } from "effect";
307
+ import type {
308
+ BucketAlreadyExistsError,
309
+ BucketAlreadyOwnedByYouError,
310
+ EncryptionTypeMismatchError,
311
+ InvalidObjectStateError,
312
+ InvalidRequestError,
313
+ InvalidWriteOffsetError,
314
+ NoSuchBucketError,
315
+ NoSuchKeyError,
316
+ NoSuchUploadError,
317
+ NotFoundError,
318
+ ObjectAlreadyInActiveTierError,
319
+ ObjectNotInActiveTierError,
320
+ S3ServiceError,
321
+ TooManyPartsError,
322
+ } from "./Errors.js";
323
+ import * as Instance from "./S3ClientInstance.js";
324
+ import * as S3ServiceConfig from "./S3ServiceConfig.js";
325
+
326
+ const commands = {
327
+ AbortMultipartUploadCommand,
328
+ CompleteMultipartUploadCommand,
329
+ CopyObjectCommand,
330
+ CreateBucketCommand,
331
+ CreateBucketMetadataTableConfigurationCommand,
332
+ CreateMultipartUploadCommand,
333
+ CreateSessionCommand,
334
+ DeleteBucketCommand,
335
+ DeleteBucketAnalyticsConfigurationCommand,
336
+ DeleteBucketCorsCommand,
337
+ DeleteBucketEncryptionCommand,
338
+ DeleteBucketIntelligentTieringConfigurationCommand,
339
+ DeleteBucketInventoryConfigurationCommand,
340
+ DeleteBucketLifecycleCommand,
341
+ DeleteBucketMetadataTableConfigurationCommand,
342
+ DeleteBucketMetricsConfigurationCommand,
343
+ DeleteBucketOwnershipControlsCommand,
344
+ DeleteBucketPolicyCommand,
345
+ DeleteBucketReplicationCommand,
346
+ DeleteBucketTaggingCommand,
347
+ DeleteBucketWebsiteCommand,
348
+ DeleteObjectCommand,
349
+ DeleteObjectTaggingCommand,
350
+ DeleteObjectsCommand,
351
+ DeletePublicAccessBlockCommand,
352
+ GetBucketAccelerateConfigurationCommand,
353
+ GetBucketAclCommand,
354
+ GetBucketAnalyticsConfigurationCommand,
355
+ GetBucketCorsCommand,
356
+ GetBucketEncryptionCommand,
357
+ GetBucketIntelligentTieringConfigurationCommand,
358
+ GetBucketInventoryConfigurationCommand,
359
+ GetBucketLifecycleConfigurationCommand,
360
+ GetBucketLocationCommand,
361
+ GetBucketLoggingCommand,
362
+ GetBucketMetadataTableConfigurationCommand,
363
+ GetBucketMetricsConfigurationCommand,
364
+ GetBucketNotificationConfigurationCommand,
365
+ GetBucketOwnershipControlsCommand,
366
+ GetBucketPolicyCommand,
367
+ GetBucketPolicyStatusCommand,
368
+ GetBucketReplicationCommand,
369
+ GetBucketRequestPaymentCommand,
370
+ GetBucketTaggingCommand,
371
+ GetBucketVersioningCommand,
372
+ GetBucketWebsiteCommand,
373
+ GetObjectCommand,
374
+ GetObjectAclCommand,
375
+ GetObjectAttributesCommand,
376
+ GetObjectLegalHoldCommand,
377
+ GetObjectLockConfigurationCommand,
378
+ GetObjectRetentionCommand,
379
+ GetObjectTaggingCommand,
380
+ GetObjectTorrentCommand,
381
+ GetPublicAccessBlockCommand,
382
+ HeadBucketCommand,
383
+ HeadObjectCommand,
384
+ ListBucketAnalyticsConfigurationsCommand,
385
+ ListBucketIntelligentTieringConfigurationsCommand,
386
+ ListBucketInventoryConfigurationsCommand,
387
+ ListBucketMetricsConfigurationsCommand,
388
+ ListBucketsCommand,
389
+ ListDirectoryBucketsCommand,
390
+ ListMultipartUploadsCommand,
391
+ ListObjectVersionsCommand,
392
+ ListObjectsCommand,
393
+ ListObjectsV2Command,
394
+ ListPartsCommand,
395
+ PutBucketAccelerateConfigurationCommand,
396
+ PutBucketAclCommand,
397
+ PutBucketAnalyticsConfigurationCommand,
398
+ PutBucketCorsCommand,
399
+ PutBucketEncryptionCommand,
400
+ PutBucketIntelligentTieringConfigurationCommand,
401
+ PutBucketInventoryConfigurationCommand,
402
+ PutBucketLifecycleConfigurationCommand,
403
+ PutBucketLoggingCommand,
404
+ PutBucketMetricsConfigurationCommand,
405
+ PutBucketNotificationConfigurationCommand,
406
+ PutBucketOwnershipControlsCommand,
407
+ PutBucketPolicyCommand,
408
+ PutBucketReplicationCommand,
409
+ PutBucketRequestPaymentCommand,
410
+ PutBucketTaggingCommand,
411
+ PutBucketVersioningCommand,
412
+ PutBucketWebsiteCommand,
413
+ PutObjectCommand,
414
+ PutObjectAclCommand,
415
+ PutObjectLegalHoldCommand,
416
+ PutObjectLockConfigurationCommand,
417
+ PutObjectRetentionCommand,
418
+ PutObjectTaggingCommand,
419
+ PutPublicAccessBlockCommand,
420
+ RestoreObjectCommand,
421
+ SelectObjectContentCommand,
422
+ UploadPartCommand,
423
+ UploadPartCopyCommand,
424
+ WriteGetObjectResponseCommand,
425
+ };
426
+
427
+ interface S3Service$ {
428
+ readonly _: unique symbol;
429
+
430
+ /**
431
+ * @see {@link AbortMultipartUploadCommand}
432
+ */
433
+ abortMultipartUpload(
434
+ args: AbortMultipartUploadCommandInput,
435
+ options?: HttpHandlerOptions,
436
+ ): Effect.Effect<
437
+ AbortMultipartUploadCommandOutput,
438
+ SdkError | NoSuchUploadError
439
+ >;
440
+
441
+ /**
442
+ * @see {@link CompleteMultipartUploadCommand}
443
+ */
444
+ completeMultipartUpload(
445
+ args: CompleteMultipartUploadCommandInput,
446
+ options?: HttpHandlerOptions,
447
+ ): Effect.Effect<
448
+ CompleteMultipartUploadCommandOutput,
449
+ SdkError | S3ServiceError
450
+ >;
451
+
452
+ /**
453
+ * @see {@link CopyObjectCommand}
454
+ */
455
+ copyObject(
456
+ args: CopyObjectCommandInput,
457
+ options?: HttpHandlerOptions,
458
+ ): Effect.Effect<
459
+ CopyObjectCommandOutput,
460
+ SdkError | ObjectNotInActiveTierError
461
+ >;
462
+
463
+ /**
464
+ * @see {@link CreateBucketCommand}
465
+ */
466
+ createBucket(
467
+ args: CreateBucketCommandInput,
468
+ options?: HttpHandlerOptions,
469
+ ): Effect.Effect<
470
+ CreateBucketCommandOutput,
471
+ SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError
472
+ >;
473
+
474
+ /**
475
+ * @see {@link CreateBucketMetadataTableConfigurationCommand}
476
+ */
477
+ createBucketMetadataTableConfiguration(
478
+ args: CreateBucketMetadataTableConfigurationCommandInput,
479
+ options?: HttpHandlerOptions,
480
+ ): Effect.Effect<
481
+ CreateBucketMetadataTableConfigurationCommandOutput,
482
+ SdkError | S3ServiceError
483
+ >;
484
+
485
+ /**
486
+ * @see {@link CreateMultipartUploadCommand}
487
+ */
488
+ createMultipartUpload(
489
+ args: CreateMultipartUploadCommandInput,
490
+ options?: HttpHandlerOptions,
491
+ ): Effect.Effect<
492
+ CreateMultipartUploadCommandOutput,
493
+ SdkError | S3ServiceError
494
+ >;
495
+
496
+ /**
497
+ * @see {@link CreateSessionCommand}
498
+ */
499
+ createSession(
500
+ args: CreateSessionCommandInput,
501
+ options?: HttpHandlerOptions,
502
+ ): Effect.Effect<
503
+ CreateSessionCommandOutput,
504
+ SdkError | NoSuchBucketError
505
+ >;
506
+
507
+ /**
508
+ * @see {@link DeleteBucketCommand}
509
+ */
510
+ deleteBucket(
511
+ args: DeleteBucketCommandInput,
512
+ options?: HttpHandlerOptions,
513
+ ): Effect.Effect<
514
+ DeleteBucketCommandOutput,
515
+ SdkError | S3ServiceError
516
+ >;
517
+
518
+ /**
519
+ * @see {@link DeleteBucketAnalyticsConfigurationCommand}
520
+ */
521
+ deleteBucketAnalyticsConfiguration(
522
+ args: DeleteBucketAnalyticsConfigurationCommandInput,
523
+ options?: HttpHandlerOptions,
524
+ ): Effect.Effect<
525
+ DeleteBucketAnalyticsConfigurationCommandOutput,
526
+ SdkError | S3ServiceError
527
+ >;
528
+
529
+ /**
530
+ * @see {@link DeleteBucketCorsCommand}
531
+ */
532
+ deleteBucketCors(
533
+ args: DeleteBucketCorsCommandInput,
534
+ options?: HttpHandlerOptions,
535
+ ): Effect.Effect<
536
+ DeleteBucketCorsCommandOutput,
537
+ SdkError | S3ServiceError
538
+ >;
539
+
540
+ /**
541
+ * @see {@link DeleteBucketEncryptionCommand}
542
+ */
543
+ deleteBucketEncryption(
544
+ args: DeleteBucketEncryptionCommandInput,
545
+ options?: HttpHandlerOptions,
546
+ ): Effect.Effect<
547
+ DeleteBucketEncryptionCommandOutput,
548
+ SdkError | S3ServiceError
549
+ >;
550
+
551
+ /**
552
+ * @see {@link DeleteBucketIntelligentTieringConfigurationCommand}
553
+ */
554
+ deleteBucketIntelligentTieringConfiguration(
555
+ args: DeleteBucketIntelligentTieringConfigurationCommandInput,
556
+ options?: HttpHandlerOptions,
557
+ ): Effect.Effect<
558
+ DeleteBucketIntelligentTieringConfigurationCommandOutput,
559
+ SdkError | S3ServiceError
560
+ >;
561
+
562
+ /**
563
+ * @see {@link DeleteBucketInventoryConfigurationCommand}
564
+ */
565
+ deleteBucketInventoryConfiguration(
566
+ args: DeleteBucketInventoryConfigurationCommandInput,
567
+ options?: HttpHandlerOptions,
568
+ ): Effect.Effect<
569
+ DeleteBucketInventoryConfigurationCommandOutput,
570
+ SdkError | S3ServiceError
571
+ >;
572
+
573
+ /**
574
+ * @see {@link DeleteBucketLifecycleCommand}
575
+ */
576
+ deleteBucketLifecycle(
577
+ args: DeleteBucketLifecycleCommandInput,
578
+ options?: HttpHandlerOptions,
579
+ ): Effect.Effect<
580
+ DeleteBucketLifecycleCommandOutput,
581
+ SdkError | S3ServiceError
582
+ >;
583
+
584
+ /**
585
+ * @see {@link DeleteBucketMetadataTableConfigurationCommand}
586
+ */
587
+ deleteBucketMetadataTableConfiguration(
588
+ args: DeleteBucketMetadataTableConfigurationCommandInput,
589
+ options?: HttpHandlerOptions,
590
+ ): Effect.Effect<
591
+ DeleteBucketMetadataTableConfigurationCommandOutput,
592
+ SdkError | S3ServiceError
593
+ >;
594
+
595
+ /**
596
+ * @see {@link DeleteBucketMetricsConfigurationCommand}
597
+ */
598
+ deleteBucketMetricsConfiguration(
599
+ args: DeleteBucketMetricsConfigurationCommandInput,
600
+ options?: HttpHandlerOptions,
601
+ ): Effect.Effect<
602
+ DeleteBucketMetricsConfigurationCommandOutput,
603
+ SdkError | S3ServiceError
604
+ >;
605
+
606
+ /**
607
+ * @see {@link DeleteBucketOwnershipControlsCommand}
608
+ */
609
+ deleteBucketOwnershipControls(
610
+ args: DeleteBucketOwnershipControlsCommandInput,
611
+ options?: HttpHandlerOptions,
612
+ ): Effect.Effect<
613
+ DeleteBucketOwnershipControlsCommandOutput,
614
+ SdkError | S3ServiceError
615
+ >;
616
+
617
+ /**
618
+ * @see {@link DeleteBucketPolicyCommand}
619
+ */
620
+ deleteBucketPolicy(
621
+ args: DeleteBucketPolicyCommandInput,
622
+ options?: HttpHandlerOptions,
623
+ ): Effect.Effect<
624
+ DeleteBucketPolicyCommandOutput,
625
+ SdkError | S3ServiceError
626
+ >;
627
+
628
+ /**
629
+ * @see {@link DeleteBucketReplicationCommand}
630
+ */
631
+ deleteBucketReplication(
632
+ args: DeleteBucketReplicationCommandInput,
633
+ options?: HttpHandlerOptions,
634
+ ): Effect.Effect<
635
+ DeleteBucketReplicationCommandOutput,
636
+ SdkError | S3ServiceError
637
+ >;
638
+
639
+ /**
640
+ * @see {@link DeleteBucketTaggingCommand}
641
+ */
642
+ deleteBucketTagging(
643
+ args: DeleteBucketTaggingCommandInput,
644
+ options?: HttpHandlerOptions,
645
+ ): Effect.Effect<
646
+ DeleteBucketTaggingCommandOutput,
647
+ SdkError | S3ServiceError
648
+ >;
649
+
650
+ /**
651
+ * @see {@link DeleteBucketWebsiteCommand}
652
+ */
653
+ deleteBucketWebsite(
654
+ args: DeleteBucketWebsiteCommandInput,
655
+ options?: HttpHandlerOptions,
656
+ ): Effect.Effect<
657
+ DeleteBucketWebsiteCommandOutput,
658
+ SdkError | S3ServiceError
659
+ >;
660
+
661
+ /**
662
+ * @see {@link DeleteObjectCommand}
663
+ */
664
+ deleteObject(
665
+ args: DeleteObjectCommandInput,
666
+ options?: HttpHandlerOptions,
667
+ ): Effect.Effect<
668
+ DeleteObjectCommandOutput,
669
+ SdkError | S3ServiceError
670
+ >;
671
+
672
+ /**
673
+ * @see {@link DeleteObjectTaggingCommand}
674
+ */
675
+ deleteObjectTagging(
676
+ args: DeleteObjectTaggingCommandInput,
677
+ options?: HttpHandlerOptions,
678
+ ): Effect.Effect<
679
+ DeleteObjectTaggingCommandOutput,
680
+ SdkError | S3ServiceError
681
+ >;
682
+
683
+ /**
684
+ * @see {@link DeleteObjectsCommand}
685
+ */
686
+ deleteObjects(
687
+ args: DeleteObjectsCommandInput,
688
+ options?: HttpHandlerOptions,
689
+ ): Effect.Effect<
690
+ DeleteObjectsCommandOutput,
691
+ SdkError | S3ServiceError
692
+ >;
693
+
694
+ /**
695
+ * @see {@link DeletePublicAccessBlockCommand}
696
+ */
697
+ deletePublicAccessBlock(
698
+ args: DeletePublicAccessBlockCommandInput,
699
+ options?: HttpHandlerOptions,
700
+ ): Effect.Effect<
701
+ DeletePublicAccessBlockCommandOutput,
702
+ SdkError | S3ServiceError
703
+ >;
704
+
705
+ /**
706
+ * @see {@link GetBucketAccelerateConfigurationCommand}
707
+ */
708
+ getBucketAccelerateConfiguration(
709
+ args: GetBucketAccelerateConfigurationCommandInput,
710
+ options?: HttpHandlerOptions,
711
+ ): Effect.Effect<
712
+ GetBucketAccelerateConfigurationCommandOutput,
713
+ SdkError | S3ServiceError
714
+ >;
715
+
716
+ /**
717
+ * @see {@link GetBucketAclCommand}
718
+ */
719
+ getBucketAcl(
720
+ args: GetBucketAclCommandInput,
721
+ options?: HttpHandlerOptions,
722
+ ): Effect.Effect<
723
+ GetBucketAclCommandOutput,
724
+ SdkError | S3ServiceError
725
+ >;
726
+
727
+ /**
728
+ * @see {@link GetBucketAnalyticsConfigurationCommand}
729
+ */
730
+ getBucketAnalyticsConfiguration(
731
+ args: GetBucketAnalyticsConfigurationCommandInput,
732
+ options?: HttpHandlerOptions,
733
+ ): Effect.Effect<
734
+ GetBucketAnalyticsConfigurationCommandOutput,
735
+ SdkError | S3ServiceError
736
+ >;
737
+
738
+ /**
739
+ * @see {@link GetBucketCorsCommand}
740
+ */
741
+ getBucketCors(
742
+ args: GetBucketCorsCommandInput,
743
+ options?: HttpHandlerOptions,
744
+ ): Effect.Effect<
745
+ GetBucketCorsCommandOutput,
746
+ SdkError | S3ServiceError
747
+ >;
748
+
749
+ /**
750
+ * @see {@link GetBucketEncryptionCommand}
751
+ */
752
+ getBucketEncryption(
753
+ args: GetBucketEncryptionCommandInput,
754
+ options?: HttpHandlerOptions,
755
+ ): Effect.Effect<
756
+ GetBucketEncryptionCommandOutput,
757
+ SdkError | S3ServiceError
758
+ >;
759
+
760
+ /**
761
+ * @see {@link GetBucketIntelligentTieringConfigurationCommand}
762
+ */
763
+ getBucketIntelligentTieringConfiguration(
764
+ args: GetBucketIntelligentTieringConfigurationCommandInput,
765
+ options?: HttpHandlerOptions,
766
+ ): Effect.Effect<
767
+ GetBucketIntelligentTieringConfigurationCommandOutput,
768
+ SdkError | S3ServiceError
769
+ >;
770
+
771
+ /**
772
+ * @see {@link GetBucketInventoryConfigurationCommand}
773
+ */
774
+ getBucketInventoryConfiguration(
775
+ args: GetBucketInventoryConfigurationCommandInput,
776
+ options?: HttpHandlerOptions,
777
+ ): Effect.Effect<
778
+ GetBucketInventoryConfigurationCommandOutput,
779
+ SdkError | S3ServiceError
780
+ >;
781
+
782
+ /**
783
+ * @see {@link GetBucketLifecycleConfigurationCommand}
784
+ */
785
+ getBucketLifecycleConfiguration(
786
+ args: GetBucketLifecycleConfigurationCommandInput,
787
+ options?: HttpHandlerOptions,
788
+ ): Effect.Effect<
789
+ GetBucketLifecycleConfigurationCommandOutput,
790
+ SdkError | S3ServiceError
791
+ >;
792
+
793
+ /**
794
+ * @see {@link GetBucketLocationCommand}
795
+ */
796
+ getBucketLocation(
797
+ args: GetBucketLocationCommandInput,
798
+ options?: HttpHandlerOptions,
799
+ ): Effect.Effect<
800
+ GetBucketLocationCommandOutput,
801
+ SdkError | S3ServiceError
802
+ >;
803
+
804
+ /**
805
+ * @see {@link GetBucketLoggingCommand}
806
+ */
807
+ getBucketLogging(
808
+ args: GetBucketLoggingCommandInput,
809
+ options?: HttpHandlerOptions,
810
+ ): Effect.Effect<
811
+ GetBucketLoggingCommandOutput,
812
+ SdkError | S3ServiceError
813
+ >;
814
+
815
+ /**
816
+ * @see {@link GetBucketMetadataTableConfigurationCommand}
817
+ */
818
+ getBucketMetadataTableConfiguration(
819
+ args: GetBucketMetadataTableConfigurationCommandInput,
820
+ options?: HttpHandlerOptions,
821
+ ): Effect.Effect<
822
+ GetBucketMetadataTableConfigurationCommandOutput,
823
+ SdkError | S3ServiceError
824
+ >;
825
+
826
+ /**
827
+ * @see {@link GetBucketMetricsConfigurationCommand}
828
+ */
829
+ getBucketMetricsConfiguration(
830
+ args: GetBucketMetricsConfigurationCommandInput,
831
+ options?: HttpHandlerOptions,
832
+ ): Effect.Effect<
833
+ GetBucketMetricsConfigurationCommandOutput,
834
+ SdkError | S3ServiceError
835
+ >;
836
+
837
+ /**
838
+ * @see {@link GetBucketNotificationConfigurationCommand}
839
+ */
840
+ getBucketNotificationConfiguration(
841
+ args: GetBucketNotificationConfigurationCommandInput,
842
+ options?: HttpHandlerOptions,
843
+ ): Effect.Effect<
844
+ GetBucketNotificationConfigurationCommandOutput,
845
+ SdkError | S3ServiceError
846
+ >;
847
+
848
+ /**
849
+ * @see {@link GetBucketOwnershipControlsCommand}
850
+ */
851
+ getBucketOwnershipControls(
852
+ args: GetBucketOwnershipControlsCommandInput,
853
+ options?: HttpHandlerOptions,
854
+ ): Effect.Effect<
855
+ GetBucketOwnershipControlsCommandOutput,
856
+ SdkError | S3ServiceError
857
+ >;
858
+
859
+ /**
860
+ * @see {@link GetBucketPolicyCommand}
861
+ */
862
+ getBucketPolicy(
863
+ args: GetBucketPolicyCommandInput,
864
+ options?: HttpHandlerOptions,
865
+ ): Effect.Effect<
866
+ GetBucketPolicyCommandOutput,
867
+ SdkError | S3ServiceError
868
+ >;
869
+
870
+ /**
871
+ * @see {@link GetBucketPolicyStatusCommand}
872
+ */
873
+ getBucketPolicyStatus(
874
+ args: GetBucketPolicyStatusCommandInput,
875
+ options?: HttpHandlerOptions,
876
+ ): Effect.Effect<
877
+ GetBucketPolicyStatusCommandOutput,
878
+ SdkError | S3ServiceError
879
+ >;
880
+
881
+ /**
882
+ * @see {@link GetBucketReplicationCommand}
883
+ */
884
+ getBucketReplication(
885
+ args: GetBucketReplicationCommandInput,
886
+ options?: HttpHandlerOptions,
887
+ ): Effect.Effect<
888
+ GetBucketReplicationCommandOutput,
889
+ SdkError | S3ServiceError
890
+ >;
891
+
892
+ /**
893
+ * @see {@link GetBucketRequestPaymentCommand}
894
+ */
895
+ getBucketRequestPayment(
896
+ args: GetBucketRequestPaymentCommandInput,
897
+ options?: HttpHandlerOptions,
898
+ ): Effect.Effect<
899
+ GetBucketRequestPaymentCommandOutput,
900
+ SdkError | S3ServiceError
901
+ >;
902
+
903
+ /**
904
+ * @see {@link GetBucketTaggingCommand}
905
+ */
906
+ getBucketTagging(
907
+ args: GetBucketTaggingCommandInput,
908
+ options?: HttpHandlerOptions,
909
+ ): Effect.Effect<
910
+ GetBucketTaggingCommandOutput,
911
+ SdkError | S3ServiceError
912
+ >;
913
+
914
+ /**
915
+ * @see {@link GetBucketVersioningCommand}
916
+ */
917
+ getBucketVersioning(
918
+ args: GetBucketVersioningCommandInput,
919
+ options?: HttpHandlerOptions,
920
+ ): Effect.Effect<
921
+ GetBucketVersioningCommandOutput,
922
+ SdkError | S3ServiceError
923
+ >;
924
+
925
+ /**
926
+ * @see {@link GetBucketWebsiteCommand}
927
+ */
928
+ getBucketWebsite(
929
+ args: GetBucketWebsiteCommandInput,
930
+ options?: HttpHandlerOptions,
931
+ ): Effect.Effect<
932
+ GetBucketWebsiteCommandOutput,
933
+ SdkError | S3ServiceError
934
+ >;
935
+
936
+ /**
937
+ * @see {@link GetObjectCommand}
938
+ */
939
+ getObject(
940
+ args: GetObjectCommandInput,
941
+ options?: { readonly presigned?: false } & HttpHandlerOptions,
942
+ ): Effect.Effect<
943
+ GetObjectCommandOutput,
944
+ SdkError | InvalidObjectStateError | NoSuchKeyError
945
+ >;
946
+ getObject(
947
+ args: GetObjectCommandInput,
948
+ options?: { readonly presigned: true } & RequestPresigningArguments,
949
+ ): Effect.Effect<string, SdkError | S3ServiceError>;
950
+
951
+ /**
952
+ * @see {@link GetObjectAclCommand}
953
+ */
954
+ getObjectAcl(
955
+ args: GetObjectAclCommandInput,
956
+ options?: HttpHandlerOptions,
957
+ ): Effect.Effect<
958
+ GetObjectAclCommandOutput,
959
+ SdkError | NoSuchKeyError
960
+ >;
961
+
962
+ /**
963
+ * @see {@link GetObjectAttributesCommand}
964
+ */
965
+ getObjectAttributes(
966
+ args: GetObjectAttributesCommandInput,
967
+ options?: HttpHandlerOptions,
968
+ ): Effect.Effect<
969
+ GetObjectAttributesCommandOutput,
970
+ SdkError | NoSuchKeyError
971
+ >;
972
+
973
+ /**
974
+ * @see {@link GetObjectLegalHoldCommand}
975
+ */
976
+ getObjectLegalHold(
977
+ args: GetObjectLegalHoldCommandInput,
978
+ options?: HttpHandlerOptions,
979
+ ): Effect.Effect<
980
+ GetObjectLegalHoldCommandOutput,
981
+ SdkError | S3ServiceError
982
+ >;
983
+
984
+ /**
985
+ * @see {@link GetObjectLockConfigurationCommand}
986
+ */
987
+ getObjectLockConfiguration(
988
+ args: GetObjectLockConfigurationCommandInput,
989
+ options?: HttpHandlerOptions,
990
+ ): Effect.Effect<
991
+ GetObjectLockConfigurationCommandOutput,
992
+ SdkError | S3ServiceError
993
+ >;
994
+
995
+ /**
996
+ * @see {@link GetObjectRetentionCommand}
997
+ */
998
+ getObjectRetention(
999
+ args: GetObjectRetentionCommandInput,
1000
+ options?: HttpHandlerOptions,
1001
+ ): Effect.Effect<
1002
+ GetObjectRetentionCommandOutput,
1003
+ SdkError | S3ServiceError
1004
+ >;
1005
+
1006
+ /**
1007
+ * @see {@link GetObjectTaggingCommand}
1008
+ */
1009
+ getObjectTagging(
1010
+ args: GetObjectTaggingCommandInput,
1011
+ options?: HttpHandlerOptions,
1012
+ ): Effect.Effect<
1013
+ GetObjectTaggingCommandOutput,
1014
+ SdkError | S3ServiceError
1015
+ >;
1016
+
1017
+ /**
1018
+ * @see {@link GetObjectTorrentCommand}
1019
+ */
1020
+ getObjectTorrent(
1021
+ args: GetObjectTorrentCommandInput,
1022
+ options?: HttpHandlerOptions,
1023
+ ): Effect.Effect<
1024
+ GetObjectTorrentCommandOutput,
1025
+ SdkError | S3ServiceError
1026
+ >;
1027
+
1028
+ /**
1029
+ * @see {@link GetPublicAccessBlockCommand}
1030
+ */
1031
+ getPublicAccessBlock(
1032
+ args: GetPublicAccessBlockCommandInput,
1033
+ options?: HttpHandlerOptions,
1034
+ ): Effect.Effect<
1035
+ GetPublicAccessBlockCommandOutput,
1036
+ SdkError | S3ServiceError
1037
+ >;
1038
+
1039
+ /**
1040
+ * @see {@link HeadBucketCommand}
1041
+ */
1042
+ headBucket(
1043
+ args: HeadBucketCommandInput,
1044
+ options?: HttpHandlerOptions,
1045
+ ): Effect.Effect<
1046
+ HeadBucketCommandOutput,
1047
+ SdkError | NotFoundError
1048
+ >;
1049
+
1050
+ /**
1051
+ * @see {@link HeadObjectCommand}
1052
+ */
1053
+ headObject(
1054
+ args: HeadObjectCommandInput,
1055
+ options?: HttpHandlerOptions,
1056
+ ): Effect.Effect<
1057
+ HeadObjectCommandOutput,
1058
+ SdkError | NotFoundError
1059
+ >;
1060
+
1061
+ /**
1062
+ * @see {@link ListBucketAnalyticsConfigurationsCommand}
1063
+ */
1064
+ listBucketAnalyticsConfigurations(
1065
+ args: ListBucketAnalyticsConfigurationsCommandInput,
1066
+ options?: HttpHandlerOptions,
1067
+ ): Effect.Effect<
1068
+ ListBucketAnalyticsConfigurationsCommandOutput,
1069
+ SdkError | S3ServiceError
1070
+ >;
1071
+
1072
+ /**
1073
+ * @see {@link ListBucketIntelligentTieringConfigurationsCommand}
1074
+ */
1075
+ listBucketIntelligentTieringConfigurations(
1076
+ args: ListBucketIntelligentTieringConfigurationsCommandInput,
1077
+ options?: HttpHandlerOptions,
1078
+ ): Effect.Effect<
1079
+ ListBucketIntelligentTieringConfigurationsCommandOutput,
1080
+ SdkError | S3ServiceError
1081
+ >;
1082
+
1083
+ /**
1084
+ * @see {@link ListBucketInventoryConfigurationsCommand}
1085
+ */
1086
+ listBucketInventoryConfigurations(
1087
+ args: ListBucketInventoryConfigurationsCommandInput,
1088
+ options?: HttpHandlerOptions,
1089
+ ): Effect.Effect<
1090
+ ListBucketInventoryConfigurationsCommandOutput,
1091
+ SdkError | S3ServiceError
1092
+ >;
1093
+
1094
+ /**
1095
+ * @see {@link ListBucketMetricsConfigurationsCommand}
1096
+ */
1097
+ listBucketMetricsConfigurations(
1098
+ args: ListBucketMetricsConfigurationsCommandInput,
1099
+ options?: HttpHandlerOptions,
1100
+ ): Effect.Effect<
1101
+ ListBucketMetricsConfigurationsCommandOutput,
1102
+ SdkError | S3ServiceError
1103
+ >;
1104
+
1105
+ /**
1106
+ * @see {@link ListBucketsCommand}
1107
+ */
1108
+ listBuckets(
1109
+ args: ListBucketsCommandInput,
1110
+ options?: HttpHandlerOptions,
1111
+ ): Effect.Effect<
1112
+ ListBucketsCommandOutput,
1113
+ SdkError | S3ServiceError
1114
+ >;
1115
+
1116
+ /**
1117
+ * @see {@link ListDirectoryBucketsCommand}
1118
+ */
1119
+ listDirectoryBuckets(
1120
+ args: ListDirectoryBucketsCommandInput,
1121
+ options?: HttpHandlerOptions,
1122
+ ): Effect.Effect<
1123
+ ListDirectoryBucketsCommandOutput,
1124
+ SdkError | S3ServiceError
1125
+ >;
1126
+
1127
+ /**
1128
+ * @see {@link ListMultipartUploadsCommand}
1129
+ */
1130
+ listMultipartUploads(
1131
+ args: ListMultipartUploadsCommandInput,
1132
+ options?: HttpHandlerOptions,
1133
+ ): Effect.Effect<
1134
+ ListMultipartUploadsCommandOutput,
1135
+ SdkError | S3ServiceError
1136
+ >;
1137
+
1138
+ /**
1139
+ * @see {@link ListObjectVersionsCommand}
1140
+ */
1141
+ listObjectVersions(
1142
+ args: ListObjectVersionsCommandInput,
1143
+ options?: HttpHandlerOptions,
1144
+ ): Effect.Effect<
1145
+ ListObjectVersionsCommandOutput,
1146
+ SdkError | S3ServiceError
1147
+ >;
1148
+
1149
+ /**
1150
+ * @see {@link ListObjectsCommand}
1151
+ */
1152
+ listObjects(
1153
+ args: ListObjectsCommandInput,
1154
+ options?: HttpHandlerOptions,
1155
+ ): Effect.Effect<
1156
+ ListObjectsCommandOutput,
1157
+ SdkError | NoSuchBucketError
1158
+ >;
1159
+
1160
+ /**
1161
+ * @see {@link ListObjectsV2Command}
1162
+ */
1163
+ listObjectsV2(
1164
+ args: ListObjectsV2CommandInput,
1165
+ options?: HttpHandlerOptions,
1166
+ ): Effect.Effect<
1167
+ ListObjectsV2CommandOutput,
1168
+ SdkError | NoSuchBucketError
1169
+ >;
1170
+
1171
+ /**
1172
+ * @see {@link ListPartsCommand}
1173
+ */
1174
+ listParts(
1175
+ args: ListPartsCommandInput,
1176
+ options?: HttpHandlerOptions,
1177
+ ): Effect.Effect<
1178
+ ListPartsCommandOutput,
1179
+ SdkError | S3ServiceError
1180
+ >;
1181
+
1182
+ /**
1183
+ * @see {@link PutBucketAccelerateConfigurationCommand}
1184
+ */
1185
+ putBucketAccelerateConfiguration(
1186
+ args: PutBucketAccelerateConfigurationCommandInput,
1187
+ options?: HttpHandlerOptions,
1188
+ ): Effect.Effect<
1189
+ PutBucketAccelerateConfigurationCommandOutput,
1190
+ SdkError | S3ServiceError
1191
+ >;
1192
+
1193
+ /**
1194
+ * @see {@link PutBucketAclCommand}
1195
+ */
1196
+ putBucketAcl(
1197
+ args: PutBucketAclCommandInput,
1198
+ options?: HttpHandlerOptions,
1199
+ ): Effect.Effect<
1200
+ PutBucketAclCommandOutput,
1201
+ SdkError | S3ServiceError
1202
+ >;
1203
+
1204
+ /**
1205
+ * @see {@link PutBucketAnalyticsConfigurationCommand}
1206
+ */
1207
+ putBucketAnalyticsConfiguration(
1208
+ args: PutBucketAnalyticsConfigurationCommandInput,
1209
+ options?: HttpHandlerOptions,
1210
+ ): Effect.Effect<
1211
+ PutBucketAnalyticsConfigurationCommandOutput,
1212
+ SdkError | S3ServiceError
1213
+ >;
1214
+
1215
+ /**
1216
+ * @see {@link PutBucketCorsCommand}
1217
+ */
1218
+ putBucketCors(
1219
+ args: PutBucketCorsCommandInput,
1220
+ options?: HttpHandlerOptions,
1221
+ ): Effect.Effect<
1222
+ PutBucketCorsCommandOutput,
1223
+ SdkError | S3ServiceError
1224
+ >;
1225
+
1226
+ /**
1227
+ * @see {@link PutBucketEncryptionCommand}
1228
+ */
1229
+ putBucketEncryption(
1230
+ args: PutBucketEncryptionCommandInput,
1231
+ options?: HttpHandlerOptions,
1232
+ ): Effect.Effect<
1233
+ PutBucketEncryptionCommandOutput,
1234
+ SdkError | S3ServiceError
1235
+ >;
1236
+
1237
+ /**
1238
+ * @see {@link PutBucketIntelligentTieringConfigurationCommand}
1239
+ */
1240
+ putBucketIntelligentTieringConfiguration(
1241
+ args: PutBucketIntelligentTieringConfigurationCommandInput,
1242
+ options?: HttpHandlerOptions,
1243
+ ): Effect.Effect<
1244
+ PutBucketIntelligentTieringConfigurationCommandOutput,
1245
+ SdkError | S3ServiceError
1246
+ >;
1247
+
1248
+ /**
1249
+ * @see {@link PutBucketInventoryConfigurationCommand}
1250
+ */
1251
+ putBucketInventoryConfiguration(
1252
+ args: PutBucketInventoryConfigurationCommandInput,
1253
+ options?: HttpHandlerOptions,
1254
+ ): Effect.Effect<
1255
+ PutBucketInventoryConfigurationCommandOutput,
1256
+ SdkError | S3ServiceError
1257
+ >;
1258
+
1259
+ /**
1260
+ * @see {@link PutBucketLifecycleConfigurationCommand}
1261
+ */
1262
+ putBucketLifecycleConfiguration(
1263
+ args: PutBucketLifecycleConfigurationCommandInput,
1264
+ options?: HttpHandlerOptions,
1265
+ ): Effect.Effect<
1266
+ PutBucketLifecycleConfigurationCommandOutput,
1267
+ SdkError | S3ServiceError
1268
+ >;
1269
+
1270
+ /**
1271
+ * @see {@link PutBucketLoggingCommand}
1272
+ */
1273
+ putBucketLogging(
1274
+ args: PutBucketLoggingCommandInput,
1275
+ options?: HttpHandlerOptions,
1276
+ ): Effect.Effect<
1277
+ PutBucketLoggingCommandOutput,
1278
+ SdkError | S3ServiceError
1279
+ >;
1280
+
1281
+ /**
1282
+ * @see {@link PutBucketMetricsConfigurationCommand}
1283
+ */
1284
+ putBucketMetricsConfiguration(
1285
+ args: PutBucketMetricsConfigurationCommandInput,
1286
+ options?: HttpHandlerOptions,
1287
+ ): Effect.Effect<
1288
+ PutBucketMetricsConfigurationCommandOutput,
1289
+ SdkError | S3ServiceError
1290
+ >;
1291
+
1292
+ /**
1293
+ * @see {@link PutBucketNotificationConfigurationCommand}
1294
+ */
1295
+ putBucketNotificationConfiguration(
1296
+ args: PutBucketNotificationConfigurationCommandInput,
1297
+ options?: HttpHandlerOptions,
1298
+ ): Effect.Effect<
1299
+ PutBucketNotificationConfigurationCommandOutput,
1300
+ SdkError | S3ServiceError
1301
+ >;
1302
+
1303
+ /**
1304
+ * @see {@link PutBucketOwnershipControlsCommand}
1305
+ */
1306
+ putBucketOwnershipControls(
1307
+ args: PutBucketOwnershipControlsCommandInput,
1308
+ options?: HttpHandlerOptions,
1309
+ ): Effect.Effect<
1310
+ PutBucketOwnershipControlsCommandOutput,
1311
+ SdkError | S3ServiceError
1312
+ >;
1313
+
1314
+ /**
1315
+ * @see {@link PutBucketPolicyCommand}
1316
+ */
1317
+ putBucketPolicy(
1318
+ args: PutBucketPolicyCommandInput,
1319
+ options?: HttpHandlerOptions,
1320
+ ): Effect.Effect<
1321
+ PutBucketPolicyCommandOutput,
1322
+ SdkError | S3ServiceError
1323
+ >;
1324
+
1325
+ /**
1326
+ * @see {@link PutBucketReplicationCommand}
1327
+ */
1328
+ putBucketReplication(
1329
+ args: PutBucketReplicationCommandInput,
1330
+ options?: HttpHandlerOptions,
1331
+ ): Effect.Effect<
1332
+ PutBucketReplicationCommandOutput,
1333
+ SdkError | S3ServiceError
1334
+ >;
1335
+
1336
+ /**
1337
+ * @see {@link PutBucketRequestPaymentCommand}
1338
+ */
1339
+ putBucketRequestPayment(
1340
+ args: PutBucketRequestPaymentCommandInput,
1341
+ options?: HttpHandlerOptions,
1342
+ ): Effect.Effect<
1343
+ PutBucketRequestPaymentCommandOutput,
1344
+ SdkError | S3ServiceError
1345
+ >;
1346
+
1347
+ /**
1348
+ * @see {@link PutBucketTaggingCommand}
1349
+ */
1350
+ putBucketTagging(
1351
+ args: PutBucketTaggingCommandInput,
1352
+ options?: HttpHandlerOptions,
1353
+ ): Effect.Effect<
1354
+ PutBucketTaggingCommandOutput,
1355
+ SdkError | S3ServiceError
1356
+ >;
1357
+
1358
+ /**
1359
+ * @see {@link PutBucketVersioningCommand}
1360
+ */
1361
+ putBucketVersioning(
1362
+ args: PutBucketVersioningCommandInput,
1363
+ options?: HttpHandlerOptions,
1364
+ ): Effect.Effect<
1365
+ PutBucketVersioningCommandOutput,
1366
+ SdkError | S3ServiceError
1367
+ >;
1368
+
1369
+ /**
1370
+ * @see {@link PutBucketWebsiteCommand}
1371
+ */
1372
+ putBucketWebsite(
1373
+ args: PutBucketWebsiteCommandInput,
1374
+ options?: HttpHandlerOptions,
1375
+ ): Effect.Effect<
1376
+ PutBucketWebsiteCommandOutput,
1377
+ SdkError | S3ServiceError
1378
+ >;
1379
+
1380
+ /**
1381
+ * @see {@link PutObjectCommand}
1382
+ */
1383
+ putObject(
1384
+ args: PutObjectCommandInput,
1385
+ options?: { readonly presigned?: false } & HttpHandlerOptions,
1386
+ ): Effect.Effect<
1387
+ PutObjectCommandOutput,
1388
+ SdkError | EncryptionTypeMismatchError | InvalidRequestError | InvalidWriteOffsetError | TooManyPartsError
1389
+ >;
1390
+ putObject(
1391
+ args: PutObjectCommandInput,
1392
+ options?: { readonly presigned: true } & RequestPresigningArguments,
1393
+ ): Effect.Effect<string, SdkError | S3ServiceError>;
1394
+
1395
+ /**
1396
+ * @see {@link PutObjectAclCommand}
1397
+ */
1398
+ putObjectAcl(
1399
+ args: PutObjectAclCommandInput,
1400
+ options?: HttpHandlerOptions,
1401
+ ): Effect.Effect<
1402
+ PutObjectAclCommandOutput,
1403
+ SdkError | NoSuchKeyError
1404
+ >;
1405
+
1406
+ /**
1407
+ * @see {@link PutObjectLegalHoldCommand}
1408
+ */
1409
+ putObjectLegalHold(
1410
+ args: PutObjectLegalHoldCommandInput,
1411
+ options?: HttpHandlerOptions,
1412
+ ): Effect.Effect<
1413
+ PutObjectLegalHoldCommandOutput,
1414
+ SdkError | S3ServiceError
1415
+ >;
1416
+
1417
+ /**
1418
+ * @see {@link PutObjectLockConfigurationCommand}
1419
+ */
1420
+ putObjectLockConfiguration(
1421
+ args: PutObjectLockConfigurationCommandInput,
1422
+ options?: HttpHandlerOptions,
1423
+ ): Effect.Effect<
1424
+ PutObjectLockConfigurationCommandOutput,
1425
+ SdkError | S3ServiceError
1426
+ >;
1427
+
1428
+ /**
1429
+ * @see {@link PutObjectRetentionCommand}
1430
+ */
1431
+ putObjectRetention(
1432
+ args: PutObjectRetentionCommandInput,
1433
+ options?: HttpHandlerOptions,
1434
+ ): Effect.Effect<
1435
+ PutObjectRetentionCommandOutput,
1436
+ SdkError | S3ServiceError
1437
+ >;
1438
+
1439
+ /**
1440
+ * @see {@link PutObjectTaggingCommand}
1441
+ */
1442
+ putObjectTagging(
1443
+ args: PutObjectTaggingCommandInput,
1444
+ options?: HttpHandlerOptions,
1445
+ ): Effect.Effect<
1446
+ PutObjectTaggingCommandOutput,
1447
+ SdkError | S3ServiceError
1448
+ >;
1449
+
1450
+ /**
1451
+ * @see {@link PutPublicAccessBlockCommand}
1452
+ */
1453
+ putPublicAccessBlock(
1454
+ args: PutPublicAccessBlockCommandInput,
1455
+ options?: HttpHandlerOptions,
1456
+ ): Effect.Effect<
1457
+ PutPublicAccessBlockCommandOutput,
1458
+ SdkError | S3ServiceError
1459
+ >;
1460
+
1461
+ /**
1462
+ * @see {@link RestoreObjectCommand}
1463
+ */
1464
+ restoreObject(
1465
+ args: RestoreObjectCommandInput,
1466
+ options?: HttpHandlerOptions,
1467
+ ): Effect.Effect<
1468
+ RestoreObjectCommandOutput,
1469
+ SdkError | ObjectAlreadyInActiveTierError
1470
+ >;
1471
+
1472
+ /**
1473
+ * @see {@link SelectObjectContentCommand}
1474
+ */
1475
+ selectObjectContent(
1476
+ args: SelectObjectContentCommandInput,
1477
+ options?: HttpHandlerOptions,
1478
+ ): Effect.Effect<
1479
+ SelectObjectContentCommandOutput,
1480
+ SdkError | S3ServiceError
1481
+ >;
1482
+
1483
+ /**
1484
+ * @see {@link UploadPartCommand}
1485
+ */
1486
+ uploadPart(
1487
+ args: UploadPartCommandInput,
1488
+ options?: HttpHandlerOptions,
1489
+ ): Effect.Effect<
1490
+ UploadPartCommandOutput,
1491
+ SdkError | S3ServiceError
1492
+ >;
1493
+
1494
+ /**
1495
+ * @see {@link UploadPartCopyCommand}
1496
+ */
1497
+ uploadPartCopy(
1498
+ args: UploadPartCopyCommandInput,
1499
+ options?: HttpHandlerOptions,
1500
+ ): Effect.Effect<
1501
+ UploadPartCopyCommandOutput,
1502
+ SdkError | S3ServiceError
1503
+ >;
1504
+
1505
+ /**
1506
+ * @see {@link WriteGetObjectResponseCommand}
1507
+ */
1508
+ writeGetObjectResponse(
1509
+ args: WriteGetObjectResponseCommandInput,
1510
+ options?: HttpHandlerOptions,
1511
+ ): Effect.Effect<
1512
+ WriteGetObjectResponseCommandOutput,
1513
+ SdkError | S3ServiceError
1514
+ >;
1515
+ }
1516
+
1517
+ /**
1518
+ * @since 1.0.0
1519
+ * @category constructors
1520
+ */
1521
+ export const makeS3Service = Effect.gen(function*() {
1522
+ const client = yield* Instance.S3ClientInstance;
1523
+
1524
+ return Service.fromCommandsAndServiceFn<S3Service$>(commands, (CommandCtor) =>
1525
+ (
1526
+ args: any,
1527
+ options?:
1528
+ | ({ readonly presigned?: false } & HttpHandlerOptions)
1529
+ | ({ readonly presigned: true } & RequestPresigningArguments),
1530
+ ) =>
1531
+ options?.presigned
1532
+ ? Effect.gen(function*() {
1533
+ const config = yield* S3ServiceConfig.toS3ClientConfig;
1534
+ return yield* Effect.tryPromise({
1535
+ try: () => getSignedUrl(client as any, new CommandCtor(args, config), options),
1536
+ catch: Service.catchServiceExceptions(),
1537
+ });
1538
+ })
1539
+ : Service.makeServiceFn(client, CommandCtor, {
1540
+ resolveClientConfig: S3ServiceConfig.toS3ClientConfig,
1541
+ })(args, options));
1542
+ });
1543
+
1544
+ /**
1545
+ * @since 1.0.0
1546
+ * @category models
1547
+ */
1548
+ export class S3Service extends Effect.Tag("@effect-aws/client-s3/S3Service")<
1549
+ S3Service,
1550
+ S3Service$
1551
+ >() {
1552
+ declare static readonly getObject: S3Service$["getObject"];
1553
+ declare static readonly putObject: S3Service$["putObject"];
1554
+
1555
+ static readonly defaultLayer = Layer.effect(this, makeS3Service).pipe(Layer.provide(Instance.layer));
1556
+ static readonly layer = (config: S3Service.Config) =>
1557
+ Layer.effect(this, makeS3Service).pipe(
1558
+ Layer.provide(Instance.layer),
1559
+ Layer.provide(S3ServiceConfig.setS3ServiceConfig(config)),
1560
+ );
1561
+ static readonly baseLayer = (
1562
+ evaluate: (defaultConfig: S3ClientConfig) => S3Client,
1563
+ ) =>
1564
+ Layer.effect(this, makeS3Service).pipe(
1565
+ Layer.provide(
1566
+ Layer.effect(
1567
+ Instance.S3ClientInstance,
1568
+ Effect.map(S3ServiceConfig.toS3ClientConfig, evaluate),
1569
+ ),
1570
+ ),
1571
+ );
1572
+ }
1573
+
1574
+ /**
1575
+ * @since 1.0.0
1576
+ */
1577
+ export declare namespace S3Service {
1578
+ /**
1579
+ * @since 1.0.0
1580
+ */
1581
+ export interface Config extends Omit<S3ClientConfig, "logger"> {
1582
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
1583
+ }
1584
+ }