Class EcsDeploymentGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.EcsDeploymentGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsDeploymentGroupProps>
- Enclosing interface:
EcsDeploymentGroupProps
@Stability(Stable)
public static final class EcsDeploymentGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<EcsDeploymentGroupProps>
A builder for
EcsDeploymentGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEcsDeploymentGroupProps.getAlarms()application(IEcsApplication application) Sets the value ofEcsDeploymentGroupProps.getApplication()autoRollback(AutoRollbackConfig autoRollback) Sets the value ofEcsDeploymentGroupProps.getAutoRollback()blueGreenDeploymentConfig(EcsBlueGreenDeploymentConfig blueGreenDeploymentConfig) Sets the value ofEcsDeploymentGroupProps.getBlueGreenDeploymentConfig()build()Builds the configured instance.deploymentConfig(IEcsDeploymentConfig deploymentConfig) Sets the value ofEcsDeploymentGroupProps.getDeploymentConfig()deploymentGroupName(String deploymentGroupName) Sets the value ofEcsDeploymentGroupProps.getDeploymentGroupName()ignoreAlarmConfiguration(Boolean ignoreAlarmConfiguration) Sets the value ofEcsDeploymentGroupProps.getIgnoreAlarmConfiguration()ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure) Sets the value ofEcsDeploymentGroupProps.getIgnorePollAlarmsFailure()Sets the value ofEcsDeploymentGroupProps.getRole()service(IBaseService service) Sets the value ofEcsDeploymentGroupProps.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blueGreenDeploymentConfig
@Stability(Stable) public EcsDeploymentGroupProps.Builder blueGreenDeploymentConfig(EcsBlueGreenDeploymentConfig blueGreenDeploymentConfig) Sets the value ofEcsDeploymentGroupProps.getBlueGreenDeploymentConfig()- Parameters:
blueGreenDeploymentConfig- The configuration options for blue-green ECS deployments. This parameter is required.- Returns:
this
-
service
Sets the value ofEcsDeploymentGroupProps.getService()- Parameters:
service- The ECS service to deploy with this Deployment Group. This parameter is required.- Returns:
this
-
alarms
Sets the value ofEcsDeploymentGroupProps.getAlarms()- Parameters:
alarms- The CloudWatch alarms associated with this Deployment Group. CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger.Alarms can also be added after the Deployment Group is created using the
#addAlarmmethod.- Returns:
this
-
application
Sets the value ofEcsDeploymentGroupProps.getApplication()- Parameters:
application- The reference to the CodeDeploy ECS Application that this Deployment Group belongs to.- Returns:
this
-
autoRollback
@Stability(Stable) public EcsDeploymentGroupProps.Builder autoRollback(AutoRollbackConfig autoRollback) Sets the value ofEcsDeploymentGroupProps.getAutoRollback()- Parameters:
autoRollback- The auto-rollback configuration for this Deployment Group.- Returns:
this
-
deploymentConfig
@Stability(Stable) public EcsDeploymentGroupProps.Builder deploymentConfig(IEcsDeploymentConfig deploymentConfig) Sets the value ofEcsDeploymentGroupProps.getDeploymentConfig()- Parameters:
deploymentConfig- The Deployment Configuration this Deployment Group uses.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public EcsDeploymentGroupProps.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofEcsDeploymentGroupProps.getDeploymentGroupName()- Parameters:
deploymentGroupName- The physical, human-readable name of the CodeDeploy Deployment Group.- Returns:
this
-
ignoreAlarmConfiguration
@Stability(Stable) public EcsDeploymentGroupProps.Builder ignoreAlarmConfiguration(Boolean ignoreAlarmConfiguration) Sets the value ofEcsDeploymentGroupProps.getIgnoreAlarmConfiguration()- Parameters:
ignoreAlarmConfiguration- Whether to skip the step of checking CloudWatch alarms during the deployment process.- Returns:
this
-
ignorePollAlarmsFailure
@Stability(Stable) public EcsDeploymentGroupProps.Builder ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure) Sets the value ofEcsDeploymentGroupProps.getIgnorePollAlarmsFailure()- Parameters:
ignorePollAlarmsFailure- Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.- Returns:
this
-
role
Sets the value ofEcsDeploymentGroupProps.getRole()- Parameters:
role- The service Role of this Deployment Group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcsDeploymentGroupProps>- Returns:
- a new instance of
EcsDeploymentGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-