1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. hbr
  5. Vault
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.hbr.Vault

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    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";
    
    const example = new alicloud.hbr.Vault("example", {vaultName: "example_value"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.hbr.Vault("example", vault_name="example_value")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
    			VaultName: pulumi.String("example_value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.Hbr.Vault("example", new()
        {
            VaultName = "example_value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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 example = new Vault("example", VaultArgs.builder()        
                .vaultName("example_value")
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:hbr:Vault
        properties:
          vaultName: example_value
    

    Create Vault Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Vault(name: string, args: VaultArgs, opts?: CustomResourceOptions);
    @overload
    def Vault(resource_name: str,
              args: VaultArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vault(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              vault_name: Optional[str] = None,
              description: Optional[str] = None,
              encrypt_type: Optional[str] = None,
              kms_key_id: Optional[str] = None,
              vault_storage_class: Optional[str] = None,
              vault_type: Optional[str] = None)
    func NewVault(ctx *Context, name string, args VaultArgs, opts ...ResourceOption) (*Vault, error)
    public Vault(string name, VaultArgs args, CustomResourceOptions? opts = null)
    public Vault(String name, VaultArgs args)
    public Vault(String name, VaultArgs args, CustomResourceOptions options)
    
    type: alicloud:hbr:Vault
    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 VaultArgs
    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 VaultArgs
    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 VaultArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VaultArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VaultArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var vaultResource = new AliCloud.Hbr.Vault("vaultResource", new()
    {
        VaultName = "string",
        Description = "string",
        EncryptType = "string",
        KmsKeyId = "string",
        VaultStorageClass = "string",
        VaultType = "string",
    });
    
    example, err := hbr.NewVault(ctx, "vaultResource", &hbr.VaultArgs{
    	VaultName:         pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	EncryptType:       pulumi.String("string"),
    	KmsKeyId:          pulumi.String("string"),
    	VaultStorageClass: pulumi.String("string"),
    	VaultType:         pulumi.String("string"),
    })
    
    var vaultResource = new Vault("vaultResource", VaultArgs.builder()        
        .vaultName("string")
        .description("string")
        .encryptType("string")
        .kmsKeyId("string")
        .vaultStorageClass("string")
        .vaultType("string")
        .build());
    
    vault_resource = alicloud.hbr.Vault("vaultResource",
        vault_name="string",
        description="string",
        encrypt_type="string",
        kms_key_id="string",
        vault_storage_class="string",
        vault_type="string")
    
    const vaultResource = new alicloud.hbr.Vault("vaultResource", {
        vaultName: "string",
        description: "string",
        encryptType: "string",
        kmsKeyId: "string",
        vaultStorageClass: "string",
        vaultType: "string",
    });
    
    type: alicloud:hbr:Vault
    properties:
        description: string
        encryptType: string
        kmsKeyId: string
        vaultName: string
        vaultStorageClass: string
        vaultType: string
    

    Vault Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Vault resource accepts the following input properties:

    VaultName string
    The name of Vault.
    Description string
    The description of Vault. Defaults to an empty string.
    EncryptType string
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    KmsKeyId string
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    VaultStorageClass string
    The storage class of Vault. Valid values: STANDARD.
    VaultType string
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    VaultName string
    The name of Vault.
    Description string
    The description of Vault. Defaults to an empty string.
    EncryptType string
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    KmsKeyId string
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    VaultStorageClass string
    The storage class of Vault. Valid values: STANDARD.
    VaultType string
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    vaultName String
    The name of Vault.
    description String
    The description of Vault. Defaults to an empty string.
    encryptType String
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kmsKeyId String
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    vaultStorageClass String
    The storage class of Vault. Valid values: STANDARD.
    vaultType String
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    vaultName string
    The name of Vault.
    description string
    The description of Vault. Defaults to an empty string.
    encryptType string
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kmsKeyId string
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    vaultStorageClass string
    The storage class of Vault. Valid values: STANDARD.
    vaultType string
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    vault_name str
    The name of Vault.
    description str
    The description of Vault. Defaults to an empty string.
    encrypt_type str
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kms_key_id str
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    vault_storage_class str
    The storage class of Vault. Valid values: STANDARD.
    vault_type str
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    vaultName String
    The name of Vault.
    description String
    The description of Vault. Defaults to an empty string.
    encryptType String
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kmsKeyId String
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    vaultStorageClass String
    The storage class of Vault. Valid values: STANDARD.
    vaultType String
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Vault resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Vault.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Vault.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Vault.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Vault.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Vault.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Vault.

    Look up Existing Vault Resource

    Get an existing Vault resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VaultState, opts?: CustomResourceOptions): Vault
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            encrypt_type: Optional[str] = None,
            kms_key_id: Optional[str] = None,
            status: Optional[str] = None,
            vault_name: Optional[str] = None,
            vault_storage_class: Optional[str] = None,
            vault_type: Optional[str] = None) -> Vault
    func GetVault(ctx *Context, name string, id IDInput, state *VaultState, opts ...ResourceOption) (*Vault, error)
    public static Vault Get(string name, Input<string> id, VaultState? state, CustomResourceOptions? opts = null)
    public static Vault get(String name, Output<String> id, VaultState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    The description of Vault. Defaults to an empty string.
    EncryptType string
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    KmsKeyId string
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    Status string
    The status of the Vault.
    VaultName string
    The name of Vault.
    VaultStorageClass string
    The storage class of Vault. Valid values: STANDARD.
    VaultType string
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    Description string
    The description of Vault. Defaults to an empty string.
    EncryptType string
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    KmsKeyId string
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    Status string
    The status of the Vault.
    VaultName string
    The name of Vault.
    VaultStorageClass string
    The storage class of Vault. Valid values: STANDARD.
    VaultType string
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    description String
    The description of Vault. Defaults to an empty string.
    encryptType String
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kmsKeyId String
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    status String
    The status of the Vault.
    vaultName String
    The name of Vault.
    vaultStorageClass String
    The storage class of Vault. Valid values: STANDARD.
    vaultType String
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    description string
    The description of Vault. Defaults to an empty string.
    encryptType string
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kmsKeyId string
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    status string
    The status of the Vault.
    vaultName string
    The name of Vault.
    vaultStorageClass string
    The storage class of Vault. Valid values: STANDARD.
    vaultType string
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    description str
    The description of Vault. Defaults to an empty string.
    encrypt_type str
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kms_key_id str
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    status str
    The status of the Vault.
    vault_name str
    The name of Vault.
    vault_storage_class str
    The storage class of Vault. Valid values: STANDARD.
    vault_type str
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.
    description String
    The description of Vault. Defaults to an empty string.
    encryptType String
    Source Encryption Type,It is valid only when vault_type is STANDARD or OTS_BACKUP. Default value: HBR_PRIVATE. Valid values:
    kmsKeyId String
    The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type is KMS.
    status String
    The status of the Vault.
    vaultName String
    The name of Vault.
    vaultStorageClass String
    The storage class of Vault. Valid values: STANDARD.
    vaultType String
    The type of Vault. Valid values: STANDARD, OTS_BACKUP.

    Import

    HBR Vault can be imported using the id, e.g.

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi