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

com.pulumi.azurenative.batch.BatchAccount 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.BatchAccountArgs;
import com.pulumi.azurenative.batch.outputs.AutoStoragePropertiesResponse;
import com.pulumi.azurenative.batch.outputs.BatchAccountIdentityResponse;
import com.pulumi.azurenative.batch.outputs.EncryptionPropertiesResponse;
import com.pulumi.azurenative.batch.outputs.KeyVaultReferenceResponse;
import com.pulumi.azurenative.batch.outputs.NetworkProfileResponse;
import com.pulumi.azurenative.batch.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.batch.outputs.VirtualMachineFamilyCoreQuotaResponse;
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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Contains information about an Azure Batch account.
 * Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2021-01-01.
 * 
 * Other available API versions: 2017-01-01, 2022-01-01, 2023-11-01, 2024-02-01, 2024-07-01.
 * 
 * ## Example Usage
 * ### BatchAccountCreate_BYOS
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.batch.BatchAccount;
 * import com.pulumi.azurenative.batch.BatchAccountArgs;
 * import com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs;
 * import com.pulumi.azurenative.batch.inputs.KeyVaultReferenceArgs;
 * 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 batchAccount = new BatchAccount("batchAccount", BatchAccountArgs.builder()
 *             .accountName("sampleacct")
 *             .autoStorage(AutoStorageBasePropertiesArgs.builder()
 *                 .storageAccountId("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage")
 *                 .build())
 *             .keyVaultReference(KeyVaultReferenceArgs.builder()
 *                 .id("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
 *                 .url("http://sample.vault.azure.net/")
 *                 .build())
 *             .location("japaneast")
 *             .poolAllocationMode("UserSubscription")
 *             .resourceGroupName("default-azurebatch-japaneast")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### BatchAccountCreate_Default * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.batch.BatchAccount;
 * import com.pulumi.azurenative.batch.BatchAccountArgs;
 * import com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs;
 * 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 batchAccount = new BatchAccount("batchAccount", BatchAccountArgs.builder()
 *             .accountName("sampleacct")
 *             .autoStorage(AutoStorageBasePropertiesArgs.builder()
 *                 .storageAccountId("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage")
 *                 .build())
 *             .location("japaneast")
 *             .resourceGroupName("default-azurebatch-japaneast")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### BatchAccountCreate_SystemAssignedIdentity * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.batch.BatchAccount;
 * import com.pulumi.azurenative.batch.BatchAccountArgs;
 * import com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs;
 * import com.pulumi.azurenative.batch.inputs.BatchAccountIdentityArgs;
 * 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 batchAccount = new BatchAccount("batchAccount", BatchAccountArgs.builder()
 *             .accountName("sampleacct")
 *             .autoStorage(AutoStorageBasePropertiesArgs.builder()
 *                 .storageAccountId("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage")
 *                 .build())
 *             .identity(BatchAccountIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .location("japaneast")
 *             .resourceGroupName("default-azurebatch-japaneast")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### PrivateBatchAccountCreate * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.batch.BatchAccount;
 * import com.pulumi.azurenative.batch.BatchAccountArgs;
 * import com.pulumi.azurenative.batch.inputs.AutoStorageBasePropertiesArgs;
 * import com.pulumi.azurenative.batch.inputs.KeyVaultReferenceArgs;
 * 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 batchAccount = new BatchAccount("batchAccount", BatchAccountArgs.builder()
 *             .accountName("sampleacct")
 *             .autoStorage(AutoStorageBasePropertiesArgs.builder()
 *                 .storageAccountId("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage")
 *                 .build())
 *             .keyVaultReference(KeyVaultReferenceArgs.builder()
 *                 .id("/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
 *                 .url("http://sample.vault.azure.net/")
 *                 .build())
 *             .location("japaneast")
 *             .publicNetworkAccess("Disabled")
 *             .resourceGroupName("default-azurebatch-japaneast")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:batch:BatchAccount sampleacct /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName} * ``` * */ @ResourceType(type="azure-native:batch:BatchAccount") public class BatchAccount extends com.pulumi.resources.CustomResource { /** * The account endpoint used to interact with the Batch service. * */ @Export(name="accountEndpoint", refs={String.class}, tree="[0]") private Output accountEndpoint; /** * @return The account endpoint used to interact with the Batch service. * */ public Output accountEndpoint() { return this.accountEndpoint; } @Export(name="activeJobAndJobScheduleQuota", refs={Integer.class}, tree="[0]") private Output activeJobAndJobScheduleQuota; public Output activeJobAndJobScheduleQuota() { return this.activeJobAndJobScheduleQuota; } /** * List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. * */ @Export(name="allowedAuthenticationModes", refs={List.class,String.class}, tree="[0,1]") private Output> allowedAuthenticationModes; /** * @return List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. * */ public Output> allowedAuthenticationModes() { return this.allowedAuthenticationModes; } /** * Contains information about the auto-storage account associated with a Batch account. * */ @Export(name="autoStorage", refs={AutoStoragePropertiesResponse.class}, tree="[0]") private Output autoStorage; /** * @return Contains information about the auto-storage account associated with a Batch account. * */ public Output autoStorage() { return this.autoStorage; } /** * For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. * */ @Export(name="dedicatedCoreQuota", refs={Integer.class}, tree="[0]") private Output dedicatedCoreQuota; /** * @return For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. * */ public Output dedicatedCoreQuota() { return this.dedicatedCoreQuota; } /** * A list of the dedicated core quota per Virtual Machine family for the Batch account. For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. * */ @Export(name="dedicatedCoreQuotaPerVMFamily", refs={List.class,VirtualMachineFamilyCoreQuotaResponse.class}, tree="[0,1]") private Output> dedicatedCoreQuotaPerVMFamily; /** * @return A list of the dedicated core quota per Virtual Machine family for the Batch account. For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. * */ public Output> dedicatedCoreQuotaPerVMFamily() { return this.dedicatedCoreQuotaPerVMFamily; } /** * If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual Machine family. * */ @Export(name="dedicatedCoreQuotaPerVMFamilyEnforced", refs={Boolean.class}, tree="[0]") private Output dedicatedCoreQuotaPerVMFamilyEnforced; /** * @return If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual Machine family. * */ public Output dedicatedCoreQuotaPerVMFamilyEnforced() { return this.dedicatedCoreQuotaPerVMFamilyEnforced; } /** * Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. * */ @Export(name="encryption", refs={EncryptionPropertiesResponse.class}, tree="[0]") private Output encryption; /** * @return Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. * */ public Output encryption() { return this.encryption; } /** * The identity of the Batch account. * */ @Export(name="identity", refs={BatchAccountIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The identity of the Batch account. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Identifies the Azure key vault associated with a Batch account. * */ @Export(name="keyVaultReference", refs={KeyVaultReferenceResponse.class}, tree="[0]") private Output keyVaultReference; /** * @return Identifies the Azure key vault associated with a Batch account. * */ public Output keyVaultReference() { return this.keyVaultReference; } /** * The location of the resource. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The location of the resource. * */ public Output location() { return this.location; } /** * For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. * */ @Export(name="lowPriorityCoreQuota", refs={Integer.class}, tree="[0]") private Output lowPriorityCoreQuota; /** * @return For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. * */ public Output lowPriorityCoreQuota() { return this.lowPriorityCoreQuota; } /** * 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 network profile only takes effect when publicNetworkAccess is enabled. * */ @Export(name="networkProfile", refs={NetworkProfileResponse.class}, tree="[0]") private Output networkProfile; /** * @return The network profile only takes effect when publicNetworkAccess is enabled. * */ public Output> networkProfile() { return Codegen.optional(this.networkProfile); } /** * The endpoint used by compute node to connect to the Batch node management service. * */ @Export(name="nodeManagementEndpoint", refs={String.class}, tree="[0]") private Output nodeManagementEndpoint; /** * @return The endpoint used by compute node to connect to the Batch node management service. * */ public Output nodeManagementEndpoint() { return this.nodeManagementEndpoint; } /** * The allocation mode for creating pools in the Batch account. * */ @Export(name="poolAllocationMode", refs={String.class}, tree="[0]") private Output poolAllocationMode; /** * @return The allocation mode for creating pools in the Batch account. * */ public Output poolAllocationMode() { return this.poolAllocationMode; } @Export(name="poolQuota", refs={Integer.class}, tree="[0]") private Output poolQuota; public Output poolQuota() { return this.poolQuota; } /** * List of private endpoint connections associated with the Batch account * */ @Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]") private Output> privateEndpointConnections; /** * @return List of private endpoint connections associated with the Batch account * */ public Output> privateEndpointConnections() { return this.privateEndpointConnections; } /** * The provisioned state of the resource * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioned state of the resource * */ public Output provisioningState() { return this.provisioningState; } /** * If not specified, the default value is 'enabled'. * */ @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]") private Output publicNetworkAccess; /** * @return If not specified, the default value is 'enabled'. * */ public Output> publicNetworkAccess() { return Codegen.optional(this.publicNetworkAccess); } /** * The tags of the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The tags of the resource. * */ public Output> tags() { return this.tags; } /** * 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 BatchAccount(java.lang.String name) { this(name, BatchAccountArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public BatchAccount(java.lang.String name, BatchAccountArgs 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 BatchAccount(java.lang.String name, BatchAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:batch:BatchAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private BatchAccount(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:batch:BatchAccount", name, null, makeResourceOptions(options, id), false); } private static BatchAccountArgs makeArgs(BatchAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? BatchAccountArgs.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:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20170101:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20170501:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20170901:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20181201:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20190401:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20190801:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20200301:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20200501:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20200901:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20210101:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20210601:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20220101:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20220601:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20221001:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20230501:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20231101:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20240201:BatchAccount").build()), Output.of(Alias.builder().type("azure-native:batch/v20240701:BatchAccount").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 BatchAccount get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new BatchAccount(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy