BaseDeploymentConfigProps Struct
Complete base deployment config properties that are required to be supplied by the implementation of the BaseDeploymentConfig class.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
declare const minimumHealthyHosts: codedeploy.MinimumHealthyHosts;
declare const minimumHealthyHostsPerZone: codedeploy.MinimumHealthyHostsPerZone;
declare const trafficRouting: codedeploy.TrafficRouting;
const baseDeploymentConfigProps: codedeploy.BaseDeploymentConfigProps = {
computePlatform: codedeploy.ComputePlatform.SERVER,
deploymentConfigName: 'deploymentConfigName',
minimumHealthyHosts: minimumHealthyHosts,
trafficRouting: trafficRouting,
zonalConfig: {
firstZoneMonitorDuration: cdk.Duration.minutes(30),
minimumHealthyHostsPerZone: minimumHealthyHostsPerZone,
monitorDuration: cdk.Duration.minutes(30),
},
};
Properties
computePlatformComputePlatformcompute_platformComputePlatformcomputePlatformComputePlatformComputePlatformComputePlatformComputePlatformComputePlatform= ComputePlatform.Server#The destination compute platform for the deployment.
deploymentConfigNamestringdeployment_config_namestrdeploymentConfigNameStringDeploymentConfigNamestringDeploymentConfigName*string#The physical, human-readable name of the Deployment Configuration.
Default: automatically generated name
minimumHealthyHostsMinimumHealthyHostsminimum_healthy_hostsMinimumHealthyHostsminimumHealthyHostsMinimumHealthyHostsMinimumHealthyHostsMinimumHealthyHostsMinimumHealthyHostsMinimumHealthyHosts= None#Minimum number of healthy hosts.
trafficRoutingTrafficRoutingtraffic_routingTrafficRoutingtrafficRoutingTrafficRoutingTrafficRoutingTrafficRoutingTrafficRoutingTrafficRouting= None#The configuration that specifies how traffic is shifted during a deployment.
Only applicable to ECS and Lambda deployments, and must not be specified for Server deployments.
zonalConfigZonalConfigzonal_configZonalConfigzonalConfigZonalConfigZonalConfigZonalConfigZonalConfigZonalConfig#Configure CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.
Default: deploy your application to a random selection of hosts across a Region