Skip to content

GetResourceShares

Source: src/AWS/RAM/GetResourceShares.ts

Runtime binding for ram:GetResourceShares.

Retrieves details about the resource shares that you own (resourceOwner: "SELF") or that are shared with you (resourceOwner: "OTHER-ACCOUNTS"). 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.GetResourceSharesHttp).

// init — account-level binding, no resource argument
const getResourceShares = yield* AWS.RAM.GetResourceShares();
// runtime
const { resourceShares } = yield* getResourceShares({
resourceOwner: "SELF",
});