
com.pulumi.azurenative.awsconnector.outputs.LoadBalancerResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.awsconnector.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LoadBalancerResponse {
/**
* @return The name of the container (as it appears in a container definition) to associate with the load balancer. You need to specify the container name when configuring the target group for an Amazon ECS load balancer.
*
*/
private @Nullable String containerName;
/**
* @return The port on the container to associate with the load balancer. 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.
*
*/
private @Nullable Integer containerPort;
/**
* @return The name of the load balancer to associate with the Amazon ECS service or task set. If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be omitted.
*
*/
private @Nullable String loadBalancerName;
/**
* @return The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set. A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer. 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html) in the *Amazon Elastic Container Service Developer Guide*. If your service's task definition uses the ``awsvpc`` network mode, you must choose ``ip`` as the target type, not ``instance``. Do this when creating your target groups because tasks that use the ``awsvpc`` network mode are associated with an elastic network interface, not an Amazon EC2 instance. This network mode is required for the Fargate launch type.
*
*/
private @Nullable String targetGroupArn;
private LoadBalancerResponse() {}
/**
* @return The name of the container (as it appears in a container definition) to associate with the load balancer. You need to specify the container name when configuring the target group for an Amazon ECS load balancer.
*
*/
public Optional containerName() {
return Optional.ofNullable(this.containerName);
}
/**
* @return The port on the container to associate with the load balancer. 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.
*
*/
public Optional containerPort() {
return Optional.ofNullable(this.containerPort);
}
/**
* @return The name of the load balancer to associate with the Amazon ECS service or task set. If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be omitted.
*
*/
public Optional loadBalancerName() {
return Optional.ofNullable(this.loadBalancerName);
}
/**
* @return The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set. A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer. 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html) in the *Amazon Elastic Container Service Developer Guide*. If your service's task definition uses the ``awsvpc`` network mode, you must choose ``ip`` as the target type, not ``instance``. Do this when creating your target groups because tasks that use the ``awsvpc`` network mode are associated with an elastic network interface, not an Amazon EC2 instance. This network mode is required for the Fargate launch type.
*
*/
public Optional targetGroupArn() {
return Optional.ofNullable(this.targetGroupArn);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LoadBalancerResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String containerName;
private @Nullable Integer containerPort;
private @Nullable String loadBalancerName;
private @Nullable String targetGroupArn;
public Builder() {}
public Builder(LoadBalancerResponse defaults) {
Objects.requireNonNull(defaults);
this.containerName = defaults.containerName;
this.containerPort = defaults.containerPort;
this.loadBalancerName = defaults.loadBalancerName;
this.targetGroupArn = defaults.targetGroupArn;
}
@CustomType.Setter
public Builder containerName(@Nullable String containerName) {
this.containerName = containerName;
return this;
}
@CustomType.Setter
public Builder containerPort(@Nullable Integer containerPort) {
this.containerPort = containerPort;
return this;
}
@CustomType.Setter
public Builder loadBalancerName(@Nullable String loadBalancerName) {
this.loadBalancerName = loadBalancerName;
return this;
}
@CustomType.Setter
public Builder targetGroupArn(@Nullable String targetGroupArn) {
this.targetGroupArn = targetGroupArn;
return this;
}
public LoadBalancerResponse build() {
final var _resultValue = new LoadBalancerResponse();
_resultValue.containerName = containerName;
_resultValue.containerPort = containerPort;
_resultValue.loadBalancerName = loadBalancerName;
_resultValue.targetGroupArn = targetGroupArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy