Show / Hide Table of Contents

Class ZonalConfig

Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.

Inheritance
object
ZonalConfig
Implements
IZonalConfig
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

Duration

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

    MinimumHealthyHostsPerZone

    Remarks

    This option works in conjunction with the minimumHealthyHosts option.

    Default: - 0 percent

    See: https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az

    MonitorDuration

    The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone.

    public Duration? MonitorDuration { get; set; }
    Property Value

    Duration

    Remarks

    Accepted Values:

      Default: - CodeDeploy starts deploying to the next Availability Zone immediately

      Implements

      IZonalConfig
      Back to top Generated by DocFX