import * as pulumi from "@pulumi/pulumi"; /** * Manages the Static Website of 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", * }, * }); * const exampleAccountStaticWebsite = new azure.storage.AccountStaticWebsite("example", { * storageAccountId: exampleAccount.id, * error404Document: "custom_not_found.html", * indexDocument: "custom_index.html", * }); * ``` * * ## Import * * Storage Account Static Websites can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:storage/accountStaticWebsite:AccountStaticWebsite mysite /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount * ``` */ export declare class AccountStaticWebsite extends pulumi.CustomResource { /** * Get an existing AccountStaticWebsite 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: string, id: pulumi.Input, state?: AccountStaticWebsiteState, opts?: pulumi.CustomResourceOptions): AccountStaticWebsite; /** * Returns true if the given object is an instance of AccountStaticWebsite. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AccountStaticWebsite; /** * The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file. */ readonly error404Document: pulumi.Output; /** * The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. */ readonly indexDocument: pulumi.Output; /** * The ID of the Storage Account to set Static Website on. Changing this forces a new resource to be created. */ readonly storageAccountId: pulumi.Output; /** * Create a AccountStaticWebsite resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AccountStaticWebsiteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccountStaticWebsite resources. */ export interface AccountStaticWebsiteState { /** * The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file. */ error404Document?: pulumi.Input; /** * The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. */ indexDocument?: pulumi.Input; /** * The ID of the Storage Account to set Static Website on. Changing this forces a new resource to be created. */ storageAccountId?: pulumi.Input; } /** * The set of arguments for constructing a AccountStaticWebsite resource. */ export interface AccountStaticWebsiteArgs { /** * The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file. */ error404Document?: pulumi.Input; /** * The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. */ indexDocument?: pulumi.Input; /** * The ID of the Storage Account to set Static Website on. Changing this forces a new resource to be created. */ storageAccountId: pulumi.Input; }