Class AlternateTarget.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.AlternateTarget.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlternateTarget>
- Enclosing class:
AlternateTarget
@Stability(Stable)
public static final class AlternateTarget.Builder
extends Object
implements software.amazon.jsii.Builder<AlternateTarget>
A fluent builder for
AlternateTarget
.-
Method Summary
Modifier and TypeMethodDescriptionalternateTargetGroup
(ITargetGroup alternateTargetGroup) The alternate target group.build()
static AlternateTarget.Builder
productionListener
(ListenerRuleConfiguration productionListener) The production listener rule ARN (ALB) or listener ARN (NLB).The IAM role for the configuration.testListener
(ListenerRuleConfiguration testListener) The test listener configuration.
-
Method Details
-
create
- Parameters:
id
- This parameter is required.- Returns:
- a new instance of
AlternateTarget.Builder
.
-
role
The IAM role for the configuration.Default: - a new role will be created
- Parameters:
role
- The IAM role for the configuration. This parameter is required.- Returns:
this
-
testListener
@Stability(Stable) public AlternateTarget.Builder testListener(ListenerRuleConfiguration testListener) The test listener configuration.Default: - none
- Parameters:
testListener
- The test listener configuration. This parameter is required.- Returns:
this
-
alternateTargetGroup
@Stability(Stable) public AlternateTarget.Builder alternateTargetGroup(ITargetGroup alternateTargetGroup) The alternate target group.- Parameters:
alternateTargetGroup
- The alternate target group. This parameter is required.- Returns:
this
-
productionListener
@Stability(Stable) public AlternateTarget.Builder productionListener(ListenerRuleConfiguration productionListener) The production listener rule ARN (ALB) or listener ARN (NLB).- Parameters:
productionListener
- The production listener rule ARN (ALB) or listener ARN (NLB). This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AlternateTarget>
- Returns:
- a newly built instance of
AlternateTarget
.
-