Skip to content

ListProfileAssociations

Source: src/AWS/Route53Profiles/ListProfileAssociations.ts

Runtime binding for route53profiles:ListProfileAssociations — enumerate the VPC associations of the bound Profile (each item carries the association id, VPC ResourceId, and its Status), so an ops function can audit which VPCs a shared DNS configuration currently applies to or wait for an association to reach COMPLETE. The profile’s id is injected automatically.

Provide AWS.Route53Profiles.ListProfileAssociationsHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants route53profiles:ListProfileAssociations
const listProfileAssociations =
yield* AWS.Route53Profiles.ListProfileAssociations(profile);
// runtime
const { ProfileAssociations = [] } = yield* listProfileAssociations();
for (const association of ProfileAssociations) {
yield* Effect.log(`${association.ResourceId}: ${association.Status}`);
}