aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 869 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.toIEnvironment=toIEnvironment,exports.toIDeploymentStrategy=toIDeploymentStrategy;var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp};function toIEnvironment(environment){if("addDeployment"in environment&&"applicationId"in environment&&"environmentId"in environment)return environment;throw new(core_1()).UnscopedValidationError(`'environment' instance should implement IEnvironment, but doesn't: ${environment.constructor.name}`)}function toIDeploymentStrategy(deploymentStrategy){if("deploymentStrategyId"in deploymentStrategy&&"deploymentStrategyArn"in deploymentStrategy)return deploymentStrategy;throw new(core_1()).UnscopedValidationError(`'deploymentStrategy' instance should implement IDeploymentStrategy, but doesn't: ${deploymentStrategy.constructor.name}`)}