Files
2026-05-06 18:55:16 -05:00

23 lines
630 B
TypeScript

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;
}