azure-native.storage.BlobContainerLegalHold
Explore with Pulumi AI
.
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BlobContainerLegalHold resource accepts the following input properties:
- Account
Name string - Name of the Storage Account.
- Container
Name string - Name of the Blob Container.
- Resource
Group stringName - Name of the resource group that contains the storage account.
- List<string>
- List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
- Allow
Protected boolAppend Writes All - 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 string - Name of the Storage Account.
- Container
Name string - Name of the Blob Container.
- Resource
Group stringName - Name of the resource group that contains the storage account.
- []string
- List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
- Allow
Protected boolAppend Writes All - 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 String - Name of the Storage Account.
- container
Name String - Name of the Blob Container.
- resource
Group StringName - Name of the resource group that contains the storage account.
- List<String>
- List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
- allow
Protected BooleanAppend Writes All - 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 string - Name of the Storage Account.
- container
Name string - Name of the Blob Container.
- resource
Group stringName - Name of the resource group that contains the storage account.
- string[]
- List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
- allow
Protected booleanAppend Writes All - 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_ strname - Name of the resource group that contains the storage account.
- 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_ boolappend_ writes_ all - 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 String - Name of the Storage Account.
- container
Name String - Name of the Blob Container.
- resource
Group StringName - Name of the resource group that contains the storage account.
- List<String>
- List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
- allow
Protected BooleanAppend Writes All - 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