@effect-aws/client-cloudformation 1.10.6
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/CloudFormationClientInstance/package.json +6 -0
- package/CloudFormationService/package.json +6 -0
- package/CloudFormationServiceConfig/package.json +6 -0
- package/Errors/package.json +6 -0
- package/LICENSE +19 -0
- package/README.md +58 -0
- package/dist/cjs/CloudFormationClientInstance.d.ts +24 -0
- package/dist/cjs/CloudFormationClientInstance.d.ts.map +1 -0
- package/dist/cjs/CloudFormationClientInstance.js +50 -0
- package/dist/cjs/CloudFormationClientInstance.js.map +1 -0
- package/dist/cjs/CloudFormationService.d.ts +406 -0
- package/dist/cjs/CloudFormationService.d.ts.map +1 -0
- package/dist/cjs/CloudFormationService.js +149 -0
- package/dist/cjs/CloudFormationService.js.map +1 -0
- package/dist/cjs/CloudFormationServiceConfig.d.ts +25 -0
- package/dist/cjs/CloudFormationServiceConfig.d.ts.map +1 -0
- package/dist/cjs/CloudFormationServiceConfig.js +35 -0
- package/dist/cjs/CloudFormationServiceConfig.js.map +1 -0
- package/dist/cjs/Errors.d.ts +36 -0
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +35 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/index.d.ts +44 -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/CloudFormationClientInstance.d.ts +24 -0
- package/dist/dts/CloudFormationClientInstance.d.ts.map +1 -0
- package/dist/dts/CloudFormationService.d.ts +406 -0
- package/dist/dts/CloudFormationService.d.ts.map +1 -0
- package/dist/dts/CloudFormationServiceConfig.d.ts +25 -0
- package/dist/dts/CloudFormationServiceConfig.d.ts.map +1 -0
- package/dist/dts/Errors.d.ts +36 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/index.d.ts +44 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/CloudFormationClientInstance.js +23 -0
- package/dist/esm/CloudFormationClientInstance.js.map +1 -0
- package/dist/esm/CloudFormationService.js +122 -0
- package/dist/esm/CloudFormationService.js.map +1 -0
- package/dist/esm/CloudFormationServiceConfig.js +31 -0
- package/dist/esm/CloudFormationServiceConfig.js.map +1 -0
- package/dist/esm/Errors.js +32 -0
- package/dist/esm/Errors.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 +71 -0
- package/src/CloudFormationClientInstance.ts +33 -0
- package/src/CloudFormationService.ts +1509 -0
- package/src/CloudFormationServiceConfig.ts +52 -0
- package/src/Errors.ts +95 -0
- package/src/index.ts +50 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { ActivateOrganizationsAccessCommand, ActivateTypeCommand, BatchDescribeTypeConfigurationsCommand, CancelUpdateStackCommand, ContinueUpdateRollbackCommand, CreateChangeSetCommand, CreateGeneratedTemplateCommand, CreateStackCommand, CreateStackInstancesCommand, CreateStackRefactorCommand, CreateStackSetCommand, DeactivateOrganizationsAccessCommand, DeactivateTypeCommand, DeleteChangeSetCommand, DeleteGeneratedTemplateCommand, DeleteStackCommand, DeleteStackInstancesCommand, DeleteStackSetCommand, DeregisterTypeCommand, DescribeAccountLimitsCommand, DescribeChangeSetCommand, DescribeChangeSetHooksCommand, DescribeEventsCommand, DescribeGeneratedTemplateCommand, DescribeOrganizationsAccessCommand, DescribePublisherCommand, DescribeResourceScanCommand, DescribeStackDriftDetectionStatusCommand, DescribeStackEventsCommand, DescribeStackInstanceCommand, DescribeStackRefactorCommand, DescribeStackResourceCommand, DescribeStackResourceDriftsCommand, DescribeStackResourcesCommand, DescribeStacksCommand, DescribeStackSetCommand, DescribeStackSetOperationCommand, DescribeTypeCommand, DescribeTypeRegistrationCommand, DetectStackDriftCommand, DetectStackResourceDriftCommand, DetectStackSetDriftCommand, EstimateTemplateCostCommand, ExecuteChangeSetCommand, ExecuteStackRefactorCommand, GetGeneratedTemplateCommand, GetHookResultCommand, GetStackPolicyCommand, GetTemplateCommand, GetTemplateSummaryCommand, ImportStacksToStackSetCommand, ListChangeSetsCommand, ListExportsCommand, ListGeneratedTemplatesCommand, ListHookResultsCommand, ListImportsCommand, ListResourceScanRelatedResourcesCommand, ListResourceScanResourcesCommand, ListResourceScansCommand, ListStackInstanceResourceDriftsCommand, ListStackInstancesCommand, ListStackRefactorActionsCommand, ListStackRefactorsCommand, ListStackResourcesCommand, ListStacksCommand, ListStackSetAutoDeploymentTargetsCommand, ListStackSetOperationResultsCommand, ListStackSetOperationsCommand, ListStackSetsCommand, ListTypeRegistrationsCommand, ListTypesCommand, ListTypeVersionsCommand, PublishTypeCommand, RecordHandlerProgressCommand, RegisterPublisherCommand, RegisterTypeCommand, RollbackStackCommand, SetStackPolicyCommand, SetTypeConfigurationCommand, SetTypeDefaultVersionCommand, SignalResourceCommand, StartResourceScanCommand, StopStackSetOperationCommand, TestTypeCommand, UpdateGeneratedTemplateCommand, UpdateStackCommand, UpdateStackInstancesCommand, UpdateStackSetCommand, UpdateTerminationProtectionCommand, ValidateTemplateCommand, } from "@aws-sdk/client-cloudformation";
|
|
5
|
+
import { Service } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import * as Instance from "./CloudFormationClientInstance.js";
|
|
8
|
+
import * as CloudFormationServiceConfig from "./CloudFormationServiceConfig.js";
|
|
9
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
10
|
+
const commands = {
|
|
11
|
+
ActivateOrganizationsAccessCommand,
|
|
12
|
+
ActivateTypeCommand,
|
|
13
|
+
BatchDescribeTypeConfigurationsCommand,
|
|
14
|
+
CancelUpdateStackCommand,
|
|
15
|
+
ContinueUpdateRollbackCommand,
|
|
16
|
+
CreateChangeSetCommand,
|
|
17
|
+
CreateGeneratedTemplateCommand,
|
|
18
|
+
CreateStackCommand,
|
|
19
|
+
CreateStackInstancesCommand,
|
|
20
|
+
CreateStackRefactorCommand,
|
|
21
|
+
CreateStackSetCommand,
|
|
22
|
+
DeactivateOrganizationsAccessCommand,
|
|
23
|
+
DeactivateTypeCommand,
|
|
24
|
+
DeleteChangeSetCommand,
|
|
25
|
+
DeleteGeneratedTemplateCommand,
|
|
26
|
+
DeleteStackCommand,
|
|
27
|
+
DeleteStackInstancesCommand,
|
|
28
|
+
DeleteStackSetCommand,
|
|
29
|
+
DeregisterTypeCommand,
|
|
30
|
+
DescribeAccountLimitsCommand,
|
|
31
|
+
DescribeChangeSetCommand,
|
|
32
|
+
DescribeChangeSetHooksCommand,
|
|
33
|
+
DescribeEventsCommand,
|
|
34
|
+
DescribeGeneratedTemplateCommand,
|
|
35
|
+
DescribeOrganizationsAccessCommand,
|
|
36
|
+
DescribePublisherCommand,
|
|
37
|
+
DescribeResourceScanCommand,
|
|
38
|
+
DescribeStackDriftDetectionStatusCommand,
|
|
39
|
+
DescribeStackEventsCommand,
|
|
40
|
+
DescribeStackInstanceCommand,
|
|
41
|
+
DescribeStackRefactorCommand,
|
|
42
|
+
DescribeStackResourceCommand,
|
|
43
|
+
DescribeStackResourceDriftsCommand,
|
|
44
|
+
DescribeStackResourcesCommand,
|
|
45
|
+
DescribeStackSetCommand,
|
|
46
|
+
DescribeStackSetOperationCommand,
|
|
47
|
+
DescribeStacksCommand,
|
|
48
|
+
DescribeTypeCommand,
|
|
49
|
+
DescribeTypeRegistrationCommand,
|
|
50
|
+
DetectStackDriftCommand,
|
|
51
|
+
DetectStackResourceDriftCommand,
|
|
52
|
+
DetectStackSetDriftCommand,
|
|
53
|
+
EstimateTemplateCostCommand,
|
|
54
|
+
ExecuteChangeSetCommand,
|
|
55
|
+
ExecuteStackRefactorCommand,
|
|
56
|
+
GetGeneratedTemplateCommand,
|
|
57
|
+
GetHookResultCommand,
|
|
58
|
+
GetStackPolicyCommand,
|
|
59
|
+
GetTemplateCommand,
|
|
60
|
+
GetTemplateSummaryCommand,
|
|
61
|
+
ImportStacksToStackSetCommand,
|
|
62
|
+
ListChangeSetsCommand,
|
|
63
|
+
ListExportsCommand,
|
|
64
|
+
ListGeneratedTemplatesCommand,
|
|
65
|
+
ListHookResultsCommand,
|
|
66
|
+
ListImportsCommand,
|
|
67
|
+
ListResourceScanRelatedResourcesCommand,
|
|
68
|
+
ListResourceScanResourcesCommand,
|
|
69
|
+
ListResourceScansCommand,
|
|
70
|
+
ListStackInstanceResourceDriftsCommand,
|
|
71
|
+
ListStackInstancesCommand,
|
|
72
|
+
ListStackRefactorActionsCommand,
|
|
73
|
+
ListStackRefactorsCommand,
|
|
74
|
+
ListStackResourcesCommand,
|
|
75
|
+
ListStackSetAutoDeploymentTargetsCommand,
|
|
76
|
+
ListStackSetOperationResultsCommand,
|
|
77
|
+
ListStackSetOperationsCommand,
|
|
78
|
+
ListStackSetsCommand,
|
|
79
|
+
ListStacksCommand,
|
|
80
|
+
ListTypeRegistrationsCommand,
|
|
81
|
+
ListTypeVersionsCommand,
|
|
82
|
+
ListTypesCommand,
|
|
83
|
+
PublishTypeCommand,
|
|
84
|
+
RecordHandlerProgressCommand,
|
|
85
|
+
RegisterPublisherCommand,
|
|
86
|
+
RegisterTypeCommand,
|
|
87
|
+
RollbackStackCommand,
|
|
88
|
+
SetStackPolicyCommand,
|
|
89
|
+
SetTypeConfigurationCommand,
|
|
90
|
+
SetTypeDefaultVersionCommand,
|
|
91
|
+
SignalResourceCommand,
|
|
92
|
+
StartResourceScanCommand,
|
|
93
|
+
StopStackSetOperationCommand,
|
|
94
|
+
TestTypeCommand,
|
|
95
|
+
UpdateGeneratedTemplateCommand,
|
|
96
|
+
UpdateStackCommand,
|
|
97
|
+
UpdateStackInstancesCommand,
|
|
98
|
+
UpdateStackSetCommand,
|
|
99
|
+
UpdateTerminationProtectionCommand,
|
|
100
|
+
ValidateTemplateCommand,
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* @since 1.0.0
|
|
104
|
+
* @category constructors
|
|
105
|
+
*/
|
|
106
|
+
export const makeCloudFormationService = Effect.gen(function* () {
|
|
107
|
+
const client = yield* Instance.CloudFormationClientInstance;
|
|
108
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
109
|
+
errorTags: AllServiceErrors,
|
|
110
|
+
resolveClientConfig: CloudFormationServiceConfig.toCloudFormationClientConfig,
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* @since 1.0.0
|
|
115
|
+
* @category models
|
|
116
|
+
*/
|
|
117
|
+
export class CloudFormationService extends Effect.Tag("@effect-aws/client-cloudformation/CloudFormationService")() {
|
|
118
|
+
static defaultLayer = Layer.effect(this, makeCloudFormationService).pipe(Layer.provide(Instance.layer));
|
|
119
|
+
static layer = (config) => Layer.effect(this, makeCloudFormationService).pipe(Layer.provide(Instance.layer), Layer.provide(CloudFormationServiceConfig.setCloudFormationServiceConfig(config)));
|
|
120
|
+
static baseLayer = (evaluate) => Layer.effect(this, makeCloudFormationService).pipe(Layer.provide(Layer.effect(Instance.CloudFormationClientInstance, Effect.map(CloudFormationServiceConfig.toCloudFormationClientConfig, evaluate))));
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=CloudFormationService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFormationService.js","sourceRoot":"","sources":["../../src/CloudFormationService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,kCAAkC,EAGlC,mBAAmB,EAGnB,sCAAsC,EAGtC,wBAAwB,EAKxB,6BAA6B,EAG7B,sBAAsB,EAGtB,8BAA8B,EAG9B,kBAAkB,EAGlB,2BAA2B,EAG3B,0BAA0B,EAG1B,qBAAqB,EAGrB,oCAAoC,EAGpC,qBAAqB,EAGrB,sBAAsB,EAGtB,8BAA8B,EAG9B,kBAAkB,EAGlB,2BAA2B,EAG3B,qBAAqB,EAGrB,qBAAqB,EAG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F,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC,IAAI,CAChD,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,4BAA4B,EACrC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAC/E,CACF,CACF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
3
|
+
import { dual } from "effect/Function";
|
|
4
|
+
import { globalValue } from "effect/GlobalValue";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
* @category cloudformation service config
|
|
8
|
+
*/
|
|
9
|
+
const currentCloudFormationServiceConfig = globalValue("@effect-aws/client-cloudformation/currentCloudFormationServiceConfig", () => FiberRef.unsafeMake({}));
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
* @category cloudformation service config
|
|
13
|
+
*/
|
|
14
|
+
export const withCloudFormationServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentCloudFormationServiceConfig, config));
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category cloudformation service config
|
|
18
|
+
*/
|
|
19
|
+
export const setCloudFormationServiceConfig = (config) => Layer.locallyScoped(currentCloudFormationServiceConfig, config);
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export const toCloudFormationClientConfig = Effect.gen(function* () {
|
|
25
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudFormationServiceConfig);
|
|
26
|
+
const logger = serviceLogger === true
|
|
27
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
29
|
+
return { logger, ...config };
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=CloudFormationServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFormationServiceConfig.js","sourceRoot":"","sources":["../../src/CloudFormationServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,kCAAkC,GAAG,WAAW,CACpD,sEAAsE,EACtE,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAA+B,EAAE,CAAC,CAC5D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAGxC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAoC,EAA0B,EAAE,CACxG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,kCAAkC,EAAE,MAAM,CAAC,CACrE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAoC,EAAE,EAAE,CACrF,KAAK,CAAC,aAAa,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;AAElE;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA8C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACzG,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAErG,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const AllServiceErrors = [
|
|
2
|
+
"AlreadyExistsException",
|
|
3
|
+
"CFNRegistryException",
|
|
4
|
+
"ChangeSetNotFoundException",
|
|
5
|
+
"ConcurrentResourcesLimitExceededException",
|
|
6
|
+
"CreatedButModifiedException",
|
|
7
|
+
"GeneratedTemplateNotFoundException",
|
|
8
|
+
"HookResultNotFoundException",
|
|
9
|
+
"InsufficientCapabilitiesException",
|
|
10
|
+
"InvalidChangeSetStatusException",
|
|
11
|
+
"InvalidOperationException",
|
|
12
|
+
"InvalidStateTransitionException",
|
|
13
|
+
"LimitExceededException",
|
|
14
|
+
"NameAlreadyExistsException",
|
|
15
|
+
"OperationIdAlreadyExistsException",
|
|
16
|
+
"OperationInProgressException",
|
|
17
|
+
"OperationNotFoundException",
|
|
18
|
+
"OperationStatusCheckFailedException",
|
|
19
|
+
"ResourceScanInProgressException",
|
|
20
|
+
"ResourceScanLimitExceededException",
|
|
21
|
+
"ResourceScanNotFoundException",
|
|
22
|
+
"StackInstanceNotFoundException",
|
|
23
|
+
"StackNotFoundException",
|
|
24
|
+
"StackRefactorNotFoundException",
|
|
25
|
+
"StackSetNotEmptyException",
|
|
26
|
+
"StackSetNotFoundException",
|
|
27
|
+
"StaleRequestException",
|
|
28
|
+
"TokenAlreadyExistsException",
|
|
29
|
+
"TypeConfigurationNotFoundException",
|
|
30
|
+
"TypeNotFoundException",
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,wBAAwB;IACxB,sBAAsB;IACtB,4BAA4B;IAC5B,2CAA2C;IAC3C,6BAA6B;IAC7B,oCAAoC;IACpC,6BAA6B;IAC7B,mCAAmC;IACnC,iCAAiC;IACjC,2BAA2B;IAC3B,iCAAiC;IACjC,wBAAwB;IACxB,4BAA4B;IAC5B,mCAAmC;IACnC,8BAA8B;IAC9B,4BAA4B;IAC5B,qCAAqC;IACrC,iCAAiC;IACjC,oCAAoC;IACpC,+BAA+B;IAC/B,gCAAgC;IAChC,wBAAwB;IACxB,gCAAgC;IAChC,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,6BAA6B;IAC7B,oCAAoC;IACpC,uBAAuB;CACf,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { CloudFormationService } from "./CloudFormationService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as CloudFormationClientInstance from "./CloudFormationClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as CloudFormationServiceConfig from "./CloudFormationServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./CloudFormationService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias CloudFormationService
|
|
25
|
+
*/
|
|
26
|
+
export const CloudFormation = CloudFormationService;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAElF;;GAEG;AACH,OAAO,KAAK,2BAA2B,MAAM,kCAAkC,CAAC;AAEhF;;GAEG;AACH,cAAc,4BAA4B,CAAC;AAqB3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@effect-aws/client-cloudformation",
|
|
3
|
+
"version": "1.10.6",
|
|
4
|
+
"description": "Effectful AWS CloudFormation client",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "github:floydspace/effect-aws",
|
|
9
|
+
"directory": "packages/client-cloudformation"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [],
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Victor Korzunin",
|
|
14
|
+
"email": "ifloydrose@gmail.com"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://floydspace.github.io/effect-aws/docs/client-cloudformation",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@aws-sdk/client-cloudformation": "^3",
|
|
19
|
+
"@effect-aws/commons": "^0.3.0"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"effect": ">=3.0.4 <4.0.0"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/cjs/index.js",
|
|
25
|
+
"module": "./dist/esm/index.js",
|
|
26
|
+
"types": "./dist/dts/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": "./package.json",
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/dts/index.d.ts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"default": "./dist/cjs/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./CloudFormationClientInstance": {
|
|
35
|
+
"types": "./dist/dts/CloudFormationClientInstance.d.ts",
|
|
36
|
+
"import": "./dist/esm/CloudFormationClientInstance.js",
|
|
37
|
+
"default": "./dist/cjs/CloudFormationClientInstance.js"
|
|
38
|
+
},
|
|
39
|
+
"./CloudFormationService": {
|
|
40
|
+
"types": "./dist/dts/CloudFormationService.d.ts",
|
|
41
|
+
"import": "./dist/esm/CloudFormationService.js",
|
|
42
|
+
"default": "./dist/cjs/CloudFormationService.js"
|
|
43
|
+
},
|
|
44
|
+
"./CloudFormationServiceConfig": {
|
|
45
|
+
"types": "./dist/dts/CloudFormationServiceConfig.d.ts",
|
|
46
|
+
"import": "./dist/esm/CloudFormationServiceConfig.js",
|
|
47
|
+
"default": "./dist/cjs/CloudFormationServiceConfig.js"
|
|
48
|
+
},
|
|
49
|
+
"./Errors": {
|
|
50
|
+
"types": "./dist/dts/Errors.d.ts",
|
|
51
|
+
"import": "./dist/esm/Errors.js",
|
|
52
|
+
"default": "./dist/cjs/Errors.js"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
"CloudFormationClientInstance": [
|
|
58
|
+
"./dist/dts/CloudFormationClientInstance.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"CloudFormationService": [
|
|
61
|
+
"./dist/dts/CloudFormationService.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"CloudFormationServiceConfig": [
|
|
64
|
+
"./dist/dts/CloudFormationServiceConfig.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"Errors": [
|
|
67
|
+
"./dist/dts/Errors.d.ts"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { CloudFormationClient } from "@aws-sdk/client-cloudformation";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as CloudFormationServiceConfig from "./CloudFormationServiceConfig.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
* @category tags
|
|
11
|
+
*/
|
|
12
|
+
export class CloudFormationClientInstance extends Context.Tag(
|
|
13
|
+
"@effect-aws/client-cloudformation/CloudFormationClientInstance",
|
|
14
|
+
)<CloudFormationClientInstance, CloudFormationClient>() {}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
* @category constructors
|
|
19
|
+
*/
|
|
20
|
+
export const make = Effect.flatMap(
|
|
21
|
+
CloudFormationServiceConfig.toCloudFormationClientConfig,
|
|
22
|
+
(config) =>
|
|
23
|
+
Effect.acquireRelease(
|
|
24
|
+
Effect.sync(() => new CloudFormationClient(config)),
|
|
25
|
+
(client) => Effect.sync(() => client.destroy()),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @since 1.0.0
|
|
31
|
+
* @category layers
|
|
32
|
+
*/
|
|
33
|
+
export const layer = Layer.scoped(CloudFormationClientInstance, make);
|