1.10.3 • Published 5 months ago

@effect-aws/client-timestream-query v1.10.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@effect-aws/client-timestream-query

npm version npm downloads

Installation

npm install --save @effect-aws/client-timestream-query

Usage

With default TimestreamQueryClient instance:

import { TimestreamQuery } from "@effect-aws/client-timestream-query";

const program = TimestreamQuery.listScheduledQueries(args);

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

With custom TimestreamQueryClient instance:

import { TimestreamQuery } from "@effect-aws/client-timestream-query";

const program = TimestreamQuery.listScheduledQueries(args);

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

With custom TimestreamQueryClient configuration:

import { TimestreamQuery } from "@effect-aws/client-timestream-query";

const program = TimestreamQuery.listScheduledQueries(args);

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

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

1.10.3

5 months ago

1.10.2

5 months ago

1.10.0

5 months ago

1.9.5

6 months ago

1.9.2

7 months ago