UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

177 lines (176 loc) 7.8 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * Properties of the blob container, including Id, resource name, resource type, Etag. * * Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01. * * Other available API versions: 2022-09-01, 2023-01-01, 2023-04-01, 2023-05-01, 2025-01-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storage [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare class BlobContainer extends pulumi.CustomResource { /** * Get an existing BlobContainer 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): BlobContainer; /** * Returns true if the given object is an instance of BlobContainer. 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 BlobContainer; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Default the container to use specified encryption scope for all writes. */ readonly defaultEncryptionScope: pulumi.Output<string | undefined>; /** * Indicates whether the blob container was deleted. */ readonly deleted: pulumi.Output<boolean>; /** * Blob container deletion time. */ readonly deletedTime: pulumi.Output<string>; /** * Block override of encryption scope from the container default. */ readonly denyEncryptionScopeOverride: pulumi.Output<boolean | undefined>; /** * Enable NFSv3 all squash on blob container. */ readonly enableNfsV3AllSquash: pulumi.Output<boolean | undefined>; /** * Enable NFSv3 root squash on blob container. */ readonly enableNfsV3RootSquash: pulumi.Output<boolean | undefined>; /** * Resource Etag. */ readonly etag: pulumi.Output<string>; /** * The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. */ readonly hasImmutabilityPolicy: pulumi.Output<boolean>; /** * The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. */ readonly hasLegalHold: pulumi.Output<boolean>; /** * The ImmutabilityPolicy property of the container. */ readonly immutabilityPolicy: pulumi.Output<outputs.storage.ImmutabilityPolicyPropertiesResponse>; /** * The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. */ readonly immutableStorageWithVersioning: pulumi.Output<outputs.storage.ImmutableStorageWithVersioningResponse | undefined>; /** * Returns the date and time the container was last modified. */ readonly lastModifiedTime: pulumi.Output<string>; /** * Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. */ readonly leaseDuration: pulumi.Output<string>; /** * Lease state of the container. */ readonly leaseState: pulumi.Output<string>; /** * The lease status of the container. */ readonly leaseStatus: pulumi.Output<string>; /** * The LegalHold property of the container. */ readonly legalHold: pulumi.Output<outputs.storage.LegalHoldPropertiesResponse>; /** * A name-value pair to associate with the container as metadata. */ readonly metadata: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The name of the resource */ readonly name: pulumi.Output<string>; /** * Specifies whether data in the container may be accessed publicly and the level of access. */ readonly publicAccess: pulumi.Output<string | undefined>; /** * Remaining retention days for soft deleted blob container. */ readonly remainingRetentionDays: pulumi.Output<number>; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: pulumi.Output<string>; /** * The version of the deleted blob container. */ readonly version: pulumi.Output<string>; /** * Create a BlobContainer 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: BlobContainerArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a BlobContainer resource. */ export interface BlobContainerArgs { /** * The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. */ accountName: pulumi.Input<string>; /** * The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. */ containerName?: pulumi.Input<string>; /** * Default the container to use specified encryption scope for all writes. */ defaultEncryptionScope?: pulumi.Input<string>; /** * Block override of encryption scope from the container default. */ denyEncryptionScopeOverride?: pulumi.Input<boolean>; /** * Enable NFSv3 all squash on blob container. */ enableNfsV3AllSquash?: pulumi.Input<boolean>; /** * Enable NFSv3 root squash on blob container. */ enableNfsV3RootSquash?: pulumi.Input<boolean>; /** * The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. */ immutableStorageWithVersioning?: pulumi.Input<inputs.storage.ImmutableStorageWithVersioningArgs>; /** * A name-value pair to associate with the container as metadata. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Specifies whether data in the container may be accessed publicly and the level of access. */ publicAccess?: pulumi.Input<enums.storage.PublicAccess>; /** * The name of the resource group within the user's subscription. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }