Interface ICfnDeploymentConfigProps
Properties for defining a CfnDeploymentConfig
.
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnDeploymentConfigProps
Syntax (vb)
Public Interface 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
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 |
Properties
ComputePlatform
The destination platform type for the deployment ( Lambda
, Server
, or ECS
).
virtual string ComputePlatform { get; }
Property Value
System.String
Remarks
DeploymentConfigName
A name for the deployment configuration.
virtual string DeploymentConfigName { get; }
Property Value
System.String
Remarks
If you don't specify a name, AWS 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.
virtual object MinimumHealthyHosts { get; }
Property Value
System.Object
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.
TrafficRoutingConfig
The configuration that specifies how the deployment traffic is routed.
virtual object TrafficRoutingConfig { get; }
Property Value
System.Object
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.
virtual object ZonalConfig { get; }
Property Value
System.Object
Remarks
For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide .