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

com.pulumi.azurenative.batch.ApplicationPackage Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.batch;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.batch.ApplicationPackageArgs;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * An application package which represents a particular version of an application.
 * Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2021-01-01.
 * 
 * Other available API versions: 2017-09-01, 2023-11-01, 2024-02-01, 2024-07-01.
 * 
 * ## Example Usage
 * ### ApplicationPackageCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.batch.ApplicationPackage;
 * import com.pulumi.azurenative.batch.ApplicationPackageArgs;
 * 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) {
 *         var applicationPackage = new ApplicationPackage("applicationPackage", ApplicationPackageArgs.builder()
 *             .accountName("sampleacct")
 *             .applicationName("app1")
 *             .resourceGroupName("default-azurebatch-japaneast")
 *             .versionName("1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:batch:ApplicationPackage 1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName} * ``` * */ @ResourceType(type="azure-native:batch:ApplicationPackage") public class ApplicationPackage extends com.pulumi.resources.CustomResource { /** * The ETag of the resource, used for concurrency statements. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The ETag of the resource, used for concurrency statements. * */ public Output etag() { return this.etag; } /** * The format of the application package, if the package is active. * */ @Export(name="format", refs={String.class}, tree="[0]") private Output format; /** * @return The format of the application package, if the package is active. * */ public Output format() { return this.format; } /** * The time at which the package was last activated, if the package is active. * */ @Export(name="lastActivationTime", refs={String.class}, tree="[0]") private Output lastActivationTime; /** * @return The time at which the package was last activated, if the package is active. * */ public Output lastActivationTime() { return this.lastActivationTime; } /** * The name of the resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource. * */ public Output name() { return this.name; } /** * The current state of the application package. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return The current state of the application package. * */ public Output state() { return this.state; } /** * The URL for the application package in Azure Storage. * */ @Export(name="storageUrl", refs={String.class}, tree="[0]") private Output storageUrl; /** * @return The URL for the application package in Azure Storage. * */ public Output storageUrl() { return this.storageUrl; } /** * The UTC time at which the Azure Storage URL will expire. * */ @Export(name="storageUrlExpiry", refs={String.class}, tree="[0]") private Output storageUrlExpiry; /** * @return The UTC time at which the Azure Storage URL will expire. * */ public Output storageUrlExpiry() { return this.storageUrlExpiry; } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ApplicationPackage(java.lang.String name) { this(name, ApplicationPackageArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ApplicationPackage(java.lang.String name, ApplicationPackageArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public ApplicationPackage(java.lang.String name, ApplicationPackageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:batch:ApplicationPackage", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ApplicationPackage(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:batch:ApplicationPackage", name, null, makeResourceOptions(options, id), false); } private static ApplicationPackageArgs makeArgs(ApplicationPackageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ApplicationPackageArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:batch/v20151201:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20170101:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20170501:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20170901:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20181201:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20190401:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20190801:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20200301:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20200501:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20200901:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20210101:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20210601:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20220101:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20220601:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20221001:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20230501:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20231101:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20240201:ApplicationPackage").build()), Output.of(Alias.builder().type("azure-native:batch/v20240701:ApplicationPackage").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static ApplicationPackage get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ApplicationPackage(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy