getLoadBalancer

Deprecated

aws.elasticloadbalancingv2.getLoadBalancer has been deprecated in favor of aws.lb.getLoadBalancer

Note: aws.alb.LoadBalancer is known as aws.lb.LoadBalancer. The functionality is identical. Provides information about a Load Balancer. This data source can prove useful when a module accepts an LB as an input variable and needs to, for example, determine the security groups associated with it, etc.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lb.LbFunctions;
import com.pulumi.aws.lb.inputs.GetLoadBalancerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var lbArn = config.get("lbArn").orElse("");
final var lbName = config.get("lbName").orElse("");
final var test = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()
.arn(lbArn)
.name(lbName)
.build());
}
}

Return

A collection of values returned by getLoadBalancer.

Parameters

argument

A collection of arguments for invoking getLoadBalancer.


suspend fun getLoadBalancer(arn: String? = null, name: String? = null, tags: Map<String, String>? = null): GetLoadBalancerResult

Deprecated

aws.elasticloadbalancingv2.getLoadBalancer has been deprecated in favor of aws.lb.getLoadBalancer

Return

A collection of values returned by getLoadBalancer.

Parameters

arn

Full ARN of the load balancer.

name

Unique name of the load balancer.

tags

Mapping of tags, each pair of which must exactly match a pair on the desired load balancer.

NOTE: When both arn and name are specified, arn takes precedence. tags has lowest precedence.

See also


Deprecated

aws.elasticloadbalancingv2.getLoadBalancer has been deprecated in favor of aws.lb.getLoadBalancer

Return

A collection of values returned by getLoadBalancer.

Parameters

argument

Builder for com.pulumi.aws.elasticloadbalancingv2.kotlin.inputs.GetLoadBalancerPlainArgs.

See also