1. Packages
  2. Azure Native
  3. API Docs
  4. storage
  5. BlobContainerLegalHold
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

azure-native.storage.BlobContainerLegalHold

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

    .

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:storage:BlobContainerLegalHold myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/legalHold 
    

    Create BlobContainerLegalHold Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BlobContainerLegalHold(name: string, args: BlobContainerLegalHoldArgs, opts?: CustomResourceOptions);
    @overload
    def BlobContainerLegalHold(resource_name: str,
                               args: BlobContainerLegalHoldArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlobContainerLegalHold(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               account_name: Optional[str] = None,
                               container_name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               tags: Optional[Sequence[str]] = None,
                               allow_protected_append_writes_all: Optional[bool] = None)
    func NewBlobContainerLegalHold(ctx *Context, name string, args BlobContainerLegalHoldArgs, opts ...ResourceOption) (*BlobContainerLegalHold, error)
    public BlobContainerLegalHold(string name, BlobContainerLegalHoldArgs args, CustomResourceOptions? opts = null)
    public BlobContainerLegalHold(String name, BlobContainerLegalHoldArgs args)
    public BlobContainerLegalHold(String name, BlobContainerLegalHoldArgs args, CustomResourceOptions options)
    
    type: azure-native:storage:BlobContainerLegalHold
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BlobContainerLegalHoldArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BlobContainerLegalHoldArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BlobContainerLegalHoldArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlobContainerLegalHoldArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlobContainerLegalHoldArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var blobContainerLegalHoldResource = new AzureNative.Storage.BlobContainerLegalHold("blobContainerLegalHoldResource", new()
    {
        AccountName = "string",
        ContainerName = "string",
        ResourceGroupName = "string",
        Tags = new[]
        {
            "string",
        },
        AllowProtectedAppendWritesAll = false,
    });
    
    example, err := storage.NewBlobContainerLegalHold(ctx, "blobContainerLegalHoldResource", &storage.BlobContainerLegalHoldArgs{
    AccountName: pulumi.String("string"),
    ContainerName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    Tags: pulumi.StringArray{
    pulumi.String("string"),
    },
    AllowProtectedAppendWritesAll: pulumi.Bool(false),
    })
    
    var blobContainerLegalHoldResource = new BlobContainerLegalHold("blobContainerLegalHoldResource", BlobContainerLegalHoldArgs.builder()        
        .accountName("string")
        .containerName("string")
        .resourceGroupName("string")
        .tags("string")
        .allowProtectedAppendWritesAll(false)
        .build());
    
    blob_container_legal_hold_resource = azure_native.storage.BlobContainerLegalHold("blobContainerLegalHoldResource",
        account_name="string",
        container_name="string",
        resource_group_name="string",
        tags=["string"],
        allow_protected_append_writes_all=False)
    
    const blobContainerLegalHoldResource = new azure_native.storage.BlobContainerLegalHold("blobContainerLegalHoldResource", {
        accountName: "string",
        containerName: "string",
        resourceGroupName: "string",
        tags: ["string"],
        allowProtectedAppendWritesAll: false,
    });
    
    type: azure-native:storage:BlobContainerLegalHold
    properties:
        accountName: string
        allowProtectedAppendWritesAll: false
        containerName: string
        resourceGroupName: string
        tags:
            - string
    

    BlobContainerLegalHold Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The BlobContainerLegalHold resource accepts the following input properties:

    AccountName string
    Name of the Storage Account.
    ContainerName string
    Name of the Blob Container.
    ResourceGroupName string
    Name of the resource group that contains the storage account.
    Tags List<string>
    List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
    AllowProtectedAppendWritesAll bool
    When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
    AccountName string
    Name of the Storage Account.
    ContainerName string
    Name of the Blob Container.
    ResourceGroupName string
    Name of the resource group that contains the storage account.
    Tags []string
    List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
    AllowProtectedAppendWritesAll bool
    When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
    accountName String
    Name of the Storage Account.
    containerName String
    Name of the Blob Container.
    resourceGroupName String
    Name of the resource group that contains the storage account.
    tags List<String>
    List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
    allowProtectedAppendWritesAll Boolean
    When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
    accountName string
    Name of the Storage Account.
    containerName string
    Name of the Blob Container.
    resourceGroupName string
    Name of the resource group that contains the storage account.
    tags string[]
    List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
    allowProtectedAppendWritesAll boolean
    When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
    account_name str
    Name of the Storage Account.
    container_name str
    Name of the Blob Container.
    resource_group_name str
    Name of the resource group that contains the storage account.
    tags Sequence[str]
    List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
    allow_protected_append_writes_all bool
    When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
    accountName String
    Name of the Storage Account.
    containerName String
    Name of the Blob Container.
    resourceGroupName String
    Name of the resource group that contains the storage account.
    tags List<String>
    List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
    allowProtectedAppendWritesAll Boolean
    When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BlobContainerLegalHold resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi