用于存放您的备份数据。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const cBRVaultDemo = new volcenginecc.cbr.Vault("CBRVaultDemo", {
vaultName: "CBRVaultDemo",
projectName: "default",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
c_br_vault_demo = volcenginecc.cbr.Vault("CBRVaultDemo",
vault_name="CBRVaultDemo",
project_name="default")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cbr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cbr.NewVault(ctx, "CBRVaultDemo", &cbr.VaultArgs{
VaultName: pulumi.String("CBRVaultDemo"),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var cBRVaultDemo = new Volcenginecc.Cbr.Vault("CBRVaultDemo", new()
{
VaultName = "CBRVaultDemo",
ProjectName = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cbr.Vault;
import com.volcengine.volcenginecc.cbr.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 cBRVaultDemo = new Vault("cBRVaultDemo", VaultArgs.builder()
.vaultName("CBRVaultDemo")
.projectName("default")
.build());
}
}
resources:
cBRVaultDemo:
type: volcenginecc:cbr:Vault
name: CBRVaultDemo
properties:
vaultName: CBRVaultDemo
projectName: default
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,
project_name: Optional[str] = None)func NewVault(ctx *Context, name string, args VaultArgs, opts ...ResourceOption) (*Vault, error)public Vault(string name, VaultArgs args, CustomResourceOptions? opts = null)type: volcenginecc:cbr: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.
Constructor example
The following reference example uses placeholder values for all input properties.
var vaultResource = new Volcenginecc.Cbr.Vault("vaultResource", new()
{
VaultName = "string",
ProjectName = "string",
});
example, err := cbr.NewVault(ctx, "vaultResource", &cbr.VaultArgs{
VaultName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
})
var vaultResource = new Vault("vaultResource", VaultArgs.builder()
.vaultName("string")
.projectName("string")
.build());
vault_resource = volcenginecc.cbr.Vault("vaultResource",
vault_name="string",
project_name="string")
const vaultResource = new volcenginecc.cbr.Vault("vaultResource", {
vaultName: "string",
projectName: "string",
});
type: volcenginecc:cbr:Vault
properties:
projectName: string
vaultName: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Vault resource accepts the following input properties:
- Vault
Name string - 备份库名称。
- Project
Name string - 项目名称。
- Vault
Name string - 备份库名称。
- Project
Name string - 项目名称。
- vault
Name String - 备份库名称。
- project
Name String - 项目名称。
- vault
Name string - 备份库名称。
- project
Name string - 项目名称。
- vault_
name str - 备份库名称。
- project_
name str - 项目名称。
- vault
Name String - 备份库名称。
- project
Name String - 项目名称。
Outputs
All input properties are implicitly available as output properties. Additionally, the Vault resource produces the following output properties:
- Created
Time string - 创建时间。
- Endpoint string
- 访问域名。
- Id string
- The provider-assigned unique ID for this managed resource.
-
List<Volcengine.
Vault Tag> - Vault
Id string - 备份库 ID。
- Created
Time string - 创建时间。
- Endpoint string
- 访问域名。
- Id string
- The provider-assigned unique ID for this managed resource.
-
[]Vault
Tag - Vault
Id string - 备份库 ID。
- created
Time String - 创建时间。
- endpoint String
- 访问域名。
- id String
- The provider-assigned unique ID for this managed resource.
-
List<Vault
Tag> - vault
Id String - 备份库 ID。
- created
Time string - 创建时间。
- endpoint string
- 访问域名。
- id string
- The provider-assigned unique ID for this managed resource.
-
Vault
Tag[] - vault
Id string - 备份库 ID。
- created_
time str - 创建时间。
- endpoint str
- 访问域名。
- id str
- The provider-assigned unique ID for this managed resource.
-
Sequence[Vault
Tag] - vault_
id str - 备份库 ID。
- created
Time String - 创建时间。
- endpoint String
- 访问域名。
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
- vault
Id String - 备份库 ID。
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,
created_time: Optional[str] = None,
endpoint: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[VaultTagArgs]] = None,
vault_id: Optional[str] = None,
vault_name: Optional[str] = None) -> Vaultfunc 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)resources: _: type: volcenginecc:cbr:Vault get: id: ${id}- 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.
- Created
Time string - 创建时间。
- Endpoint string
- 访问域名。
- Project
Name string - 项目名称。
-
List<Volcengine.
Vault Tag> - Vault
Id string - 备份库 ID。
- Vault
Name string - 备份库名称。
- Created
Time string - 创建时间。
- Endpoint string
- 访问域名。
- Project
Name string - 项目名称。
-
[]Vault
Tag Args - Vault
Id string - 备份库 ID。
- Vault
Name string - 备份库名称。
- created
Time String - 创建时间。
- endpoint String
- 访问域名。
- project
Name String - 项目名称。
-
List<Vault
Tag> - vault
Id String - 备份库 ID。
- vault
Name String - 备份库名称。
- created
Time string - 创建时间。
- endpoint string
- 访问域名。
- project
Name string - 项目名称。
-
Vault
Tag[] - vault
Id string - 备份库 ID。
- vault
Name string - 备份库名称。
- created_
time str - 创建时间。
- endpoint str
- 访问域名。
- project_
name str - 项目名称。
-
Sequence[Vault
Tag Args] - vault_
id str - 备份库 ID。
- vault_
name str - 备份库名称。
- created
Time String - 创建时间。
- endpoint String
- 访问域名。
- project
Name String - 项目名称。
- List<Property Map>
- vault
Id String - 备份库 ID。
- vault
Name String - 备份库名称。
Supporting Types
VaultTag, VaultTagArgs
Import
$ pulumi import volcenginecc:cbr/vault:Vault example "vault_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
