Class CfnService.AdvancedConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.AdvancedConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.AdvancedConfigurationProperty>
- Enclosing interface:
CfnService.AdvancedConfigurationProperty
@Stability(Stable)
public static final class CfnService.AdvancedConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.AdvancedConfigurationProperty>
A builder for
CfnService.AdvancedConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateTargetGroupArn
(String alternateTargetGroupArn) Sets the value ofCfnService.AdvancedConfigurationProperty.getAlternateTargetGroupArn()
build()
Builds the configured instance.productionListenerRule
(String productionListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getProductionListenerRule()
Sets the value ofCfnService.AdvancedConfigurationProperty.getRoleArn()
testListenerRule
(String testListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getTestListenerRule()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alternateTargetGroupArn
@Stability(Stable) public CfnService.AdvancedConfigurationProperty.Builder alternateTargetGroupArn(String alternateTargetGroupArn) Sets the value ofCfnService.AdvancedConfigurationProperty.getAlternateTargetGroupArn()
- Parameters:
alternateTargetGroupArn
- The Amazon Resource Name (ARN) of the alternate target group for Amazon ECS blue/green deployments. This parameter is required.- Returns:
this
-
productionListenerRule
@Stability(Stable) public CfnService.AdvancedConfigurationProperty.Builder productionListenerRule(String productionListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getProductionListenerRule()
- Parameters:
productionListenerRule
- The Amazon Resource Name (ARN) that that identifies the production listener rule (in the case of an Application Load Balancer) or listener (in the case for an Network Load Balancer) for routing production traffic.- Returns:
this
-
roleArn
Sets the value ofCfnService.AdvancedConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS permission to call the Elastic Load Balancing APIs for you.- Returns:
this
-
testListenerRule
@Stability(Stable) public CfnService.AdvancedConfigurationProperty.Builder testListenerRule(String testListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getTestListenerRule()
- Parameters:
testListenerRule
- The Amazon Resource Name (ARN) that identifies ) that identifies the test listener rule (in the case of an Application Load Balancer) or listener (in the case for an Network Load Balancer) for routing test traffic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.AdvancedConfigurationProperty>
- Returns:
- a new instance of
CfnService.AdvancedConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-