aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 727 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0}),exports.sourceArtifactBounds=sourceArtifactBounds,exports.deployArtifactBounds=deployArtifactBounds,exports.validatePercentage=validatePercentage;var core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};function sourceArtifactBounds(){return{minInputs:0,maxInputs:0,minOutputs:1,maxOutputs:1}}function deployArtifactBounds(){return{minInputs:1,maxInputs:1,minOutputs:0,maxOutputs:0}}function validatePercentage(name,value){if(!(value===void 0||core_1().Token.isUnresolved(value))&&(value<0||value>100||!Number.isInteger(value)))throw new(core_1()).UnscopedValidationError(`'${name}': must be a whole number between 0 and 100, got: ${value}`)}
;