Skip to content

GetOperationDetail

Source: src/AWS/Route53Domains/GetOperationDetail.ts

Runtime binding for route53domains:GetOperationDetail — return the current status of an asynchronous Route 53 Domains operation (a domain registration, renewal, transfer, or nameserver update identified by the OperationId those calls return).

Route 53 Domains is a global registration API with no resource-level IAM: the binding takes no arguments and grants the function route53domains:GetOperationDetail on *. Calls are pinned to us-east-1, the only region that serves the Route 53 Domains API, regardless of where the function runs.

Provide the implementation with Effect.provide(AWS.Route53Domains.GetOperationDetailHttp).

// init
const getOperationDetail = yield* AWS.Route53Domains.GetOperationDetail();
// runtime
const detail = yield* getOperationDetail({ OperationId: operationId }).pipe(
Effect.repeat({
schedule: Schedule.spaced("10 seconds"),
until: (d) => d.Status === "SUCCESSFUL" || d.Status === "ERROR",
times: 8,
}),
);