1.10.3 • Published 5 months ago

@effect-aws/client-iot-jobs-data-plane v1.10.3

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

@effect-aws/client-iot-jobs-data-plane

npm version npm downloads

Installation

npm install --save @effect-aws/client-iot-jobs-data-plane

Usage

With default IoTJobsDataPlaneClient instance:

import { IoTJobsDataPlane } from "@effect-aws/client-iot-jobs-data-plane";

const program = IoTJobsDataPlane.startCommandExecution(args);

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

With custom IoTJobsDataPlaneClient instance:

import { IoTJobsDataPlane } from "@effect-aws/client-iot-jobs-data-plane";

const program = IoTJobsDataPlane.startCommandExecution(args);

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

With custom IoTJobsDataPlaneClient configuration:

import { IoTJobsDataPlane } from "@effect-aws/client-iot-jobs-data-plane";

const program = IoTJobsDataPlane.startCommandExecution(args);

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

or use IoTJobsDataPlane.baseLayer((default) => new IoTJobsDataPlaneClient({ ...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.3

7 months ago

1.9.0

8 months ago

1.1.0

9 months ago

1.0.0

9 months ago