Interface CfnDeploymentConfigProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeploymentConfigProps.Jsii$Proxy
CfnDeploymentConfig
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.codedeploy.*; CfnDeploymentConfigProps cfnDeploymentConfigProps = CfnDeploymentConfigProps.builder() .computePlatform("computePlatform") .deploymentConfigName("deploymentConfigName") .minimumHealthyHosts(MinimumHealthyHostsProperty.builder() .type("type") .value(123) .build()) .trafficRoutingConfig(TrafficRoutingConfigProperty.builder() .type("type") // the properties below are optional .timeBasedCanary(TimeBasedCanaryProperty.builder() .canaryInterval(123) .canaryPercentage(123) .build()) .timeBasedLinear(TimeBasedLinearProperty.builder() .linearInterval(123) .linearPercentage(123) .build()) .build()) .zonalConfig(ZonalConfigProperty.builder() .firstZoneMonitorDurationInSeconds(123) .minimumHealthyHostsPerZone(MinimumHealthyHostsPerZoneProperty.builder() .type("type") .value(123) .build()) .monitorDurationInSeconds(123) .build()) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDeploymentConfigProps
static final class
An implementation forCfnDeploymentConfigProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The destination platform type for the deployment (Lambda
,Server
, orECS
).default String
A name for the deployment configuration.default Object
The minimum number of healthy instances that should be available at any time during the deployment.default Object
The configuration that specifies how the deployment traffic is routed.default Object
Configure theZonalConfig
object if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComputePlatform
The destination platform type for the deployment (Lambda
,Server
, orECS
).- See Also:
-
getDeploymentConfigName
A name for the deployment configuration.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.
- See Also:
-
getMinimumHealthyHosts
The minimum number of healthy instances that should be available at any time during the deployment.There are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
- HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
- FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.
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.
- See Also:
-
getTrafficRoutingConfig
The configuration that specifies how the deployment traffic is routed.- See Also:
-
getZonalConfig
Configure theZonalConfig
object if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide .
- See Also:
-
builder
- Returns:
- a
CfnDeploymentConfigProps.Builder
ofCfnDeploymentConfigProps
-