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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.storage.kotlin

import com.pulumi.azure.storage.kotlin.outputs.AccountAzureFilesAuthentication
import com.pulumi.azure.storage.kotlin.outputs.AccountBlobProperties
import com.pulumi.azure.storage.kotlin.outputs.AccountCustomDomain
import com.pulumi.azure.storage.kotlin.outputs.AccountCustomerManagedKey
import com.pulumi.azure.storage.kotlin.outputs.AccountIdentity
import com.pulumi.azure.storage.kotlin.outputs.AccountImmutabilityPolicy
import com.pulumi.azure.storage.kotlin.outputs.AccountNetworkRules
import com.pulumi.azure.storage.kotlin.outputs.AccountQueueProperties
import com.pulumi.azure.storage.kotlin.outputs.AccountRouting
import com.pulumi.azure.storage.kotlin.outputs.AccountSasPolicy
import com.pulumi.azure.storage.kotlin.outputs.AccountShareProperties
import com.pulumi.azure.storage.kotlin.outputs.AccountStaticWebsite
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.azure.storage.kotlin.outputs.AccountAzureFilesAuthentication.Companion.toKotlin as accountAzureFilesAuthenticationToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountBlobProperties.Companion.toKotlin as accountBlobPropertiesToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountCustomDomain.Companion.toKotlin as accountCustomDomainToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountCustomerManagedKey.Companion.toKotlin as accountCustomerManagedKeyToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountIdentity.Companion.toKotlin as accountIdentityToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountImmutabilityPolicy.Companion.toKotlin as accountImmutabilityPolicyToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountNetworkRules.Companion.toKotlin as accountNetworkRulesToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountQueueProperties.Companion.toKotlin as accountQueuePropertiesToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountRouting.Companion.toKotlin as accountRoutingToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountSasPolicy.Companion.toKotlin as accountSasPolicyToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountShareProperties.Companion.toKotlin as accountSharePropertiesToKotlin
import com.pulumi.azure.storage.kotlin.outputs.AccountStaticWebsite.Companion.toKotlin as accountStaticWebsiteToKotlin

/**
 * Builder for [Account].
 */
@PulumiTagMarker
public class AccountResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: AccountArgs = AccountArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend AccountArgsBuilder.() -> Unit) {
        val builder = AccountArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): Account {
        val builtJavaResource = com.pulumi.azure.storage.Account(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return Account(builtJavaResource)
    }
}

/**
 * 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=azure.storage.AccountNetworkRulesArgs(
 *         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
 * ```
 */
