com.pulumi.azure.avs.AvsFunctions 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.avs;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.avs.inputs.GetPrivateCloudArgs;
import com.pulumi.azure.avs.inputs.GetPrivateCloudPlainArgs;
import com.pulumi.azure.avs.outputs.GetPrivateCloudResult;
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 AvsFunctions {
/**
* Use this data source to access information about an existing Azure VMware Solution Private Cloud.
*
* ## Example Usage
*
* > **NOTE :** Normal `pulumi up` could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations like `update` or `delete` could not be triggered when it shares the same `correlation-id` with its previous operation.
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.avs.AvsFunctions;
* import com.pulumi.azure.avs.inputs.GetPrivateCloudArgs;
* 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 = AvsFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
* .name("existing-vmware-private-cloud")
* .resourceGroupName("existing-resgroup")
* .build());
*
* ctx.export("id", example.applyValue(getPrivateCloudResult -> getPrivateCloudResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateCloud(GetPrivateCloudArgs args) {
return getPrivateCloud(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Azure VMware Solution Private Cloud.
*
* ## Example Usage
*
* > **NOTE :** Normal `pulumi up` could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations like `update` or `delete` could not be triggered when it shares the same `correlation-id` with its previous operation.
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.avs.AvsFunctions;
* import com.pulumi.azure.avs.inputs.GetPrivateCloudArgs;
* 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 = AvsFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
* .name("existing-vmware-private-cloud")
* .resourceGroupName("existing-resgroup")
* .build());
*
* ctx.export("id", example.applyValue(getPrivateCloudResult -> getPrivateCloudResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateCloudPlain(GetPrivateCloudPlainArgs args) {
return getPrivateCloudPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Azure VMware Solution Private Cloud.
*
* ## Example Usage
*
* > **NOTE :** Normal `pulumi up` could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations like `update` or `delete` could not be triggered when it shares the same `correlation-id` with its previous operation.
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.avs.AvsFunctions;
* import com.pulumi.azure.avs.inputs.GetPrivateCloudArgs;
* 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 = AvsFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
* .name("existing-vmware-private-cloud")
* .resourceGroupName("existing-resgroup")
* .build());
*
* ctx.export("id", example.applyValue(getPrivateCloudResult -> getPrivateCloudResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateCloud(GetPrivateCloudArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:avs/getPrivateCloud:getPrivateCloud", TypeShape.of(GetPrivateCloudResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Azure VMware Solution Private Cloud.
*
* ## Example Usage
*
* > **NOTE :** Normal `pulumi up` could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations like `update` or `delete` could not be triggered when it shares the same `correlation-id` with its previous operation.
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.avs.AvsFunctions;
* import com.pulumi.azure.avs.inputs.GetPrivateCloudArgs;
* 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 = AvsFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
* .name("existing-vmware-private-cloud")
* .resourceGroupName("existing-resgroup")
* .build());
*
* ctx.export("id", example.applyValue(getPrivateCloudResult -> getPrivateCloudResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateCloudPlain(GetPrivateCloudPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:avs/getPrivateCloud:getPrivateCloud", TypeShape.of(GetPrivateCloudResult.class), args, Utilities.withVersion(options));
}
}