@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
84 lines (83 loc) • 2.54 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to query the version and plaintext of the CSMS(Cloud Secret Management Service) secret.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const version1 = pulumi.output(huaweicloud.Dew.getCsmsSecretVersion({
* secretName: "your_secret_name",
* }));
* ```
*/
export declare function getCsmsSecretVersion(args: GetCsmsSecretVersionArgs, opts?: pulumi.InvokeOptions): Promise<GetCsmsSecretVersionResult>;
/**
* A collection of arguments for invoking getCsmsSecretVersion.
*/
export interface GetCsmsSecretVersionArgs {
/**
* Specifies the region in which to obtain the CSMS secrets.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* The name of the CSMS secret to query.
*/
secretName: string;
/**
* The version ID of the CSMS secret version to query.
* If omitted, the latest version will be used.
*/
version?: string;
}
/**
* A collection of values returned by getCsmsSecretVersion.
*/
export interface GetCsmsSecretVersionResult {
/**
* Time when the CSMS secret version created, in UTC format.
*/
readonly createdAt: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The ID of the KMS CMK used for secret encryption.
*/
readonly kmsKeyId: string;
readonly region: string;
readonly secretName: string;
/**
* The plaintext of a secret in text format.
*/
readonly secretText: string;
/**
* The status of the CSMS secret version.
*/
readonly statuses: string[];
readonly version: string;
}
export declare function getCsmsSecretVersionOutput(args: GetCsmsSecretVersionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCsmsSecretVersionResult>;
/**
* A collection of arguments for invoking getCsmsSecretVersion.
*/
export interface GetCsmsSecretVersionOutputArgs {
/**
* Specifies the region in which to obtain the CSMS secrets.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* The name of the CSMS secret to query.
*/
secretName: pulumi.Input<string>;
/**
* The version ID of the CSMS secret version to query.
* If omitted, the latest version will be used.
*/
version?: pulumi.Input<string>;
}