UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

99 lines (98 loc) 2.61 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of kms public keys * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.kms.getPublicKeys({ * keyName: "Test-key2", * keyringName: "Tf-test", * }); * ``` */ export declare function getPublicKeys(args?: GetPublicKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetPublicKeysResult>; /** * A collection of arguments for invoking getPublicKeys. */ export interface GetPublicKeysArgs { /** * The id of key. When keyId is not specified, both keyringName and keyName must be specified. */ keyId?: string; /** * The name of key. */ keyName?: string; /** * The name of keyring. */ keyringName?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getPublicKeys. */ export interface GetPublicKeysResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The id of key. */ readonly keyId?: string; readonly keyName?: string; readonly keyringName?: string; readonly outputFile?: string; /** * The public key in PEM format. */ readonly publicKeys: outputs.kms.GetPublicKeysPublicKey[]; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of kms public keys * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.kms.getPublicKeys({ * keyName: "Test-key2", * keyringName: "Tf-test", * }); * ``` */ export declare function getPublicKeysOutput(args?: GetPublicKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPublicKeysResult>; /** * A collection of arguments for invoking getPublicKeys. */ export interface GetPublicKeysOutputArgs { /** * The id of key. When keyId is not specified, both keyringName and keyName must be specified. */ keyId?: pulumi.Input<string>; /** * The name of key. */ keyName?: pulumi.Input<string>; /** * The name of keyring. */ keyringName?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }