UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

23 lines (22 loc) 630 B
import { Grant } from './grant'; import type { IRoleRef } from './iam.generated'; import type { IPrincipal } from './principals'; /** * Collection of grant methods for a IRoleRef */ export declare class RoleGrants { private readonly role; /** * Creates grants for IRoleRef */ static fromRole(role: IRoleRef): RoleGrants; private constructor(); /** * Grant permissions to the given principal to assume this role. */ assumeRole(identity: IPrincipal): Grant; /** * Grant permissions to the given principal to pass this role. */ passRole(identity: IPrincipal): Grant; }