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).
Discovering Shares & Shared Resources
Section titled “Discovering Shares & Shared Resources”// init — account-level binding, no resource argumentconst getResourceShares = yield* AWS.RAM.GetResourceShares();
// runtimeconst { resourceShares } = yield* getResourceShares({ resourceOwner: "SELF",});