| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EcsTarget |
build()
Builds the configured instance.
|
EcsTarget.Builder |
containerName(String containerName)
Sets the value of
EcsTarget.getContainerName() |
EcsTarget.Builder |
containerPort(Number containerPort)
Sets the value of
EcsTarget.getContainerPort() |
EcsTarget.Builder |
listener(ListenerConfig listener)
Sets the value of
EcsTarget.getListener() |
EcsTarget.Builder |
newTargetGroupId(String newTargetGroupId)
Sets the value of
EcsTarget.getNewTargetGroupId() |
EcsTarget.Builder |
protocol(Protocol protocol)
Sets the value of
EcsTarget.getProtocol() |
@Stability(value=Stable) public EcsTarget.Builder containerName(String containerName)
EcsTarget.getContainerName()containerName - The name of the container. This parameter is required.this@Stability(value=Stable) public EcsTarget.Builder listener(ListenerConfig listener)
EcsTarget.getListener()listener - Listener and properties for adding target group to the listener. This parameter is required.this@Stability(value=Stable) public EcsTarget.Builder newTargetGroupId(String newTargetGroupId)
EcsTarget.getNewTargetGroupId()newTargetGroupId - ID for a target group to be created. This parameter is required.this@Stability(value=Stable) public EcsTarget.Builder containerPort(Number containerPort)
EcsTarget.getContainerPort()containerPort - The port number of the container.
Only applicable when using application/network load balancers.this@Stability(value=Stable) public EcsTarget.Builder protocol(Protocol protocol)
EcsTarget.getProtocol()protocol - The protocol used for the port mapping.
Only applicable when using application load balancers.this@Stability(value=Stable) public EcsTarget build()
build in interface software.amazon.jsii.Builder<EcsTarget>EcsTargetNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.