@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
17 lines • 446 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestPrincipalImpl = void 0;
class RequestPrincipalImpl {
rawValue;
constructor(rawValue) {
this.rawValue = rawValue;
}
accountId() {
return this.value().split(':').at(4);
}
value() {
return this.rawValue;
}
}
exports.RequestPrincipalImpl = RequestPrincipalImpl;
//# sourceMappingURL=requestPrincipal.js.map