Skip to content

GetPermission

Source: src/AWS/RAM/GetPermission.ts

Runtime binding for ram:GetPermission.

Retrieves the contents of a managed permission in JSON format, including its policy template. 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.GetPermissionHttp).

// init — account-level binding, no resource argument
const getPermission = yield* AWS.RAM.GetPermission();
// runtime
const { permission } = yield* getPermission({
permissionArn: customerManagedPermission.permissionArn,
});