"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Account = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * 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",
 *     },
 * });
 * ```
 *
 * ### 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",
 *     },
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Storage` - 2025-08-01
 *
 * ## 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
 * ```
 */
class Account extends pulumi.CustomResource {
    /**
     * Get an existing Account resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new Account(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:storage/account:Account';
    /**
     * Returns true if the given object is an instance of Account.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === Account.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["accessTier"] = state?.accessTier;
            resourceInputs["accountKind"] = state?.accountKind;
            resourceInputs["accountReplicationType"] = state?.accountReplicationType;
            resourceInputs["accountTier"] = state?.accountTier;
            resourceInputs["allowNestedItemsToBePublic"] = state?.allowNestedItemsToBePublic;
            resourceInputs["allowedCopyScope"] = state?.allowedCopyScope;
            resourceInputs["azureFilesAuthentication"] = state?.azureFilesAuthentication;
            resourceInputs["blobProperties"] = state?.blobProperties;
            resourceInputs["crossTenantReplicationEnabled"] = state?.crossTenantReplicationEnabled;
            resourceInputs["customDomain"] = state?.customDomain;
            resourceInputs["customerManagedKey"] = state?.customerManagedKey;
            resourceInputs["defaultToOauthAuthentication"] = state?.defaultToOauthAuthentication;
            resourceInputs["dnsEndpointType"] = state?.dnsEndpointType;
            resourceInputs["edgeZone"] = state?.edgeZone;
            resourceInputs["httpsTrafficOnlyEnabled"] = state?.httpsTrafficOnlyEnabled;
            resourceInputs["identity"] = state?.identity;
            resourceInputs["immutabilityPolicy"] = state?.immutabilityPolicy;
            resourceInputs["infrastructureEncryptionEnabled"] = state?.infrastructureEncryptionEnabled;
            resourceInputs["isHnsEnabled"] = state?.isHnsEnabled;
            resourceInputs["largeFileShareEnabled"] = state?.largeFileShareEnabled;
            resourceInputs["localUserEnabled"] = state?.localUserEnabled;
            resourceInputs["location"] = state?.location;
            resourceInputs["minTlsVersion"] = state?.minTlsVersion;
            resourceInputs["name"] = state?.name;
            resourceInputs["networkRules"] = state?.networkRules;
            resourceInputs["nfsv3Enabled"] = state?.nfsv3Enabled;
            resourceInputs["primaryAccessKey"] = state?.primaryAccessKey;
            resourceInputs["primaryBlobConnectionString"] = state?.primaryBlobConnectionString;
            resourceInputs["primaryBlobEndpoint"] = state?.primaryBlobEndpoint;
            resourceInputs["primaryBlobHost"] = state?.primaryBlobHost;
            resourceInputs["primaryBlobInternetEndpoint"] = state?.primaryBlobInternetEndpoint;
            resourceInputs["primaryBlobInternetHost"] = state?.primaryBlobInternetHost;
            resourceInputs["primaryBlobMicrosoftEndpoint"] = state?.primaryBlobMicrosoftEndpoint;
            resourceInputs["primaryBlobMicrosoftHost"] = state?.primaryBlobMicrosoftHost;
            resourceInputs["primaryConnectionString"] = state?.primaryConnectionString;
            resourceInputs["primaryDfsEndpoint"] = state?.primaryDfsEndpoint;
            resourceInputs["primaryDfsHost"] = state?.primaryDfsHost;
            resourceInputs["primaryDfsInternetEndpoint"] = state?.primaryDfsInternetEndpoint;
            resourceInputs["primaryDfsInternetHost"] = state?.primaryDfsInternetHost;
            resourceInputs["primaryDfsMicrosoftEndpoint"] = state?.primaryDfsMicrosoftEndpoint;
            resourceInputs["primaryDfsMicrosoftHost"] = state?.primaryDfsMicrosoftHost;
            resourceInputs["primaryFileEndpoint"] = state?.primaryFileEndpoint;
            resourceInputs["primaryFileHost"] = state?.primaryFileHost;
            resourceInputs["primaryFileInternetEndpoint"] = state?.primaryFileInternetEndpoint;
            resourceInputs["primaryFileInternetHost"] = state?.primaryFileInternetHost;
            resourceInputs["primaryFileMicrosoftEndpoint"] = state?.primaryFileMicrosoftEndpoint;
            resourceInputs["primaryFileMicrosoftHost"] = state?.primaryFileMicrosoftHost;
            resourceInputs["primaryLocation"] = state?.primaryLocation;
            resourceInputs["primaryQueueEndpoint"] = state?.primaryQueueEndpoint;
            resourceInputs["primaryQueueHost"] = state?.primaryQueueHost;
            resourceInputs["primaryQueueMicrosoftEndpoint"] = state?.primaryQueueMicrosoftEndpoint;
            resourceInputs["primaryQueueMicrosoftHost"] = state?.primaryQueueMicrosoftHost;
            resourceInputs["primaryTableEndpoint"] = state?.primaryTableEndpoint;
            resourceInputs["primaryTableHost"] = state?.primaryTableHost;
            resourceInputs["primaryTableMicrosoftEndpoint"] = state?.primaryTableMicrosoftEndpoint;
            resourceInputs["primaryTableMicrosoftHost"] = state?.primaryTableMicrosoftHost;
            resourceInputs["primaryWebEndpoint"] = state?.primaryWebEndpoint;
            resourceInputs["primaryWebHost"] = state?.primaryWebHost;
            resourceInputs["primaryWebInternetEndpoint"] = state?.primaryWebInternetEndpoint;
            resourceInputs["primaryWebInternetHost"] = state?.primaryWebInternetHost;
            resourceInputs["primaryWebMicrosoftEndpoint"] = state?.primaryWebMicrosoftEndpoint;
            resourceInputs["primaryWebMicrosoftHost"] = state?.primaryWebMicrosoftHost;
            resourceInputs["provisionedBillingModelVersion"] = state?.provisionedBillingModelVersion;
            resourceInputs["publicNetworkAccessEnabled"] = state?.publicNetworkAccessEnabled;
            resourceInputs["queueEncryptionKeyType"] = state?.queueEncryptionKeyType;
            resourceInputs["queueProperties"] = state?.queueProperties;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["routing"] = state?.routing;
            resourceInputs["sasPolicy"] = state?.sasPolicy;
            resourceInputs["secondaryAccessKey"] = state?.secondaryAccessKey;
            resourceInputs["secondaryBlobConnectionString"] = state?.secondaryBlobConnectionString;
            resourceInputs["secondaryBlobEndpoint"] = state?.secondaryBlobEndpoint;
            resourceInputs["secondaryBlobHost"] = state?.secondaryBlobHost;
            resourceInputs["secondaryBlobInternetEndpoint"] = state?.secondaryBlobInternetEndpoint;
            resourceInputs["secondaryBlobInternetHost"] = state?.secondaryBlobInternetHost;
            resourceInputs["secondaryBlobMicrosoftEndpoint"] = state?.secondaryBlobMicrosoftEndpoint;
            resourceInputs["secondaryBlobMicrosoftHost"] = state?.secondaryBlobMicrosoftHost;
            resourceInputs["secondaryConnectionString"] = state?.secondaryConnectionString;
            resourceInputs["secondaryDfsEndpoint"] = state?.secondaryDfsEndpoint;
            resourceInputs["secondaryDfsHost"] = state?.secondaryDfsHost;
            resourceInputs["secondaryDfsInternetEndpoint"] = state?.secondaryDfsInternetEndpoint;
            resourceInputs["secondaryDfsInternetHost"] = state?.secondaryDfsInternetHost;
            resourceInputs["secondaryDfsMicrosoftEndpoint"] = state?.secondaryDfsMicrosoftEndpoint;
            resourceInputs["secondaryDfsMicrosoftHost"] = state?.secondaryDfsMicrosoftHost;
            resourceInputs["secondaryFileEndpoint"] = state?.secondaryFileEndpoint;
            resourceInputs["secondaryFileHost"] = state?.secondaryFileHost;
            resourceInputs["secondaryFileInternetEndpoint"] = state?.secondaryFileInternetEndpoint;
            resourceInputs["secondaryFileInternetHost"] = state?.secondaryFileInternetHost;
            resourceInputs["secondaryFileMicrosoftEndpoint"] = state?.secondaryFileMicrosoftEndpoint;
            resourceInputs["secondaryFileMicrosoftHost"] = state?.secondaryFileMicrosoftHost;
            resourceInputs["secondaryLocation"] = state?.secondaryLocation;
            resourceInputs["secondaryQueueEndpoint"] = state?.secondaryQueueEndpoint;
            resourceInputs["secondaryQueueHost"] = state?.secondaryQueueHost;
            resourceInputs["secondaryQueueMicrosoftEndpoint"] = state?.secondaryQueueMicrosoftEndpoint;
            resourceInputs["secondaryQueueMicrosoftHost"] = state?.secondaryQueueMicrosoftHost;
            resourceInputs["secondaryTableEndpoint"] = state?.secondaryTableEndpoint;
            resourceInputs["secondaryTableHost"] = state?.secondaryTableHost;
            resourceInputs["secondaryTableMicrosoftEndpoint"] = state?.secondaryTableMicrosoftEndpoint;
            resourceInputs["secondaryTableMicrosoftHost"] = state?.secondaryTableMicrosoftHost;
            resourceInputs["secondaryWebEndpoint"] = state?.secondaryWebEndpoint;
            resourceInputs["secondaryWebHost"] = state?.secondaryWebHost;
            resourceInputs["secondaryWebInternetEndpoint"] = state?.secondaryWebInternetEndpoint;
            resourceInputs["secondaryWebInternetHost"] = state?.secondaryWebInternetHost;
            resourceInputs["secondaryWebMicrosoftEndpoint"] = state?.secondaryWebMicrosoftEndpoint;
            resourceInputs["secondaryWebMicrosoftHost"] = state?.secondaryWebMicrosoftHost;
            resourceInputs["sftpEnabled"] = state?.sftpEnabled;
            resourceInputs["shareProperties"] = state?.shareProperties;
            resourceInputs["sharedAccessKeyEnabled"] = state?.sharedAccessKeyEnabled;
            resourceInputs["staticWebsite"] = state?.staticWebsite;
            resourceInputs["tableEncryptionKeyType"] = state?.tableEncryptionKeyType;
            resourceInputs["tags"] = state?.tags;
        }
        else {
            const args = argsOrState;
            if (args?.accountReplicationType === undefined && !opts.urn) {
                throw new Error("Missing required property 'accountReplicationType'");
            }
            if (args?.accountTier === undefined && !opts.urn) {
                throw new Error("Missing required property 'accountTier'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["accessTier"] = args?.accessTier;
            resourceInputs["accountKind"] = args?.accountKind;
            resourceInputs["accountReplicationType"] = args?.accountReplicationType;
            resourceInputs["accountTier"] = args?.accountTier;
            resourceInputs["allowNestedItemsToBePublic"] = args?.allowNestedItemsToBePublic;
            resourceInputs["allowedCopyScope"] = args?.allowedCopyScope;
            resourceInputs["azureFilesAuthentication"] = args?.azureFilesAuthentication;
            resourceInputs["blobProperties"] = args?.blobProperties;
            resourceInputs["crossTenantReplicationEnabled"] = args?.crossTenantReplicationEnabled;
            resourceInputs["customDomain"] = args?.customDomain;
            resourceInputs["customerManagedKey"] = args?.customerManagedKey;
            resourceInputs["defaultToOauthAuthentication"] = args?.defaultToOauthAuthentication;
            resourceInputs["dnsEndpointType"] = args?.dnsEndpointType;
            resourceInputs["edgeZone"] = args?.edgeZone;
            resourceInputs["httpsTrafficOnlyEnabled"] = args?.httpsTrafficOnlyEnabled;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["immutabilityPolicy"] = args?.immutabilityPolicy;
            resourceInputs["infrastructureEncryptionEnabled"] = args?.infrastructureEncryptionEnabled;
            resourceInputs["isHnsEnabled"] = args?.isHnsEnabled;
            resourceInputs["largeFileShareEnabled"] = args?.largeFileShareEnabled;
            resourceInputs["localUserEnabled"] = args?.localUserEnabled;
            resourceInputs["location"] = args?.location;
            resourceInputs["minTlsVersion"] = args?.minTlsVersion;
            resourceInputs["name"] = args?.name;
            resourceInputs["networkRules"] = args?.networkRules;
            resourceInputs["nfsv3Enabled"] = args?.nfsv3Enabled;
            resourceInputs["provisionedBillingModelVersion"] = args?.provisionedBillingModelVersion;
            resourceInputs["publicNetworkAccessEnabled"] = args?.publicNetworkAccessEnabled;
            resourceInputs["queueEncryptionKeyType"] = args?.queueEncryptionKeyType;
            resourceInputs["queueProperties"] = args?.queueProperties;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["routing"] = args?.routing;
            resourceInputs["sasPolicy"] = args?.sasPolicy;
            resourceInputs["sftpEnabled"] = args?.sftpEnabled;
            resourceInputs["shareProperties"] = args?.shareProperties;
            resourceInputs["sharedAccessKeyEnabled"] = args?.sharedAccessKeyEnabled;
            resourceInputs["staticWebsite"] = args?.staticWebsite;
            resourceInputs["tableEncryptionKeyType"] = args?.tableEncryptionKeyType;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["primaryAccessKey"] = undefined /*out*/;
            resourceInputs["primaryBlobConnectionString"] = undefined /*out*/;
            resourceInputs["primaryBlobEndpoint"] = undefined /*out*/;
            resourceInputs["primaryBlobHost"] = undefined /*out*/;
            resourceInputs["primaryBlobInternetEndpoint"] = undefined /*out*/;
            resourceInputs["primaryBlobInternetHost"] = undefined /*out*/;
            resourceInputs["primaryBlobMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["primaryBlobMicrosoftHost"] = undefined /*out*/;
            resourceInputs["primaryConnectionString"] = undefined /*out*/;
            resourceInputs["primaryDfsEndpoint"] = undefined /*out*/;
            resourceInputs["primaryDfsHost"] = undefined /*out*/;
            resourceInputs["primaryDfsInternetEndpoint"] = undefined /*out*/;
            resourceInputs["primaryDfsInternetHost"] = undefined /*out*/;
            resourceInputs["primaryDfsMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["primaryDfsMicrosoftHost"] = undefined /*out*/;
            resourceInputs["primaryFileEndpoint"] = undefined /*out*/;
            resourceInputs["primaryFileHost"] = undefined /*out*/;
            resourceInputs["primaryFileInternetEndpoint"] = undefined /*out*/;
            resourceInputs["primaryFileInternetHost"] = undefined /*out*/;
            resourceInputs["primaryFileMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["primaryFileMicrosoftHost"] = undefined /*out*/;
            resourceInputs["primaryLocation"] = undefined /*out*/;
            resourceInputs["primaryQueueEndpoint"] = undefined /*out*/;
            resourceInputs["primaryQueueHost"] = undefined /*out*/;
            resourceInputs["primaryQueueMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["primaryQueueMicrosoftHost"] = undefined /*out*/;
            resourceInputs["primaryTableEndpoint"] = undefined /*out*/;
            resourceInputs["primaryTableHost"] = undefined /*out*/;
            resourceInputs["primaryTableMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["primaryTableMicrosoftHost"] = undefined /*out*/;
            resourceInputs["primaryWebEndpoint"] = undefined /*out*/;
            resourceInputs["primaryWebHost"] = undefined /*out*/;
            resourceInputs["primaryWebInternetEndpoint"] = undefined /*out*/;
            resourceInputs["primaryWebInternetHost"] = undefined /*out*/;
            resourceInputs["primaryWebMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["primaryWebMicrosoftHost"] = undefined /*out*/;
            resourceInputs["secondaryAccessKey"] = undefined /*out*/;
            resourceInputs["secondaryBlobConnectionString"] = undefined /*out*/;
            resourceInputs["secondaryBlobEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryBlobHost"] = undefined /*out*/;
            resourceInputs["secondaryBlobInternetEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryBlobInternetHost"] = undefined /*out*/;
            resourceInputs["secondaryBlobMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryBlobMicrosoftHost"] = undefined /*out*/;
            resourceInputs["secondaryConnectionString"] = undefined /*out*/;
            resourceInputs["secondaryDfsEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryDfsHost"] = undefined /*out*/;
            resourceInputs["secondaryDfsInternetEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryDfsInternetHost"] = undefined /*out*/;
            resourceInputs["secondaryDfsMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryDfsMicrosoftHost"] = undefined /*out*/;
            resourceInputs["secondaryFileEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryFileHost"] = undefined /*out*/;
            resourceInputs["secondaryFileInternetEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryFileInternetHost"] = undefined /*out*/;
            resourceInputs["secondaryFileMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryFileMicrosoftHost"] = undefined /*out*/;
            resourceInputs["secondaryLocation"] = undefined /*out*/;
            resourceInputs["secondaryQueueEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryQueueHost"] = undefined /*out*/;
            resourceInputs["secondaryQueueMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryQueueMicrosoftHost"] = undefined /*out*/;
            resourceInputs["secondaryTableEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryTableHost"] = undefined /*out*/;
            resourceInputs["secondaryTableMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryTableMicrosoftHost"] = undefined /*out*/;
            resourceInputs["secondaryWebEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryWebHost"] = undefined /*out*/;
            resourceInputs["secondaryWebInternetEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryWebInternetHost"] = undefined /*out*/;
            resourceInputs["secondaryWebMicrosoftEndpoint"] = undefined /*out*/;
            resourceInputs["secondaryWebMicrosoftHost"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const secretOpts = { additionalSecretOutputs: ["primaryAccessKey", "primaryBlobConnectionString", "primaryConnectionString", "secondaryAccessKey", "secondaryBlobConnectionString", "secondaryConnectionString"] };
        opts = pulumi.mergeOptions(opts, secretOpts);
        super(Account.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Account = Account;
//# sourceMappingURL=account.js.map