DescribeStacks
Source:
src/AWS/CloudFormation/DescribeStacks.ts
Runtime binding for the DescribeStacks operation (IAM action
cloudformation:DescribeStacks).
Bind this operation to a Stack to read its live status, parameters,
and template outputs from inside a function runtime — the classic
service-discovery pattern of resolving endpoints/ARNs from a stack’s
outputs. Provide the implementation with
Effect.provide(AWS.CloudFormation.DescribeStacksHttp).
Reading Stacks
Section titled “Reading Stacks”// init — bind the operation to the stackconst describeStacks = yield* AWS.CloudFormation.DescribeStacks(stack);
// runtimeconst { Stacks } = yield* describeStacks();const outputs = Stacks?.[0]?.Outputs ?? [];