import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ECS key pair (Keypair) is generated by default using the RSA 2048-bit encryption algorithm, producing a pair of associated keys: a public key and a private key. The public key is used to encrypt data, converting plaintext into unreadable ciphertext. The private key is the sole credential for decryption, restoring ciphertext to its original plaintext, ensuring secure authentication and data transmission. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const eCSKeypairDemo = new volcenginecc.ecs.Keypair("ECSKeypairDemo", { * keyPairName: "ECSKeypairDemo", * projectName: "default", * description: "ECSKeypairDemo Description", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:ecs/keypair:Keypair example "key_pair_name" * ``` */ export declare class Keypair extends pulumi.CustomResource { /** * Get an existing Keypair 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, state?: KeypairState, opts?: pulumi.CustomResourceOptions): Keypair; /** * Returns true if the given object is an instance of Keypair. 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 Keypair; /** * Creation time of the key pair. */ readonly createdTime: pulumi.Output; /** * Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters. */ readonly description: pulumi.Output; /** * Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm. */ readonly fingerPrint: pulumi.Output; /** * Instance ID for the operation. */ readonly instanceIds: pulumi.Output; /** * Unique ID of the key pair. */ readonly keyPairId: pulumi.Output; /** * Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'. */ readonly keyPairName: pulumi.Output; /** * Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters. */ readonly projectName: pulumi.Output; /** * Public key information of the key pair. */ readonly publicKey: pulumi.Output; readonly tags: pulumi.Output; /** * Update time of the key pair. */ readonly updatedTime: pulumi.Output; /** * Create a Keypair 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: KeypairArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Keypair resources. */ export interface KeypairState { /** * Creation time of the key pair. */ createdTime?: pulumi.Input; /** * Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters. */ description?: pulumi.Input; /** * Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm. */ fingerPrint?: pulumi.Input; /** * Instance ID for the operation. */ instanceIds?: pulumi.Input[]>; /** * Unique ID of the key pair. */ keyPairId?: pulumi.Input; /** * Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'. */ keyPairName?: pulumi.Input; /** * Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters. */ projectName?: pulumi.Input; /** * Public key information of the key pair. */ publicKey?: pulumi.Input; tags?: pulumi.Input[]>; /** * Update time of the key pair. */ updatedTime?: pulumi.Input; } /** * The set of arguments for constructing a Keypair resource. */ export interface KeypairArgs { /** * Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters. */ description?: pulumi.Input; /** * Instance ID for the operation. */ instanceIds?: pulumi.Input[]>; /** * Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'. */ keyPairName: pulumi.Input; /** * Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters. */ projectName?: pulumi.Input; /** * Public key information of the key pair. */ publicKey?: pulumi.Input; tags?: pulumi.Input[]>; }