All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.lb.LbFunctions Maven / Gradle / Ivy

// *** 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.azure.lb;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
import com.pulumi.azure.lb.inputs.GetBackendAddressPoolPlainArgs;
import com.pulumi.azure.lb.inputs.GetLBArgs;
import com.pulumi.azure.lb.inputs.GetLBOutboundRuleArgs;
import com.pulumi.azure.lb.inputs.GetLBOutboundRulePlainArgs;
import com.pulumi.azure.lb.inputs.GetLBPlainArgs;
import com.pulumi.azure.lb.inputs.GetLBRuleArgs;
import com.pulumi.azure.lb.inputs.GetLBRulePlainArgs;
import com.pulumi.azure.lb.outputs.GetBackendAddressPoolResult;
import com.pulumi.azure.lb.outputs.GetLBOutboundRuleResult;
import com.pulumi.azure.lb.outputs.GetLBResult;
import com.pulumi.azure.lb.outputs.GetLBRuleResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;

public final class LbFunctions {
    /**
     * Use this data source to access information about an existing Load Balancer's Backend Address Pool.
     * 
     * ## Example Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
     *             .name("first")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("backendAddressPoolId", exampleGetBackendAddressPool.applyValue(getBackendAddressPoolResult -> getBackendAddressPoolResult.id()));
     *         ctx.export("backendIpConfigurationIds", beap.backendIpConfigurations().stream().map(element -> element.id()).collect(toList()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getBackendAddressPool(GetBackendAddressPoolArgs args) { return getBackendAddressPool(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer's Backend Address Pool. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
     *             .name("first")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("backendAddressPoolId", exampleGetBackendAddressPool.applyValue(getBackendAddressPoolResult -> getBackendAddressPoolResult.id()));
     *         ctx.export("backendIpConfigurationIds", beap.backendIpConfigurations().stream().map(element -> element.id()).collect(toList()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getBackendAddressPoolPlain(GetBackendAddressPoolPlainArgs args) { return getBackendAddressPoolPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer's Backend Address Pool. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
     *             .name("first")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("backendAddressPoolId", exampleGetBackendAddressPool.applyValue(getBackendAddressPoolResult -> getBackendAddressPoolResult.id()));
     *         ctx.export("backendIpConfigurationIds", beap.backendIpConfigurations().stream().map(element -> element.id()).collect(toList()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getBackendAddressPool(GetBackendAddressPoolArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:lb/getBackendAddressPool:getBackendAddressPool", TypeShape.of(GetBackendAddressPoolResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer's Backend Address Pool. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
     *             .name("first")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("backendAddressPoolId", exampleGetBackendAddressPool.applyValue(getBackendAddressPoolResult -> getBackendAddressPoolResult.id()));
     *         ctx.export("backendIpConfigurationIds", beap.backendIpConfigurations().stream().map(element -> element.id()).collect(toList()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getBackendAddressPoolPlain(GetBackendAddressPoolPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:lb/getBackendAddressPool:getBackendAddressPool", TypeShape.of(GetBackendAddressPoolResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         ctx.export("loadbalancerId", example.applyValue(getLBResult -> getLBResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getLB(GetLBArgs args) { return getLB(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         ctx.export("loadbalancerId", example.applyValue(getLBResult -> getLBResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLBPlain(GetLBPlainArgs args) { return getLBPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         ctx.export("loadbalancerId", example.applyValue(getLBResult -> getLBResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getLB(GetLBArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:lb/getLB:getLB", TypeShape.of(GetLBResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         ctx.export("loadbalancerId", example.applyValue(getLBResult -> getLBResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLBPlain(GetLBPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:lb/getLB:getLB", TypeShape.of(GetLBResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer Outbound Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBOutboundRuleArgs;
     * 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 example = LbFunctions.getLBOutboundRule(GetLBOutboundRuleArgs.builder()
     *             .name("existing_lb_outbound_rule")
     *             .loadbalancerId("existing_load_balancer_id")
     *             .build());
     * 
     *         ctx.export("id", example.applyValue(getLBOutboundRuleResult -> getLBOutboundRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getLBOutboundRule(GetLBOutboundRuleArgs args) { return getLBOutboundRule(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer Outbound Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBOutboundRuleArgs;
     * 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 example = LbFunctions.getLBOutboundRule(GetLBOutboundRuleArgs.builder()
     *             .name("existing_lb_outbound_rule")
     *             .loadbalancerId("existing_load_balancer_id")
     *             .build());
     * 
     *         ctx.export("id", example.applyValue(getLBOutboundRuleResult -> getLBOutboundRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLBOutboundRulePlain(GetLBOutboundRulePlainArgs args) { return getLBOutboundRulePlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer Outbound Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBOutboundRuleArgs;
     * 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 example = LbFunctions.getLBOutboundRule(GetLBOutboundRuleArgs.builder()
     *             .name("existing_lb_outbound_rule")
     *             .loadbalancerId("existing_load_balancer_id")
     *             .build());
     * 
     *         ctx.export("id", example.applyValue(getLBOutboundRuleResult -> getLBOutboundRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getLBOutboundRule(GetLBOutboundRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:lb/getLBOutboundRule:getLBOutboundRule", TypeShape.of(GetLBOutboundRuleResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer Outbound Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBOutboundRuleArgs;
     * 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 example = LbFunctions.getLBOutboundRule(GetLBOutboundRuleArgs.builder()
     *             .name("existing_lb_outbound_rule")
     *             .loadbalancerId("existing_load_balancer_id")
     *             .build());
     * 
     *         ctx.export("id", example.applyValue(getLBOutboundRuleResult -> getLBOutboundRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLBOutboundRulePlain(GetLBOutboundRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:lb/getLBOutboundRule:getLBOutboundRule", TypeShape.of(GetLBOutboundRuleResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetLBRuleArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetLBRule = LbFunctions.getLBRule(GetLBRuleArgs.builder()
     *             .name("first")
     *             .resourceGroupName("example-resources")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("lbRuleId", exampleGetLBRule.applyValue(getLBRuleResult -> getLBRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getLBRule(GetLBRuleArgs args) { return getLBRule(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetLBRuleArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetLBRule = LbFunctions.getLBRule(GetLBRuleArgs.builder()
     *             .name("first")
     *             .resourceGroupName("example-resources")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("lbRuleId", exampleGetLBRule.applyValue(getLBRuleResult -> getLBRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLBRulePlain(GetLBRulePlainArgs args) { return getLBRulePlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Load Balancer Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetLBRuleArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetLBRule = LbFunctions.getLBRule(GetLBRuleArgs.builder()
     *             .name("first")
     *             .resourceGroupName("example-resources")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("lbRuleId", exampleGetLBRule.applyValue(getLBRuleResult -> getLBRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getLBRule(GetLBRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:lb/getLBRule:getLBRule", TypeShape.of(GetLBRuleResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Load Balancer Rule. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.lb.LbFunctions;
     * import com.pulumi.azure.lb.inputs.GetLBArgs;
     * import com.pulumi.azure.lb.inputs.GetLBRuleArgs;
     * 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 example = LbFunctions.getLB(GetLBArgs.builder()
     *             .name("example-lb")
     *             .resourceGroupName("example-resources")
     *             .build());
     * 
     *         final var exampleGetLBRule = LbFunctions.getLBRule(GetLBRuleArgs.builder()
     *             .name("first")
     *             .resourceGroupName("example-resources")
     *             .loadbalancerId(example.applyValue(getLBResult -> getLBResult.id()))
     *             .build());
     * 
     *         ctx.export("lbRuleId", exampleGetLBRule.applyValue(getLBRuleResult -> getLBRuleResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLBRulePlain(GetLBRulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:lb/getLBRule:getLBRule", TypeShape.of(GetLBRuleResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy