@effect-aws/client-codedeploy
v1.3.0
Published
[![npm version](https://img.shields.io/npm/v/%40effect-aws%2Fclient-codedeploy?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/client-codedeploy) [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Fclient-code
Downloads
136
Readme
@effect-aws/client-codedeploy
Installation
npm install --save @effect-aws/client-codedeploy
Usage
With default CodeDeployClient instance:
import { CodeDeploy } from "@effect-aws/client-codedeploy";
const program = CodeDeploy.listApplications(args);
const result = pipe(
program,
Effect.provide(CodeDeploy.defaultLayer),
Effect.runPromise,
);
With custom CodeDeployClient instance:
import { CodeDeploy } from "@effect-aws/client-codedeploy";
const program = CodeDeploy.listApplications(args);
const result = await pipe(
program,
Effect.provide(
CodeDeploy.baseLayer(() => new CodeDeployClient({ region: "eu-central-1" })),
),
Effect.runPromise,
);
With custom CodeDeployClient configuration:
import { CodeDeploy } from "@effect-aws/client-codedeploy";
const program = CodeDeploy.listApplications(args);
const result = await pipe(
program,
Effect.provide(CodeDeploy.layer({ region: "eu-central-1" })),
Effect.runPromiseExit,
);
or use CodeDeploy.baseLayer((default) => new CodeDeployClient({ ...default, region: "eu-central-1" }))