@devries-cameron20 / t3code Mirror · read-only
Fork 0

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, 06:00 UTC

main
ts 53 lines 1.79 KB
Raw
1 import type * as route53domains from "@distilled.cloud/aws/route-53-domains";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface GetDomainSuggestionsRequest extends route53domains.GetDomainSuggestionsRequest {}
6
7 /**
8 * Runtime binding for `route53domains:GetDomainSuggestions` — return a list
9 * of suggested domain names based on a seed name, optionally restricted to
10 * names that are currently available for registration.
11 *
12 * Route 53 Domains is a global registration API with no resource-level IAM:
13 * the binding takes no arguments and grants the function
14 * `route53domains:GetDomainSuggestions` on `*`. Calls are pinned to
15 * `us-east-1`, the only region that serves the Route 53 Domains API,
16 * regardless of where the function runs.
17 *
18 * Provide the implementation with
19 * `Effect.provide(AWS.Route53Domains.GetDomainSuggestionsHttp)`.
20 *
21 * ### Suggesting Domain Names
22 * **Example:** Suggest Available Alternatives for a Name
23 * ```typescript
24 * // init
25 * const getDomainSuggestions =
26 * yield* AWS.Route53Domains.GetDomainSuggestions();
27 *
28 * // runtime
29 * const result = yield* getDomainSuggestions({
30 * DomainName: "example.com",
31 * SuggestionCount: 10,
32 * OnlyAvailable: true,
33 * });
34 * const names = (result.SuggestionsList ?? []).map((s) => s.DomainName);
35 * ```
36 *
37 * @binding
38 */
39 export interface GetDomainSuggestions extends Binding.Service<
40 GetDomainSuggestions,
41 "AWS.Route53Domains.GetDomainSuggestions",
42 () => Effect.Effect<
43 (
44 request: GetDomainSuggestionsRequest,
45 ) => Effect.Effect<
46 route53domains.GetDomainSuggestionsResponse,
47 route53domains.GetDomainSuggestionsError
48 >
49 >
50 > {}
51 export const GetDomainSuggestions = Binding.Service<GetDomainSuggestions>(
52 "AWS.Route53Domains.GetDomainSuggestions",
53 );