Class ZonalConfig
Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ZonalConfig : IZonalConfig
Syntax (vb)
Public Class ZonalConfig Implements IZonalConfig
Remarks
ExampleMetadata: infused
Examples
var deploymentConfig = new ServerDeploymentConfig(this, "DeploymentConfiguration", new ServerDeploymentConfigProps {
MinimumHealthyHosts = MinimumHealthyHosts.Count(2),
ZonalConfig = new ZonalConfig {
MonitorDuration = Duration.Minutes(30),
FirstZoneMonitorDuration = Duration.Minutes(60),
MinimumHealthyHostsPerZone = MinimumHealthyHostsPerZone.Count(1)
}
});
Synopsis
Constructors
| ZonalConfig() | Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region. |
Properties
| FirstZoneMonitorDuration | The period of time that CodeDeploy must wait after completing a deployment to the first Availability Zone. |
| MinimumHealthyHostsPerZone | The number or percentage of instances that must remain available per Availability Zone during a deployment. |
| MonitorDuration | The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone. |
Constructors
ZonalConfig()
Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.
public ZonalConfig()
Remarks
ExampleMetadata: infused
Examples
var deploymentConfig = new ServerDeploymentConfig(this, "DeploymentConfiguration", new ServerDeploymentConfigProps {
MinimumHealthyHosts = MinimumHealthyHosts.Count(2),
ZonalConfig = new ZonalConfig {
MonitorDuration = Duration.Minutes(30),
FirstZoneMonitorDuration = Duration.Minutes(60),
MinimumHealthyHostsPerZone = MinimumHealthyHostsPerZone.Count(1)
}
});
Properties
FirstZoneMonitorDuration
The period of time that CodeDeploy must wait after completing a deployment to the first Availability Zone.
public Duration? FirstZoneMonitorDuration { get; set; }
Property Value
Remarks
Accepted Values:
Default: - the same value as monitorDuration
MinimumHealthyHostsPerZone
The number or percentage of instances that must remain available per Availability Zone during a deployment.
public MinimumHealthyHostsPerZone? MinimumHealthyHostsPerZone { get; set; }
Property Value
Remarks
This option works in conjunction with the minimumHealthyHosts option.
Default: - 0 percent
MonitorDuration
The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone.
public Duration? MonitorDuration { get; set; }
Property Value
Remarks
Accepted Values:
Default: - CodeDeploy starts deploying to the next Availability Zone immediately