Skip to content

GetResourcePolicies

Source: src/AWS/RAM/GetResourcePolicies.ts

Runtime binding for ram:GetResourcePolicies.

Retrieves the RAM-generated resource policies attached to resources that you own and have shared. 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.GetResourcePoliciesHttp).

// init — account-level binding, no resource argument
const getResourcePolicies = yield* AWS.RAM.GetResourcePolicies();
// runtime
const { policies } = yield* getResourcePolicies({
resourceArns: [subnetArn],
});