1.10.3 • Published 5 months ago
@effect-aws/client-iot-wireless v1.10.3
@effect-aws/client-iot-wireless
Installation
npm install --save @effect-aws/client-iot-wireless
Usage
With default IoTWirelessClient instance:
import { IoTWireless } from "@effect-aws/client-iot-wireless";
const program = IoTWireless.listDestinations(args);
const result = pipe(
program,
Effect.provide(IoTWireless.defaultLayer),
Effect.runPromise,
);
With custom IoTWirelessClient instance:
import { IoTWireless } from "@effect-aws/client-iot-wireless";
const program = IoTWireless.listDestinations(args);
const result = await pipe(
program,
Effect.provide(
IoTWireless.baseLayer(() => new IoTWirelessClient({ region: "eu-central-1" })),
),
Effect.runPromise,
);
With custom IoTWirelessClient configuration:
import { IoTWireless } from "@effect-aws/client-iot-wireless";
const program = IoTWireless.listDestinations(args);
const result = await pipe(
program,
Effect.provide(IoTWireless.layer({ region: "eu-central-1" })),
Effect.runPromiseExit,
);
or use IoTWireless.baseLayer((default) => new IoTWirelessClient({ ...default, region: "eu-central-1" }))