Class CfnDaemon.DaemonDeploymentConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemon.DaemonDeploymentConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemon.DaemonDeploymentConfigurationProperty>
- Enclosing interface:
CfnDaemon.DaemonDeploymentConfigurationProperty
@Stability(Stable)
public static final class CfnDaemon.DaemonDeploymentConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemon.DaemonDeploymentConfigurationProperty>
A builder for
CfnDaemon.DaemonDeploymentConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarms(IResolvable alarms) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getAlarms()Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getAlarms()bakeTimeInMinutes(Number bakeTimeInMinutes) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getBakeTimeInMinutes()build()Builds the configured instance.drainPercent(Number drainPercent) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getDrainPercent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarms
@Stability(Stable) public CfnDaemon.DaemonDeploymentConfigurationProperty.Builder alarms(IResolvable alarms) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getAlarms()- Parameters:
alarms- The CloudWatch alarm configuration for a daemon. When enabled, CloudWatch alarms determine whether a daemon deployment has failed.- Returns:
this
-
alarms
@Stability(Stable) public CfnDaemon.DaemonDeploymentConfigurationProperty.Builder alarms(CfnDaemon.DaemonAlarmConfigurationProperty alarms) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getAlarms()- Parameters:
alarms- The CloudWatch alarm configuration for a daemon. When enabled, CloudWatch alarms determine whether a daemon deployment has failed.- Returns:
this
-
bakeTimeInMinutes
@Stability(Stable) public CfnDaemon.DaemonDeploymentConfigurationProperty.Builder bakeTimeInMinutes(Number bakeTimeInMinutes) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getBakeTimeInMinutes()- Parameters:
bakeTimeInMinutes- The amount of time (in minutes) to wait after a successful deployment step before proceeding. This allows time to monitor for issues before continuing. The default value is 0.- Returns:
this
-
drainPercent
@Stability(Stable) public CfnDaemon.DaemonDeploymentConfigurationProperty.Builder drainPercent(Number drainPercent) Sets the value ofCfnDaemon.DaemonDeploymentConfigurationProperty.getDrainPercent()- Parameters:
drainPercent- The percentage of container instances to drain simultaneously during a daemon deployment. Valid values are between 0.0 and 100.0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemon.DaemonDeploymentConfigurationProperty>- Returns:
- a new instance of
CfnDaemon.DaemonDeploymentConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-