Skip to content

GetResourceShareAssociations

Source: src/AWS/RAM/GetResourceShareAssociations.ts

Runtime binding for ram:GetResourceShareAssociations.

Retrieves the principal and resource associations of your resource shares — who has access, and to what. Account-level operation — the target shares, invitations, and permissions are chosen per request at runtime, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.RAM.GetResourceShareAssociationsHttp).

// init — account-level binding, no resource argument
const getResourceShareAssociations = yield* AWS.RAM.GetResourceShareAssociations();
// runtime
const { resourceShareAssociations } =
yield* getResourceShareAssociations({ associationType: "PRINCIPAL" });