| 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 | * Runtime binding for `iotmanagedintegrations:GetCustomEndpoint` |
| 7 | * (account-level). |
| 8 | * |
| 9 | * Reads the account's custom MQTT endpoint address — the address devices |
| 10 | * connect to for Managed integrations traffic. Provide the implementation |
| 11 | * with `Effect.provide(AWS.IoTManagedIntegrations.GetCustomEndpointHttp)`. |
| 12 | * |
| 13 | * ### Connectivity |
| 14 | * **Example:** Resolve the Custom Endpoint |
| 15 | * ```typescript |
| 16 | * const getCustomEndpoint = yield* IoTManagedIntegrations.GetCustomEndpoint(); |
| 17 | * |
| 18 | * const { EndpointAddress } = yield* getCustomEndpoint(); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface GetCustomEndpoint extends Binding.Service< |
| 24 | GetCustomEndpoint, |
| 25 | "AWS.IoTManagedIntegrations.GetCustomEndpoint", |
| 26 | () => Effect.Effect< |
| 27 | () => Effect.Effect<mi.GetCustomEndpointResponse, mi.GetCustomEndpointError> |
| 28 | > |
| 29 | > {} |
| 30 | export const GetCustomEndpoint = Binding.Service<GetCustomEndpoint>( |
| 31 | "AWS.IoTManagedIntegrations.GetCustomEndpoint", |
| 32 | ); |