Class CfnDeploymentConfigMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentConfigMixinProps>
- Enclosing interface:
CfnDeploymentConfigMixinProps
CfnDeploymentConfigMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computePlatform(String computePlatform) Sets the value ofCfnDeploymentConfigMixinProps.getComputePlatform()deploymentConfigName(String deploymentConfigName) Sets the value ofCfnDeploymentConfigMixinProps.getDeploymentConfigName()minimumHealthyHosts(CfnDeploymentConfigPropsMixin.MinimumHealthyHostsProperty minimumHealthyHosts) Sets the value ofCfnDeploymentConfigMixinProps.getMinimumHealthyHosts()minimumHealthyHosts(IResolvable minimumHealthyHosts) Sets the value ofCfnDeploymentConfigMixinProps.getMinimumHealthyHosts()trafficRoutingConfig(CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty trafficRoutingConfig) Sets the value ofCfnDeploymentConfigMixinProps.getTrafficRoutingConfig()trafficRoutingConfig(IResolvable trafficRoutingConfig) Sets the value ofCfnDeploymentConfigMixinProps.getTrafficRoutingConfig()Sets the value ofCfnDeploymentConfigMixinProps.getZonalConfig()zonalConfig(IResolvable zonalConfig) Sets the value ofCfnDeploymentConfigMixinProps.getZonalConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computePlatform
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder computePlatform(String computePlatform) Sets the value ofCfnDeploymentConfigMixinProps.getComputePlatform()- Parameters:
computePlatform- The destination platform type for the deployment (Lambda,Server, orECS).- Returns:
this
-
deploymentConfigName
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder deploymentConfigName(String deploymentConfigName) Sets the value ofCfnDeploymentConfigMixinProps.getDeploymentConfigName()- Parameters:
deploymentConfigName- A name for the deployment configuration. 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.
- Returns:
this
-
minimumHealthyHosts
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder minimumHealthyHosts(IResolvable minimumHealthyHosts) Sets the value ofCfnDeploymentConfigMixinProps.getMinimumHealthyHosts()- Parameters:
minimumHealthyHosts- 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.
- Returns:
this
-
minimumHealthyHosts
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder minimumHealthyHosts(CfnDeploymentConfigPropsMixin.MinimumHealthyHostsProperty minimumHealthyHosts) Sets the value ofCfnDeploymentConfigMixinProps.getMinimumHealthyHosts()- Parameters:
minimumHealthyHosts- 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.
- Returns:
this
-
trafficRoutingConfig
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder trafficRoutingConfig(IResolvable trafficRoutingConfig) Sets the value ofCfnDeploymentConfigMixinProps.getTrafficRoutingConfig()- Parameters:
trafficRoutingConfig- The configuration that specifies how the deployment traffic is routed.- Returns:
this
-
trafficRoutingConfig
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder trafficRoutingConfig(CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty trafficRoutingConfig) Sets the value ofCfnDeploymentConfigMixinProps.getTrafficRoutingConfig()- Parameters:
trafficRoutingConfig- The configuration that specifies how the deployment traffic is routed.- Returns:
this
-
zonalConfig
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder zonalConfig(IResolvable zonalConfig) Sets the value ofCfnDeploymentConfigMixinProps.getZonalConfig()- Parameters:
zonalConfig- Configure theZonalConfigobject 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 .- Returns:
this
-
zonalConfig
@Stability(Stable) public CfnDeploymentConfigMixinProps.Builder zonalConfig(CfnDeploymentConfigPropsMixin.ZonalConfigProperty zonalConfig) Sets the value ofCfnDeploymentConfigMixinProps.getZonalConfig()- Parameters:
zonalConfig- Configure theZonalConfigobject 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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentConfigMixinProps>- Returns:
- a new instance of
CfnDeploymentConfigMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-