Skip to content

ListExports

Source: src/AWS/CloudFormation/ListExports.ts

Runtime binding for the ListExports operation (IAM action cloudformation:ListExports on * — exports are account-scoped).

Lists all cross-stack exported output values in the account and region — runtime service discovery of values shared via Fn::ImportValue. Provide the implementation with Effect.provide(AWS.CloudFormation.ListExportsHttp).

const listExports = yield* AWS.CloudFormation.ListExports();
const { Exports } = yield* listExports();
const apiUrl = Exports?.find((e) => e.Name === "ApiUrl")?.Value;