@Stability(value=Stable) @Internal public static final class CfnTaskSet.LoadBalancerProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnTaskSet.LoadBalancerProperty
CfnTaskSet.LoadBalancerPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnTaskSet.LoadBalancerProperty.Builder, CfnTaskSet.LoadBalancerProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnTaskSet.LoadBalancerProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnTaskSet.AwsVpcConfigurationProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getContainerName()
The name of the container (as it appears in a container definition) to associate with the load balancer.
|
Number |
getContainerPort()
The port on the container to associate with the load balancer.
|
String |
getLoadBalancerName()
The name of the load balancer to associate with the Amazon ECS service or task set.
|
String |
getTargetGroupArn()
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnTaskSet.LoadBalancerProperty.Builder builder)
CfnTaskSet.AwsVpcConfigurationProperty.Builder.public final String getContainerName()
CfnTaskSet.LoadBalancerPropertygetContainerName in interface CfnTaskSet.LoadBalancerPropertypublic final Number getContainerPort()
CfnTaskSet.LoadBalancerProperty
This port must correspond to a containerPort in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they're launched on must allow ingress traffic on the hostPort of the port mapping.
getContainerPort in interface CfnTaskSet.LoadBalancerPropertypublic final String getLoadBalancerName()
CfnTaskSet.LoadBalancerPropertyA load balancer name is only specified when using a Classic Load Balancer. If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be omitted.
getLoadBalancerName in interface CfnTaskSet.LoadBalancerPropertypublic final String getTargetGroupArn()
CfnTaskSet.LoadBalancerPropertyA target group ARN is only specified when using an Application Load Balancer or Network Load Balancer. If you're using a Classic Load Balancer, omit the target group ARN.
For services using the ECS deployment controller, you can specify one or multiple target groups. For more information, see Registering multiple target groups with a service in the Amazon Elastic Container Service Developer Guide .
For services using the CODE_DEPLOY deployment controller, you're required to define two target groups for the load balancer. For more information, see Blue/green deployment with CodeDeploy in the Amazon Elastic Container Service Developer Guide .
If your service's task definition uses the
awsvpcnetwork mode, you must chooseipas the target type, notinstance. Do this when creating your target groups because tasks that use theawsvpcnetwork mode are associated with an elastic network interface, not an Amazon EC2 instance. This network mode is required for the Fargate launch type.
getTargetGroupArn in interface CfnTaskSet.LoadBalancerProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.