
com.pulumi.azurenative.storage.StorageAccountStaticWebsite Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.storage;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.storage.StorageAccountStaticWebsiteArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Enables the static website feature of a storage account.
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:storage:StorageAccountStaticWebsite myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/staticWebsite
* ```
*
*/
@ResourceType(type="azure-native:storage:StorageAccountStaticWebsite")
public class StorageAccountStaticWebsite extends com.pulumi.resources.CustomResource {
/**
* The name of the container to upload blobs to.
*
*/
@Export(name="containerName", refs={String.class}, tree="[0]")
private Output containerName;
/**
* @return The name of the container to upload blobs to.
*
*/
public Output containerName() {
return this.containerName;
}
/**
* The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
*
*/
@Export(name="error404Document", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> error404Document;
/**
* @return The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
*
*/
public Output> error404Document() {
return Codegen.optional(this.error404Document);
}
/**
* The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
*
*/
@Export(name="indexDocument", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> indexDocument;
/**
* @return The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
*
*/
public Output> indexDocument() {
return Codegen.optional(this.indexDocument);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public StorageAccountStaticWebsite(java.lang.String name) {
this(name, StorageAccountStaticWebsiteArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public StorageAccountStaticWebsite(java.lang.String name, StorageAccountStaticWebsiteArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public StorageAccountStaticWebsite(java.lang.String name, StorageAccountStaticWebsiteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:storage:StorageAccountStaticWebsite", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private StorageAccountStaticWebsite(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:storage:StorageAccountStaticWebsite", name, null, makeResourceOptions(options, id), false);
}
private static StorageAccountStaticWebsiteArgs makeArgs(StorageAccountStaticWebsiteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? StorageAccountStaticWebsiteArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static StorageAccountStaticWebsite get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new StorageAccountStaticWebsite(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy