This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getBlobContainerImmutabilityPolicy.go
46 lines (41 loc) · 2.92 KB
/
getBlobContainerImmutabilityPolicy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupBlobContainerImmutabilityPolicy(ctx *pulumi.Context, args *LookupBlobContainerImmutabilityPolicyArgs, opts ...pulumi.InvokeOption) (*LookupBlobContainerImmutabilityPolicyResult, error) {
var rv LookupBlobContainerImmutabilityPolicyResult
err := ctx.Invoke("azure-nextgen:storage/v20190601:getBlobContainerImmutabilityPolicy", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupBlobContainerImmutabilityPolicyArgs struct {
// 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 string `pulumi:"accountName"`
// 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 string `pulumi:"containerName"`
// The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
ImmutabilityPolicyName string `pulumi:"immutabilityPolicyName"`
// The name of the resource group within the user's subscription. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
type LookupBlobContainerImmutabilityPolicyResult struct {
// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API
AllowProtectedAppendWrites *bool `pulumi:"allowProtectedAppendWrites"`
// Resource Etag.
Etag string `pulumi:"etag"`
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// The immutability period for the blobs in the container since the policy creation, in days.
ImmutabilityPeriodSinceCreationInDays *int `pulumi:"immutabilityPeriodSinceCreationInDays"`
// The name of the resource
Name string `pulumi:"name"`
// The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
State string `pulumi:"state"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
}