public class Account internal constructor(
    override val javaResource: com.pulumi.azure.storage.Account,
) : KotlinCustomResource(javaResource, AccountMapper) {
    /**
     * Defines the access tier for `BlobStorage`, `FileStorage` and `StorageV2` accounts. Valid options are `Hot` and `Cool`, defaults to `Hot`.
     */
    public val accessTier: Output
        get() = javaResource.accessTier().applyValue({ args0 -> args0 })

    /**
     * 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.
     */
    public val accountKind: Output?
        get() = javaResource.accountKind().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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.
     */
    public val accountReplicationType: Output
        get() = javaResource.accountReplicationType().applyValue({ args0 -> args0 })

    /**
     * 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`.
     */
    public val accountTier: Output
        get() = javaResource.accountTier().applyValue({ args0 -> args0 })

    /**
     * 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.
     */
    public val allowNestedItemsToBePublic: Output?
        get() = javaResource.allowNestedItemsToBePublic().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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`.
     */
    public val allowedCopyScope: Output?
        get() = javaResource.allowedCopyScope().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A `azure_files_authentication` block as defined below.
     */
    public val azureFilesAuthentication: Output?
        get() = javaResource.azureFilesAuthentication().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> accountAzureFilesAuthenticationToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * A `blob_properties` block as defined below.
     */
    public val blobProperties: Output
        get() = javaResource.blobProperties().applyValue({ args0 ->
            args0.let({ args0 ->
                accountBlobPropertiesToKotlin(args0)
            })
        })

    /**
     * Should cross Tenant replication be enabled? Defaults to `true`.
     */
    public val crossTenantReplicationEnabled: Output?
        get() = javaResource.crossTenantReplicationEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A `custom_domain` block as documented below.
     */
    public val customDomain: Output?
        get() = javaResource.customDomain().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    accountCustomDomainToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * A `customer_managed_key` block as documented below.
     */
    public val customerManagedKey: Output?
        get() = javaResource.customerManagedKey().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> accountCustomerManagedKeyToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Default to Azure Active Directory authorization in the Azure portal when accessing the Storage Account. The default value is `false`
     */
    public val defaultToOauthAuthentication: Output?
        get() = javaResource.defaultToOauthAuthentication().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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"`.
     */
    public val dnsEndpointType: Output?
        get() = javaResource.dnsEndpointType().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Specifies the Edge Zone within the Azure Region where this Storage Account should exist. Changing this forces a new Storage Account to be created.
     */
    public val edgeZone: Output?
        get() = javaResource.edgeZone().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    /**
     * 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`.
     */
    public val enableHttpsTrafficOnly: Output?
        get() = javaResource.enableHttpsTrafficOnly().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * An `identity` block as defined below.
     */
    public val identity: Output?
        get() = javaResource.identity().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    accountIdentityToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * An `immutability_policy` block as defined below. Changing this forces a new resource to be created.
     */
    public val immutabilityPolicy: Output?
        get() = javaResource.immutabilityPolicy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> accountImmutabilityPolicyToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * 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`.
     */
    public val infrastructureEncryptionEnabled: Output?
        get() = javaResource.infrastructureEncryptionEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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`
     */
    public val isHnsEnabled: Output?
        get() = javaResource.isHnsEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Is Large File Share Enabled?
     */
    public val largeFileShareEnabled: Output
        get() = javaResource.largeFileShareEnabled().applyValue({ args0 -> args0 })

    /**
     * Is Local User Enabled? Defaults to `true`.
     */
    public val localUserEnabled: Output?
        get() = javaResource.localUserEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    public val location: Output
        get() = javaResource.location().applyValue({ args0 -> args0 })

    /**
     * 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.
     */
    public val minTlsVersion: Output?
        get() = javaResource.minTlsVersion().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * A `network_rules` block as documented below.
     */
    public val networkRules: Output
        get() = javaResource.networkRules().applyValue({ args0 ->
            args0.let({ args0 ->
                accountNetworkRulesToKotlin(args0)
            })
        })

    /**
     * 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`.
     */
    public val nfsv3Enabled: Output?
        get() = javaResource.nfsv3Enabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The primary access key for the storage account.
     */
    public val primaryAccessKey: Output
        get() = javaResource.primaryAccessKey().applyValue({ args0 -> args0 })

    /**
     * The connection string associated with the primary blob location.
     */
    public val primaryBlobConnectionString: Output
        get() = javaResource.primaryBlobConnectionString().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for blob storage in the primary location.
     */
    public val primaryBlobEndpoint: Output
        get() = javaResource.primaryBlobEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for blob storage in the primary location.
     */
    public val primaryBlobHost: Output
        get() = javaResource.primaryBlobHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for blob storage in the primary location.
     */
    public val primaryBlobInternetEndpoint: Output
        get() = javaResource.primaryBlobInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for blob storage in the primary location.
     */
    public val primaryBlobInternetHost: Output
        get() = javaResource.primaryBlobInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for blob storage in the primary location.
     */
    public val primaryBlobMicrosoftEndpoint: Output
        get() = javaResource.primaryBlobMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for blob storage in the primary location.
     */
    public val primaryBlobMicrosoftHost: Output
        get() = javaResource.primaryBlobMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The connection string associated with the primary location.
     */
    public val primaryConnectionString: Output
        get() = javaResource.primaryConnectionString().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for DFS storage in the primary location.
     */
    public val primaryDfsEndpoint: Output
        get() = javaResource.primaryDfsEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for DFS storage in the primary location.
     */
    public val primaryDfsHost: Output
        get() = javaResource.primaryDfsHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for DFS storage in the primary location.
     */
    public val primaryDfsInternetEndpoint: Output
        get() = javaResource.primaryDfsInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for DFS storage in the primary location.
     */
    public val primaryDfsInternetHost: Output
        get() = javaResource.primaryDfsInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for DFS storage in the primary location.
     */
    public val primaryDfsMicrosoftEndpoint: Output
        get() = javaResource.primaryDfsMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for DFS storage in the primary location.
     */
    public val primaryDfsMicrosoftHost: Output
        get() = javaResource.primaryDfsMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for file storage in the primary location.
     */
    public val primaryFileEndpoint: Output
        get() = javaResource.primaryFileEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for file storage in the primary location.
     */
    public val primaryFileHost: Output
        get() = javaResource.primaryFileHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for file storage in the primary location.
     */
    public val primaryFileInternetEndpoint: Output
        get() = javaResource.primaryFileInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for file storage in the primary location.
     */
    public val primaryFileInternetHost: Output
        get() = javaResource.primaryFileInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for file storage in the primary location.
     */
    public val primaryFileMicrosoftEndpoint: Output
        get() = javaResource.primaryFileMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for file storage in the primary location.
     */
    public val primaryFileMicrosoftHost: Output
        get() = javaResource.primaryFileMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The primary location of the storage account.
     */
    public val primaryLocation: Output
        get() = javaResource.primaryLocation().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for queue storage in the primary location.
     */
    public val primaryQueueEndpoint: Output
        get() = javaResource.primaryQueueEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for queue storage in the primary location.
     */
    public val primaryQueueHost: Output
        get() = javaResource.primaryQueueHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for queue storage in the primary location.
     */
    public val primaryQueueMicrosoftEndpoint: Output
        get() = javaResource.primaryQueueMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for queue storage in the primary location.
     */
    public val primaryQueueMicrosoftHost: Output
        get() = javaResource.primaryQueueMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for table storage in the primary location.
     */
    public val primaryTableEndpoint: Output
        get() = javaResource.primaryTableEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for table storage in the primary location.
     */
    public val primaryTableHost: Output
        get() = javaResource.primaryTableHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for table storage in the primary location.
     */
    public val primaryTableMicrosoftEndpoint: Output
        get() = javaResource.primaryTableMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for table storage in the primary location.
     */
    public val primaryTableMicrosoftHost: Output
        get() = javaResource.primaryTableMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for web storage in the primary location.
     */
    public val primaryWebEndpoint: Output
        get() = javaResource.primaryWebEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for web storage in the primary location.
     */
    public val primaryWebHost: Output
        get() = javaResource.primaryWebHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for web storage in the primary location.
     */
    public val primaryWebInternetEndpoint: Output
        get() = javaResource.primaryWebInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for web storage in the primary location.
     */
    public val primaryWebInternetHost: Output
        get() = javaResource.primaryWebInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for web storage in the primary location.
     */
    public val primaryWebMicrosoftEndpoint: Output
        get() = javaResource.primaryWebMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for web storage in the primary location.
     */
    public val primaryWebMicrosoftHost: Output
        get() = javaResource.primaryWebMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * Whether the public network access is enabled? Defaults to `true`.
     */
    public val publicNetworkAccessEnabled: Output?
        get() = javaResource.publicNetworkAccessEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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`.
     */
    public val queueEncryptionKeyType: Output?
        get() = javaResource.queueEncryptionKeyType().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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`.
     */
    public val queueProperties: Output
        get() = javaResource.queueProperties().applyValue({ args0 ->
            args0.let({ args0 ->
                accountQueuePropertiesToKotlin(args0)
            })
        })

    /**
     * The name of the resource group in which to create the storage account. Changing this forces a new resource to be created.
     */
    public val resourceGroupName: Output
        get() = javaResource.resourceGroupName().applyValue({ args0 -> args0 })

    /**
     * A `routing` block as defined below.
     */
    public val routing: Output
        get() = javaResource.routing().applyValue({ args0 ->
            args0.let({ args0 ->
                accountRoutingToKotlin(args0)
            })
        })

    /**
     * A `sas_policy` block as defined below.
     */
    public val sasPolicy: Output?
        get() = javaResource.sasPolicy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    accountSasPolicyToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * The secondary access key for the storage account.
     */
    public val secondaryAccessKey: Output
        get() = javaResource.secondaryAccessKey().applyValue({ args0 -> args0 })

    /**
     * The connection string associated with the secondary blob location.
     */
    public val secondaryBlobConnectionString: Output
        get() = javaResource.secondaryBlobConnectionString().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for blob storage in the secondary location.
     */
    public val secondaryBlobEndpoint: Output
        get() = javaResource.secondaryBlobEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for blob storage in the secondary location.
     */
    public val secondaryBlobHost: Output
        get() = javaResource.secondaryBlobHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for blob storage in the secondary location.
     */
    public val secondaryBlobInternetEndpoint: Output
        get() = javaResource.secondaryBlobInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for blob storage in the secondary location.
     */
    public val secondaryBlobInternetHost: Output
        get() = javaResource.secondaryBlobInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for blob storage in the secondary location.
     */
    public val secondaryBlobMicrosoftEndpoint: Output
        get() = javaResource.secondaryBlobMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for blob storage in the secondary location.
     */
    public val secondaryBlobMicrosoftHost: Output
        get() = javaResource.secondaryBlobMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The connection string associated with the secondary location.
     */
    public val secondaryConnectionString: Output
        get() = javaResource.secondaryConnectionString().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for DFS storage in the secondary location.
     */
    public val secondaryDfsEndpoint: Output
        get() = javaResource.secondaryDfsEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for DFS storage in the secondary location.
     */
    public val secondaryDfsHost: Output
        get() = javaResource.secondaryDfsHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for DFS storage in the secondary location.
     */
    public val secondaryDfsInternetEndpoint: Output
        get() = javaResource.secondaryDfsInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for DFS storage in the secondary location.
     */
    public val secondaryDfsInternetHost: Output
        get() = javaResource.secondaryDfsInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for DFS storage in the secondary location.
     */
    public val secondaryDfsMicrosoftEndpoint: Output
        get() = javaResource.secondaryDfsMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for DFS storage in the secondary location.
     */
    public val secondaryDfsMicrosoftHost: Output
        get() = javaResource.secondaryDfsMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for file storage in the secondary location.
     */
    public val secondaryFileEndpoint: Output
        get() = javaResource.secondaryFileEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for file storage in the secondary location.
     */
    public val secondaryFileHost: Output
        get() = javaResource.secondaryFileHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for file storage in the secondary location.
     */
    public val secondaryFileInternetEndpoint: Output
        get() = javaResource.secondaryFileInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for file storage in the secondary location.
     */
    public val secondaryFileInternetHost: Output
        get() = javaResource.secondaryFileInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for file storage in the secondary location.
     */
    public val secondaryFileMicrosoftEndpoint: Output
        get() = javaResource.secondaryFileMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for file storage in the secondary location.
     */
    public val secondaryFileMicrosoftHost: Output
        get() = javaResource.secondaryFileMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The secondary location of the storage account.
     */
    public val secondaryLocation: Output
        get() = javaResource.secondaryLocation().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for queue storage in the secondary location.
     */
    public val secondaryQueueEndpoint: Output
        get() = javaResource.secondaryQueueEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for queue storage in the secondary location.
     */
    public val secondaryQueueHost: Output
        get() = javaResource.secondaryQueueHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for queue storage in the secondary location.
     */
    public val secondaryQueueMicrosoftEndpoint: Output
        get() = javaResource.secondaryQueueMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for queue storage in the secondary location.
     */
    public val secondaryQueueMicrosoftHost: Output
        get() = javaResource.secondaryQueueMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for table storage in the secondary location.
     */
    public val secondaryTableEndpoint: Output
        get() = javaResource.secondaryTableEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for table storage in the secondary location.
     */
    public val secondaryTableHost: Output
        get() = javaResource.secondaryTableHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for table storage in the secondary location.
     */
    public val secondaryTableMicrosoftEndpoint: Output
        get() = javaResource.secondaryTableMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for table storage in the secondary location.
     */
    public val secondaryTableMicrosoftHost: Output
        get() = javaResource.secondaryTableMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * The endpoint URL for web storage in the secondary location.
     */
    public val secondaryWebEndpoint: Output
        get() = javaResource.secondaryWebEndpoint().applyValue({ args0 -> args0 })

    /**
     * The hostname with port if applicable for web storage in the secondary location.
     */
    public val secondaryWebHost: Output
        get() = javaResource.secondaryWebHost().applyValue({ args0 -> args0 })

    /**
     * The internet routing endpoint URL for web storage in the secondary location.
     */
    public val secondaryWebInternetEndpoint: Output
        get() = javaResource.secondaryWebInternetEndpoint().applyValue({ args0 -> args0 })

    /**
     * The internet routing hostname with port if applicable for web storage in the secondary location.
     */
    public val secondaryWebInternetHost: Output
        get() = javaResource.secondaryWebInternetHost().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing endpoint URL for web storage in the secondary location.
     */
    public val secondaryWebMicrosoftEndpoint: Output
        get() = javaResource.secondaryWebMicrosoftEndpoint().applyValue({ args0 -> args0 })

    /**
     * The microsoft routing hostname with port if applicable for web storage in the secondary location.
     */
    public val secondaryWebMicrosoftHost: Output
        get() = javaResource.secondaryWebMicrosoftHost().applyValue({ args0 -> args0 })

    /**
     * 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`
     */
    public val sftpEnabled: Output?
        get() = javaResource.sftpEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * 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`.
     */
    public val shareProperties: Output
        get() = javaResource.shareProperties().applyValue({ args0 ->
            args0.let({ args0 ->
                accountSharePropertiesToKotlin(args0)
            })
        })

    public val sharedAccessKeyEnabled: Output?
        get() = javaResource.sharedAccessKeyEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A `static_website` block as defined below.
     * > **NOTE:** `static_website` can only be set when the `account_kind` is set to `StorageV2` or `BlockBlobStorage`.
     */
    public val staticWebsite: Output?
        get() = javaResource.staticWebsite().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> accountStaticWebsiteToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * 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`
     */
    public val tableEncryptionKeyType: Output?
        get() = javaResource.tableEncryptionKeyType().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A mapping of tags to assign to the resource.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })
}

public object AccountMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.azure.storage.Account::class == javaResource::class

    override fun map(javaResource: Resource): Account = Account(
        javaResource as
            com.pulumi.azure.storage.Account,
    )
}

/**
 * @see [Account].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [Account].
 */
public suspend fun account(name: String, block: suspend AccountResourceBuilder.() -> Unit):
    Account {
    val builder = AccountResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [Account].
 * @param name The _unique_ name of the resulting resource.
 */
public fun account(name: String): Account {
    val builder = AccountResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy