aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 468 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.toISchedulingPolicy=toISchedulingPolicy;var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp};function toISchedulingPolicy(policy){if(!("schedulingPolicyArn"in policy)||!("schedulingPolicyName"in policy))throw new(core_1()).UnscopedValidationError(`'schedulingPolicy' instance should implement ISchedulingPolicy, but doesn't: ${policy.constructor.name}`);return policy}