@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
43 lines • 984 B
TypeScript
export interface RequestResource {
/**
* The raw string of the resource
*/
value(): string;
/**
* The partition of the ARN
*/
partition(): string;
/**
* The service of the ARN
*/
service(): string;
/**
* The region of the ARN
*/
region(): string;
/**
* The account of the ARN
*/
account(): string;
/**
* The resource of the ARN
*/
resource(): string;
/**
* The account ID of the resource, independent of what is in the ARN
*/
accountId(): string;
}
export declare class ResourceRequestImpl implements RequestResource {
private readonly rawValue;
private readonly accountIdString;
constructor(rawValue: string, accountIdString: string);
partition(): string;
service(): string;
region(): string;
account(): string;
resource(): string;
value(): string;
accountId(): string;
}
//# sourceMappingURL=requestResource.d.ts.map