1.10.3 • Published 5 months ago

@effect-aws/client-scheduler v1.10.3

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

@effect-aws/client-scheduler

npm version npm downloads

Installation

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

Usage

With default SchedulerClient instance:

import { Scheduler } from "@effect-aws/client-scheduler";

const program = Scheduler.tagResource(args);

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

With custom SchedulerClient instance:

import { Scheduler } from "@effect-aws/client-scheduler";

const program = Scheduler.tagResource(args);

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

With custom SchedulerClient configuration:

import { Scheduler } from "@effect-aws/client-scheduler";

const program = Scheduler.tagResource(args);

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

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

1.2.0

9 months ago

1.0.2

12 months ago

1.1.0

11 months ago

1.10.3

5 months ago

1.10.2

5 months ago

1.9.0

8 months ago

1.9.5

7 months ago

1.9.3

7 months ago

1.10.0

6 months ago

1.0.1

12 months ago

1.0.0

12 months ago