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

com.pulumi.azure.storage.kotlin.AccountArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.storage.kotlin

import com.pulumi.azure.storage.AccountArgs.builder
import com.pulumi.azure.storage.kotlin.inputs.AccountAzureFilesAuthenticationArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountAzureFilesAuthenticationArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountBlobPropertiesArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountBlobPropertiesArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountCustomDomainArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountCustomDomainArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountCustomerManagedKeyArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountCustomerManagedKeyArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountIdentityArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountIdentityArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountImmutabilityPolicyArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountImmutabilityPolicyArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountNetworkRulesArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountNetworkRulesArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountQueuePropertiesArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountQueuePropertiesArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountRoutingArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountRoutingArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountSasPolicyArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountSasPolicyArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountSharePropertiesArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountSharePropertiesArgsBuilder
import com.pulumi.azure.storage.kotlin.inputs.AccountStaticWebsiteArgs
import com.pulumi.azure.storage.kotlin.inputs.AccountStaticWebsiteArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Azure Storage Account.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "storageaccountname",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "GRS",
 *     tags: {
 *         environment: "staging",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="storageaccountname",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="GRS",
 *     tags={
 *         "environment": "staging",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "storageaccountname",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "GRS",
 *         Tags =
 *         {
 *             { "environment", "staging" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("storageaccountname"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("GRS"),
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("staging"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("storageaccountname")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .tags(Map.of("environment", "staging"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: storageaccountname
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: GRS
 *       tags:
 *         environment: staging
 * ```
 * 
 * ### With Network Rules
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
 *     name: "virtnetname",
 *     addressSpaces: ["10.0.0.0/16"],
 *     location: example.location,
 *     resourceGroupName: example.name,
 * });
 * const exampleSubnet = new azure.network.Subnet("example", {
 *     name: "subnetname",
 *     resourceGroupName: example.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["10.0.2.0/24"],
 *     serviceEndpoints: [
 *         "Microsoft.Sql",
 *         "Microsoft.Storage",
 *     ],
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "storageaccountname",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 *     networkRules: {
 *         defaultAction: "Deny",
 *         ipRules: ["100.0.0.1"],
 *         virtualNetworkSubnetIds: [exampleSubnet.id],
 *     },
 *     tags: {
 *         environment: "staging",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_virtual_network = azure.network.VirtualNetwork("example",
 *     name="virtnetname",
 *     address_spaces=["10.0.0.0/16"],
 *     location=example.location,
 *     resource_group_name=example.name)
 * example_subnet = azure.network.Subnet("example",
 *     name="subnetname",
 *     resource_group_name=example.name,
 *     virtual_network_name=example_virtual_network.name,
 *     address_prefixes=["10.0.2.0/24"],
 *     service_endpoints=[
 *         "Microsoft.Sql",
 *         "Microsoft.Storage",
 *     ])
 * example_account = azure.storage.Account("example",
 *     name="storageaccountname",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS",
 *     network_rules={
 *         "default_action": "Deny",
 *         "ip_rules": ["100.0.0.1"],
 *         "virtual_network_subnet_ids": [example_subnet.id],
 *     },
 *     tags={
 *         "environment": "staging",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
 *     {
 *         Name = "virtnetname",
 *         AddressSpaces = new[]
 *         {
 *             "10.0.0.0/16",
 *         },
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *     });
 *     var exampleSubnet = new Azure.Network.Subnet("example", new()
 *     {
 *         Name = "subnetname",
 *         ResourceGroupName = example.Name,
 *         VirtualNetworkName = exampleVirtualNetwork.Name,
 *         AddressPrefixes = new[]
 *         {
 *             "10.0.2.0/24",
 *         },
 *         ServiceEndpoints = new[]
 *         {
 *             "Microsoft.Sql",
 *             "Microsoft.Storage",
 *         },
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "storageaccountname",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *         NetworkRules = new Azure.Storage.Inputs.AccountNetworkRulesArgs
 *         {
 *             DefaultAction = "Deny",
 *             IpRules = new[]
 *             {
 *                 "100.0.0.1",
 *             },
 *             VirtualNetworkSubnetIds = new[]
 *             {
 *                 exampleSubnet.Id,
 *             },
 *         },
 *         Tags =
 *         {
 *             { "environment", "staging" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
 * 			Name: pulumi.String("virtnetname"),
 * 			AddressSpaces: pulumi.StringArray{
 * 				pulumi.String("10.0.0.0/16"),
 * 			},
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
 * 			Name:               pulumi.String("subnetname"),
 * 			ResourceGroupName:  example.Name,
 * 			VirtualNetworkName: exampleVirtualNetwork.Name,
 * 			AddressPrefixes: pulumi.StringArray{
 * 				pulumi.String("10.0.2.0/24"),
 * 			},
 * 			ServiceEndpoints: pulumi.StringArray{
 * 				pulumi.String("Microsoft.Sql"),
 * 				pulumi.String("Microsoft.Storage"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("storageaccountname"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 			NetworkRules: &storage.AccountNetworkRulesTypeArgs{
 * 				DefaultAction: pulumi.String("Deny"),
 * 				IpRules: pulumi.StringArray{
 * 					pulumi.String("100.0.0.1"),
 * 				},
 * 				VirtualNetworkSubnetIds: pulumi.StringArray{
 * 					exampleSubnet.ID(),
 * 				},
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("staging"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.network.VirtualNetwork;
 * import com.pulumi.azure.network.VirtualNetworkArgs;
 * import com.pulumi.azure.network.Subnet;
 * import com.pulumi.azure.network.SubnetArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.inputs.AccountNetworkRulesArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
 *             .name("virtnetname")
 *             .addressSpaces("10.0.0.0/16")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 *         var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
 *             .name("subnetname")
 *             .resourceGroupName(example.name())
 *             .virtualNetworkName(exampleVirtualNetwork.name())
 *             .addressPrefixes("10.0.2.0/24")
 *             .serviceEndpoints(
 *                 "Microsoft.Sql",
 *                 "Microsoft.Storage")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("storageaccountname")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .networkRules(AccountNetworkRulesArgs.builder()
 *                 .defaultAction("Deny")
 *                 .ipRules("100.0.0.1")
 *                 .virtualNetworkSubnetIds(exampleSubnet.id())
 *                 .build())
 *             .tags(Map.of("environment", "staging"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleVirtualNetwork:
 *     type: azure:network:VirtualNetwork
 *     name: example
 *     properties:
 *       name: virtnetname
 *       addressSpaces:
 *         - 10.0.0.0/16
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *   exampleSubnet:
 *     type: azure:network:Subnet
 *     name: example
 *     properties:
 *       name: subnetname
 *       resourceGroupName: ${example.name}
 *       virtualNetworkName: ${exampleVirtualNetwork.name}
 *       addressPrefixes:
 *         - 10.0.2.0/24
 *       serviceEndpoints:
 *         - Microsoft.Sql
 *         - Microsoft.Storage
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: storageaccountname
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *       networkRules:
 *         defaultAction: Deny
 *         ipRules:
 *           - 100.0.0.1
 *         virtualNetworkSubnetIds:
 *           - ${exampleSubnet.id}
 *       tags:
 *         environment: staging
 * ```
 * 
 * ## Import
 * Storage Accounts can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:storage/account:Account storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount
 * ```
 * @property accessTier Defines the access tier for `BlobStorage`, `FileStorage` and `StorageV2` accounts. Valid options are `Hot` and `Cool`, defaults to `Hot`.
 * @property accountKind Defines the Kind of account. Valid options are `BlobStorage`, `BlockBlobStorage`, `FileStorage`, `Storage` and `StorageV2`. Defaults to `StorageV2`.
 * > **Note:** Changing the `account_kind` value from `Storage` to `StorageV2` will not trigger a force new on the storage account, it will only upgrade the existing storage account from `Storage` to `StorageV2` keeping the existing storage account in place.
 * @property accountReplicationType Defines the type of replication to use for this storage account. Valid options are `LRS`, `GRS`, `RAGRS`, `ZRS`, `GZRS` and `RAGZRS`. Changing this forces a new resource to be created when types `LRS`, `GRS` and `RAGRS` are changed to `ZRS`, `GZRS` or `RAGZRS` and vice versa.
 * @property accountTier Defines the Tier to use for this storage account. Valid options are `Standard` and `Premium`. For `BlockBlobStorage` and `FileStorage` accounts only `Premium` is valid. Changing this forces a new resource to be created.
 * > **Note:** Blobs with a tier of `Premium` are of account kind `StorageV2`.
 * @property allowNestedItemsToBePublic Allow or disallow nested items within this Account to opt into being public. Defaults to `true`.
 * > **Note:** At this time `allow_nested_items_to_be_public` is only supported in the Public Cloud, China Cloud, and US Government Cloud.
 * @property allowedCopyScope Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Possible values are `AAD` and `PrivateLink`.
 * @property azureFilesAuthentication A `azure_files_authentication` block as defined below.
 * @property blobProperties A `blob_properties` block as defined below.
 * @property crossTenantReplicationEnabled Should cross Tenant replication be enabled? Defaults to `true`.
 * @property customDomain A `custom_domain` block as documented below.
 * @property customerManagedKey A `customer_managed_key` block as documented below.
 * > **Note:** It's possible to define a Customer Managed Key both within either the `customer_managed_key` block or by using the `azure.storage.CustomerManagedKey` resource. However, it's not possible to use both methods to manage a Customer Managed Key for a Storage Account, since these will conflict. When using the `azure.storage.CustomerManagedKey` resource, you will need to use `ignore_changes` on the `customer_managed_key` block.
 * @property defaultToOauthAuthentication Default to Azure Active Directory authorization in the Azure portal when accessing the Storage Account. The default value is `false`
 * @property dnsEndpointType Specifies which DNS endpoint type to use. Possible values are `Standard` and `AzureDnsZone`. Defaults to `Standard`. Changing this forces a new resource to be created.
 * > **Note:** Azure DNS zone support requires `PartitionedDns` feature to be enabled. To enable this feature for your subscription, use the following command: `az feature register --namespace "Microsoft.Storage" --name "PartitionedDns"`.
 * @property edgeZone Specifies the Edge Zone within the Azure Region where this Storage Account should exist. Changing this forces a new Storage Account to be created.
 * @property enableHttpsTrafficOnly
 * @property httpsTrafficOnlyEnabled Boolean flag which forces HTTPS if enabled, see [here](https://docs.microsoft.com/azure/storage/storage-require-secure-transfer/) for more information. Defaults to `true`.
 * @property identity An `identity` block as defined below.
 * @property immutabilityPolicy An `immutability_policy` block as defined below. Changing this forces a new resource to be created.
 * @property infrastructureEncryptionEnabled Is infrastructure encryption enabled? Changing this forces a new resource to be created. Defaults to `false`.
 * > **Note:** This can only be `true` when `account_kind` is `StorageV2` or when `account_tier` is `Premium` *and* `account_kind` is one of `BlockBlobStorage` or `FileStorage`.
 * @property isHnsEnabled Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 ([see here for more information](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-quickstart-create-account/)). Changing this forces a new resource to be created.
 * > **Note:** This can only be `true` when `account_tier` is `Standard` or when `account_tier` is `Premium` *and* `account_kind` is `BlockBlobStorage`
 * @property largeFileShareEnabled Are Large File Shares Enabled? Defaults to `false`.
 * > **Note:** Large File Shares are enabled by default when using an `account_kind` of `FileStorage`.
 * @property localUserEnabled Is Local User Enabled? Defaults to `true`.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property minTlsVersion The minimum supported TLS version for the storage account. Possible values are `TLS1_0`, `TLS1_1`, and `TLS1_2`. Defaults to `TLS1_2` for new storage accounts.
 * > **Note:** At this time `min_tls_version` is only supported in the Public Cloud, China Cloud, and US Government Cloud.
 * @property name Specifies the name of the storage account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.
 * @property networkRules A `network_rules` block as documented below.
 * @property nfsv3Enabled Is NFSv3 protocol enabled? Changing this forces a new resource to be created. Defaults to `false`.
 * > **Note:** This can only be `true` when `account_tier` is `Standard` and `account_kind` is `StorageV2`, or `account_tier` is `Premium` and `account_kind` is `BlockBlobStorage`. Additionally, the `is_hns_enabled` is `true` and `account_replication_type` must be `LRS` or `RAGRS`.
 * @property publicNetworkAccessEnabled Whether the public network access is enabled? Defaults to `true`.
 * @property queueEncryptionKeyType The encryption type of the queue service. Possible values are `Service` and `Account`. Changing this forces a new resource to be created. Default value is `Service`.
 * @property queueProperties A `queue_properties` block as defined below.
 * > **Note:** `queue_properties` can only be configured when `account_tier` is set to `Standard` and `account_kind` is set to either `Storage` or `StorageV2`.
 * @property resourceGroupName The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.
 * @property routing A `routing` block as defined below.
 * @property sasPolicy A `sas_policy` block as defined below.
 * @property sftpEnabled Boolean, enable SFTP for the storage account
 * > **Note:** SFTP support requires `is_hns_enabled` set to `true`. [More information on SFTP support can be found here](https://learn.microsoft.com/azure/storage/blobs/secure-file-transfer-protocol-support). Defaults to `false`
 * @property shareProperties A `share_properties` block as defined below.
 * > **Note:** `share_properties` can only be configured when either `account_tier` is `Standard` and `account_kind` is either `Storage` or `StorageV2` - or when `account_tier` is `Premium` and `account_kind` is `FileStorage`.
 * @property sharedAccessKeyEnabled
 * @property staticWebsite A `static_website` block as defined below.
 * > **Note:** `static_website` can only be set when the `account_kind` is set to `StorageV2` or `BlockBlobStorage`.
 * @property tableEncryptionKeyType The encryption type of the table service. Possible values are `Service` and `Account`. Changing this forces a new resource to be created. Default value is `Service`.
 * > **Note:** For the `queue_encryption_key_type` and `table_encryption_key_type`, the `Account` key type is only allowed when the `account_kind` is set to `StorageV2`
 * @property tags A mapping of tags to assign to the resource.
 */
public data class AccountArgs(
    public val accessTier: Output? = null,
    public val accountKind: Output? = null,
    public val accountReplicationType: Output? = null,
    public val accountTier: Output? = null,
    public val allowNestedItemsToBePublic: Output? = null,
    public val allowedCopyScope: Output? = null,
    public val azureFilesAuthentication: Output? = null,
    public val blobProperties: Output? = null,
    public val crossTenantReplicationEnabled: Output? = null,
    public val customDomain: Output? = null,
    public val customerManagedKey: Output? = null,
    public val defaultToOauthAuthentication: Output? = null,
    public val dnsEndpointType: Output? = null,
    public val edgeZone: Output? = null,
    @Deprecated(
        message = """
  The property `enable_https_traffic_only` has been superseded by `https_traffic_only_enabled` and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    public val enableHttpsTrafficOnly: Output? = null,
    public val httpsTrafficOnlyEnabled: Output? = null,
    public val identity: Output? = null,
    public val immutabilityPolicy: Output? = null,
    public val infrastructureEncryptionEnabled: Output? = null,
    public val isHnsEnabled: Output? = null,
    public val largeFileShareEnabled: Output? = null,
    public val localUserEnabled: Output? = null,
    public val location: Output? = null,
    public val minTlsVersion: Output? = null,
    public val name: Output? = null,
    public val networkRules: Output? = null,
    public val nfsv3Enabled: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val queueEncryptionKeyType: Output? = null,
    public val queueProperties: Output? = null,
    public val resourceGroupName: Output? = null,
    public val routing: Output? = null,
    public val sasPolicy: Output? = null,
    public val sftpEnabled: Output? = null,
    public val shareProperties: Output? = null,
    public val sharedAccessKeyEnabled: Output? = null,
    public val staticWebsite: Output? = null,
    public val tableEncryptionKeyType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.storage.AccountArgs =
        com.pulumi.azure.storage.AccountArgs.builder()
            .accessTier(accessTier?.applyValue({ args0 -> args0 }))
            .accountKind(accountKind?.applyValue({ args0 -> args0 }))
            .accountReplicationType(accountReplicationType?.applyValue({ args0 -> args0 }))
            .accountTier(accountTier?.applyValue({ args0 -> args0 }))
            .allowNestedItemsToBePublic(allowNestedItemsToBePublic?.applyValue({ args0 -> args0 }))
            .allowedCopyScope(allowedCopyScope?.applyValue({ args0 -> args0 }))
            .azureFilesAuthentication(
                azureFilesAuthentication?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .blobProperties(blobProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .crossTenantReplicationEnabled(crossTenantReplicationEnabled?.applyValue({ args0 -> args0 }))
            .customDomain(customDomain?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .customerManagedKey(
                customerManagedKey?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .defaultToOauthAuthentication(defaultToOauthAuthentication?.applyValue({ args0 -> args0 }))
            .dnsEndpointType(dnsEndpointType?.applyValue({ args0 -> args0 }))
            .edgeZone(edgeZone?.applyValue({ args0 -> args0 }))
            .enableHttpsTrafficOnly(enableHttpsTrafficOnly?.applyValue({ args0 -> args0 }))
            .httpsTrafficOnlyEnabled(httpsTrafficOnlyEnabled?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .immutabilityPolicy(
                immutabilityPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .infrastructureEncryptionEnabled(infrastructureEncryptionEnabled?.applyValue({ args0 -> args0 }))
            .isHnsEnabled(isHnsEnabled?.applyValue({ args0 -> args0 }))
            .largeFileShareEnabled(largeFileShareEnabled?.applyValue({ args0 -> args0 }))
            .localUserEnabled(localUserEnabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .minTlsVersion(minTlsVersion?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networkRules(networkRules?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .nfsv3Enabled(nfsv3Enabled?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .queueEncryptionKeyType(queueEncryptionKeyType?.applyValue({ args0 -> args0 }))
            .queueProperties(queueProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .routing(routing?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sasPolicy(sasPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sftpEnabled(sftpEnabled?.applyValue({ args0 -> args0 }))
            .shareProperties(shareProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sharedAccessKeyEnabled(sharedAccessKeyEnabled?.applyValue({ args0 -> args0 }))
            .staticWebsite(staticWebsite?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tableEncryptionKeyType(tableEncryptionKeyType?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AccountArgs].
 */
@PulumiTagMarker
public class AccountArgsBuilder internal constructor() {
    private var accessTier: Output? = null

    private var accountKind: Output? = null

    private var accountReplicationType: Output? = null

    private var accountTier: Output? = null

    private var allowNestedItemsToBePublic: Output? = null

    private var allowedCopyScope: Output? = null

    private var azureFilesAuthentication: Output? = null

    private var blobProperties: Output? = null

    private var crossTenantReplicationEnabled: Output? = null

    private var customDomain: Output? = null

    private var customerManagedKey: Output? = null

    private var defaultToOauthAuthentication: Output? = null

    private var dnsEndpointType: Output? = null

    private var edgeZone: Output? = null

    private var enableHttpsTrafficOnly: Output? = null

    private var httpsTrafficOnlyEnabled: Output? = null

    private var identity: Output? = null

    private var immutabilityPolicy: Output? = null

    private var infrastructureEncryptionEnabled: Output? = null

    private var isHnsEnabled: Output? = null

    private var largeFileShareEnabled: Output? = null

    private var localUserEnabled: Output? = null

    private var location: Output? = null

    private var minTlsVersion: Output? = null

    private var name: Output? = null

    private var networkRules: Output? = null

    private var nfsv3Enabled: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var queueEncryptionKeyType: Output? = null

    private var queueProperties: Output? = null

    private var resourceGroupName: Output? = null

    private var routing: Output? = null

    private var sasPolicy: Output? = null

    private var sftpEnabled: Output? = null

    private var shareProperties: Output? = null

    private var sharedAccessKeyEnabled: Output? = null

    private var staticWebsite: Output? = null

    private var tableEncryptionKeyType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Defines the access tier for `BlobStorage`, `FileStorage` and `StorageV2` accounts. Valid options are `Hot` and `Cool`, defaults to `Hot`.
     */
    @JvmName("sydbcfgepoilugjf")
    public suspend fun accessTier(`value`: Output) {
        this.accessTier = value
    }

    /**
     * @param value Defines the Kind of account. Valid options are `BlobStorage`, `BlockBlobStorage`, `FileStorage`, `Storage` and `StorageV2`. Defaults to `StorageV2`.
     * > **Note:** Changing the `account_kind` value from `Storage` to `StorageV2` will not trigger a force new on the storage account, it will only upgrade the existing storage account from `Storage` to `StorageV2` keeping the existing storage account in place.
     */
    @JvmName("mfdnuikweidelokv")
    public suspend fun accountKind(`value`: Output) {
        this.accountKind = value
    }

    /**
     * @param value Defines the type of replication to use for this storage account. Valid options are `LRS`, `GRS`, `RAGRS`, `ZRS`, `GZRS` and `RAGZRS`. Changing this forces a new resource to be created when types `LRS`, `GRS` and `RAGRS` are changed to `ZRS`, `GZRS` or `RAGZRS` and vice versa.
     */
    @JvmName("rsioslulkhtsmuqx")
    public suspend fun accountReplicationType(`value`: Output) {
        this.accountReplicationType = value
    }

    /**
     * @param value Defines the Tier to use for this storage account. Valid options are `Standard` and `Premium`. For `BlockBlobStorage` and `FileStorage` accounts only `Premium` is valid. Changing this forces a new resource to be created.
     * > **Note:** Blobs with a tier of `Premium` are of account kind `StorageV2`.
     */
    @JvmName("ndftumcetfigooek")
    public suspend fun accountTier(`value`: Output) {
        this.accountTier = value
    }

    /**
     * @param value Allow or disallow nested items within this Account to opt into being public. Defaults to `true`.
     * > **Note:** At this time `allow_nested_items_to_be_public` is only supported in the Public Cloud, China Cloud, and US Government Cloud.
     */
    @JvmName("vmxoonjvurxxtvpv")
    public suspend fun allowNestedItemsToBePublic(`value`: Output) {
        this.allowNestedItemsToBePublic = value
    }

    /**
     * @param value Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Possible values are `AAD` and `PrivateLink`.
     */
    @JvmName("kvcxowwqfrosxtqv")
    public suspend fun allowedCopyScope(`value`: Output) {
        this.allowedCopyScope = value
    }

    /**
     * @param value A `azure_files_authentication` block as defined below.
     */
    @JvmName("kxyivqfnatibnbci")
    public suspend fun azureFilesAuthentication(`value`: Output) {
        this.azureFilesAuthentication = value
    }

    /**
     * @param value A `blob_properties` block as defined below.
     */
    @JvmName("jswsaptihwyptyxl")
    public suspend fun blobProperties(`value`: Output) {
        this.blobProperties = value
    }

    /**
     * @param value Should cross Tenant replication be enabled? Defaults to `true`.
     */
    @JvmName("gnstkeahqrjqbour")
    public suspend fun crossTenantReplicationEnabled(`value`: Output) {
        this.crossTenantReplicationEnabled = value
    }

    /**
     * @param value A `custom_domain` block as documented below.
     */
    @JvmName("ldsmohcyyoidgweq")
    public suspend fun customDomain(`value`: Output) {
        this.customDomain = value
    }

    /**
     * @param value A `customer_managed_key` block as documented below.
     * > **Note:** It's possible to define a Customer Managed Key both within either the `customer_managed_key` block or by using the `azure.storage.CustomerManagedKey` resource. However, it's not possible to use both methods to manage a Customer Managed Key for a Storage Account, since these will conflict. When using the `azure.storage.CustomerManagedKey` resource, you will need to use `ignore_changes` on the `customer_managed_key` block.
     */
    @JvmName("vimgrkiekchotthv")
    public suspend fun customerManagedKey(`value`: Output) {
        this.customerManagedKey = value
    }

    /**
     * @param value Default to Azure Active Directory authorization in the Azure portal when accessing the Storage Account. The default value is `false`
     */
    @JvmName("vxsiltxifepfknrm")
    public suspend fun defaultToOauthAuthentication(`value`: Output) {
        this.defaultToOauthAuthentication = value
    }

    /**
     * @param value Specifies which DNS endpoint type to use. Possible values are `Standard` and `AzureDnsZone`. Defaults to `Standard`. Changing this forces a new resource to be created.
     * > **Note:** Azure DNS zone support requires `PartitionedDns` feature to be enabled. To enable this feature for your subscription, use the following command: `az feature register --namespace "Microsoft.Storage" --name "PartitionedDns"`.
     */
    @JvmName("ojrvanhgtgufmncw")
    public suspend fun dnsEndpointType(`value`: Output) {
        this.dnsEndpointType = value
    }

    /**
     * @param value Specifies the Edge Zone within the Azure Region where this Storage Account should exist. Changing this forces a new Storage Account to be created.
     */
    @JvmName("mddmrhhkncoxbfhh")
    public suspend fun edgeZone(`value`: Output) {
        this.edgeZone = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The property `enable_https_traffic_only` has been superseded by `https_traffic_only_enabled` and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("xiwwataksjyuymfc")
    public suspend fun enableHttpsTrafficOnly(`value`: Output) {
        this.enableHttpsTrafficOnly = value
    }

    /**
     * @param value Boolean flag which forces HTTPS if enabled, see [here](https://docs.microsoft.com/azure/storage/storage-require-secure-transfer/) for more information. Defaults to `true`.
     */
    @JvmName("joqwvqvvrpunppff")
    public suspend fun httpsTrafficOnlyEnabled(`value`: Output) {
        this.httpsTrafficOnlyEnabled = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("vyqapjmbncsrxvdv")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value An `immutability_policy` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("wvxrbhbjusrsuekl")
    public suspend fun immutabilityPolicy(`value`: Output) {
        this.immutabilityPolicy = value
    }

    /**
     * @param value Is infrastructure encryption enabled? Changing this forces a new resource to be created. Defaults to `false`.
     * > **Note:** This can only be `true` when `account_kind` is `StorageV2` or when `account_tier` is `Premium` *and* `account_kind` is one of `BlockBlobStorage` or `FileStorage`.
     */
    @JvmName("swfccnnrcaigllak")
    public suspend fun infrastructureEncryptionEnabled(`value`: Output) {
        this.infrastructureEncryptionEnabled = value
    }

    /**
     * @param value Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 ([see here for more information](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-quickstart-create-account/)). Changing this forces a new resource to be created.
     * > **Note:** This can only be `true` when `account_tier` is `Standard` or when `account_tier` is `Premium` *and* `account_kind` is `BlockBlobStorage`
     */
    @JvmName("nyhktajwwuchoqqa")
    public suspend fun isHnsEnabled(`value`: Output) {
        this.isHnsEnabled = value
    }

    /**
     * @param value Are Large File Shares Enabled? Defaults to `false`.
     * > **Note:** Large File Shares are enabled by default when using an `account_kind` of `FileStorage`.
     */
    @JvmName("lcvnvqfrmmbkjous")
    public suspend fun largeFileShareEnabled(`value`: Output) {
        this.largeFileShareEnabled = value
    }

    /**
     * @param value Is Local User Enabled? Defaults to `true`.
     */
    @JvmName("dkuqvueqfdrwcdqc")
    public suspend fun localUserEnabled(`value`: Output) {
        this.localUserEnabled = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("dogndnjtcrgeruil")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The minimum supported TLS version for the storage account. Possible values are `TLS1_0`, `TLS1_1`, and `TLS1_2`. Defaults to `TLS1_2` for new storage accounts.
     * > **Note:** At this time `min_tls_version` is only supported in the Public Cloud, China Cloud, and US Government Cloud.
     */
    @JvmName("miqkgyficasxibxd")
    public suspend fun minTlsVersion(`value`: Output) {
        this.minTlsVersion = value
    }

    /**
     * @param value Specifies the name of the storage account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.
     */
    @JvmName("wxpuclgvutbbuoav")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `network_rules` block as documented below.
     */
    @JvmName("foycpxsqdhvlhhnb")
    public suspend fun networkRules(`value`: Output) {
        this.networkRules = value
    }

    /**
     * @param value Is NFSv3 protocol enabled? Changing this forces a new resource to be created. Defaults to `false`.
     * > **Note:** This can only be `true` when `account_tier` is `Standard` and `account_kind` is `StorageV2`, or `account_tier` is `Premium` and `account_kind` is `BlockBlobStorage`. Additionally, the `is_hns_enabled` is `true` and `account_replication_type` must be `LRS` or `RAGRS`.
     */
    @JvmName("fbsnclukqbevfchx")
    public suspend fun nfsv3Enabled(`value`: Output) {
        this.nfsv3Enabled = value
    }

    /**
     * @param value Whether the public network access is enabled? Defaults to `true`.
     */
    @JvmName("xajcqfulhdlgdqfl")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value The encryption type of the queue service. Possible values are `Service` and `Account`. Changing this forces a new resource to be created. Default value is `Service`.
     */
    @JvmName("afsxbyxgkkfxwivr")
    public suspend fun queueEncryptionKeyType(`value`: Output) {
        this.queueEncryptionKeyType = value
    }

    /**
     * @param value A `queue_properties` block as defined below.
     * > **Note:** `queue_properties` can only be configured when `account_tier` is set to `Standard` and `account_kind` is set to either `Storage` or `StorageV2`.
     */
    @JvmName("tdjbalbgwesywcyc")
    public suspend fun queueProperties(`value`: Output) {
        this.queueProperties = value
    }

    /**
     * @param value The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.
     */
    @JvmName("pvcvslayllmrywoa")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `routing` block as defined below.
     */
    @JvmName("bmhbfkkukeldumgv")
    public suspend fun routing(`value`: Output) {
        this.routing = value
    }

    /**
     * @param value A `sas_policy` block as defined below.
     */
    @JvmName("fiqdspndvckvqoeu")
    public suspend fun sasPolicy(`value`: Output) {
        this.sasPolicy = value
    }

    /**
     * @param value Boolean, enable SFTP for the storage account
     * > **Note:** SFTP support requires `is_hns_enabled` set to `true`. [More information on SFTP support can be found here](https://learn.microsoft.com/azure/storage/blobs/secure-file-transfer-protocol-support). Defaults to `false`
     */
    @JvmName("mnlyofinxhokrxbl")
    public suspend fun sftpEnabled(`value`: Output) {
        this.sftpEnabled = value
    }

    /**
     * @param value A `share_properties` block as defined below.
     * > **Note:** `share_properties` can only be configured when either `account_tier` is `Standard` and `account_kind` is either `Storage` or `StorageV2` - or when `account_tier` is `Premium` and `account_kind` is `FileStorage`.
     */
    @JvmName("hhvcxjrnsrrcfean")
    public suspend fun shareProperties(`value`: Output) {
        this.shareProperties = value
    }

    /**
     * @param value
     */
    @JvmName("ihneanorniniovih")
    public suspend fun sharedAccessKeyEnabled(`value`: Output) {
        this.sharedAccessKeyEnabled = value
    }

    /**
     * @param value A `static_website` block as defined below.
     * > **Note:** `static_website` can only be set when the `account_kind` is set to `StorageV2` or `BlockBlobStorage`.
     */
    @JvmName("wbmxsxkprowopnpq")
    public suspend fun staticWebsite(`value`: Output) {
        this.staticWebsite = value
    }

    /**
     * @param value The encryption type of the table service. Possible values are `Service` and `Account`. Changing this forces a new resource to be created. Default value is `Service`.
     * > **Note:** For the `queue_encryption_key_type` and `table_encryption_key_type`, the `Account` key type is only allowed when the `account_kind` is set to `StorageV2`
     */
    @JvmName("keflbcwkesswlkcp")
    public suspend fun tableEncryptionKeyType(`value`: Output) {
        this.tableEncryptionKeyType = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("neatxmastjnxvyjn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Defines the access tier for `BlobStorage`, `FileStorage` and `StorageV2` accounts. Valid options are `Hot` and `Cool`, defaults to `Hot`.
     */
    @JvmName("cgmbjenecbhmxuop")
    public suspend fun accessTier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessTier = mapped
    }

    /**
     * @param value Defines the Kind of account. Valid options are `BlobStorage`, `BlockBlobStorage`, `FileStorage`, `Storage` and `StorageV2`. Defaults to `StorageV2`.
     * > **Note:** Changing the `account_kind` value from `Storage` to `StorageV2` will not trigger a force new on the storage account, it will only upgrade the existing storage account from `Storage` to `StorageV2` keeping the existing storage account in place.
     */
    @JvmName("wdibwxdswnilnpft")
    public suspend fun accountKind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountKind = mapped
    }

    /**
     * @param value Defines the type of replication to use for this storage account. Valid options are `LRS`, `GRS`, `RAGRS`, `ZRS`, `GZRS` and `RAGZRS`. Changing this forces a new resource to be created when types `LRS`, `GRS` and `RAGRS` are changed to `ZRS`, `GZRS` or `RAGZRS` and vice versa.
     */
    @JvmName("cqwlylbtkufjygpv")
    public suspend fun accountReplicationType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountReplicationType = mapped
    }

    /**
     * @param value Defines the Tier to use for this storage account. Valid options are `Standard` and `Premium`. For `BlockBlobStorage` and `FileStorage` accounts only `Premium` is valid. Changing this forces a new resource to be created.
     * > **Note:** Blobs with a tier of `Premium` are of account kind `StorageV2`.
     */
    @JvmName("pgsxhwkoulsthomb")
    public suspend fun accountTier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountTier = mapped
    }

    /**
     * @param value Allow or disallow nested items within this Account to opt into being public. Defaults to `true`.
     * > **Note:** At this time `allow_nested_items_to_be_public` is only supported in the Public Cloud, China Cloud, and US Government Cloud.
     */
    @JvmName("hqiudtbijntltxie")
    public suspend fun allowNestedItemsToBePublic(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowNestedItemsToBePublic = mapped
    }

    /**
     * @param value Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Possible values are `AAD` and `PrivateLink`.
     */
    @JvmName("ajhoolwjtggdaaje")
    public suspend fun allowedCopyScope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedCopyScope = mapped
    }

    /**
     * @param value A `azure_files_authentication` block as defined below.
     */
    @JvmName("imlpmntnipjrhsyt")
    public suspend fun azureFilesAuthentication(`value`: AccountAzureFilesAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureFilesAuthentication = mapped
    }

    /**
     * @param argument A `azure_files_authentication` block as defined below.
     */
    @JvmName("tirllsnkpvdfuxgy")
    public suspend fun azureFilesAuthentication(argument: suspend AccountAzureFilesAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = AccountAzureFilesAuthenticationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.azureFilesAuthentication = mapped
    }

    /**
     * @param value A `blob_properties` block as defined below.
     */
    @JvmName("doxtkxgkcbfqwkwf")
    public suspend fun blobProperties(`value`: AccountBlobPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobProperties = mapped
    }

    /**
     * @param argument A `blob_properties` block as defined below.
     */
    @JvmName("orpeeewpqfgshmbg")
    public suspend fun blobProperties(argument: suspend AccountBlobPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = AccountBlobPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.blobProperties = mapped
    }

    /**
     * @param value Should cross Tenant replication be enabled? Defaults to `true`.
     */
    @JvmName("gynuvxepsnnudqgb")
    public suspend fun crossTenantReplicationEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.crossTenantReplicationEnabled = mapped
    }

    /**
     * @param value A `custom_domain` block as documented below.
     */
    @JvmName("gwxtweqvqcsfqngn")
    public suspend fun customDomain(`value`: AccountCustomDomainArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customDomain = mapped
    }

    /**
     * @param argument A `custom_domain` block as documented below.
     */
    @JvmName("oyrghkslrddicdga")
    public suspend fun customDomain(argument: suspend AccountCustomDomainArgsBuilder.() -> Unit) {
        val toBeMapped = AccountCustomDomainArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customDomain = mapped
    }

    /**
     * @param value A `customer_managed_key` block as documented below.
     * > **Note:** It's possible to define a Customer Managed Key both within either the `customer_managed_key` block or by using the `azure.storage.CustomerManagedKey` resource. However, it's not possible to use both methods to manage a Customer Managed Key for a Storage Account, since these will conflict. When using the `azure.storage.CustomerManagedKey` resource, you will need to use `ignore_changes` on the `customer_managed_key` block.
     */
    @JvmName("rssppcplntnvsnue")
    public suspend fun customerManagedKey(`value`: AccountCustomerManagedKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerManagedKey = mapped
    }

    /**
     * @param argument A `customer_managed_key` block as documented below.
     * > **Note:** It's possible to define a Customer Managed Key both within either the `customer_managed_key` block or by using the `azure.storage.CustomerManagedKey` resource. However, it's not possible to use both methods to manage a Customer Managed Key for a Storage Account, since these will conflict. When using the `azure.storage.CustomerManagedKey` resource, you will need to use `ignore_changes` on the `customer_managed_key` block.
     */
    @JvmName("nsshhiioimyjhtif")
    public suspend fun customerManagedKey(argument: suspend AccountCustomerManagedKeyArgsBuilder.() -> Unit) {
        val toBeMapped = AccountCustomerManagedKeyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customerManagedKey = mapped
    }

    /**
     * @param value Default to Azure Active Directory authorization in the Azure portal when accessing the Storage Account. The default value is `false`
     */
    @JvmName("slnuwclydxkgbifu")
    public suspend fun defaultToOauthAuthentication(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultToOauthAuthentication = mapped
    }

    /**
     * @param value Specifies which DNS endpoint type to use. Possible values are `Standard` and `AzureDnsZone`. Defaults to `Standard`. Changing this forces a new resource to be created.
     * > **Note:** Azure DNS zone support requires `PartitionedDns` feature to be enabled. To enable this feature for your subscription, use the following command: `az feature register --namespace "Microsoft.Storage" --name "PartitionedDns"`.
     */
    @JvmName("gfulxjuuurwaixbt")
    public suspend fun dnsEndpointType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsEndpointType = mapped
    }

    /**
     * @param value Specifies the Edge Zone within the Azure Region where this Storage Account should exist. Changing this forces a new Storage Account to be created.
     */
    @JvmName("iujsdblrdnwbqrdr")
    public suspend fun edgeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.edgeZone = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The property `enable_https_traffic_only` has been superseded by `https_traffic_only_enabled` and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("qooarriodqltjkpk")
    public suspend fun enableHttpsTrafficOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableHttpsTrafficOnly = mapped
    }

    /**
     * @param value Boolean flag which forces HTTPS if enabled, see [here](https://docs.microsoft.com/azure/storage/storage-require-secure-transfer/) for more information. Defaults to `true`.
     */
    @JvmName("wmxmqcmwyubdbxnq")
    public suspend fun httpsTrafficOnlyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsTrafficOnlyEnabled = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("qbkjbrkxlbjrepio")
    public suspend fun identity(`value`: AccountIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("glqhklmcxstrfdcj")
    public suspend fun identity(argument: suspend AccountIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = AccountIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value An `immutability_policy` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("dfwuukdrmfyqfvpb")
    public suspend fun immutabilityPolicy(`value`: AccountImmutabilityPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.immutabilityPolicy = mapped
    }

    /**
     * @param argument An `immutability_policy` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("mvhxqexalofvdppf")
    public suspend fun immutabilityPolicy(argument: suspend AccountImmutabilityPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = AccountImmutabilityPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.immutabilityPolicy = mapped
    }

    /**
     * @param value Is infrastructure encryption enabled? Changing this forces a new resource to be created. Defaults to `false`.
     * > **Note:** This can only be `true` when `account_kind` is `StorageV2` or when `account_tier` is `Premium` *and* `account_kind` is one of `BlockBlobStorage` or `FileStorage`.
     */
    @JvmName("tpmippfgerkbblsu")
    public suspend fun infrastructureEncryptionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.infrastructureEncryptionEnabled = mapped
    }

    /**
     * @param value Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 ([see here for more information](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-quickstart-create-account/)). Changing this forces a new resource to be created.
     * > **Note:** This can only be `true` when `account_tier` is `Standard` or when `account_tier` is `Premium` *and* `account_kind` is `BlockBlobStorage`
     */
    @JvmName("ogigcidgcapmqjbe")
    public suspend fun isHnsEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isHnsEnabled = mapped
    }

    /**
     * @param value Are Large File Shares Enabled? Defaults to `false`.
     * > **Note:** Large File Shares are enabled by default when using an `account_kind` of `FileStorage`.
     */
    @JvmName("eqscqlyemjfqnian")
    public suspend fun largeFileShareEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.largeFileShareEnabled = mapped
    }

    /**
     * @param value Is Local User Enabled? Defaults to `true`.
     */
    @JvmName("yghnjckewteahcaw")
    public suspend fun localUserEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localUserEnabled = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("owgqdormjemwdgfy")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The minimum supported TLS version for the storage account. Possible values are `TLS1_0`, `TLS1_1`, and `TLS1_2`. Defaults to `TLS1_2` for new storage accounts.
     * > **Note:** At this time `min_tls_version` is only supported in the Public Cloud, China Cloud, and US Government Cloud.
     */
    @JvmName("rkadhyfqcdvopowa")
    public suspend fun minTlsVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minTlsVersion = mapped
    }

    /**
     * @param value Specifies the name of the storage account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group.
     */
    @JvmName("chjyodotpwmxevcb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `network_rules` block as documented below.
     */
    @JvmName("npbpfnylxkyeqbkr")
    public suspend fun networkRules(`value`: AccountNetworkRulesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkRules = mapped
    }

    /**
     * @param argument A `network_rules` block as documented below.
     */
    @JvmName("jsptcwiouspnwcon")
    public suspend fun networkRules(argument: suspend AccountNetworkRulesArgsBuilder.() -> Unit) {
        val toBeMapped = AccountNetworkRulesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkRules = mapped
    }

    /**
     * @param value Is NFSv3 protocol enabled? Changing this forces a new resource to be created. Defaults to `false`.
     * > **Note:** This can only be `true` when `account_tier` is `Standard` and `account_kind` is `StorageV2`, or `account_tier` is `Premium` and `account_kind` is `BlockBlobStorage`. Additionally, the `is_hns_enabled` is `true` and `account_replication_type` must be `LRS` or `RAGRS`.
     */
    @JvmName("wwdnlrekundaqxjn")
    public suspend fun nfsv3Enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nfsv3Enabled = mapped
    }

    /**
     * @param value Whether the public network access is enabled? Defaults to `true`.
     */
    @JvmName("qailbqfkvyrrbmce")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value The encryption type of the queue service. Possible values are `Service` and `Account`. Changing this forces a new resource to be created. Default value is `Service`.
     */
    @JvmName("jrinfegmgyjjodls")
    public suspend fun queueEncryptionKeyType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queueEncryptionKeyType = mapped
    }

    /**
     * @param value A `queue_properties` block as defined below.
     * > **Note:** `queue_properties` can only be configured when `account_tier` is set to `Standard` and `account_kind` is set to either `Storage` or `StorageV2`.
     */
    @JvmName("wsatmbmsgcgxxdni")
    public suspend fun queueProperties(`value`: AccountQueuePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queueProperties = mapped
    }

    /**
     * @param argument A `queue_properties` block as defined below.
     * > **Note:** `queue_properties` can only be configured when `account_tier` is set to `Standard` and `account_kind` is set to either `Storage` or `StorageV2`.
     */
    @JvmName("ntodtklkvuvxharw")
    public suspend fun queueProperties(argument: suspend AccountQueuePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = AccountQueuePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.queueProperties = mapped
    }

    /**
     * @param value The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.
     */
    @JvmName("grvvokxngrcxtucw")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `routing` block as defined below.
     */
    @JvmName("xyootpkgalqxkysa")
    public suspend fun routing(`value`: AccountRoutingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routing = mapped
    }

    /**
     * @param argument A `routing` block as defined below.
     */
    @JvmName("wjlyclmknphlwwbs")
    public suspend fun routing(argument: suspend AccountRoutingArgsBuilder.() -> Unit) {
        val toBeMapped = AccountRoutingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.routing = mapped
    }

    /**
     * @param value A `sas_policy` block as defined below.
     */
    @JvmName("rncodbksvqrgrmpq")
    public suspend fun sasPolicy(`value`: AccountSasPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sasPolicy = mapped
    }

    /**
     * @param argument A `sas_policy` block as defined below.
     */
    @JvmName("iuylkpndhfdqxmtd")
    public suspend fun sasPolicy(argument: suspend AccountSasPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = AccountSasPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sasPolicy = mapped
    }

    /**
     * @param value Boolean, enable SFTP for the storage account
     * > **Note:** SFTP support requires `is_hns_enabled` set to `true`. [More information on SFTP support can be found here](https://learn.microsoft.com/azure/storage/blobs/secure-file-transfer-protocol-support). Defaults to `false`
     */
    @JvmName("gebgqlvtfawbifnn")
    public suspend fun sftpEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sftpEnabled = mapped
    }

    /**
     * @param value A `share_properties` block as defined below.
     * > **Note:** `share_properties` can only be configured when either `account_tier` is `Standard` and `account_kind` is either `Storage` or `StorageV2` - or when `account_tier` is `Premium` and `account_kind` is `FileStorage`.
     */
    @JvmName("dlbowjxivhnqvsry")
    public suspend fun shareProperties(`value`: AccountSharePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shareProperties = mapped
    }

    /**
     * @param argument A `share_properties` block as defined below.
     * > **Note:** `share_properties` can only be configured when either `account_tier` is `Standard` and `account_kind` is either `Storage` or `StorageV2` - or when `account_tier` is `Premium` and `account_kind` is `FileStorage`.
     */
    @JvmName("cqebpnpnkcodtjlc")
    public suspend fun shareProperties(argument: suspend AccountSharePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = AccountSharePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.shareProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("fgeablaeaftuugvn")
    public suspend fun sharedAccessKeyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedAccessKeyEnabled = mapped
    }

    /**
     * @param value A `static_website` block as defined below.
     * > **Note:** `static_website` can only be set when the `account_kind` is set to `StorageV2` or `BlockBlobStorage`.
     */
    @JvmName("gwmtjlmcxqrlxcph")
    public suspend fun staticWebsite(`value`: AccountStaticWebsiteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.staticWebsite = mapped
    }

    /**
     * @param argument A `static_website` block as defined below.
     * > **Note:** `static_website` can only be set when the `account_kind` is set to `StorageV2` or `BlockBlobStorage`.
     */
    @JvmName("enkmuclmulrkbkxe")
    public suspend fun staticWebsite(argument: suspend AccountStaticWebsiteArgsBuilder.() -> Unit) {
        val toBeMapped = AccountStaticWebsiteArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.staticWebsite = mapped
    }

    /**
     * @param value The encryption type of the table service. Possible values are `Service` and `Account`. Changing this forces a new resource to be created. Default value is `Service`.
     * > **Note:** For the `queue_encryption_key_type` and `table_encryption_key_type`, the `Account` key type is only allowed when the `account_kind` is set to `StorageV2`
     */
    @JvmName("memwxmdnjamfhwra")
    public suspend fun tableEncryptionKeyType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableEncryptionKeyType = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("vhpanbgpgpywdosc")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("yglhpeaalahrpgrk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AccountArgs = AccountArgs(
        accessTier = accessTier,
        accountKind = accountKind,
        accountReplicationType = accountReplicationType,
        accountTier = accountTier,
        allowNestedItemsToBePublic = allowNestedItemsToBePublic,
        allowedCopyScope = allowedCopyScope,
        azureFilesAuthentication = azureFilesAuthentication,
        blobProperties = blobProperties,
        crossTenantReplicationEnabled = crossTenantReplicationEnabled,
        customDomain = customDomain,
        customerManagedKey = customerManagedKey,
        defaultToOauthAuthentication = defaultToOauthAuthentication,
        dnsEndpointType = dnsEndpointType,
        edgeZone = edgeZone,
        enableHttpsTrafficOnly = enableHttpsTrafficOnly,
        httpsTrafficOnlyEnabled = httpsTrafficOnlyEnabled,
        identity = identity,
        immutabilityPolicy = immutabilityPolicy,
        infrastructureEncryptionEnabled = infrastructureEncryptionEnabled,
        isHnsEnabled = isHnsEnabled,
        largeFileShareEnabled = largeFileShareEnabled,
        localUserEnabled = localUserEnabled,
        location = location,
        minTlsVersion = minTlsVersion,
        name = name,
        networkRules = networkRules,
        nfsv3Enabled = nfsv3Enabled,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        queueEncryptionKeyType = queueEncryptionKeyType,
        queueProperties = queueProperties,
        resourceGroupName = resourceGroupName,
        routing = routing,
        sasPolicy = sasPolicy,
        sftpEnabled = sftpEnabled,
        shareProperties = shareProperties,
        sharedAccessKeyEnabled = sharedAccessKeyEnabled,
        staticWebsite = staticWebsite,
        tableEncryptionKeyType = tableEncryptionKeyType,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy