interface BaseDeploymentConfigProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.BaseDeploymentConfigProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#BaseDeploymentConfigProps |
Java | software.amazon.awscdk.services.codedeploy.BaseDeploymentConfigProps |
Python | aws_cdk.aws_codedeploy.BaseDeploymentConfigProps |
TypeScript (source) | aws-cdk-lib » aws_codedeploy » BaseDeploymentConfigProps |
Complete base deployment config properties that are required to be supplied by the implementation of the BaseDeploymentConfig class.
Example
// 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
Name | Type | Description |
---|---|---|
compute | Compute | The destination compute platform for the deployment. |
deployment | string | The physical, human-readable name of the Deployment Configuration. |
minimum | Minimum | Minimum number of healthy hosts. |
traffic | Traffic | The configuration that specifies how traffic is shifted during a deployment. |
zonal | Zonal | Configure CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region. |
computePlatform?
Type:
Compute
(optional, default: ComputePlatform.Server)
The destination compute platform for the deployment.
deploymentConfigName?
Type:
string
(optional, default: automatically generated name)
The physical, human-readable name of the Deployment Configuration.
minimumHealthyHosts?
Type:
Minimum
(optional, default: None)
Minimum number of healthy hosts.
trafficRouting?
Type:
Traffic
(optional, default: 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.
zonalConfig?
Type:
Zonal
(optional, default: deploy your application to a random selection of hosts across a Region)
Configure CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.