@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
20 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestActionImpl = void 0;
class RequestActionImpl {
rawValue;
constructor(rawValue) {
this.rawValue = rawValue;
}
value() {
return this.rawValue;
}
service() {
return this.rawValue.split(':')[0].toLowerCase();
}
action() {
return this.rawValue.split(':')[1];
}
}
exports.RequestActionImpl = RequestActionImpl;
//# sourceMappingURL=requestAction.js.map