@effect-aws/client-lambda 1.10.9 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/LambdaClientInstance.d.ts +2 -2
- package/dist/dts/LambdaClientInstance.d.ts.map +1 -1
- package/dist/dts/LambdaService.d.ts +87 -89
- package/dist/dts/LambdaService.d.ts.map +1 -1
- package/dist/dts/LambdaServiceConfig.d.ts.map +1 -1
- package/dist/esm/LambdaClientInstance.js +3 -3
- package/dist/esm/LambdaClientInstance.js.map +1 -1
- package/dist/esm/LambdaService.js +2 -2
- package/dist/esm/LambdaService.js.map +1 -1
- package/dist/esm/LambdaServiceConfig.js +5 -6
- package/dist/esm/LambdaServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/LambdaClientInstance.ts +4 -4
- package/src/LambdaService.ts +88 -93
- package/src/LambdaServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -51
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -50
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/LambdaClientInstance.d.ts +0 -24
- package/dist/cjs/LambdaClientInstance.d.ts.map +0 -1
- package/dist/cjs/LambdaClientInstance.js +0 -50
- package/dist/cjs/LambdaClientInstance.js.map +0 -1
- package/dist/cjs/LambdaService.d.ts +0 -386
- package/dist/cjs/LambdaService.d.ts.map +0 -1
- package/dist/cjs/LambdaService.js +0 -144
- package/dist/cjs/LambdaService.js.map +0 -1
- package/dist/cjs/LambdaServiceConfig.d.ts +0 -25
- package/dist/cjs/LambdaServiceConfig.d.ts.map +0 -1
- package/dist/cjs/LambdaServiceConfig.js +0 -35
- package/dist/cjs/LambdaServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import { Effect,
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import { globalValue } from "effect/GlobalValue";
|
|
9
8
|
import type { LambdaService } from "./LambdaService.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @since 1.0.0
|
|
13
12
|
* @category lambda service config
|
|
14
13
|
*/
|
|
15
|
-
const currentLambdaServiceConfig =
|
|
14
|
+
const currentLambdaServiceConfig = ServiceMap.Reference<LambdaService.Config>(
|
|
16
15
|
"@effect-aws/client-lambda/currentLambdaServiceConfig",
|
|
17
|
-
() =>
|
|
16
|
+
{ defaultValue: () => ({}) },
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -27,7 +26,7 @@ export const withLambdaServiceConfig: {
|
|
|
27
26
|
} = dual(
|
|
28
27
|
2,
|
|
29
28
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: LambdaService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
29
|
+
Effect.provideService(effect, currentLambdaServiceConfig, config),
|
|
31
30
|
);
|
|
32
31
|
|
|
33
32
|
/**
|
|
@@ -35,14 +34,14 @@ export const withLambdaServiceConfig: {
|
|
|
35
34
|
* @category lambda service config
|
|
36
35
|
*/
|
|
37
36
|
export const setLambdaServiceConfig = (config: LambdaService.Config) =>
|
|
38
|
-
Layer.
|
|
37
|
+
Layer.succeed(currentLambdaServiceConfig, config);
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* @since 1.0.0
|
|
42
41
|
* @category adapters
|
|
43
42
|
*/
|
|
44
43
|
export const toLambdaClientConfig: Effect.Effect<LambdaClientConfig> = Effect.gen(function*() {
|
|
45
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
44
|
+
const { logger: serviceLogger, ...config } = yield* currentLambdaServiceConfig;
|
|
46
45
|
|
|
47
46
|
const logger = serviceLogger === true
|
|
48
47
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { CallbackTimeoutException, CapacityProviderLimitExceededException, CodeSigningConfigNotFoundException, CodeStorageExceededException, CodeVerificationFailedException, DurableExecutionAlreadyStartedException, EC2AccessDeniedException, EC2ThrottledException, EC2UnexpectedException, EFSIOException, EFSMountConnectivityException, EFSMountFailureException, EFSMountTimeoutException, ENILimitReachedException, FunctionVersionsPerCapacityProviderLimitExceededException, InvalidCodeSignatureException, InvalidParameterValueException, InvalidRequestContentException, InvalidRuntimeException, InvalidSecurityGroupIDException, InvalidSubnetIDException, InvalidZipFileException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, NoPublishedVersionException, PolicyLengthExceededException, PreconditionFailedException, ProvisionedConcurrencyConfigNotFoundException, RecursiveInvocationException, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, SerializedRequestEntityTooLargeException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException } from "@aws-sdk/client-lambda";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["CallbackTimeoutException", "CapacityProviderLimitExceededException", "CodeSigningConfigNotFoundException", "CodeStorageExceededException", "CodeVerificationFailedException", "DurableExecutionAlreadyStartedException", "EC2AccessDeniedException", "EC2ThrottledException", "EC2UnexpectedException", "EFSIOException", "EFSMountConnectivityException", "EFSMountFailureException", "EFSMountTimeoutException", "ENILimitReachedException", "FunctionVersionsPerCapacityProviderLimitExceededException", "InvalidCodeSignatureException", "InvalidParameterValueException", "InvalidRequestContentException", "InvalidRuntimeException", "InvalidSecurityGroupIDException", "InvalidSubnetIDException", "InvalidZipFileException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "NoPublishedVersionException", "PolicyLengthExceededException", "PreconditionFailedException", "ProvisionedConcurrencyConfigNotFoundException", "RecursiveInvocationException", "RequestTooLargeException", "ResourceConflictException", "ResourceInUseException", "ResourceNotFoundException", "ResourceNotReadyException", "SerializedRequestEntityTooLargeException", "ServiceException", "SnapStartException", "SnapStartNotReadyException", "SnapStartTimeoutException", "SubnetIPAddressLimitReachedException", "TooManyRequestsException", "UnsupportedMediaTypeException"];
|
|
4
|
-
export type CallbackTimeoutError = TaggedException<CallbackTimeoutException>;
|
|
5
|
-
export type CapacityProviderLimitExceededError = TaggedException<CapacityProviderLimitExceededException>;
|
|
6
|
-
export type CodeSigningConfigNotFoundError = TaggedException<CodeSigningConfigNotFoundException>;
|
|
7
|
-
export type CodeStorageExceededError = TaggedException<CodeStorageExceededException>;
|
|
8
|
-
export type CodeVerificationFailedError = TaggedException<CodeVerificationFailedException>;
|
|
9
|
-
export type DurableExecutionAlreadyStartedError = TaggedException<DurableExecutionAlreadyStartedException>;
|
|
10
|
-
export type EC2AccessDeniedError = TaggedException<EC2AccessDeniedException>;
|
|
11
|
-
export type EC2ThrottledError = TaggedException<EC2ThrottledException>;
|
|
12
|
-
export type EC2UnexpectedError = TaggedException<EC2UnexpectedException>;
|
|
13
|
-
export type EFSIOError = TaggedException<EFSIOException>;
|
|
14
|
-
export type EFSMountConnectivityError = TaggedException<EFSMountConnectivityException>;
|
|
15
|
-
export type EFSMountFailureError = TaggedException<EFSMountFailureException>;
|
|
16
|
-
export type EFSMountTimeoutError = TaggedException<EFSMountTimeoutException>;
|
|
17
|
-
export type ENILimitReachedError = TaggedException<ENILimitReachedException>;
|
|
18
|
-
export type FunctionVersionsPerCapacityProviderLimitExceededError = TaggedException<FunctionVersionsPerCapacityProviderLimitExceededException>;
|
|
19
|
-
export type InvalidCodeSignatureError = TaggedException<InvalidCodeSignatureException>;
|
|
20
|
-
export type InvalidParameterValueError = TaggedException<InvalidParameterValueException>;
|
|
21
|
-
export type InvalidRequestContentError = TaggedException<InvalidRequestContentException>;
|
|
22
|
-
export type InvalidRuntimeError = TaggedException<InvalidRuntimeException>;
|
|
23
|
-
export type InvalidSecurityGroupIDError = TaggedException<InvalidSecurityGroupIDException>;
|
|
24
|
-
export type InvalidSubnetIDError = TaggedException<InvalidSubnetIDException>;
|
|
25
|
-
export type InvalidZipFileError = TaggedException<InvalidZipFileException>;
|
|
26
|
-
export type KMSAccessDeniedError = TaggedException<KMSAccessDeniedException>;
|
|
27
|
-
export type KMSDisabledError = TaggedException<KMSDisabledException>;
|
|
28
|
-
export type KMSInvalidStateError = TaggedException<KMSInvalidStateException>;
|
|
29
|
-
export type KMSNotFoundError = TaggedException<KMSNotFoundException>;
|
|
30
|
-
export type NoPublishedVersionError = TaggedException<NoPublishedVersionException>;
|
|
31
|
-
export type PolicyLengthExceededError = TaggedException<PolicyLengthExceededException>;
|
|
32
|
-
export type PreconditionFailedError = TaggedException<PreconditionFailedException>;
|
|
33
|
-
export type ProvisionedConcurrencyConfigNotFoundError = TaggedException<ProvisionedConcurrencyConfigNotFoundException>;
|
|
34
|
-
export type RecursiveInvocationError = TaggedException<RecursiveInvocationException>;
|
|
35
|
-
export type RequestTooLargeError = TaggedException<RequestTooLargeException>;
|
|
36
|
-
export type ResourceConflictError = TaggedException<ResourceConflictException>;
|
|
37
|
-
export type ResourceInUseError = TaggedException<ResourceInUseException>;
|
|
38
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
39
|
-
export type ResourceNotReadyError = TaggedException<ResourceNotReadyException>;
|
|
40
|
-
export type SerializedRequestEntityTooLargeError = TaggedException<SerializedRequestEntityTooLargeException>;
|
|
41
|
-
export type ServiceError = TaggedException<ServiceException>;
|
|
42
|
-
export type SnapStartError = TaggedException<SnapStartException>;
|
|
43
|
-
export type SnapStartNotReadyError = TaggedException<SnapStartNotReadyException>;
|
|
44
|
-
export type SnapStartTimeoutError = TaggedException<SnapStartTimeoutException>;
|
|
45
|
-
export type SubnetIPAddressLimitReachedError = TaggedException<SubnetIPAddressLimitReachedException>;
|
|
46
|
-
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
47
|
-
export type UnsupportedMediaTypeError = TaggedException<UnsupportedMediaTypeException>;
|
|
48
|
-
export type SdkError = TaggedException<Error & {
|
|
49
|
-
name: "SdkError";
|
|
50
|
-
}>;
|
|
51
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,sCAAsC,EACtC,kCAAkC,EAClC,4BAA4B,EAC5B,+BAA+B,EAC/B,uCAAuC,EACvC,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,yDAAyD,EACzD,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,+BAA+B,EAC/B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,6CAA6C,EAC7C,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,wCAAwC,EACxC,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,EACpC,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KA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C,GAAG,eAAe,CAAC,wCAAwC,CAAC,CAAC;AAC7G,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AAC7D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACrG,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"CallbackTimeoutException",
|
|
6
|
-
"CapacityProviderLimitExceededException",
|
|
7
|
-
"CodeSigningConfigNotFoundException",
|
|
8
|
-
"CodeStorageExceededException",
|
|
9
|
-
"CodeVerificationFailedException",
|
|
10
|
-
"DurableExecutionAlreadyStartedException",
|
|
11
|
-
"EC2AccessDeniedException",
|
|
12
|
-
"EC2ThrottledException",
|
|
13
|
-
"EC2UnexpectedException",
|
|
14
|
-
"EFSIOException",
|
|
15
|
-
"EFSMountConnectivityException",
|
|
16
|
-
"EFSMountFailureException",
|
|
17
|
-
"EFSMountTimeoutException",
|
|
18
|
-
"ENILimitReachedException",
|
|
19
|
-
"FunctionVersionsPerCapacityProviderLimitExceededException",
|
|
20
|
-
"InvalidCodeSignatureException",
|
|
21
|
-
"InvalidParameterValueException",
|
|
22
|
-
"InvalidRequestContentException",
|
|
23
|
-
"InvalidRuntimeException",
|
|
24
|
-
"InvalidSecurityGroupIDException",
|
|
25
|
-
"InvalidSubnetIDException",
|
|
26
|
-
"InvalidZipFileException",
|
|
27
|
-
"KMSAccessDeniedException",
|
|
28
|
-
"KMSDisabledException",
|
|
29
|
-
"KMSInvalidStateException",
|
|
30
|
-
"KMSNotFoundException",
|
|
31
|
-
"NoPublishedVersionException",
|
|
32
|
-
"PolicyLengthExceededException",
|
|
33
|
-
"PreconditionFailedException",
|
|
34
|
-
"ProvisionedConcurrencyConfigNotFoundException",
|
|
35
|
-
"RecursiveInvocationException",
|
|
36
|
-
"RequestTooLargeException",
|
|
37
|
-
"ResourceConflictException",
|
|
38
|
-
"ResourceInUseException",
|
|
39
|
-
"ResourceNotFoundException",
|
|
40
|
-
"ResourceNotReadyException",
|
|
41
|
-
"SerializedRequestEntityTooLargeException",
|
|
42
|
-
"ServiceException",
|
|
43
|
-
"SnapStartException",
|
|
44
|
-
"SnapStartNotReadyException",
|
|
45
|
-
"SnapStartTimeoutException",
|
|
46
|
-
"SubnetIPAddressLimitReachedException",
|
|
47
|
-
"TooManyRequestsException",
|
|
48
|
-
"UnsupportedMediaTypeException",
|
|
49
|
-
];
|
|
50
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAgDa,QAAA,gBAAgB,GAAG;IAC9B,0BAA0B;IAC1B,wCAAwC;IACxC,oCAAoC;IACpC,8BAA8B;IAC9B,iCAAiC;IACjC,yCAAyC;IACzC,0BAA0B;IAC1B,uBAAuB;IACvB,wBAAwB;IACxB,gBAAgB;IAChB,+BAA+B;IAC/B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,2DAA2D;IAC3D,+BAA+B;IAC/B,gCAAgC;IAChC,gCAAgC;IAChC,yBAAyB;IACzB,iCAAiC;IACjC,0BAA0B;IAC1B,yBAAyB;IACzB,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,6BAA6B;IAC7B,+BAA+B;IAC/B,6BAA6B;IAC7B,+CAA+C;IAC/C,8BAA8B;IAC9B,0BAA0B;IAC1B,2BAA2B;IAC3B,wBAAwB;IACxB,2BAA2B;IAC3B,2BAA2B;IAC3B,0CAA0C;IAC1C,kBAAkB;IAClB,oBAAoB;IACpB,4BAA4B;IAC5B,2BAA2B;IAC3B,sCAAsC;IACtC,0BAA0B;IAC1B,+BAA+B;CACvB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { LambdaClient } from "@aws-sdk/client-lambda";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const LambdaClientInstance_base: Context.TagClass<LambdaClientInstance, "@effect-aws/client-lambda/LambdaClientInstance", LambdaClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class LambdaClientInstance extends LambdaClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<LambdaClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<LambdaClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=LambdaClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LambdaClientInstance.d.ts","sourceRoot":"","sources":["../../src/LambdaClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,yBAEH;CAAG;AAE1C;;;GAGG;AACH,eAAO,MAAM,IAAI,kEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,iDAA2C,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
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.LambdaClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const LambdaServiceConfig = __importStar(require("./LambdaServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class LambdaClientInstance extends effect_1.Context.Tag("@effect-aws/client-lambda/LambdaClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.LambdaClientInstance = LambdaClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(LambdaServiceConfig.toLambdaClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_lambda_1.LambdaClient(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(LambdaClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=LambdaClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LambdaClientInstance.js","sourceRoot":"","sources":["../../src/LambdaClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,0DAAsD;AACtD,mCAAgD;AAChD,8EAAgE;AAEhE;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,gBAAO,CAAC,GAAG,CACnD,gDAAgD,CACjD,EAAsC;CAAG;AAF1C,oDAE0C;AAE1C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,mBAAmB,CAAC,oBAAoB,EACxC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,4BAAY,CAAC,MAAM,CAAC,CAAC,EAC3C,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,oBAAoB,EAAE,YAAI,CAAC,CAAC"}
|