get Load Balancer
Deprecated
aws.elasticloadbalancingv2.getLoadBalancer has been deprecated in favor of aws.lb.getLoadBalancer
Note:
aws.alb.LoadBalancer
is known asaws.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
A collection of arguments for invoking getLoadBalancer.
Deprecated
aws.elasticloadbalancingv2.getLoadBalancer has been deprecated in favor of aws.lb.getLoadBalancer
Return
A collection of values returned by getLoadBalancer.
See also
Parameters
Full ARN of the load balancer.
Unique name of the load balancer.
Mapping of tags, each pair of which must exactly match a pair on the desired load balancer.
NOTE: When both
arn
andname
are specified,arn
takes precedence.tags
has lowest precedence.
Deprecated
aws.elasticloadbalancingv2.getLoadBalancer has been deprecated in favor of aws.lb.getLoadBalancer
Return
A collection of values returned by getLoadBalancer.
See also
Parameters
Builder for com.pulumi.aws.elasticloadbalancingv2.kotlin.inputs.GetLoadBalancerPlainArgs.