@effect-aws/client-rds
v1.9.5
Published
Effectful AWS RDS client
Downloads
316
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" }))