@effect-aws/client-scheduler
v1.1.0
Published
[![npm version](https://img.shields.io/npm/v/%40effect-aws%2Fclient-scheduler?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/client-scheduler) [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Fclient-schedu
Downloads
354
Readme
@effect-aws/client-scheduler
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" }))