The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type * as opensearch from "@distilled.cloud/aws/opensearch"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for the `DescribeDomain` operation (IAM action |
| 7 | * `es:DescribeDomain`). |
| 8 | * |
| 9 | * Reads a domain's current status — endpoint, engine version, creation and processing state — e.g. an operational health check that verifies a domain is active before routing search traffic. Provide the implementation with |
| 10 | * `Effect.provide(AWS.OpenSearch.DescribeDomainHttp)`. |
| 11 | * ### Monitoring Domains |
| 12 | * **Example:** Check a Domain's Status |
| 13 | * ```typescript |
| 14 | * const describeDomain = yield* OpenSearch.DescribeDomain(); |
| 15 | * |
| 16 | * const result = yield* describeDomain({ DomainName: name }); |
| 17 | * // result.DomainStatus.Processing → false |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface DescribeDomain extends Binding.Service< |
| 23 | DescribeDomain, |
| 24 | "AWS.OpenSearch.DescribeDomain", |
| 25 | () => Effect.Effect< |
| 26 | ( |
| 27 | request: opensearch.DescribeDomainRequest, |
| 28 | ) => Effect.Effect<opensearch.DescribeDomainResponse, opensearch.DescribeDomainError> |
| 29 | > |
| 30 | > {} |
| 31 | export const DescribeDomain = Binding.Service<DescribeDomain>("AWS.OpenSearch.DescribeDomain"); |