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