Class Elasticloadbalancingv2Functions


  • public final class Elasticloadbalancingv2Functions
    extends java.lang.Object
    • Constructor Detail

      • Elasticloadbalancingv2Functions

        public Elasticloadbalancingv2Functions()
    • Method Detail

      • getListener

        @Deprecated
        public static com.pulumi.core.Output<GetListenerResult> getListener()
        Deprecated.
        aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener
        > **Note:** `aws.alb.Listener` is known as `aws.lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question. ## Example Usage ```java 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.alb.inputs.GetListenerArgs; import com.pulumi.aws.alb.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 listenerArn = config.get("listenerArn"); final var listener = LbFunctions.getListener(GetListenerArgs.builder() .arn(listenerArn) .build()); final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() .name("default-public") .build()); final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) .port(443) .build()); } } ```
      • getListenerPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetListenerResult> getListenerPlain()
        Deprecated.
        aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener
        > **Note:** `aws.alb.Listener` is known as `aws.lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question. ## Example Usage ```java 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.alb.inputs.GetListenerArgs; import com.pulumi.aws.alb.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 listenerArn = config.get("listenerArn"); final var listener = LbFunctions.getListener(GetListenerArgs.builder() .arn(listenerArn) .build()); final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() .name("default-public") .build()); final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) .port(443) .build()); } } ```
      • getListener

        @Deprecated
        public static com.pulumi.core.Output<GetListenerResult> getListener​(GetListenerArgs args)
        Deprecated.
        aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener
        > **Note:** `aws.alb.Listener` is known as `aws.lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question. ## Example Usage ```java 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.alb.inputs.GetListenerArgs; import com.pulumi.aws.alb.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 listenerArn = config.get("listenerArn"); final var listener = LbFunctions.getListener(GetListenerArgs.builder() .arn(listenerArn) .build()); final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() .name("default-public") .build()); final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) .port(443) .build()); } } ```
      • getListenerPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetListenerResult> getListenerPlain​(GetListenerPlainArgs args)
        Deprecated.
        aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener
        > **Note:** `aws.alb.Listener` is known as `aws.lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question. ## Example Usage ```java 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.alb.inputs.GetListenerArgs; import com.pulumi.aws.alb.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 listenerArn = config.get("listenerArn"); final var listener = LbFunctions.getListener(GetListenerArgs.builder() .arn(listenerArn) .build()); final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() .name("default-public") .build()); final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) .port(443) .build()); } } ```
      • getListener

        @Deprecated
        public static com.pulumi.core.Output<GetListenerResult> getListener​(GetListenerArgs args,
                                                                            com.pulumi.deployment.InvokeOptions options)
        Deprecated.
        aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener
        > **Note:** `aws.alb.Listener` is known as `aws.lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question. ## Example Usage ```java 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.alb.inputs.GetListenerArgs; import com.pulumi.aws.alb.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 listenerArn = config.get("listenerArn"); final var listener = LbFunctions.getListener(GetListenerArgs.builder() .arn(listenerArn) .build()); final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() .name("default-public") .build()); final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) .port(443) .build()); } } ```
      • getListenerPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetListenerResult> getListenerPlain​(GetListenerPlainArgs args,
                                                                                                 com.pulumi.deployment.InvokeOptions options)
        Deprecated.
        aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener
        > **Note:** `aws.alb.Listener` is known as `aws.lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question. ## Example Usage ```java 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.alb.inputs.GetListenerArgs; import com.pulumi.aws.alb.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 listenerArn = config.get("listenerArn"); final var listener = LbFunctions.getListener(GetListenerArgs.builder() .arn(listenerArn) .build()); final var selected = LbFunctions.getLoadBalancer(GetLoadBalancerArgs.builder() .name("default-public") .build()); final var selected443 = LbFunctions.getListener(GetListenerArgs.builder() .loadBalancerArn(selected.applyValue(getLoadBalancerResult -> getLoadBalancerResult.arn())) .port(443) .build()); } } ```
      • getLoadBalancer

        @Deprecated
        public static com.pulumi.core.Output<GetLoadBalancerResult> 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 ```java 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.alb.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()); } } ```
      • getLoadBalancerPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetLoadBalancerResult> getLoadBalancerPlain()
        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 ```java 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.alb.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()); } } ```
      • getLoadBalancer

        @Deprecated
        public static com.pulumi.core.Output<GetLoadBalancerResult> getLoadBalancer​(GetLoadBalancerArgs args)
        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 ```java 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.alb.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()); } } ```
      • getLoadBalancerPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetLoadBalancerResult> getLoadBalancerPlain​(GetLoadBalancerPlainArgs args)
        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 ```java 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.alb.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()); } } ```
      • getLoadBalancer

        @Deprecated
        public static com.pulumi.core.Output<GetLoadBalancerResult> getLoadBalancer​(GetLoadBalancerArgs args,
                                                                                    com.pulumi.deployment.InvokeOptions options)
        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 ```java 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.alb.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()); } } ```
      • getLoadBalancerPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetLoadBalancerResult> getLoadBalancerPlain​(GetLoadBalancerPlainArgs args,
                                                                                                         com.pulumi.deployment.InvokeOptions options)
        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 ```java 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.alb.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()); } } ```
      • getTargetGroup

        @Deprecated
        public static com.pulumi.core.Output<GetTargetGroupResult> getTargetGroup()
        Deprecated.
        aws.elasticloadbalancingv2.getTargetGroup has been deprecated in favor of aws.lb.getTargetGroup
        > **Note:** `aws.alb.TargetGroup` is known as `aws.lb.TargetGroup`. The functionality is identical. Provides information about a Load Balancer Target Group. This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name. ## Example Usage ```java 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.alb.inputs.GetTargetGroupArgs; 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 lbTgArn = config.get("lbTgArn").orElse(""); final var lbTgName = config.get("lbTgName").orElse(""); final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() .arn(lbTgArn) .name(lbTgName) .build()); } } ```
      • getTargetGroupPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetTargetGroupResult> getTargetGroupPlain()
        Deprecated.
        aws.elasticloadbalancingv2.getTargetGroup has been deprecated in favor of aws.lb.getTargetGroup
        > **Note:** `aws.alb.TargetGroup` is known as `aws.lb.TargetGroup`. The functionality is identical. Provides information about a Load Balancer Target Group. This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name. ## Example Usage ```java 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.alb.inputs.GetTargetGroupArgs; 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 lbTgArn = config.get("lbTgArn").orElse(""); final var lbTgName = config.get("lbTgName").orElse(""); final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() .arn(lbTgArn) .name(lbTgName) .build()); } } ```
      • getTargetGroup

        @Deprecated
        public static com.pulumi.core.Output<GetTargetGroupResult> getTargetGroup​(GetTargetGroupArgs args)
        Deprecated.
        aws.elasticloadbalancingv2.getTargetGroup has been deprecated in favor of aws.lb.getTargetGroup
        > **Note:** `aws.alb.TargetGroup` is known as `aws.lb.TargetGroup`. The functionality is identical. Provides information about a Load Balancer Target Group. This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name. ## Example Usage ```java 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.alb.inputs.GetTargetGroupArgs; 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 lbTgArn = config.get("lbTgArn").orElse(""); final var lbTgName = config.get("lbTgName").orElse(""); final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() .arn(lbTgArn) .name(lbTgName) .build()); } } ```
      • getTargetGroupPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetTargetGroupResult> getTargetGroupPlain​(GetTargetGroupPlainArgs args)
        Deprecated.
        aws.elasticloadbalancingv2.getTargetGroup has been deprecated in favor of aws.lb.getTargetGroup
        > **Note:** `aws.alb.TargetGroup` is known as `aws.lb.TargetGroup`. The functionality is identical. Provides information about a Load Balancer Target Group. This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name. ## Example Usage ```java 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.alb.inputs.GetTargetGroupArgs; 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 lbTgArn = config.get("lbTgArn").orElse(""); final var lbTgName = config.get("lbTgName").orElse(""); final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() .arn(lbTgArn) .name(lbTgName) .build()); } } ```
      • getTargetGroup

        @Deprecated
        public static com.pulumi.core.Output<GetTargetGroupResult> getTargetGroup​(GetTargetGroupArgs args,
                                                                                  com.pulumi.deployment.InvokeOptions options)
        Deprecated.
        aws.elasticloadbalancingv2.getTargetGroup has been deprecated in favor of aws.lb.getTargetGroup
        > **Note:** `aws.alb.TargetGroup` is known as `aws.lb.TargetGroup`. The functionality is identical. Provides information about a Load Balancer Target Group. This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name. ## Example Usage ```java 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.alb.inputs.GetTargetGroupArgs; 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 lbTgArn = config.get("lbTgArn").orElse(""); final var lbTgName = config.get("lbTgName").orElse(""); final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() .arn(lbTgArn) .name(lbTgName) .build()); } } ```
      • getTargetGroupPlain

        @Deprecated
        public static java.util.concurrent.CompletableFuture<GetTargetGroupResult> getTargetGroupPlain​(GetTargetGroupPlainArgs args,
                                                                                                       com.pulumi.deployment.InvokeOptions options)
        Deprecated.
        aws.elasticloadbalancingv2.getTargetGroup has been deprecated in favor of aws.lb.getTargetGroup
        > **Note:** `aws.alb.TargetGroup` is known as `aws.lb.TargetGroup`. The functionality is identical. Provides information about a Load Balancer Target Group. This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name. ## Example Usage ```java 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.alb.inputs.GetTargetGroupArgs; 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 lbTgArn = config.get("lbTgArn").orElse(""); final var lbTgName = config.get("lbTgName").orElse(""); final var test = LbFunctions.getTargetGroup(GetTargetGroupArgs.builder() .arn(lbTgArn) .name(lbTgName) .build()); } } ```