@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
139 lines (138 loc) • 4.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of kms asymmetric signatures
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const sign1 = volcengine.kms.getAsymmetricSignatures({
* algorithm: "RSA_PSS_SHA_256",
* keyId: "516274b3-0cba-4fad-****-c8355e3e8213",
* message: "VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=",
* messageType: "RAW",
* });
* const sign2 = volcengine.kms.getAsymmetricSignatures({
* algorithm: "RSA_PSS_SHA_256",
* keyId: "516274b3-0cba-4fad-****-c8355e3e8213",
* message: "KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=",
* messageType: "DIGEST",
* });
* ```
*/
export declare function getAsymmetricSignatures(args: GetAsymmetricSignaturesArgs, opts?: pulumi.InvokeOptions): Promise<GetAsymmetricSignaturesResult>;
/**
* A collection of arguments for invoking getAsymmetricSignatures.
*/
export interface GetAsymmetricSignaturesArgs {
/**
* The signing algorithm. valid values: `RSA_PSS_SHA_256`, `RSA_PKCS1_SHA_256`, `RSA_PSS_SHA_384`, `RSA_PKCS1_SHA_384`, `RSA_PSS_SHA_512`, `RSA_PKCS1_SHA_512`.
*/
algorithm: string;
/**
* The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
*/
keyId?: string;
/**
* The name of the key.
*/
keyName?: string;
/**
* The name of the keyring.
*/
keyringName?: string;
/**
* The message to be signed, Base64 encoded.
*/
message: string;
/**
* The type of message. Valid values: RAW or DIGEST. When messageType is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
*/
messageType?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by getAsymmetricSignatures.
*/
export interface GetAsymmetricSignaturesResult {
readonly algorithm: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly keyId?: string;
readonly keyName?: string;
readonly keyringName?: string;
readonly message: string;
readonly messageType?: string;
readonly outputFile?: string;
/**
* The information about the signature.
*/
readonly signatureInfos: outputs.kms.GetAsymmetricSignaturesSignatureInfo[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of kms asymmetric signatures
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const sign1 = volcengine.kms.getAsymmetricSignatures({
* algorithm: "RSA_PSS_SHA_256",
* keyId: "516274b3-0cba-4fad-****-c8355e3e8213",
* message: "VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=",
* messageType: "RAW",
* });
* const sign2 = volcengine.kms.getAsymmetricSignatures({
* algorithm: "RSA_PSS_SHA_256",
* keyId: "516274b3-0cba-4fad-****-c8355e3e8213",
* message: "KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=",
* messageType: "DIGEST",
* });
* ```
*/
export declare function getAsymmetricSignaturesOutput(args: GetAsymmetricSignaturesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAsymmetricSignaturesResult>;
/**
* A collection of arguments for invoking getAsymmetricSignatures.
*/
export interface GetAsymmetricSignaturesOutputArgs {
/**
* The signing algorithm. valid values: `RSA_PSS_SHA_256`, `RSA_PKCS1_SHA_256`, `RSA_PSS_SHA_384`, `RSA_PKCS1_SHA_384`, `RSA_PSS_SHA_512`, `RSA_PKCS1_SHA_512`.
*/
algorithm: pulumi.Input<string>;
/**
* The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
*/
keyId?: pulumi.Input<string>;
/**
* The name of the key.
*/
keyName?: pulumi.Input<string>;
/**
* The name of the keyring.
*/
keyringName?: pulumi.Input<string>;
/**
* The message to be signed, Base64 encoded.
*/
message: pulumi.Input<string>;
/**
* The type of message. Valid values: RAW or DIGEST. When messageType is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
*/
messageType?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}