@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,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/S3ClientInstance.js",
3
+ "module": "../dist/esm/S3ClientInstance.js",
4
+ "types": "../dist/dts/S3ClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/S3Service.js",
3
+ "module": "../dist/esm/S3Service.js",
4
+ "types": "../dist/dts/S3Service.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/S3ServiceConfig.js",
3
+ "module": "../dist/esm/S3ServiceConfig.js",
4
+ "types": "../dist/dts/S3ServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,8 @@
1
1
  import type { BucketAlreadyExists, BucketAlreadyOwnedByYou, EncryptionTypeMismatch, InvalidObjectState, InvalidRequest, InvalidWriteOffset, NoSuchBucket, NoSuchKey, NoSuchUpload, NotFound, ObjectAlreadyInActiveTierError as ObjectAlreadyInActiveTierException, ObjectNotInActiveTierError as ObjectNotInActiveTierException, S3ServiceException, TooManyParts } from "@aws-sdk/client-s3";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
2
4
  import { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
5
+ export declare const AllServiceErrors: readonly ["BucketAlreadyExists", "BucketAlreadyOwnedByYou", "EncryptionTypeMismatch", "InvalidObjectState", "InvalidRequest", "InvalidWriteOffset", "NoSuchBucket", "NoSuchKey", "NoSuchUpload", "NotFound", "ObjectAlreadyInActiveTierError", "ObjectNotInActiveTierError", "TooManyParts"];
9
6
  export type BucketAlreadyExistsError = TaggedException<BucketAlreadyExists>;
10
7
  export type BucketAlreadyOwnedByYouError = TaggedException<BucketAlreadyOwnedByYou>;
11
8
  export type EncryptionTypeMismatchError = TaggedException<EncryptionTypeMismatch>;
@@ -23,7 +20,6 @@ export type S3ServiceError = TaggedException<S3ServiceException & {
23
20
  name: "S3ServiceError";
24
21
  }>;
25
22
  export declare const S3ServiceError: Data.Case.Constructor<S3ServiceError, "_tag">;
26
- export type SdkError = TaggedException<Error & {
27
- name: "SdkError";
28
- }>;
29
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
23
+ export type SdkError = CommonSdkError;
24
+ export declare const SdkError: Data.Case.Constructor<CommonSdkError, "_tag">;
25
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,8BAA8B,IAAI,kCAAkC,EACpE,0BAA0B,IAAI,8BAA8B,EAC5D,kBAAkB,EAClB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,gBAAgB,8RAcnB,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAC5E,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AACpF,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;AAClE,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AACtD,MAAM,MAAM,8BAA8B,GAAG,eAAe,CAAC,kCAAkC,CAAC,CAAC;AACjG,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACzF,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,cAAc,GAAG,eAAe,CAC1C,kBAAkB,GAAG;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAChD,CAAC;AACF,eAAO,MAAM,cAAc,+CAAgD,CAAC;AAC5E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,+CAAiB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.S3ServiceError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ exports.AllServiceErrors = [
7
+ "BucketAlreadyExists",
8
+ "BucketAlreadyOwnedByYou",
9
+ "EncryptionTypeMismatch",
10
+ "InvalidObjectState",
11
+ "InvalidRequest",
12
+ "InvalidWriteOffset",
13
+ "NoSuchBucket",
14
+ "NoSuchKey",
15
+ "NoSuchUpload",
16
+ "NotFound",
17
+ "ObjectAlreadyInActiveTierError",
18
+ "ObjectNotInActiveTierError",
19
+ "TooManyParts",
20
+ ];
21
+ exports.S3ServiceError = effect_1.Data.tagged("S3ServiceError");
22
+ exports.SdkError = commons_1.SdkError;
23
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAiBA,iDAAiE;AACjE,mCAA8B;AAEjB,QAAA,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,yBAAyB;IACzB,wBAAwB;IACxB,oBAAoB;IACpB,gBAAgB;IAChB,oBAAoB;IACpB,cAAc;IACd,WAAW;IACX,cAAc;IACd,UAAU;IACV,gCAAgC;IAChC,4BAA4B;IAC5B,cAAc;CACN,CAAC;AAmBE,QAAA,cAAc,GAAG,aAAI,CAAC,MAAM,CAAiB,gBAAgB,CAAC,CAAC;AAE/D,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { S3Client } from "@aws-sdk/client-s3";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const S3ClientInstance_base: Context.TagClass<S3ClientInstance, "@effect-aws/client-s3/S3ClientInstance", S3Client>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class S3ClientInstance extends S3ClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<S3Client, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<S3ClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=S3ClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"S3ClientInstance.d.ts","sourceRoot":"","sources":["../../src/S3ClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAEP;CAAG;AAElC;;;GAGG;AACH,eAAO,MAAM,IAAI,8DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,6CAAuC,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.layer = exports.make = exports.S3ClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_s3_1 = require("@aws-sdk/client-s3");
31
+ const effect_1 = require("effect");
32
+ const S3ServiceConfig = __importStar(require("./S3ServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class S3ClientInstance extends effect_1.Context.Tag("@effect-aws/client-s3/S3ClientInstance")() {
38
+ }
39
+ exports.S3ClientInstance = S3ClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(S3ServiceConfig.toS3ClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_s3_1.S3Client(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
+ /**
46
+ * @since 1.0.0
47
+ * @category layers
48
+ */
49
+ exports.layer = effect_1.Layer.scoped(S3ClientInstance, exports.make);
50
+ //# sourceMappingURL=S3ClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"S3ClientInstance.js","sourceRoot":"","sources":["../../src/S3ClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDAA8C;AAC9C,mCAAgD;AAChD,sEAAwD;AAExD;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,gBAAO,CAAC,GAAG,CAC/C,wCAAwC,CACzC,EAA8B;CAAG;AAFlC,4CAEkC;AAElC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,eAAe,CAAC,gBAAgB,EAChC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAQ,CAAC,MAAM,CAAC,CAAC,EACvC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAI,CAAC,CAAC"}
@@ -1,22 +1,12 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { type AbortMultipartUploadCommandInput, type AbortMultipartUploadCommandOutput, type CompleteMultipartUploadCommandInput, type CompleteMultipartUploadCommandOutput, type CopyObjectCommandInput, type CopyObjectCommandOutput, type CreateBucketCommandInput, type CreateBucketCommandOutput, type CreateBucketMetadataTableConfigurationCommandInput, type CreateBucketMetadataTableConfigurationCommandOutput, type CreateMultipartUploadCommandInput, type CreateMultipartUploadCommandOutput, type CreateSessionCommandInput, type CreateSessionCommandOutput, type DeleteBucketAnalyticsConfigurationCommandInput, type DeleteBucketAnalyticsConfigurationCommandOutput, type DeleteBucketCommandInput, type DeleteBucketCommandOutput, type DeleteBucketCorsCommandInput, type DeleteBucketCorsCommandOutput, type DeleteBucketEncryptionCommandInput, type DeleteBucketEncryptionCommandOutput, type DeleteBucketIntelligentTieringConfigurationCommandInput, type DeleteBucketIntelligentTieringConfigurationCommandOutput, type DeleteBucketInventoryConfigurationCommandInput, type DeleteBucketInventoryConfigurationCommandOutput, type DeleteBucketLifecycleCommandInput, type DeleteBucketLifecycleCommandOutput, type DeleteBucketMetadataTableConfigurationCommandInput, type DeleteBucketMetadataTableConfigurationCommandOutput, type DeleteBucketMetricsConfigurationCommandInput, type DeleteBucketMetricsConfigurationCommandOutput, type DeleteBucketOwnershipControlsCommandInput, type DeleteBucketOwnershipControlsCommandOutput, type DeleteBucketPolicyCommandInput, type DeleteBucketPolicyCommandOutput, type DeleteBucketReplicationCommandInput, type DeleteBucketReplicationCommandOutput, type DeleteBucketTaggingCommandInput, type DeleteBucketTaggingCommandOutput, type DeleteBucketWebsiteCommandInput, type DeleteBucketWebsiteCommandOutput, type DeleteObjectCommandInput, type DeleteObjectCommandOutput, type DeleteObjectTaggingCommandInput, type DeleteObjectTaggingCommandOutput, type DeleteObjectsCommandInput, type DeleteObjectsCommandOutput, type DeletePublicAccessBlockCommandInput, type DeletePublicAccessBlockCommandOutput, type GetBucketAccelerateConfigurationCommandInput, type GetBucketAccelerateConfigurationCommandOutput, type GetBucketAclCommandInput, type GetBucketAclCommandOutput, type GetBucketAnalyticsConfigurationCommandInput, type GetBucketAnalyticsConfigurationCommandOutput, type GetBucketCorsCommandInput, type GetBucketCorsCommandOutput, type GetBucketEncryptionCommandInput, type GetBucketEncryptionCommandOutput, type GetBucketIntelligentTieringConfigurationCommandInput, type GetBucketIntelligentTieringConfigurationCommandOutput, type GetBucketInventoryConfigurationCommandInput, type GetBucketInventoryConfigurationCommandOutput, type GetBucketLifecycleConfigurationCommandInput, type GetBucketLifecycleConfigurationCommandOutput, type GetBucketLocationCommandInput, type GetBucketLocationCommandOutput, type GetBucketLoggingCommandInput, type GetBucketLoggingCommandOutput, type GetBucketMetadataTableConfigurationCommandInput, type GetBucketMetadataTableConfigurationCommandOutput, type GetBucketMetricsConfigurationCommandInput, type GetBucketMetricsConfigurationCommandOutput, type GetBucketNotificationConfigurationCommandInput, type GetBucketNotificationConfigurationCommandOutput, type GetBucketOwnershipControlsCommandInput, type GetBucketOwnershipControlsCommandOutput, type GetBucketPolicyCommandInput, type GetBucketPolicyCommandOutput, type GetBucketPolicyStatusCommandInput, type GetBucketPolicyStatusCommandOutput, type GetBucketReplicationCommandInput, type GetBucketReplicationCommandOutput, type GetBucketRequestPaymentCommandInput, type GetBucketRequestPaymentCommandOutput, type GetBucketTaggingCommandInput, type GetBucketTaggingCommandOutput, type GetBucketVersioningCommandInput, type GetBucketVersioningCommandOutput, type GetBucketWebsiteCommandInput, type GetBucketWebsiteCommandOutput, type GetObjectAclCommandInput, type GetObjectAclCommandOutput, type GetObjectAttributesCommandInput, type GetObjectAttributesCommandOutput, type GetObjectCommandInput, type GetObjectCommandOutput, type GetObjectLegalHoldCommandInput, type GetObjectLegalHoldCommandOutput, type GetObjectLockConfigurationCommandInput, type GetObjectLockConfigurationCommandOutput, type GetObjectRetentionCommandInput, type GetObjectRetentionCommandOutput, type GetObjectTaggingCommandInput, type GetObjectTaggingCommandOutput, type GetObjectTorrentCommandInput, type GetObjectTorrentCommandOutput, type GetPublicAccessBlockCommandInput, type GetPublicAccessBlockCommandOutput, type HeadBucketCommandInput, type HeadBucketCommandOutput, type HeadObjectCommandInput, type HeadObjectCommandOutput, type ListBucketAnalyticsConfigurationsCommandInput, type ListBucketAnalyticsConfigurationsCommandOutput, type ListBucketIntelligentTieringConfigurationsCommandInput, type ListBucketIntelligentTieringConfigurationsCommandOutput, type ListBucketInventoryConfigurationsCommandInput, type ListBucketInventoryConfigurationsCommandOutput, type ListBucketMetricsConfigurationsCommandInput, type ListBucketMetricsConfigurationsCommandOutput, type ListBucketsCommandInput, type ListBucketsCommandOutput, type ListDirectoryBucketsCommandInput, type ListDirectoryBucketsCommandOutput, type ListMultipartUploadsCommandInput, type ListMultipartUploadsCommandOutput, type ListObjectVersionsCommandInput, type ListObjectVersionsCommandOutput, type ListObjectsCommandInput, type ListObjectsCommandOutput, type ListObjectsV2CommandInput, type ListObjectsV2CommandOutput, type ListPartsCommandInput, type ListPartsCommandOutput, type PutBucketAccelerateConfigurationCommandInput, type PutBucketAccelerateConfigurationCommandOutput, type PutBucketAclCommandInput, type PutBucketAclCommandOutput, type PutBucketAnalyticsConfigurationCommandInput, type PutBucketAnalyticsConfigurationCommandOutput, type PutBucketCorsCommandInput, type PutBucketCorsCommandOutput, type PutBucketEncryptionCommandInput, type PutBucketEncryptionCommandOutput, type PutBucketIntelligentTieringConfigurationCommandInput, type PutBucketIntelligentTieringConfigurationCommandOutput, type PutBucketInventoryConfigurationCommandInput, type PutBucketInventoryConfigurationCommandOutput, type PutBucketLifecycleConfigurationCommandInput, type PutBucketLifecycleConfigurationCommandOutput, type PutBucketLoggingCommandInput, type PutBucketLoggingCommandOutput, type PutBucketMetricsConfigurationCommandInput, type PutBucketMetricsConfigurationCommandOutput, type PutBucketNotificationConfigurationCommandInput, type PutBucketNotificationConfigurationCommandOutput, type PutBucketOwnershipControlsCommandInput, type PutBucketOwnershipControlsCommandOutput, type PutBucketPolicyCommandInput, type PutBucketPolicyCommandOutput, type PutBucketReplicationCommandInput, type PutBucketReplicationCommandOutput, type PutBucketRequestPaymentCommandInput, type PutBucketRequestPaymentCommandOutput, type PutBucketTaggingCommandInput, type PutBucketTaggingCommandOutput, type PutBucketVersioningCommandInput, type PutBucketVersioningCommandOutput, type PutBucketWebsiteCommandInput, type PutBucketWebsiteCommandOutput, type PutObjectAclCommandInput, type PutObjectAclCommandOutput, type PutObjectCommandInput, type PutObjectCommandOutput, type PutObjectLegalHoldCommandInput, type PutObjectLegalHoldCommandOutput, type PutObjectLockConfigurationCommandInput, type PutObjectLockConfigurationCommandOutput, type PutObjectRetentionCommandInput, type PutObjectRetentionCommandOutput, type PutObjectTaggingCommandInput, type PutObjectTaggingCommandOutput, type PutPublicAccessBlockCommandInput, type PutPublicAccessBlockCommandOutput, type RestoreObjectCommandInput, type RestoreObjectCommandOutput, type S3Client, type S3ClientConfig, type SelectObjectContentCommandInput, type SelectObjectContentCommandOutput, type UploadPartCommandInput, type UploadPartCommandOutput, type UploadPartCopyCommandInput, type UploadPartCopyCommandOutput, type WriteGetObjectResponseCommandInput, type WriteGetObjectResponseCommandOutput } from "@aws-sdk/client-s3";
4
+ import { type AbortMultipartUploadCommandInput, type AbortMultipartUploadCommandOutput, type CompleteMultipartUploadCommandInput, type CompleteMultipartUploadCommandOutput, type CopyObjectCommandInput, type CopyObjectCommandOutput, type CreateBucketCommandInput, type CreateBucketCommandOutput, type CreateBucketMetadataTableConfigurationCommandInput, type CreateBucketMetadataTableConfigurationCommandOutput, type CreateMultipartUploadCommandInput, type CreateMultipartUploadCommandOutput, type CreateSessionCommandInput, type CreateSessionCommandOutput, type DeleteBucketAnalyticsConfigurationCommandInput, type DeleteBucketAnalyticsConfigurationCommandOutput, type DeleteBucketCommandInput, type DeleteBucketCommandOutput, type DeleteBucketCorsCommandInput, type DeleteBucketCorsCommandOutput, type DeleteBucketEncryptionCommandInput, type DeleteBucketEncryptionCommandOutput, type DeleteBucketIntelligentTieringConfigurationCommandInput, type DeleteBucketIntelligentTieringConfigurationCommandOutput, type DeleteBucketInventoryConfigurationCommandInput, type DeleteBucketInventoryConfigurationCommandOutput, type DeleteBucketLifecycleCommandInput, type DeleteBucketLifecycleCommandOutput, type DeleteBucketMetadataTableConfigurationCommandInput, type DeleteBucketMetadataTableConfigurationCommandOutput, type DeleteBucketMetricsConfigurationCommandInput, type DeleteBucketMetricsConfigurationCommandOutput, type DeleteBucketOwnershipControlsCommandInput, type DeleteBucketOwnershipControlsCommandOutput, type DeleteBucketPolicyCommandInput, type DeleteBucketPolicyCommandOutput, type DeleteBucketReplicationCommandInput, type DeleteBucketReplicationCommandOutput, type DeleteBucketTaggingCommandInput, type DeleteBucketTaggingCommandOutput, type DeleteBucketWebsiteCommandInput, type DeleteBucketWebsiteCommandOutput, type DeleteObjectCommandInput, type DeleteObjectCommandOutput, type DeleteObjectsCommandInput, type DeleteObjectsCommandOutput, type DeleteObjectTaggingCommandInput, type DeleteObjectTaggingCommandOutput, type DeletePublicAccessBlockCommandInput, type DeletePublicAccessBlockCommandOutput, type GetBucketAccelerateConfigurationCommandInput, type GetBucketAccelerateConfigurationCommandOutput, type GetBucketAclCommandInput, type GetBucketAclCommandOutput, type GetBucketAnalyticsConfigurationCommandInput, type GetBucketAnalyticsConfigurationCommandOutput, type GetBucketCorsCommandInput, type GetBucketCorsCommandOutput, type GetBucketEncryptionCommandInput, type GetBucketEncryptionCommandOutput, type GetBucketIntelligentTieringConfigurationCommandInput, type GetBucketIntelligentTieringConfigurationCommandOutput, type GetBucketInventoryConfigurationCommandInput, type GetBucketInventoryConfigurationCommandOutput, type GetBucketLifecycleConfigurationCommandInput, type GetBucketLifecycleConfigurationCommandOutput, type GetBucketLocationCommandInput, type GetBucketLocationCommandOutput, type GetBucketLoggingCommandInput, type GetBucketLoggingCommandOutput, type GetBucketMetadataTableConfigurationCommandInput, type GetBucketMetadataTableConfigurationCommandOutput, type GetBucketMetricsConfigurationCommandInput, type GetBucketMetricsConfigurationCommandOutput, type GetBucketNotificationConfigurationCommandInput, type GetBucketNotificationConfigurationCommandOutput, type GetBucketOwnershipControlsCommandInput, type GetBucketOwnershipControlsCommandOutput, type GetBucketPolicyCommandInput, type GetBucketPolicyCommandOutput, type GetBucketPolicyStatusCommandInput, type GetBucketPolicyStatusCommandOutput, type GetBucketReplicationCommandInput, type GetBucketReplicationCommandOutput, type GetBucketRequestPaymentCommandInput, type GetBucketRequestPaymentCommandOutput, type GetBucketTaggingCommandInput, type GetBucketTaggingCommandOutput, type GetBucketVersioningCommandInput, type GetBucketVersioningCommandOutput, type GetBucketWebsiteCommandInput, type GetBucketWebsiteCommandOutput, type GetObjectAclCommandInput, type GetObjectAclCommandOutput, type GetObjectAttributesCommandInput, type GetObjectAttributesCommandOutput, type GetObjectCommandInput, type GetObjectCommandOutput, type GetObjectLegalHoldCommandInput, type GetObjectLegalHoldCommandOutput, type GetObjectLockConfigurationCommandInput, type GetObjectLockConfigurationCommandOutput, type GetObjectRetentionCommandInput, type GetObjectRetentionCommandOutput, type GetObjectTaggingCommandInput, type GetObjectTaggingCommandOutput, type GetObjectTorrentCommandInput, type GetObjectTorrentCommandOutput, type GetPublicAccessBlockCommandInput, type GetPublicAccessBlockCommandOutput, type HeadBucketCommandInput, type HeadBucketCommandOutput, type HeadObjectCommandInput, type HeadObjectCommandOutput, type ListBucketAnalyticsConfigurationsCommandInput, type ListBucketAnalyticsConfigurationsCommandOutput, type ListBucketIntelligentTieringConfigurationsCommandInput, type ListBucketIntelligentTieringConfigurationsCommandOutput, type ListBucketInventoryConfigurationsCommandInput, type ListBucketInventoryConfigurationsCommandOutput, type ListBucketMetricsConfigurationsCommandInput, type ListBucketMetricsConfigurationsCommandOutput, type ListBucketsCommandInput, type ListBucketsCommandOutput, type ListDirectoryBucketsCommandInput, type ListDirectoryBucketsCommandOutput, type ListMultipartUploadsCommandInput, type ListMultipartUploadsCommandOutput, type ListObjectsCommandInput, type ListObjectsCommandOutput, type ListObjectsV2CommandInput, type ListObjectsV2CommandOutput, type ListObjectVersionsCommandInput, type ListObjectVersionsCommandOutput, type ListPartsCommandInput, type ListPartsCommandOutput, type PutBucketAccelerateConfigurationCommandInput, type PutBucketAccelerateConfigurationCommandOutput, type PutBucketAclCommandInput, type PutBucketAclCommandOutput, type PutBucketAnalyticsConfigurationCommandInput, type PutBucketAnalyticsConfigurationCommandOutput, type PutBucketCorsCommandInput, type PutBucketCorsCommandOutput, type PutBucketEncryptionCommandInput, type PutBucketEncryptionCommandOutput, type PutBucketIntelligentTieringConfigurationCommandInput, type PutBucketIntelligentTieringConfigurationCommandOutput, type PutBucketInventoryConfigurationCommandInput, type PutBucketInventoryConfigurationCommandOutput, type PutBucketLifecycleConfigurationCommandInput, type PutBucketLifecycleConfigurationCommandOutput, type PutBucketLoggingCommandInput, type PutBucketLoggingCommandOutput, type PutBucketMetricsConfigurationCommandInput, type PutBucketMetricsConfigurationCommandOutput, type PutBucketNotificationConfigurationCommandInput, type PutBucketNotificationConfigurationCommandOutput, type PutBucketOwnershipControlsCommandInput, type PutBucketOwnershipControlsCommandOutput, type PutBucketPolicyCommandInput, type PutBucketPolicyCommandOutput, type PutBucketReplicationCommandInput, type PutBucketReplicationCommandOutput, type PutBucketRequestPaymentCommandInput, type PutBucketRequestPaymentCommandOutput, type PutBucketTaggingCommandInput, type PutBucketTaggingCommandOutput, type PutBucketVersioningCommandInput, type PutBucketVersioningCommandOutput, type PutBucketWebsiteCommandInput, type PutBucketWebsiteCommandOutput, type PutObjectAclCommandInput, type PutObjectAclCommandOutput, type PutObjectCommandInput, type PutObjectCommandOutput, type PutObjectLegalHoldCommandInput, type PutObjectLegalHoldCommandOutput, type PutObjectLockConfigurationCommandInput, type PutObjectLockConfigurationCommandOutput, type PutObjectRetentionCommandInput, type PutObjectRetentionCommandOutput, type PutObjectTaggingCommandInput, type PutObjectTaggingCommandOutput, type PutPublicAccessBlockCommandInput, type PutPublicAccessBlockCommandOutput, type RestoreObjectCommandInput, type RestoreObjectCommandOutput, type S3Client, type S3ClientConfig, type SelectObjectContentCommandInput, type SelectObjectContentCommandOutput, type UploadPartCommandInput, type UploadPartCommandOutput, type UploadPartCopyCommandInput, type UploadPartCopyCommandOutput, type WriteGetObjectResponseCommandInput, type WriteGetObjectResponseCommandOutput } from "@aws-sdk/client-s3";
5
5
  import type { RequestPresigningArguments } from "@aws-sdk/types";
6
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
7
  import { Effect, Layer } from "effect";
7
- import { BucketAlreadyExistsError, BucketAlreadyOwnedByYouError, EncryptionTypeMismatchError, InvalidObjectStateError, InvalidRequestError, InvalidWriteOffsetError, NoSuchBucketError, NoSuchKeyError, NoSuchUploadError, NotFoundError, ObjectAlreadyInActiveTierError, ObjectNotInActiveTierError, S3ServiceError, SdkError, TooManyPartsError } from "./Errors";
8
- import { S3ClientInstance } from "./S3ClientInstance";
9
- import { S3ClientInstanceConfig } from "./S3ClientInstanceConfig";
10
- /**
11
- * @since 1.0.1
12
- */
13
- export interface HttpHandlerOptions {
14
- /**
15
- * The maximum time in milliseconds that the connection phase of a request
16
- * may take before the connection attempt is abandoned.
17
- */
18
- requestTimeout?: number;
19
- }
8
+ import type { BucketAlreadyExistsError, BucketAlreadyOwnedByYouError, EncryptionTypeMismatchError, InvalidObjectStateError, InvalidRequestError, InvalidWriteOffsetError, NoSuchBucketError, NoSuchKeyError, NoSuchUploadError, NotFoundError, ObjectAlreadyInActiveTierError, ObjectNotInActiveTierError, S3ServiceError, TooManyPartsError } from "./Errors.js";
9
+ import * as Instance from "./S3ClientInstance.js";
20
10
  interface S3Service$ {
21
11
  readonly _: unique symbol;
22
12
  /**
@@ -426,107 +416,9 @@ interface S3Service$ {
426
416
  * @since 1.0.0
427
417
  * @category constructors
428
418
  */
429
- export declare const makeS3Service: Effect.Effect<S3Service$, never, S3ClientInstance>;
430
- declare const S3Service_base: import("effect/Context").TagClass<S3Service, "@effect-aws/client-s3/S3Service", S3Service$> & {
431
- readonly _: Effect.Effect<S3Service$["_"], never, S3Service>;
432
- abortMultipartUpload: (args: AbortMultipartUploadCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AbortMultipartUploadCommandOutput, NoSuchUploadError | SdkError, S3Service>;
433
- completeMultipartUpload: (args: CompleteMultipartUploadCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CompleteMultipartUploadCommandOutput, S3ServiceError | SdkError, S3Service>;
434
- copyObject: (args: CopyObjectCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CopyObjectCommandOutput, ObjectNotInActiveTierError | SdkError, S3Service>;
435
- createBucket: (args: CreateBucketCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateBucketCommandOutput, BucketAlreadyExistsError | BucketAlreadyOwnedByYouError | SdkError, S3Service>;
436
- createBucketMetadataTableConfiguration: (args: CreateBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateBucketMetadataTableConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
437
- createMultipartUpload: (args: CreateMultipartUploadCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateMultipartUploadCommandOutput, S3ServiceError | SdkError, S3Service>;
438
- createSession: (args: CreateSessionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateSessionCommandOutput, NoSuchBucketError | SdkError, S3Service>;
439
- deleteBucket: (args: DeleteBucketCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketCommandOutput, S3ServiceError | SdkError, S3Service>;
440
- deleteBucketAnalyticsConfiguration: (args: DeleteBucketAnalyticsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketAnalyticsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
441
- deleteBucketCors: (args: DeleteBucketCorsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketCorsCommandOutput, S3ServiceError | SdkError, S3Service>;
442
- deleteBucketEncryption: (args: DeleteBucketEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketEncryptionCommandOutput, S3ServiceError | SdkError, S3Service>;
443
- deleteBucketIntelligentTieringConfiguration: (args: DeleteBucketIntelligentTieringConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketIntelligentTieringConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
444
- deleteBucketInventoryConfiguration: (args: DeleteBucketInventoryConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketInventoryConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
445
- deleteBucketLifecycle: (args: DeleteBucketLifecycleCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketLifecycleCommandOutput, S3ServiceError | SdkError, S3Service>;
446
- deleteBucketMetadataTableConfiguration: (args: DeleteBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketMetadataTableConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
447
- deleteBucketMetricsConfiguration: (args: DeleteBucketMetricsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketMetricsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
448
- deleteBucketOwnershipControls: (args: DeleteBucketOwnershipControlsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketOwnershipControlsCommandOutput, S3ServiceError | SdkError, S3Service>;
449
- deleteBucketPolicy: (args: DeleteBucketPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketPolicyCommandOutput, S3ServiceError | SdkError, S3Service>;
450
- deleteBucketReplication: (args: DeleteBucketReplicationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketReplicationCommandOutput, S3ServiceError | SdkError, S3Service>;
451
- deleteBucketTagging: (args: DeleteBucketTaggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketTaggingCommandOutput, S3ServiceError | SdkError, S3Service>;
452
- deleteBucketWebsite: (args: DeleteBucketWebsiteCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketWebsiteCommandOutput, S3ServiceError | SdkError, S3Service>;
453
- deleteObject: (args: DeleteObjectCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteObjectCommandOutput, S3ServiceError | SdkError, S3Service>;
454
- deleteObjectTagging: (args: DeleteObjectTaggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteObjectTaggingCommandOutput, S3ServiceError | SdkError, S3Service>;
455
- deleteObjects: (args: DeleteObjectsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteObjectsCommandOutput, S3ServiceError | SdkError, S3Service>;
456
- deletePublicAccessBlock: (args: DeletePublicAccessBlockCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeletePublicAccessBlockCommandOutput, S3ServiceError | SdkError, S3Service>;
457
- getBucketAccelerateConfiguration: (args: GetBucketAccelerateConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketAccelerateConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
458
- getBucketAcl: (args: GetBucketAclCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketAclCommandOutput, S3ServiceError | SdkError, S3Service>;
459
- getBucketAnalyticsConfiguration: (args: GetBucketAnalyticsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketAnalyticsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
460
- getBucketCors: (args: GetBucketCorsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketCorsCommandOutput, S3ServiceError | SdkError, S3Service>;
461
- getBucketEncryption: (args: GetBucketEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketEncryptionCommandOutput, S3ServiceError | SdkError, S3Service>;
462
- getBucketIntelligentTieringConfiguration: (args: GetBucketIntelligentTieringConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketIntelligentTieringConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
463
- getBucketInventoryConfiguration: (args: GetBucketInventoryConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketInventoryConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
464
- getBucketLifecycleConfiguration: (args: GetBucketLifecycleConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketLifecycleConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
465
- getBucketLocation: (args: GetBucketLocationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketLocationCommandOutput, S3ServiceError | SdkError, S3Service>;
466
- getBucketLogging: (args: GetBucketLoggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketLoggingCommandOutput, S3ServiceError | SdkError, S3Service>;
467
- getBucketMetadataTableConfiguration: (args: GetBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketMetadataTableConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
468
- getBucketMetricsConfiguration: (args: GetBucketMetricsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketMetricsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
469
- getBucketNotificationConfiguration: (args: GetBucketNotificationConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketNotificationConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
470
- getBucketOwnershipControls: (args: GetBucketOwnershipControlsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketOwnershipControlsCommandOutput, S3ServiceError | SdkError, S3Service>;
471
- getBucketPolicy: (args: GetBucketPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketPolicyCommandOutput, S3ServiceError | SdkError, S3Service>;
472
- getBucketPolicyStatus: (args: GetBucketPolicyStatusCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketPolicyStatusCommandOutput, S3ServiceError | SdkError, S3Service>;
473
- getBucketReplication: (args: GetBucketReplicationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketReplicationCommandOutput, S3ServiceError | SdkError, S3Service>;
474
- getBucketRequestPayment: (args: GetBucketRequestPaymentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketRequestPaymentCommandOutput, S3ServiceError | SdkError, S3Service>;
475
- getBucketTagging: (args: GetBucketTaggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketTaggingCommandOutput, S3ServiceError | SdkError, S3Service>;
476
- getBucketVersioning: (args: GetBucketVersioningCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketVersioningCommandOutput, S3ServiceError | SdkError, S3Service>;
477
- getBucketWebsite: (args: GetBucketWebsiteCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketWebsiteCommandOutput, S3ServiceError | SdkError, S3Service>;
478
- getObjectAcl: (args: GetObjectAclCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectAclCommandOutput, NoSuchKeyError | SdkError, S3Service>;
479
- getObjectAttributes: (args: GetObjectAttributesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectAttributesCommandOutput, NoSuchKeyError | SdkError, S3Service>;
480
- getObjectLegalHold: (args: GetObjectLegalHoldCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectLegalHoldCommandOutput, S3ServiceError | SdkError, S3Service>;
481
- getObjectLockConfiguration: (args: GetObjectLockConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectLockConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
482
- getObjectRetention: (args: GetObjectRetentionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectRetentionCommandOutput, S3ServiceError | SdkError, S3Service>;
483
- getObjectTagging: (args: GetObjectTaggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectTaggingCommandOutput, S3ServiceError | SdkError, S3Service>;
484
- getObjectTorrent: (args: GetObjectTorrentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetObjectTorrentCommandOutput, S3ServiceError | SdkError, S3Service>;
485
- getPublicAccessBlock: (args: GetPublicAccessBlockCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetPublicAccessBlockCommandOutput, S3ServiceError | SdkError, S3Service>;
486
- headBucket: (args: HeadBucketCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<HeadBucketCommandOutput, NotFoundError | SdkError, S3Service>;
487
- headObject: (args: HeadObjectCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<HeadObjectCommandOutput, NotFoundError | SdkError, S3Service>;
488
- listBucketAnalyticsConfigurations: (args: ListBucketAnalyticsConfigurationsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListBucketAnalyticsConfigurationsCommandOutput, S3ServiceError | SdkError, S3Service>;
489
- listBucketIntelligentTieringConfigurations: (args: ListBucketIntelligentTieringConfigurationsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListBucketIntelligentTieringConfigurationsCommandOutput, S3ServiceError | SdkError, S3Service>;
490
- listBucketInventoryConfigurations: (args: ListBucketInventoryConfigurationsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListBucketInventoryConfigurationsCommandOutput, S3ServiceError | SdkError, S3Service>;
491
- listBucketMetricsConfigurations: (args: ListBucketMetricsConfigurationsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListBucketMetricsConfigurationsCommandOutput, S3ServiceError | SdkError, S3Service>;
492
- listBuckets: (args: ListBucketsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListBucketsCommandOutput, S3ServiceError | SdkError, S3Service>;
493
- listDirectoryBuckets: (args: ListDirectoryBucketsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListDirectoryBucketsCommandOutput, S3ServiceError | SdkError, S3Service>;
494
- listMultipartUploads: (args: ListMultipartUploadsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListMultipartUploadsCommandOutput, S3ServiceError | SdkError, S3Service>;
495
- listObjectVersions: (args: ListObjectVersionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListObjectVersionsCommandOutput, S3ServiceError | SdkError, S3Service>;
496
- listObjects: (args: ListObjectsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListObjectsCommandOutput, NoSuchBucketError | SdkError, S3Service>;
497
- listObjectsV2: (args: ListObjectsV2CommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListObjectsV2CommandOutput, NoSuchBucketError | SdkError, S3Service>;
498
- listParts: (args: ListPartsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListPartsCommandOutput, S3ServiceError | SdkError, S3Service>;
499
- putBucketAccelerateConfiguration: (args: PutBucketAccelerateConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketAccelerateConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
500
- putBucketAcl: (args: PutBucketAclCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketAclCommandOutput, S3ServiceError | SdkError, S3Service>;
501
- putBucketAnalyticsConfiguration: (args: PutBucketAnalyticsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketAnalyticsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
502
- putBucketCors: (args: PutBucketCorsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketCorsCommandOutput, S3ServiceError | SdkError, S3Service>;
503
- putBucketEncryption: (args: PutBucketEncryptionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketEncryptionCommandOutput, S3ServiceError | SdkError, S3Service>;
504
- putBucketIntelligentTieringConfiguration: (args: PutBucketIntelligentTieringConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketIntelligentTieringConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
505
- putBucketInventoryConfiguration: (args: PutBucketInventoryConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketInventoryConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
506
- putBucketLifecycleConfiguration: (args: PutBucketLifecycleConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketLifecycleConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
507
- putBucketLogging: (args: PutBucketLoggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketLoggingCommandOutput, S3ServiceError | SdkError, S3Service>;
508
- putBucketMetricsConfiguration: (args: PutBucketMetricsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketMetricsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
509
- putBucketNotificationConfiguration: (args: PutBucketNotificationConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketNotificationConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
510
- putBucketOwnershipControls: (args: PutBucketOwnershipControlsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketOwnershipControlsCommandOutput, S3ServiceError | SdkError, S3Service>;
511
- putBucketPolicy: (args: PutBucketPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketPolicyCommandOutput, S3ServiceError | SdkError, S3Service>;
512
- putBucketReplication: (args: PutBucketReplicationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketReplicationCommandOutput, S3ServiceError | SdkError, S3Service>;
513
- putBucketRequestPayment: (args: PutBucketRequestPaymentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketRequestPaymentCommandOutput, S3ServiceError | SdkError, S3Service>;
514
- putBucketTagging: (args: PutBucketTaggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketTaggingCommandOutput, S3ServiceError | SdkError, S3Service>;
515
- putBucketVersioning: (args: PutBucketVersioningCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketVersioningCommandOutput, S3ServiceError | SdkError, S3Service>;
516
- putBucketWebsite: (args: PutBucketWebsiteCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutBucketWebsiteCommandOutput, S3ServiceError | SdkError, S3Service>;
517
- putObjectAcl: (args: PutObjectAclCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutObjectAclCommandOutput, NoSuchKeyError | SdkError, S3Service>;
518
- putObjectLegalHold: (args: PutObjectLegalHoldCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutObjectLegalHoldCommandOutput, S3ServiceError | SdkError, S3Service>;
519
- putObjectLockConfiguration: (args: PutObjectLockConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutObjectLockConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
520
- putObjectRetention: (args: PutObjectRetentionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutObjectRetentionCommandOutput, S3ServiceError | SdkError, S3Service>;
521
- putObjectTagging: (args: PutObjectTaggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutObjectTaggingCommandOutput, S3ServiceError | SdkError, S3Service>;
522
- putPublicAccessBlock: (args: PutPublicAccessBlockCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutPublicAccessBlockCommandOutput, S3ServiceError | SdkError, S3Service>;
523
- restoreObject: (args: RestoreObjectCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<RestoreObjectCommandOutput, ObjectAlreadyInActiveTierError | SdkError, S3Service>;
524
- selectObjectContent: (args: SelectObjectContentCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<SelectObjectContentCommandOutput, S3ServiceError | SdkError, S3Service>;
525
- uploadPart: (args: UploadPartCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UploadPartCommandOutput, S3ServiceError | SdkError, S3Service>;
526
- uploadPartCopy: (args: UploadPartCopyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UploadPartCopyCommandOutput, S3ServiceError | SdkError, S3Service>;
527
- writeGetObjectResponse: (args: WriteGetObjectResponseCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<WriteGetObjectResponseCommandOutput, S3ServiceError | SdkError, S3Service>;
528
- } & {
529
- use: <X>(body: (_: S3Service$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | S3Service> : Effect.Effect<X, never, S3Service>;
419
+ export declare const makeS3Service: Effect.Effect<S3Service$, never, Instance.S3ClientInstance>;
420
+ declare const S3Service_base: import("effect/Context").TagClass<S3Service, "@effect-aws/client-s3/S3Service", S3Service$> & Effect.Tag.Proxy<S3Service, S3Service$> & {
421
+ use: <X>(body: (_: S3Service$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, S3Service | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, S3Service> : Effect.Effect<X, never, S3Service>;
530
422
  };
531
423
  /**
532
424
  * @since 1.0.0
@@ -536,31 +428,19 @@ export declare class S3Service extends S3Service_base {
536
428
  static readonly getObject: S3Service$["getObject"];
537
429
  static readonly putObject: S3Service$["putObject"];
538
430
  static readonly defaultLayer: Layer.Layer<S3Service, never, never>;
539
- static readonly layer: (config: S3ClientConfig) => Layer.Layer<S3Service, never, never>;
431
+ static readonly layer: (config: S3Service.Config) => Layer.Layer<S3Service, never, never>;
540
432
  static readonly baseLayer: (evaluate: (defaultConfig: S3ClientConfig) => S3Client) => Layer.Layer<S3Service, never, never>;
541
433
  }
542
434
  /**
543
435
  * @since 1.0.0
544
- * @category models
545
- * @alias S3Service
546
- */
547
- export declare const S3: typeof S3Service;
548
- /**
549
- * @since 1.0.0
550
- * @category layers
551
- * @deprecated use S3.baseLayer instead
552
436
  */
553
- export declare const BaseS3ServiceLayer: Layer.Layer<S3Service, never, S3ClientInstance>;
554
- /**
555
- * @since 1.0.0
556
- * @category layers
557
- * @deprecated use S3.layer instead
558
- */
559
- export declare const S3ServiceLayer: Layer.Layer<S3Service, never, S3ClientInstanceConfig>;
560
- /**
561
- * @since 1.0.0
562
- * @category layers
563
- * @deprecated use S3.defaultLayer instead
564
- */
565
- export declare const DefaultS3ServiceLayer: Layer.Layer<S3Service, never, never>;
437
+ export declare namespace S3Service {
438
+ /**
439
+ * @since 1.0.0
440
+ */
441
+ interface Config extends Omit<S3ClientConfig, "logger"> {
442
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
443
+ }
444
+ }
566
445
  export {};
446
+ //# sourceMappingURL=S3Service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"S3Service.d.ts","sourceRoot":"","sources":["../../src/S3Service.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,kDAAkD,EACvD,KAAK,mDAAmD,EAExD,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,8CAA8C,EACnD,KAAK,+CAA+C,EAEpD,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,uDAAuD,EAC5D,KAAK,wDAAwD,EAE7D,KAAK,8CAA8C,EACnD,KAAK,+CAA+C,EAEpD,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,kDAAkD,EACvD,KAAK,mDAAmD,EAExD,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,wBAA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AC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.S3Service = exports.makeS3Service = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_s3_1 = require("@aws-sdk/client-s3");
31
+ const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
32
+ const commons_1 = require("@effect-aws/commons");
33
+ const effect_1 = require("effect");
34
+ const Instance = __importStar(require("./S3ClientInstance.js"));
35
+ const S3ServiceConfig = __importStar(require("./S3ServiceConfig.js"));
36
+ const commands = {
37
+ AbortMultipartUploadCommand: client_s3_1.AbortMultipartUploadCommand,
38
+ CompleteMultipartUploadCommand: client_s3_1.CompleteMultipartUploadCommand,
39
+ CopyObjectCommand: client_s3_1.CopyObjectCommand,
40
+ CreateBucketCommand: client_s3_1.CreateBucketCommand,
41
+ CreateBucketMetadataTableConfigurationCommand: client_s3_1.CreateBucketMetadataTableConfigurationCommand,
42
+ CreateMultipartUploadCommand: client_s3_1.CreateMultipartUploadCommand,
43
+ CreateSessionCommand: client_s3_1.CreateSessionCommand,
44
+ DeleteBucketCommand: client_s3_1.DeleteBucketCommand,
45
+ DeleteBucketAnalyticsConfigurationCommand: client_s3_1.DeleteBucketAnalyticsConfigurationCommand,
46
+ DeleteBucketCorsCommand: client_s3_1.DeleteBucketCorsCommand,
47
+ DeleteBucketEncryptionCommand: client_s3_1.DeleteBucketEncryptionCommand,
48
+ DeleteBucketIntelligentTieringConfigurationCommand: client_s3_1.DeleteBucketIntelligentTieringConfigurationCommand,
49
+ DeleteBucketInventoryConfigurationCommand: client_s3_1.DeleteBucketInventoryConfigurationCommand,
50
+ DeleteBucketLifecycleCommand: client_s3_1.DeleteBucketLifecycleCommand,
51
+ DeleteBucketMetadataTableConfigurationCommand: client_s3_1.DeleteBucketMetadataTableConfigurationCommand,
52
+ DeleteBucketMetricsConfigurationCommand: client_s3_1.DeleteBucketMetricsConfigurationCommand,
53
+ DeleteBucketOwnershipControlsCommand: client_s3_1.DeleteBucketOwnershipControlsCommand,
54
+ DeleteBucketPolicyCommand: client_s3_1.DeleteBucketPolicyCommand,
55
+ DeleteBucketReplicationCommand: client_s3_1.DeleteBucketReplicationCommand,
56
+ DeleteBucketTaggingCommand: client_s3_1.DeleteBucketTaggingCommand,
57
+ DeleteBucketWebsiteCommand: client_s3_1.DeleteBucketWebsiteCommand,
58
+ DeleteObjectCommand: client_s3_1.DeleteObjectCommand,
59
+ DeleteObjectTaggingCommand: client_s3_1.DeleteObjectTaggingCommand,
60
+ DeleteObjectsCommand: client_s3_1.DeleteObjectsCommand,
61
+ DeletePublicAccessBlockCommand: client_s3_1.DeletePublicAccessBlockCommand,
62
+ GetBucketAccelerateConfigurationCommand: client_s3_1.GetBucketAccelerateConfigurationCommand,
63
+ GetBucketAclCommand: client_s3_1.GetBucketAclCommand,
64
+ GetBucketAnalyticsConfigurationCommand: client_s3_1.GetBucketAnalyticsConfigurationCommand,
65
+ GetBucketCorsCommand: client_s3_1.GetBucketCorsCommand,
66
+ GetBucketEncryptionCommand: client_s3_1.GetBucketEncryptionCommand,
67
+ GetBucketIntelligentTieringConfigurationCommand: client_s3_1.GetBucketIntelligentTieringConfigurationCommand,
68
+ GetBucketInventoryConfigurationCommand: client_s3_1.GetBucketInventoryConfigurationCommand,
69
+ GetBucketLifecycleConfigurationCommand: client_s3_1.GetBucketLifecycleConfigurationCommand,
70
+ GetBucketLocationCommand: client_s3_1.GetBucketLocationCommand,
71
+ GetBucketLoggingCommand: client_s3_1.GetBucketLoggingCommand,
72
+ GetBucketMetadataTableConfigurationCommand: client_s3_1.GetBucketMetadataTableConfigurationCommand,
73
+ GetBucketMetricsConfigurationCommand: client_s3_1.GetBucketMetricsConfigurationCommand,
74
+ GetBucketNotificationConfigurationCommand: client_s3_1.GetBucketNotificationConfigurationCommand,
75
+ GetBucketOwnershipControlsCommand: client_s3_1.GetBucketOwnershipControlsCommand,
76
+ GetBucketPolicyCommand: client_s3_1.GetBucketPolicyCommand,
77
+ GetBucketPolicyStatusCommand: client_s3_1.GetBucketPolicyStatusCommand,
78
+ GetBucketReplicationCommand: client_s3_1.GetBucketReplicationCommand,
79
+ GetBucketRequestPaymentCommand: client_s3_1.GetBucketRequestPaymentCommand,
80
+ GetBucketTaggingCommand: client_s3_1.GetBucketTaggingCommand,
81
+ GetBucketVersioningCommand: client_s3_1.GetBucketVersioningCommand,
82
+ GetBucketWebsiteCommand: client_s3_1.GetBucketWebsiteCommand,
83
+ GetObjectCommand: client_s3_1.GetObjectCommand,
84
+ GetObjectAclCommand: client_s3_1.GetObjectAclCommand,
85
+ GetObjectAttributesCommand: client_s3_1.GetObjectAttributesCommand,
86
+ GetObjectLegalHoldCommand: client_s3_1.GetObjectLegalHoldCommand,
87
+ GetObjectLockConfigurationCommand: client_s3_1.GetObjectLockConfigurationCommand,
88
+ GetObjectRetentionCommand: client_s3_1.GetObjectRetentionCommand,
89
+ GetObjectTaggingCommand: client_s3_1.GetObjectTaggingCommand,
90
+ GetObjectTorrentCommand: client_s3_1.GetObjectTorrentCommand,
91
+ GetPublicAccessBlockCommand: client_s3_1.GetPublicAccessBlockCommand,
92
+ HeadBucketCommand: client_s3_1.HeadBucketCommand,
93
+ HeadObjectCommand: client_s3_1.HeadObjectCommand,
94
+ ListBucketAnalyticsConfigurationsCommand: client_s3_1.ListBucketAnalyticsConfigurationsCommand,
95
+ ListBucketIntelligentTieringConfigurationsCommand: client_s3_1.ListBucketIntelligentTieringConfigurationsCommand,
96
+ ListBucketInventoryConfigurationsCommand: client_s3_1.ListBucketInventoryConfigurationsCommand,
97
+ ListBucketMetricsConfigurationsCommand: client_s3_1.ListBucketMetricsConfigurationsCommand,
98
+ ListBucketsCommand: client_s3_1.ListBucketsCommand,
99
+ ListDirectoryBucketsCommand: client_s3_1.ListDirectoryBucketsCommand,
100
+ ListMultipartUploadsCommand: client_s3_1.ListMultipartUploadsCommand,
101
+ ListObjectVersionsCommand: client_s3_1.ListObjectVersionsCommand,
102
+ ListObjectsCommand: client_s3_1.ListObjectsCommand,
103
+ ListObjectsV2Command: client_s3_1.ListObjectsV2Command,
104
+ ListPartsCommand: client_s3_1.ListPartsCommand,
105
+ PutBucketAccelerateConfigurationCommand: client_s3_1.PutBucketAccelerateConfigurationCommand,
106
+ PutBucketAclCommand: client_s3_1.PutBucketAclCommand,
107
+ PutBucketAnalyticsConfigurationCommand: client_s3_1.PutBucketAnalyticsConfigurationCommand,
108
+ PutBucketCorsCommand: client_s3_1.PutBucketCorsCommand,
109
+ PutBucketEncryptionCommand: client_s3_1.PutBucketEncryptionCommand,
110
+ PutBucketIntelligentTieringConfigurationCommand: client_s3_1.PutBucketIntelligentTieringConfigurationCommand,
111
+ PutBucketInventoryConfigurationCommand: client_s3_1.PutBucketInventoryConfigurationCommand,
112
+ PutBucketLifecycleConfigurationCommand: client_s3_1.PutBucketLifecycleConfigurationCommand,
113
+ PutBucketLoggingCommand: client_s3_1.PutBucketLoggingCommand,
114
+ PutBucketMetricsConfigurationCommand: client_s3_1.PutBucketMetricsConfigurationCommand,
115
+ PutBucketNotificationConfigurationCommand: client_s3_1.PutBucketNotificationConfigurationCommand,
116
+ PutBucketOwnershipControlsCommand: client_s3_1.PutBucketOwnershipControlsCommand,
117
+ PutBucketPolicyCommand: client_s3_1.PutBucketPolicyCommand,
118
+ PutBucketReplicationCommand: client_s3_1.PutBucketReplicationCommand,
119
+ PutBucketRequestPaymentCommand: client_s3_1.PutBucketRequestPaymentCommand,
120
+ PutBucketTaggingCommand: client_s3_1.PutBucketTaggingCommand,
121
+ PutBucketVersioningCommand: client_s3_1.PutBucketVersioningCommand,
122
+ PutBucketWebsiteCommand: client_s3_1.PutBucketWebsiteCommand,
123
+ PutObjectCommand: client_s3_1.PutObjectCommand,
124
+ PutObjectAclCommand: client_s3_1.PutObjectAclCommand,
125
+ PutObjectLegalHoldCommand: client_s3_1.PutObjectLegalHoldCommand,
126
+ PutObjectLockConfigurationCommand: client_s3_1.PutObjectLockConfigurationCommand,
127
+ PutObjectRetentionCommand: client_s3_1.PutObjectRetentionCommand,
128
+ PutObjectTaggingCommand: client_s3_1.PutObjectTaggingCommand,
129
+ PutPublicAccessBlockCommand: client_s3_1.PutPublicAccessBlockCommand,
130
+ RestoreObjectCommand: client_s3_1.RestoreObjectCommand,
131
+ SelectObjectContentCommand: client_s3_1.SelectObjectContentCommand,
132
+ UploadPartCommand: client_s3_1.UploadPartCommand,
133
+ UploadPartCopyCommand: client_s3_1.UploadPartCopyCommand,
134
+ WriteGetObjectResponseCommand: client_s3_1.WriteGetObjectResponseCommand,
135
+ };
136
+ /**
137
+ * @since 1.0.0
138
+ * @category constructors
139
+ */
140
+ exports.makeS3Service = effect_1.Effect.gen(function* () {
141
+ const client = yield* Instance.S3ClientInstance;
142
+ return commons_1.Service.fromCommandsAndServiceFn(commands, (CommandCtor) => (args, options) => options?.presigned
143
+ ? effect_1.Effect.gen(function* () {
144
+ const config = yield* S3ServiceConfig.toS3ClientConfig;
145
+ return yield* effect_1.Effect.tryPromise({
146
+ try: () => (0, s3_request_presigner_1.getSignedUrl)(client, new CommandCtor(args, config), options),
147
+ catch: commons_1.Service.catchServiceExceptions(),
148
+ });
149
+ })
150
+ : commons_1.Service.makeServiceFn(client, CommandCtor, {
151
+ resolveClientConfig: S3ServiceConfig.toS3ClientConfig,
152
+ })(args, options));
153
+ });
154
+ /**
155
+ * @since 1.0.0
156
+ * @category models
157
+ */
158
+ class S3Service extends effect_1.Effect.Tag("@effect-aws/client-s3/S3Service")() {
159
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeS3Service).pipe(effect_1.Layer.provide(Instance.layer));
160
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeS3Service).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(S3ServiceConfig.setS3ServiceConfig(config)));
161
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeS3Service).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.S3ClientInstance, effect_1.Effect.map(S3ServiceConfig.toS3ClientConfig, evaluate))));
162
+ }
163
+ exports.S3Service = S3Service;
164
+ //# sourceMappingURL=S3Service.js.map