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

1.9.5 • Public • Published

@effect-aws/client-iot-events

npm version npm downloads

Installation

npm install --save @effect-aws/client-iot-events

Usage

With default IoTEventsClient instance:

import { IoTEvents } from "@effect-aws/client-iot-events";

const program = IoTEvents.listInputs(args);

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

With custom IoTEventsClient instance:

import { IoTEvents } from "@effect-aws/client-iot-events";

const program = IoTEvents.listInputs(args);

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

With custom IoTEventsClient configuration:

import { IoTEvents } from "@effect-aws/client-iot-events";

const program = IoTEvents.listInputs(args);

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @effect-aws/client-iot-events

Weekly Downloads

55

Version

1.9.5

License

MIT

Unpacked Size

105 kB

Total Files

53

Last publish

Collaborators

  • f1oyd