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).
Observing Accelerators
Section titled “Observing Accelerators”// init — bind the operation to the acceleratorconst describeAccelerator = yield* AWS.GlobalAccelerator.DescribeAccelerator(accelerator);
// runtimeconst { Accelerator } = yield* describeAccelerator();yield* Effect.log(`${Accelerator?.DnsName} is ${Accelerator?.Status}`);