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

com.pulumi.azurenative.datalakestore.Account 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.datalakestore;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.datalakestore.AccountArgs;
import com.pulumi.azurenative.datalakestore.outputs.EncryptionConfigResponse;
import com.pulumi.azurenative.datalakestore.outputs.EncryptionIdentityResponse;
import com.pulumi.azurenative.datalakestore.outputs.FirewallRuleResponse;
import com.pulumi.azurenative.datalakestore.outputs.TrustedIdProviderResponse;
import com.pulumi.azurenative.datalakestore.outputs.VirtualNetworkRuleResponse;
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 java.util.Map;
import javax.annotation.Nullable;

/**
 * Data Lake Store account information.
 * Azure REST API version: 2016-11-01. Prior API version in Azure Native 1.x: 2016-11-01.
 * 
 * ## Example Usage
 * ### Creates the specified Data Lake Store account
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datalakestore.Account;
 * import com.pulumi.azurenative.datalakestore.AccountArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.EncryptionConfigArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.KeyVaultMetaInfoArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.CreateFirewallRuleWithAccountParametersArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.EncryptionIdentityArgs;
 * import com.pulumi.azurenative.datalakestore.inputs.CreateTrustedIdProviderWithAccountParametersArgs;
 * 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 account = new Account("account", AccountArgs.builder()
 *             .accountName("contosoadla")
 *             .defaultGroup("test_default_group")
 *             .encryptionConfig(EncryptionConfigArgs.builder()
 *                 .keyVaultMetaInfo(KeyVaultMetaInfoArgs.builder()
 *                     .encryptionKeyName("test_encryption_key_name")
 *                     .encryptionKeyVersion("encryption_key_version")
 *                     .keyVaultResourceId("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")
 *                     .build())
 *                 .type("UserManaged")
 *                 .build())
 *             .encryptionState("Enabled")
 *             .firewallAllowAzureIps("Enabled")
 *             .firewallRules(CreateFirewallRuleWithAccountParametersArgs.builder()
 *                 .endIpAddress("2.2.2.2")
 *                 .name("test_rule")
 *                 .startIpAddress("1.1.1.1")
 *                 .build())
 *             .firewallState("Enabled")
 *             .identity(EncryptionIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .location("eastus2")
 *             .newTier("Consumption")
 *             .resourceGroupName("contosorg")
 *             .tags(Map.of("test_key", "test_value"))
 *             .trustedIdProviderState("Enabled")
 *             .trustedIdProviders(CreateTrustedIdProviderWithAccountParametersArgs.builder()
 *                 .idProvider("https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1")
 *                 .name("test_trusted_id_provider_name")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:datalakestore:Account contosoadla /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName} * ``` * */ @ResourceType(type="azure-native:datalakestore:Account") public class Account extends com.pulumi.resources.CustomResource { /** * The unique identifier associated with this Data Lake Store account. * */ @Export(name="accountId", refs={String.class}, tree="[0]") private Output accountId; /** * @return The unique identifier associated with this Data Lake Store account. * */ public Output accountId() { return this.accountId; } /** * The account creation time. * */ @Export(name="creationTime", refs={String.class}, tree="[0]") private Output creationTime; /** * @return The account creation time. * */ public Output creationTime() { return this.creationTime; } /** * The commitment tier in use for the current month. * */ @Export(name="currentTier", refs={String.class}, tree="[0]") private Output currentTier; /** * @return The commitment tier in use for the current month. * */ public Output currentTier() { return this.currentTier; } /** * The default owner group for all new folders and files created in the Data Lake Store account. * */ @Export(name="defaultGroup", refs={String.class}, tree="[0]") private Output defaultGroup; /** * @return The default owner group for all new folders and files created in the Data Lake Store account. * */ public Output defaultGroup() { return this.defaultGroup; } /** * The Key Vault encryption configuration. * */ @Export(name="encryptionConfig", refs={EncryptionConfigResponse.class}, tree="[0]") private Output encryptionConfig; /** * @return The Key Vault encryption configuration. * */ public Output encryptionConfig() { return this.encryptionConfig; } /** * The current state of encryption provisioning for this Data Lake Store account. * */ @Export(name="encryptionProvisioningState", refs={String.class}, tree="[0]") private Output encryptionProvisioningState; /** * @return The current state of encryption provisioning for this Data Lake Store account. * */ public Output encryptionProvisioningState() { return this.encryptionProvisioningState; } /** * The current state of encryption for this Data Lake Store account. * */ @Export(name="encryptionState", refs={String.class}, tree="[0]") private Output encryptionState; /** * @return The current state of encryption for this Data Lake Store account. * */ public Output encryptionState() { return this.encryptionState; } /** * The full CName endpoint for this account. * */ @Export(name="endpoint", refs={String.class}, tree="[0]") private Output endpoint; /** * @return The full CName endpoint for this account. * */ public Output endpoint() { return this.endpoint; } /** * The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. * */ @Export(name="firewallAllowAzureIps", refs={String.class}, tree="[0]") private Output firewallAllowAzureIps; /** * @return The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. * */ public Output firewallAllowAzureIps() { return this.firewallAllowAzureIps; } /** * The list of firewall rules associated with this Data Lake Store account. * */ @Export(name="firewallRules", refs={List.class,FirewallRuleResponse.class}, tree="[0,1]") private Output> firewallRules; /** * @return The list of firewall rules associated with this Data Lake Store account. * */ public Output> firewallRules() { return this.firewallRules; } /** * The current state of the IP address firewall for this Data Lake Store account. * */ @Export(name="firewallState", refs={String.class}, tree="[0]") private Output firewallState; /** * @return The current state of the IP address firewall for this Data Lake Store account. * */ public Output firewallState() { return this.firewallState; } /** * The Key Vault encryption identity, if any. * */ @Export(name="identity", refs={EncryptionIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The Key Vault encryption identity, if any. * */ public Output identity() { return this.identity; } /** * The account last modified time. * */ @Export(name="lastModifiedTime", refs={String.class}, tree="[0]") private Output lastModifiedTime; /** * @return The account last modified time. * */ public Output lastModifiedTime() { return this.lastModifiedTime; } /** * The resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The resource location. * */ public Output location() { return this.location; } /** * The resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The resource name. * */ public Output name() { return this.name; } /** * The commitment tier to use for next month. * */ @Export(name="newTier", refs={String.class}, tree="[0]") private Output newTier; /** * @return The commitment tier to use for next month. * */ public Output newTier() { return this.newTier; } /** * The provisioning status of the Data Lake Store account. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning status of the Data Lake Store account. * */ public Output provisioningState() { return this.provisioningState; } /** * The state of the Data Lake Store account. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return The state of the Data Lake Store account. * */ public Output state() { return this.state; } /** * The resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The resource tags. * */ public Output> tags() { return this.tags; } /** * The current state of the trusted identity provider feature for this Data Lake Store account. * */ @Export(name="trustedIdProviderState", refs={String.class}, tree="[0]") private Output trustedIdProviderState; /** * @return The current state of the trusted identity provider feature for this Data Lake Store account. * */ public Output trustedIdProviderState() { return this.trustedIdProviderState; } /** * The list of trusted identity providers associated with this Data Lake Store account. * */ @Export(name="trustedIdProviders", refs={List.class,TrustedIdProviderResponse.class}, tree="[0,1]") private Output> trustedIdProviders; /** * @return The list of trusted identity providers associated with this Data Lake Store account. * */ public Output> trustedIdProviders() { return this.trustedIdProviders; } /** * The resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The resource type. * */ public Output type() { return this.type; } /** * The list of virtual network rules associated with this Data Lake Store account. * */ @Export(name="virtualNetworkRules", refs={List.class,VirtualNetworkRuleResponse.class}, tree="[0,1]") private Output> virtualNetworkRules; /** * @return The list of virtual network rules associated with this Data Lake Store account. * */ public Output> virtualNetworkRules() { return this.virtualNetworkRules; } /** * * @param name The _unique_ name of the resulting resource. */ public Account(java.lang.String name) { this(name, AccountArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Account(java.lang.String name, AccountArgs 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 Account(java.lang.String name, AccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datalakestore:Account", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Account(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datalakestore:Account", name, null, makeResourceOptions(options, id), false); } private static AccountArgs makeArgs(AccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AccountArgs.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:datalakestore/v20161101:Account").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 Account get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Account(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy