Vault

class Vault : KotlinCustomResource

Provides a Hybrid Backup Recovery (HBR) Vault resource. Where backup or archived data is stored. For information about Hybrid Backup Recovery (HBR) Vault and how to use it, see What is Vault.

NOTE: Available since v1.129.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const example = new alicloud.hbr.Vault("example", {vaultName: `example_value_${_default.result}`});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
example = alicloud.hbr.Vault("example", vault_name=f"example_value_{default['result']}")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var example = new AliCloud.Hbr.Vault("example", new()
{
VaultName = $"example_value_{@default.Result}",
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = hbr.NewVault(ctx, "example", &hbr.VaultArgs{
VaultName: pulumi.Sprintf("example_value_%v", _default.Result),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.integerArgs;
import com.pulumi.alicloud.hbr.Vault;
import com.pulumi.alicloud.hbr.VaultArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var example = new Vault("example", VaultArgs.builder()
.vaultName(String.format("example_value_%s", default_.result()))
.build());
}
}
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
example:
type: alicloud:hbr:Vault
properties:
vaultName: example_value_${default.result}

Import

Hybrid Backup Recovery (HBR) Vault can be imported using the id, e.g.

$ pulumi import alicloud:hbr/vault:Vault example <id>

Properties

Link copied to clipboard
val createTime: Output<String>

(Available since v1.243.0) The time when the backup vault was created.

Link copied to clipboard
val description: Output<String>?

The description of Vault. Defaults to an empty string.

Link copied to clipboard
val encryptType: Output<String>

Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyId: Output<String>?

The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regionId: Output<String>

(Available since v1.243.0) The ID of the region in which the backup vault resides.

Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the resource group.

Link copied to clipboard
val status: Output<String>

The status of the Vault.

Link copied to clipboard
val tags: Output<Map<String, String>>?

The tag of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vaultName: Output<String>

The name of Vault.

Link copied to clipboard

The storage class of Vault. Valid values: STANDARD.

Link copied to clipboard
val vaultType: Output<String>

The type of Vault. Valid values: STANDARD, OTS_BACKUP.

Link copied to clipboard
val wormEnabled: Output<Boolean>?

Indicates whether the immutable backup feature is enabled. Valid values: true, false.