| 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 GetDeviceDiscovery}. |
| 7 | */ |
| 8 | export interface GetDeviceDiscoveryRequest |
| 9 | extends mi.GetDeviceDiscoveryRequest {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `iotmanagedintegrations:GetDeviceDiscovery` |
| 13 | * (account-level). |
| 14 | * |
| 15 | * Reads the status of a discovery scan started with |
| 16 | * {@link StartDeviceDiscovery}. Provide the implementation with |
| 17 | * `Effect.provide(AWS.IoTManagedIntegrations.GetDeviceDiscoveryHttp)`. |
| 18 | * |
| 19 | * ### Discovering Devices |
| 20 | * **Example:** Poll a Discovery Scan |
| 21 | * ```typescript |
| 22 | * const getDiscovery = yield* IoTManagedIntegrations.GetDeviceDiscovery(); |
| 23 | * |
| 24 | * const { Status } = yield* getDiscovery({ Identifier: discoveryId }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface GetDeviceDiscovery extends Binding.Service< |
| 30 | GetDeviceDiscovery, |
| 31 | "AWS.IoTManagedIntegrations.GetDeviceDiscovery", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request: GetDeviceDiscoveryRequest, |
| 35 | ) => Effect.Effect< |
| 36 | mi.GetDeviceDiscoveryResponse, |
| 37 | mi.GetDeviceDiscoveryError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const GetDeviceDiscovery = Binding.Service<GetDeviceDiscovery>( |
| 42 | "AWS.IoTManagedIntegrations.GetDeviceDiscovery", |
| 43 | ); |