| 1 | import type * as route53domains from "@distilled.cloud/aws/route-53-domains"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | export interface CheckDomainTransferabilityRequest |
| 6 | extends route53domains.CheckDomainTransferabilityRequest {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for `route53domains:CheckDomainTransferability` — check |
| 10 | * whether a domain can be transferred to Amazon Route 53 from another |
| 11 | * registrar. |
| 12 | * |
| 13 | * Route 53 Domains is a global registration API with no resource-level IAM: |
| 14 | * the binding takes no arguments and grants the function |
| 15 | * `route53domains:CheckDomainTransferability` on `*`. Calls are pinned to |
| 16 | * `us-east-1`, the only region that serves the Route 53 Domains API, |
| 17 | * regardless of where the function runs. |
| 18 | * |
| 19 | * Provide the implementation with |
| 20 | * `Effect.provide(AWS.Route53Domains.CheckDomainTransferabilityHttp)`. |
| 21 | * |
| 22 | * ### Checking Domain Transferability |
| 23 | * **Example:** Check Whether a Domain Can Be Transferred In |
| 24 | * ```typescript |
| 25 | * // init |
| 26 | * const checkDomainTransferability = |
| 27 | * yield* AWS.Route53Domains.CheckDomainTransferability(); |
| 28 | * |
| 29 | * // runtime |
| 30 | * const result = yield* checkDomainTransferability({ |
| 31 | * DomainName: "example.com", |
| 32 | * }); |
| 33 | * if (result.Transferability?.Transferable === "TRANSFERABLE") { |
| 34 | * // domain can be transferred to Route 53 |
| 35 | * } |
| 36 | * ``` |
| 37 | * |
| 38 | * @binding |
| 39 | */ |
| 40 | export interface CheckDomainTransferability extends Binding.Service< |
| 41 | CheckDomainTransferability, |
| 42 | "AWS.Route53Domains.CheckDomainTransferability", |
| 43 | () => Effect.Effect< |
| 44 | ( |
| 45 | request: CheckDomainTransferabilityRequest, |
| 46 | ) => Effect.Effect< |
| 47 | route53domains.CheckDomainTransferabilityResponse, |
| 48 | route53domains.CheckDomainTransferabilityError |
| 49 | > |
| 50 | > |
| 51 | > {} |
| 52 | export const CheckDomainTransferability = |
| 53 | Binding.Service<CheckDomainTransferability>( |
| 54 | "AWS.Route53Domains.CheckDomainTransferability", |
| 55 | ); |