Class EcsDeploymentConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.EcsDeploymentConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsDeploymentConfigProps>
- Enclosing interface:
EcsDeploymentConfigProps
@Stability(Stable)
public static final class EcsDeploymentConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<EcsDeploymentConfigProps>
A builder for
EcsDeploymentConfigProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deploymentConfigName
(String deploymentConfigName) Sets the value ofBaseDeploymentConfigOptions.getDeploymentConfigName()
trafficRouting
(TrafficRouting trafficRouting) Sets the value ofEcsDeploymentConfigProps.getTrafficRouting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
trafficRouting
@Stability(Stable) public EcsDeploymentConfigProps.Builder trafficRouting(TrafficRouting trafficRouting) Sets the value ofEcsDeploymentConfigProps.getTrafficRouting()
- Parameters:
trafficRouting
- The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.- Returns:
this
-
deploymentConfigName
@Stability(Stable) public EcsDeploymentConfigProps.Builder deploymentConfigName(String deploymentConfigName) Sets the value ofBaseDeploymentConfigOptions.getDeploymentConfigName()
- Parameters:
deploymentConfigName
- The physical, human-readable name of the Deployment Configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EcsDeploymentConfigProps>
- Returns:
- a new instance of
EcsDeploymentConfigProps
- Throws:
NullPointerException
- if any required attribute was not provided
-