@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
20 lines • 558 B
TypeScript
/**
* A principal in a request
*/
export interface RequestPrincipal {
/**
* The raw string of the principal
*/
value(): string;
/**
* The account id of the principal, if the principal is an ARN that has an account ID, otherwise undefined
*/
accountId(): string | undefined;
}
export declare class RequestPrincipalImpl implements RequestPrincipal {
private readonly rawValue;
constructor(rawValue: string);
accountId(): string | undefined;
value(): string;
}
//# sourceMappingURL=requestPrincipal.d.ts.map