aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 3.48 kB
JavaScript
var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.LambdaDeploymentConfig=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var metadata_resource_1=()=>{var tmp=require("../../../core/lib/metadata-resource");return metadata_resource_1=()=>tmp,tmp},base_deployment_config_1=()=>{var tmp=require("../base-deployment-config");return base_deployment_config_1=()=>tmp,tmp},utils_1=()=>{var tmp=require("../private/utils");return utils_1=()=>tmp,tmp},traffic_routing_config_1=()=>{var tmp=require("../traffic-routing-config");return traffic_routing_config_1=()=>tmp,tmp};class LambdaDeploymentConfig extends base_deployment_config_1().BaseDeploymentConfig{static fromLambdaDeploymentConfigName(scope,id,lambdaDeploymentConfigName){return this.fromDeploymentConfigName(scope,id,lambdaDeploymentConfigName)}static import(_scope,_id,props){try{jsiiDeprecationWarnings().print("aws-cdk-lib.aws_codedeploy.LambdaDeploymentConfig#import","use `fromLambdaDeploymentConfigName`"),jsiiDeprecationWarnings().aws_cdk_lib_aws_codedeploy_LambdaDeploymentConfigImportProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.import),error}return this.fromLambdaDeploymentConfigName(_scope,_id,props.deploymentConfigName)}static deploymentConfig(name){return(0,utils_1().deploymentConfig)(name)}constructor(scope,id,props){super(scope,id,{...props,computePlatform:base_deployment_config_1().ComputePlatform.LAMBDA,trafficRouting:props?.trafficRouting??traffic_routing_config_1().TrafficRouting.allAtOnce()});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codedeploy_LambdaDeploymentConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,LambdaDeploymentConfig),error}(0,metadata_resource_1().addConstructMetadata)(this,props)}}exports.LambdaDeploymentConfig=LambdaDeploymentConfig,_a=JSII_RTTI_SYMBOL_1,LambdaDeploymentConfig[_a]={fqn:"aws-cdk-lib.aws_codedeploy.LambdaDeploymentConfig",version:"2.185.0"},LambdaDeploymentConfig.ALL_AT_ONCE=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaAllAtOnce"),LambdaDeploymentConfig.CANARY_10PERCENT_30MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaCanary10Percent30Minutes"),LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaCanary10Percent5Minutes"),LambdaDeploymentConfig.CANARY_10PERCENT_10MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaCanary10Percent10Minutes"),LambdaDeploymentConfig.CANARY_10PERCENT_15MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaCanary10Percent15Minutes"),LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_10MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaLinear10PercentEvery10Minutes"),LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaLinear10PercentEvery1Minute"),LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_2MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaLinear10PercentEvery2Minutes"),LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_3MINUTES=LambdaDeploymentConfig.deploymentConfig("CodeDeployDefault.LambdaLinear10PercentEvery3Minutes");
;