@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
93 lines (92 loc) • 3.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage kms secret restore
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const example = new volcengine.kms.SecretBackup("example", {secretName: "Test-1"});
* const _default = new volcengine.kms.SecretRestore("default", {
* secretDataKey: example.secretDataKey,
* backupData: example.backupData,
* signature: example.signature,
* });
* ```
*
* ## Import
*
* The KmsSecretRestore is not support import.
*/
export declare class SecretRestore extends pulumi.CustomResource {
/**
* Get an existing SecretRestore 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?: SecretRestoreState, opts?: pulumi.CustomResourceOptions): SecretRestore;
/**
* Returns true if the given object is an instance of SecretRestore. 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 SecretRestore;
/**
* The full secret data returned during backup. JSON format.
*/
readonly backupData: pulumi.Output<string>;
/**
* The data key ciphertext returned during backup. Base64 encoded.
*/
readonly secretDataKey: pulumi.Output<string>;
/**
* The signature of the backup data returned during backup. Base64 encoded.
*/
readonly signature: pulumi.Output<string>;
/**
* Create a SecretRestore 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: SecretRestoreArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SecretRestore resources.
*/
export interface SecretRestoreState {
/**
* The full secret data returned during backup. JSON format.
*/
backupData?: pulumi.Input<string>;
/**
* The data key ciphertext returned during backup. Base64 encoded.
*/
secretDataKey?: pulumi.Input<string>;
/**
* The signature of the backup data returned during backup. Base64 encoded.
*/
signature?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a SecretRestore resource.
*/
export interface SecretRestoreArgs {
/**
* The full secret data returned during backup. JSON format.
*/
backupData: pulumi.Input<string>;
/**
* The data key ciphertext returned during backup. Base64 encoded.
*/
secretDataKey: pulumi.Input<string>;
/**
* The signature of the backup data returned during backup. Base64 encoded.
*/
signature: pulumi.Input<string>;
}