Skip to content

ListStackResources

Source: src/AWS/CloudFormation/ListStackResources.ts

Runtime binding for the ListStackResources operation (IAM action cloudformation:ListStackResources).

Bind this operation to a Stack to enumerate all of the stack’s resource summaries (paginated) from inside a function runtime — the lighter-weight alternative to DescribeStackResources for stacks with many resources. Provide the implementation with Effect.provide(AWS.CloudFormation.ListStackResourcesHttp).

const listStackResources =
yield* AWS.CloudFormation.ListStackResources(stack);
const { StackResourceSummaries } = yield* listStackResources();
const types = (StackResourceSummaries ?? []).map((r) => r.ResourceType);