UNPKG

@cloud-copilot/iam-simulate

Version:
28 lines 679 B
export class ResourceRequestImpl { constructor(rawValue, accountIdString) { this.rawValue = rawValue; this.accountIdString = accountIdString; } partition() { return this.value().split(':').at(1); } service() { return this.value().split(':').at(2); } region() { return this.value().split(':').at(3); } account() { return this.value().split(':').at(4); } resource() { return this.value().split(':').slice(5).join(':'); } value() { return this.rawValue; } accountId() { return this.accountIdString; } } //# sourceMappingURL=requestResource.js.map