Skip to content

DescribeAccelerator

Source: src/AWS/GlobalAccelerator/DescribeAccelerator.ts

Runtime binding for globalaccelerator:DescribeAccelerator.

Reads the bound Accelerator’s live state — deployment status (DEPLOYED / IN_PROGRESS), DNS names, static IP sets, and whether it is enabled — so a function can health-check the accelerator or hand out its DNS name at runtime. The accelerator ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.GlobalAccelerator.DescribeAcceleratorHttp).

// init — bind the operation to the accelerator
const describeAccelerator =
yield* AWS.GlobalAccelerator.DescribeAccelerator(accelerator);
// runtime
const { Accelerator } = yield* describeAccelerator();
yield* Effect.log(`${Accelerator?.DnsName} is ${Accelerator?.Status}`);