UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

140 lines (139 loc) 4 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage kms keyring * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.kms.Keyring("foo", { * description: "tf-test", * keyringName: "tf-test", * projectName: "default", * }); * ``` * * ## Import * * KmsKeyring can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:kms/keyring:Keyring default resource_id * ``` */ export declare class Keyring extends pulumi.CustomResource { /** * Get an existing Keyring resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KeyringState, opts?: pulumi.CustomResourceOptions): Keyring; /** * Returns true if the given object is an instance of Keyring. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Keyring; /** * The date when the keyring was created. */ readonly creationDate: pulumi.Output<number>; /** * The description of the keyring. */ readonly description: pulumi.Output<string>; /** * The name of the keyring. */ readonly keyringName: pulumi.Output<string>; /** * The type of the keyring. */ readonly keyringType: pulumi.Output<string>; /** * The name of the project. */ readonly projectName: pulumi.Output<string>; /** * The information about the tenant resource name (TRN). */ readonly trn: pulumi.Output<string>; /** * The tenant ID of the keyring. */ readonly uid: pulumi.Output<string>; /** * The date when the keyring was updated. */ readonly updateDate: pulumi.Output<number>; /** * Create a Keyring resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: KeyringArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Keyring resources. */ export interface KeyringState { /** * The date when the keyring was created. */ creationDate?: pulumi.Input<number>; /** * The description of the keyring. */ description?: pulumi.Input<string>; /** * The name of the keyring. */ keyringName?: pulumi.Input<string>; /** * The type of the keyring. */ keyringType?: pulumi.Input<string>; /** * The name of the project. */ projectName?: pulumi.Input<string>; /** * The information about the tenant resource name (TRN). */ trn?: pulumi.Input<string>; /** * The tenant ID of the keyring. */ uid?: pulumi.Input<string>; /** * The date when the keyring was updated. */ updateDate?: pulumi.Input<number>; } /** * The set of arguments for constructing a Keyring resource. */ export interface KeyringArgs { /** * The description of the keyring. */ description?: pulumi.Input<string>; /** * The name of the keyring. */ keyringName: pulumi.Input<string>; /** * The type of the keyring. */ keyringType?: pulumi.Input<string>; /** * The name of the project. */ projectName?: pulumi.Input<string>; }