| 1 | import type * as mi from "@distilled.cloud/aws/iot-managed-integrations"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Request for {@link ListDiscoveredDevices}. |
| 7 | */ |
| 8 | export interface ListDiscoveredDevicesRequest |
| 9 | extends mi.ListDiscoveredDevicesRequest {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `iotmanagedintegrations:ListDiscoveredDevices` |
| 13 | * (account-level). |
| 14 | * |
| 15 | * Lists the devices found by a discovery scan, including the managed thing |
| 16 | * id assigned to each already-onboarded device. Provide the implementation |
| 17 | * with `Effect.provide(AWS.IoTManagedIntegrations.ListDiscoveredDevicesHttp)`. |
| 18 | * |
| 19 | * ### Discovering Devices |
| 20 | * **Example:** List Devices Found by a Scan |
| 21 | * ```typescript |
| 22 | * const listDiscovered = yield* IoTManagedIntegrations.ListDiscoveredDevices(); |
| 23 | * |
| 24 | * const { Items } = yield* listDiscovered({ Identifier: discoveryId }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface ListDiscoveredDevices extends Binding.Service< |
| 30 | ListDiscoveredDevices, |
| 31 | "AWS.IoTManagedIntegrations.ListDiscoveredDevices", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request: ListDiscoveredDevicesRequest, |
| 35 | ) => Effect.Effect< |
| 36 | mi.ListDiscoveredDevicesResponse, |
| 37 | mi.ListDiscoveredDevicesError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const ListDiscoveredDevices = Binding.Service<ListDiscoveredDevices>( |
| 42 | "AWS.IoTManagedIntegrations.ListDiscoveredDevices", |
| 43 | ); |