Vault Args
data class VaultArgs(val description: Output<String>? = null, val encryptType: Output<String>? = null, val kmsKeyId: Output<String>? = null, val vaultName: Output<String>? = null, val vaultStorageClass: Output<String>? = null, val vaultType: Output<String>? = null) : ConvertibleToJava<VaultArgs>
Provides a HBR Backup vault resource. For information about HBR Backup vault and how to use it, see What is Backup 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 {
_, 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.String(fmt.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
HBR Vault can be imported using the id, e.g.
$ pulumi import alicloud:hbr/vault:Vault example <id>Content copied to clipboard
Constructors
Properties
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
The storage class of Vault. Valid values: STANDARD.