Vault
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}`});
Content copied to clipboard
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']}")
Content copied to clipboard
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}",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
example:
type: alicloud:hbr:Vault
properties:
vaultName: example_value_${default.result}
Content copied to clipboard
Import
Hybrid Backup Recovery (HBR) Vault can be imported using the id, e.g.
$ pulumi import alicloud:hbr/vault:Vault example <id>
Content copied to clipboard
Properties
Link copied to clipboard
(Available since v1.243.0) The time when the backup vault was created.
Link copied to clipboard
The description of Vault. Defaults to an empty string.
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The ID of the resource group.
Link copied to clipboard
The storage class of Vault. Valid values: STANDARD
.
Link copied to clipboard
Indicates whether the immutable backup feature is enabled. Valid values: true
, false
.