Class CfnDeploymentConfigProps
Properties for defining a CfnDeploymentConfig.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDeploymentConfigProps : ICfnDeploymentConfigProps
Syntax (vb)
Public Class CfnDeploymentConfigProps Implements ICfnDeploymentConfigProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var cfnDeploymentConfigProps = new CfnDeploymentConfigProps {
ComputePlatform = "computePlatform",
DeploymentConfigName = "deploymentConfigName",
MinimumHealthyHosts = new MinimumHealthyHostsProperty {
Type = "type",
Value = 123
},
TrafficRoutingConfig = new TrafficRoutingConfigProperty {
Type = "type",
// the properties below are optional
TimeBasedCanary = new TimeBasedCanaryProperty {
CanaryInterval = 123,
CanaryPercentage = 123
},
TimeBasedLinear = new TimeBasedLinearProperty {
LinearInterval = 123,
LinearPercentage = 123
}
},
ZonalConfig = new ZonalConfigProperty {
FirstZoneMonitorDurationInSeconds = 123,
MinimumHealthyHostsPerZone = new MinimumHealthyHostsPerZoneProperty {
Type = "type",
Value = 123
},
MonitorDurationInSeconds = 123
}
};
Synopsis
Constructors
| CfnDeploymentConfigProps() | Properties for defining a |
Properties
| ComputePlatform | The destination platform type for the deployment ( |
| DeploymentConfigName | A name for the deployment configuration. |
| MinimumHealthyHosts | The minimum number of healthy instances that should be available at any time during the deployment. |
| TrafficRoutingConfig | The configuration that specifies how the deployment traffic is routed. |
| ZonalConfig | Configure the |
Constructors
CfnDeploymentConfigProps()
Properties for defining a CfnDeploymentConfig.
public CfnDeploymentConfigProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var cfnDeploymentConfigProps = new CfnDeploymentConfigProps {
ComputePlatform = "computePlatform",
DeploymentConfigName = "deploymentConfigName",
MinimumHealthyHosts = new MinimumHealthyHostsProperty {
Type = "type",
Value = 123
},
TrafficRoutingConfig = new TrafficRoutingConfigProperty {
Type = "type",
// the properties below are optional
TimeBasedCanary = new TimeBasedCanaryProperty {
CanaryInterval = 123,
CanaryPercentage = 123
},
TimeBasedLinear = new TimeBasedLinearProperty {
LinearInterval = 123,
LinearPercentage = 123
}
},
ZonalConfig = new ZonalConfigProperty {
FirstZoneMonitorDurationInSeconds = 123,
MinimumHealthyHostsPerZone = new MinimumHealthyHostsPerZoneProperty {
Type = "type",
Value = 123
},
MonitorDurationInSeconds = 123
}
};
Properties
ComputePlatform
The destination platform type for the deployment ( Lambda , Server , or ECS ).
public string? ComputePlatform { get; set; }
Property Value
Remarks
DeploymentConfigName
A name for the deployment configuration.
public string? DeploymentConfigName { get; set; }
Property Value
Remarks
If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the deployment configuration name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
MinimumHealthyHosts
The minimum number of healthy instances that should be available at any time during the deployment.
public object? MinimumHealthyHosts { get; set; }
Property Value
Remarks
There are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
For more information about instance health, see CodeDeploy Instance Health in the AWS CodeDeploy User Guide.
Type union: either IResolvable or CfnDeploymentConfig.IMinimumHealthyHostsProperty
TrafficRoutingConfig
The configuration that specifies how the deployment traffic is routed.
public object? TrafficRoutingConfig { get; set; }
Property Value
Remarks
ZonalConfig
Configure the ZonalConfig object if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.
public object? ZonalConfig { get; set; }
Property Value
Remarks
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide .
Type union: either IResolvable or CfnDeploymentConfig.IZonalConfigProperty