aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
16 lines (15 loc) • 505 B
TypeScript
import type { IPolicy } from './policy';
export declare const LITERAL_STRING_KEY = "LiteralString";
/**
* Helper class that maintains the set of attached policies for a principal.
*/
export declare class AttachedPolicies {
private policies;
/**
* Adds a policy to the list of attached policies.
*
* If this policy is already, attached, returns false.
* If there is another policy attached with the same name, throws an exception.
*/
attach(policy: IPolicy): void;
}