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

com.pulumi.azure.batch.BatchFunctions Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.batch;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.batch.inputs.GetAccountArgs;
import com.pulumi.azure.batch.inputs.GetAccountPlainArgs;
import com.pulumi.azure.batch.inputs.GetApplicationArgs;
import com.pulumi.azure.batch.inputs.GetApplicationPlainArgs;
import com.pulumi.azure.batch.inputs.GetCertificateArgs;
import com.pulumi.azure.batch.inputs.GetCertificatePlainArgs;
import com.pulumi.azure.batch.inputs.GetPoolArgs;
import com.pulumi.azure.batch.inputs.GetPoolPlainArgs;
import com.pulumi.azure.batch.outputs.GetAccountResult;
import com.pulumi.azure.batch.outputs.GetApplicationResult;
import com.pulumi.azure.batch.outputs.GetCertificateResult;
import com.pulumi.azure.batch.outputs.GetPoolResult;
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 BatchFunctions {
    /**
     * Use this data source to access information about an existing Batch Account.
     * 
     * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetAccountArgs;
     * 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 = BatchFunctions.getAccount(GetAccountArgs.builder()
     *             .name("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *         ctx.export("poolAllocationMode", example.applyValue(getAccountResult -> getAccountResult.poolAllocationMode()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAccount(GetAccountArgs args) { return getAccount(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetAccountArgs;
     * 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 = BatchFunctions.getAccount(GetAccountArgs.builder()
     *             .name("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *         ctx.export("poolAllocationMode", example.applyValue(getAccountResult -> getAccountResult.poolAllocationMode()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAccountPlain(GetAccountPlainArgs args) { return getAccountPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetAccountArgs;
     * 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 = BatchFunctions.getAccount(GetAccountArgs.builder()
     *             .name("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *         ctx.export("poolAllocationMode", example.applyValue(getAccountResult -> getAccountResult.poolAllocationMode()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAccount(GetAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:batch/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetAccountArgs;
     * 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 = BatchFunctions.getAccount(GetAccountArgs.builder()
     *             .name("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *         ctx.export("poolAllocationMode", example.applyValue(getAccountResult -> getAccountResult.poolAllocationMode()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAccountPlain(GetAccountPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:batch/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Batch Application instance. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetApplicationArgs;
     * 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 = BatchFunctions.getApplication(GetApplicationArgs.builder()
     *             .name("testapplication")
     *             .resourceGroupName("test")
     *             .accountName("testbatchaccount")
     *             .build());
     * 
     *         ctx.export("batchApplicationId", example.applyValue(getApplicationResult -> getApplicationResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getApplication(GetApplicationArgs args) { return getApplication(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Batch Application instance. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetApplicationArgs;
     * 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 = BatchFunctions.getApplication(GetApplicationArgs.builder()
     *             .name("testapplication")
     *             .resourceGroupName("test")
     *             .accountName("testbatchaccount")
     *             .build());
     * 
     *         ctx.export("batchApplicationId", example.applyValue(getApplicationResult -> getApplicationResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getApplicationPlain(GetApplicationPlainArgs args) { return getApplicationPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Batch Application instance. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetApplicationArgs;
     * 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 = BatchFunctions.getApplication(GetApplicationArgs.builder()
     *             .name("testapplication")
     *             .resourceGroupName("test")
     *             .accountName("testbatchaccount")
     *             .build());
     * 
     *         ctx.export("batchApplicationId", example.applyValue(getApplicationResult -> getApplicationResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getApplication(GetApplicationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:batch/getApplication:getApplication", TypeShape.of(GetApplicationResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Batch Application instance. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetApplicationArgs;
     * 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 = BatchFunctions.getApplication(GetApplicationArgs.builder()
     *             .name("testapplication")
     *             .resourceGroupName("test")
     *             .accountName("testbatchaccount")
     *             .build());
     * 
     *         ctx.export("batchApplicationId", example.applyValue(getApplicationResult -> getApplicationResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getApplicationPlain(GetApplicationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:batch/getApplication:getApplication", TypeShape.of(GetApplicationResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing certificate in a Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetCertificateArgs;
     * 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 = BatchFunctions.getCertificate(GetCertificateArgs.builder()
     *             .name("SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA")
     *             .accountName("examplebatchaccount")
     *             .resourceGroupName("example")
     *             .build());
     * 
     *         ctx.export("thumbprint", example.applyValue(getCertificateResult -> getCertificateResult.thumbprint()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getCertificate(GetCertificateArgs args) { return getCertificate(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing certificate in a Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetCertificateArgs;
     * 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 = BatchFunctions.getCertificate(GetCertificateArgs.builder()
     *             .name("SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA")
     *             .accountName("examplebatchaccount")
     *             .resourceGroupName("example")
     *             .build());
     * 
     *         ctx.export("thumbprint", example.applyValue(getCertificateResult -> getCertificateResult.thumbprint()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args) { return getCertificatePlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing certificate in a Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetCertificateArgs;
     * 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 = BatchFunctions.getCertificate(GetCertificateArgs.builder()
     *             .name("SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA")
     *             .accountName("examplebatchaccount")
     *             .resourceGroupName("example")
     *             .build());
     * 
     *         ctx.export("thumbprint", example.applyValue(getCertificateResult -> getCertificateResult.thumbprint()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getCertificate(GetCertificateArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:batch/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing certificate in a Batch Account. * * ## 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetCertificateArgs;
     * 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 = BatchFunctions.getCertificate(GetCertificateArgs.builder()
     *             .name("SHA1-42C107874FD0E4A9583292A2F1098E8FE4B2EDDA")
     *             .accountName("examplebatchaccount")
     *             .resourceGroupName("example")
     *             .build());
     * 
     *         ctx.export("thumbprint", example.applyValue(getCertificateResult -> getCertificateResult.thumbprint()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:batch/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Batch 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetPoolArgs;
     * 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 = BatchFunctions.getPool(GetPoolArgs.builder()
     *             .name("testbatchpool")
     *             .accountName("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPool(GetPoolArgs args) { return getPool(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Batch 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetPoolArgs;
     * 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 = BatchFunctions.getPool(GetPoolArgs.builder()
     *             .name("testbatchpool")
     *             .accountName("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPoolPlain(GetPoolPlainArgs args) { return getPoolPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Batch 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetPoolArgs;
     * 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 = BatchFunctions.getPool(GetPoolArgs.builder()
     *             .name("testbatchpool")
     *             .accountName("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPool(GetPoolArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:batch/getPool:getPool", TypeShape.of(GetPoolResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Batch 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.batch.BatchFunctions;
     * import com.pulumi.azure.batch.inputs.GetPoolArgs;
     * 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 = BatchFunctions.getPool(GetPoolArgs.builder()
     *             .name("testbatchpool")
     *             .accountName("testbatchaccount")
     *             .resourceGroupName("test")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPoolPlain(GetPoolPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:batch/getPool:getPool", TypeShape.of(GetPoolResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy