@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
56 lines (55 loc) • 1.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the details of a specific IEC keypair.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const kp1 = pulumi.output(huaweicloud.Iec.getKeypair({
* name: "iec-keypair-demo",
* }));
* ```
*/
export declare function getKeypair(args: GetKeypairArgs, opts?: pulumi.InvokeOptions): Promise<GetKeypairResult>;
/**
* A collection of arguments for invoking getKeypair.
*/
export interface GetKeypairArgs {
/**
* Specifies a unique name for the keypair. This parameter can contain a maximum of 64
* characters, which may consist of letters, digits, underscores (_), and hyphens (-).
*/
name: string;
}
/**
* A collection of values returned by getKeypair.
*/
export interface GetKeypairResult {
/**
* The finger of iec keypair. The value contains a encoding type(SHA256) and a string of 43 characters.
*/
readonly fingerprint: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
/**
* The pregenerated OpenSSH-formatted public key.
*/
readonly publicKey: string;
}
export declare function getKeypairOutput(args: GetKeypairOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetKeypairResult>;
/**
* A collection of arguments for invoking getKeypair.
*/
export interface GetKeypairOutputArgs {
/**
* Specifies a unique name for the keypair. This parameter can contain a maximum of 64
* characters, which may consist of letters, digits, underscores (_), and hyphens (-).
*/
name: pulumi.Input<string>;
}