@effect-aws/client-cloudsearch
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@effect-aws/client-cloudsearch

npm version npm downloads

Installation

npm install --save @effect-aws/client-cloudsearch

Usage

With default CloudSearchClient instance:

import { CloudSearch } from "@effect-aws/client-cloudsearch";

const program = CloudSearch.describeDomains(args);

const result = pipe(
  program,
  Effect.provide(CloudSearch.defaultLayer),
  Effect.runPromise,
);

With custom CloudSearchClient instance:

import { CloudSearch } from "@effect-aws/client-cloudsearch";

const program = CloudSearch.describeDomains(args);

const result = await pipe(
  program,
  Effect.provide(
    CloudSearch.baseLayer(() => new CloudSearchClient({ region: "eu-central-1" })),
  ),
  Effect.runPromise,
);

With custom CloudSearchClient configuration:

import { CloudSearch } from "@effect-aws/client-cloudsearch";

const program = CloudSearch.describeDomains(args);

const result = await pipe(
  program,
  Effect.provide(CloudSearch.layer({ region: "eu-central-1" })),
  Effect.runPromiseExit,
);

or use CloudSearch.baseLayer((default) => new CloudSearchClient({ ...default, region: "eu-central-1" }))

Readme

Keywords

none

Package Sidebar

Install

npm i @effect-aws/client-cloudsearch

Weekly Downloads

46

Version

1.1.0

License

MIT

Unpacked Size

124 kB

Total Files

22

Last publish

Collaborators

  • f1oyd