@effect-aws/client-s3 1.5.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Errors/package.json +6 -0
- package/LICENSE +1 -1
- package/S3ClientInstance/package.json +6 -0
- package/S3Service/package.json +6 -0
- package/S3ServiceConfig/package.json +6 -0
- package/dist/cjs/Errors.d.ts +25 -0
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +23 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/S3ClientInstance.d.ts +24 -0
- package/dist/cjs/S3ClientInstance.d.ts.map +1 -0
- package/dist/cjs/S3ClientInstance.js +50 -0
- package/dist/cjs/S3ClientInstance.js.map +1 -0
- package/{lib → dist/cjs}/S3Service.d.ts +32 -39
- package/dist/cjs/S3Service.d.ts.map +1 -0
- package/dist/cjs/S3Service.js +159 -0
- package/dist/cjs/S3Service.js.map +1 -0
- package/dist/cjs/S3ServiceConfig.d.ts +25 -0
- package/dist/cjs/S3ServiceConfig.d.ts.map +1 -0
- package/dist/cjs/S3ServiceConfig.js +35 -0
- package/dist/cjs/S3ServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +25 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/S3ClientInstance.d.ts +24 -0
- package/dist/dts/S3ClientInstance.d.ts.map +1 -0
- package/dist/dts/S3Service.d.ts +544 -0
- package/dist/dts/S3Service.d.ts.map +1 -0
- package/dist/dts/S3ServiceConfig.d.ts +25 -0
- package/dist/dts/S3ServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +20 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/S3ClientInstance.js +23 -0
- package/dist/esm/S3ClientInstance.js.map +1 -0
- package/dist/esm/S3Service.js +132 -0
- package/dist/esm/S3Service.js.map +1 -0
- package/dist/esm/S3ServiceConfig.js +31 -0
- package/dist/esm/S3ServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +61 -44
- package/src/Errors.ts +56 -0
- package/src/S3ClientInstance.ts +33 -0
- package/src/S3Service.ts +1579 -0
- package/src/S3ServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -129
- package/docgen.json +0 -8
- package/lib/Errors.d.ts +0 -25
- package/lib/Errors.js +0 -18
- package/lib/S3ClientInstance.d.ts +0 -31
- package/lib/S3ClientInstance.js +0 -57
- package/lib/S3ClientInstanceConfig.d.ts +0 -23
- package/lib/S3ClientInstanceConfig.js +0 -44
- package/lib/S3Service.js +0 -189
- package/lib/esm/Errors.js +0 -15
- package/lib/esm/S3ClientInstance.js +0 -30
- package/lib/esm/S3ClientInstanceConfig.js +0 -40
- package/lib/esm/S3Service.js +0 -185
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
package/LICENSE
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
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";
|
|
4
|
+
import { Data } from "effect";
|
|
5
|
+
export declare const AllServiceErrors: readonly ["BucketAlreadyExists", "BucketAlreadyOwnedByYou", "EncryptionTypeMismatch", "InvalidObjectState", "InvalidRequest", "InvalidWriteOffset", "NoSuchBucket", "NoSuchKey", "NoSuchUpload", "NotFound", "ObjectAlreadyInActiveTierError", "ObjectNotInActiveTierError", "TooManyParts"];
|
|
6
|
+
export type BucketAlreadyExistsError = TaggedException<BucketAlreadyExists>;
|
|
7
|
+
export type BucketAlreadyOwnedByYouError = TaggedException<BucketAlreadyOwnedByYou>;
|
|
8
|
+
export type EncryptionTypeMismatchError = TaggedException<EncryptionTypeMismatch>;
|
|
9
|
+
export type InvalidObjectStateError = TaggedException<InvalidObjectState>;
|
|
10
|
+
export type InvalidRequestError = TaggedException<InvalidRequest>;
|
|
11
|
+
export type InvalidWriteOffsetError = TaggedException<InvalidWriteOffset>;
|
|
12
|
+
export type NoSuchBucketError = TaggedException<NoSuchBucket>;
|
|
13
|
+
export type NoSuchKeyError = TaggedException<NoSuchKey>;
|
|
14
|
+
export type NoSuchUploadError = TaggedException<NoSuchUpload>;
|
|
15
|
+
export type NotFoundError = TaggedException<NotFound>;
|
|
16
|
+
export type ObjectAlreadyInActiveTierError = TaggedException<ObjectAlreadyInActiveTierException>;
|
|
17
|
+
export type ObjectNotInActiveTierError = TaggedException<ObjectNotInActiveTierException>;
|
|
18
|
+
export type TooManyPartsError = TaggedException<TooManyParts>;
|
|
19
|
+
export type S3ServiceError = TaggedException<S3ServiceException & {
|
|
20
|
+
name: "S3ServiceError";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const S3ServiceError: Data.Case.Constructor<S3ServiceError, "_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,mBAAm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BAAiB,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 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 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
|
|
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, InvalidObjectStateError, NoSuchBucketError, NoSuchKeyError, NoSuchUploadError, NotFoundError, ObjectAlreadyInActiveTierError, ObjectNotInActiveTierError, S3ServiceError,
|
|
8
|
-
import
|
|
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
|
/**
|
|
@@ -35,6 +25,10 @@ interface S3Service$ {
|
|
|
35
25
|
* @see {@link CreateBucketCommand}
|
|
36
26
|
*/
|
|
37
27
|
createBucket(args: CreateBucketCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBucketCommandOutput, SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError>;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link CreateBucketMetadataTableConfigurationCommand}
|
|
30
|
+
*/
|
|
31
|
+
createBucketMetadataTableConfiguration(args: CreateBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBucketMetadataTableConfigurationCommandOutput, SdkError | S3ServiceError>;
|
|
38
32
|
/**
|
|
39
33
|
* @see {@link CreateMultipartUploadCommand}
|
|
40
34
|
*/
|
|
@@ -71,6 +65,10 @@ interface S3Service$ {
|
|
|
71
65
|
* @see {@link DeleteBucketLifecycleCommand}
|
|
72
66
|
*/
|
|
73
67
|
deleteBucketLifecycle(args: DeleteBucketLifecycleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBucketLifecycleCommandOutput, SdkError | S3ServiceError>;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link DeleteBucketMetadataTableConfigurationCommand}
|
|
70
|
+
*/
|
|
71
|
+
deleteBucketMetadataTableConfiguration(args: DeleteBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBucketMetadataTableConfigurationCommandOutput, SdkError | S3ServiceError>;
|
|
74
72
|
/**
|
|
75
73
|
* @see {@link DeleteBucketMetricsConfigurationCommand}
|
|
76
74
|
*/
|
|
@@ -151,6 +149,10 @@ interface S3Service$ {
|
|
|
151
149
|
* @see {@link GetBucketLoggingCommand}
|
|
152
150
|
*/
|
|
153
151
|
getBucketLogging(args: GetBucketLoggingCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetBucketLoggingCommandOutput, SdkError | S3ServiceError>;
|
|
152
|
+
/**
|
|
153
|
+
* @see {@link GetBucketMetadataTableConfigurationCommand}
|
|
154
|
+
*/
|
|
155
|
+
getBucketMetadataTableConfiguration(args: GetBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetBucketMetadataTableConfigurationCommandOutput, SdkError | S3ServiceError>;
|
|
154
156
|
/**
|
|
155
157
|
* @see {@link GetBucketMetricsConfigurationCommand}
|
|
156
158
|
*/
|
|
@@ -361,7 +363,7 @@ interface S3Service$ {
|
|
|
361
363
|
*/
|
|
362
364
|
putObject(args: PutObjectCommandInput, options?: {
|
|
363
365
|
readonly presigned?: false;
|
|
364
|
-
} & HttpHandlerOptions): Effect.Effect<PutObjectCommandOutput, SdkError |
|
|
366
|
+
} & HttpHandlerOptions): Effect.Effect<PutObjectCommandOutput, SdkError | EncryptionTypeMismatchError | InvalidRequestError | InvalidWriteOffsetError | TooManyPartsError>;
|
|
365
367
|
putObject(args: PutObjectCommandInput, options?: {
|
|
366
368
|
readonly presigned: true;
|
|
367
369
|
} & RequestPresigningArguments): Effect.Effect<string, SdkError | S3ServiceError>;
|
|
@@ -414,13 +416,14 @@ interface S3Service$ {
|
|
|
414
416
|
* @since 1.0.0
|
|
415
417
|
* @category constructors
|
|
416
418
|
*/
|
|
417
|
-
export declare const makeS3Service: Effect.Effect<S3Service$, never, S3ClientInstance>;
|
|
419
|
+
export declare const makeS3Service: Effect.Effect<S3Service$, never, Instance.S3ClientInstance>;
|
|
418
420
|
declare const S3Service_base: import("effect/Context").TagClass<S3Service, "@effect-aws/client-s3/S3Service", S3Service$> & {
|
|
419
421
|
readonly _: Effect.Effect<S3Service$["_"], never, S3Service>;
|
|
420
422
|
abortMultipartUpload: (args: AbortMultipartUploadCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AbortMultipartUploadCommandOutput, NoSuchUploadError | SdkError, S3Service>;
|
|
421
423
|
completeMultipartUpload: (args: CompleteMultipartUploadCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CompleteMultipartUploadCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
422
424
|
copyObject: (args: CopyObjectCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CopyObjectCommandOutput, ObjectNotInActiveTierError | SdkError, S3Service>;
|
|
423
425
|
createBucket: (args: CreateBucketCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateBucketCommandOutput, BucketAlreadyExistsError | BucketAlreadyOwnedByYouError | SdkError, S3Service>;
|
|
426
|
+
createBucketMetadataTableConfiguration: (args: CreateBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateBucketMetadataTableConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
424
427
|
createMultipartUpload: (args: CreateMultipartUploadCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateMultipartUploadCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
425
428
|
createSession: (args: CreateSessionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateSessionCommandOutput, NoSuchBucketError | SdkError, S3Service>;
|
|
426
429
|
deleteBucket: (args: DeleteBucketCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
@@ -430,6 +433,7 @@ declare const S3Service_base: import("effect/Context").TagClass<S3Service, "@eff
|
|
|
430
433
|
deleteBucketIntelligentTieringConfiguration: (args: DeleteBucketIntelligentTieringConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketIntelligentTieringConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
431
434
|
deleteBucketInventoryConfiguration: (args: DeleteBucketInventoryConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketInventoryConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
432
435
|
deleteBucketLifecycle: (args: DeleteBucketLifecycleCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketLifecycleCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
436
|
+
deleteBucketMetadataTableConfiguration: (args: DeleteBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketMetadataTableConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
433
437
|
deleteBucketMetricsConfiguration: (args: DeleteBucketMetricsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketMetricsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
434
438
|
deleteBucketOwnershipControls: (args: DeleteBucketOwnershipControlsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketOwnershipControlsCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
435
439
|
deleteBucketPolicy: (args: DeleteBucketPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteBucketPolicyCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
@@ -450,6 +454,7 @@ declare const S3Service_base: import("effect/Context").TagClass<S3Service, "@eff
|
|
|
450
454
|
getBucketLifecycleConfiguration: (args: GetBucketLifecycleConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketLifecycleConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
451
455
|
getBucketLocation: (args: GetBucketLocationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketLocationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
452
456
|
getBucketLogging: (args: GetBucketLoggingCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketLoggingCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
457
|
+
getBucketMetadataTableConfiguration: (args: GetBucketMetadataTableConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketMetadataTableConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
453
458
|
getBucketMetricsConfiguration: (args: GetBucketMetricsConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketMetricsConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
454
459
|
getBucketNotificationConfiguration: (args: GetBucketNotificationConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketNotificationConfigurationCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
455
460
|
getBucketOwnershipControls: (args: GetBucketOwnershipControlsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetBucketOwnershipControlsCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
@@ -511,7 +516,7 @@ declare const S3Service_base: import("effect/Context").TagClass<S3Service, "@eff
|
|
|
511
516
|
uploadPartCopy: (args: UploadPartCopyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UploadPartCopyCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
512
517
|
writeGetObjectResponse: (args: WriteGetObjectResponseCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<WriteGetObjectResponseCommandOutput, S3ServiceError | SdkError, S3Service>;
|
|
513
518
|
} & {
|
|
514
|
-
use: <X>(body: (_: S3Service$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E,
|
|
519
|
+
use: <X>(body: (_: S3Service$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, S3Service | R> : Effect.Effect<X, never, S3Service>;
|
|
515
520
|
};
|
|
516
521
|
/**
|
|
517
522
|
* @since 1.0.0
|
|
@@ -521,31 +526,19 @@ export declare class S3Service extends S3Service_base {
|
|
|
521
526
|
static readonly getObject: S3Service$["getObject"];
|
|
522
527
|
static readonly putObject: S3Service$["putObject"];
|
|
523
528
|
static readonly defaultLayer: Layer.Layer<S3Service, never, never>;
|
|
524
|
-
static readonly layer: (config:
|
|
529
|
+
static readonly layer: (config: S3Service.Config) => Layer.Layer<S3Service, never, never>;
|
|
525
530
|
static readonly baseLayer: (evaluate: (defaultConfig: S3ClientConfig) => S3Client) => Layer.Layer<S3Service, never, never>;
|
|
526
531
|
}
|
|
527
532
|
/**
|
|
528
533
|
* @since 1.0.0
|
|
529
|
-
* @category models
|
|
530
|
-
* @alias S3Service
|
|
531
|
-
*/
|
|
532
|
-
export declare const S3: typeof S3Service;
|
|
533
|
-
/**
|
|
534
|
-
* @since 1.0.0
|
|
535
|
-
* @category layers
|
|
536
|
-
* @deprecated use S3.baseLayer instead
|
|
537
|
-
*/
|
|
538
|
-
export declare const BaseS3ServiceLayer: Layer.Layer<S3Service, never, S3ClientInstance>;
|
|
539
|
-
/**
|
|
540
|
-
* @since 1.0.0
|
|
541
|
-
* @category layers
|
|
542
|
-
* @deprecated use S3.layer instead
|
|
543
534
|
*/
|
|
544
|
-
export declare
|
|
545
|
-
/**
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
535
|
+
export declare namespace S3Service {
|
|
536
|
+
/**
|
|
537
|
+
* @since 1.0.0
|
|
538
|
+
*/
|
|
539
|
+
interface Config extends Omit<S3ClientConfig, "logger"> {
|
|
540
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
551
543
|
export {};
|
|
544
|
+
//# 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,EAEt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c,CACZ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,2BAA2B,EAC3B,QAAQ,GAAG,cAAc,CAC1B,CAAC;IAEF;;OAEG;IACH,sBAAsB,CACpB,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,mCAAmC,EACnC,QAAQ,GAAG,cAAc,CAC1B,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,6DAgBxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,SAAU,SAAQ,cAG5B;IACD,gBAAwB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC3D,gBAAwB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAE3D,MAAM,CAAC,QAAQ,CAAC,YAAY,uCAAyE;IACrG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,UAAU,MAAM,0CAI7C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,cAAc,KAAK,QAAQ,0CASnD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC;QAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,159 @@
|
|
|
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.tryPromise({
|
|
144
|
+
try: () => (0, s3_request_presigner_1.getSignedUrl)(client, new CommandCtor(args), options),
|
|
145
|
+
catch: commons_1.Service.catchServiceExceptions(),
|
|
146
|
+
})
|
|
147
|
+
: commons_1.Service.makeServiceFn(client, CommandCtor)(args, options));
|
|
148
|
+
});
|
|
149
|
+
/**
|
|
150
|
+
* @since 1.0.0
|
|
151
|
+
* @category models
|
|
152
|
+
*/
|
|
153
|
+
class S3Service extends effect_1.Effect.Tag("@effect-aws/client-s3/S3Service")() {
|
|
154
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeS3Service).pipe(effect_1.Layer.provide(Instance.layer));
|
|
155
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeS3Service).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(S3ServiceConfig.setS3ServiceConfig(config)));
|
|
156
|
+
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))));
|
|
157
|
+
}
|
|
158
|
+
exports.S3Service = S3Service;
|
|
159
|
+
//# sourceMappingURL=S3Service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"S3Service.js","sourceRoot":"","sources":["../../src/S3Service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDAyS4B;AAC5B,wEAA6D;AAG7D,iDAA8C;AAC9C,mCAAuC;AAiBvC,gEAAkD;AAClD,sEAAwD;AAExD,MAAM,QAAQ,GAAG;IACf,2BAA2B,EAA3B,uCAA2B;IAC3B,8BAA8B,EAA9B,0CAA8B;IAC9B,iBAAiB,EAAjB,6BAAiB;IACjB,mBAAmB,EAAnB,+BAAmB;IACnB,6CAA6C,EAA7C,yDAA6C;IAC7C,4BAA4B,EAA5B,wCAA4B;IAC5B,oBAAoB,EAApB,gCAAoB;IACpB,mBAAmB,EAAnB,+BAAmB;IACnB,yCAAyC,EAAzC,qDAAyC;IACzC,uBAAuB,EAAvB,mCAAuB;IACvB,6BAA6B,EAA7B,yCAA6B;IAC7B,kDAAkD,EAAlD,8DAAkD;IAClD,yCAAyC,EAAzC,qDAAyC;IACzC,4BAA4B,EAA5B,wCAA4B;IAC5B,6CAA6C,EAA7C,yDAA6C;IAC7C,uCAAuC,EAAvC,mDAAuC;IACvC,oCAAoC,EAApC,gDAAoC;IACpC,yBAAyB,EAAzB,qCAAyB;IACzB,8BAA8B,EAA9B,0CAA8B;IAC9B,0BAA0B,EAA1B,sCAA0B;IAC1B,0BAA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AC,gBAAgB,EACzB,eAAM,CAAC,GAAG,CAAC,eAAe,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CACvD,CACF,CACF,CAAC;;AAvBN,8BAwBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { S3ClientConfig } from "@aws-sdk/client-s3";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { S3Service } from "./S3Service.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category s3 service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withS3ServiceConfig: {
|
|
12
|
+
(config: S3Service.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
13
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: S3Service.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category s3 service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setS3ServiceConfig: (config: S3Service.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toS3ClientConfig: Effect.Effect<S3ClientConfig>;
|
|
25
|
+
//# sourceMappingURL=S3ServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"S3ServiceConfig.d.ts","sourceRoot":"","sources":["../../src/S3ServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAWhD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE;IAChC,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK7F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,WAAY,UAAU,MAAM,qCAAwD,CAAC;AAEpH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAQzD,CAAC"}
|