@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
101 lines (100 loc) • 2.78 kB
TypeScript
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",
* });
* ```
*/
/** @deprecated volcengine.kms.PublicKeys has been deprecated in favor of volcengine.kms.getPublicKeys */
export declare function publicKeys(args?: PublicKeysArgs, opts?: pulumi.InvokeOptions): Promise<PublicKeysResult>;
/**
* A collection of arguments for invoking PublicKeys.
*/
export interface PublicKeysArgs {
/**
* 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 PublicKeys.
*/
export interface PublicKeysResult {
/**
* 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.PublicKeysPublicKey[];
/**
* 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",
* });
* ```
*/
/** @deprecated volcengine.kms.PublicKeys has been deprecated in favor of volcengine.kms.getPublicKeys */
export declare function publicKeysOutput(args?: PublicKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<PublicKeysResult>;
/**
* A collection of arguments for invoking PublicKeys.
*/
export interface PublicKeysOutputArgs {
/**
* 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>;
}