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

1.10.3 • Public • Published

@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" }))

/@effect-aws/client-scheduler/

    Package Sidebar

    Install

    npm i @effect-aws/client-scheduler

    Weekly Downloads

    84

    Version

    1.10.3

    License

    MIT

    Unpacked Size

    74.2 kB

    Total Files

    53

    Last publish

    Collaborators

    • f1oyd