UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

141 lines (140 loc) 4.91 kB
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", * }); * ``` */ /** @deprecated volcengine.kms.AsymmetricSignatures has been deprecated in favor of volcengine.kms.getAsymmetricSignatures */ export declare function asymmetricSignatures(args: AsymmetricSignaturesArgs, opts?: pulumi.InvokeOptions): Promise<AsymmetricSignaturesResult>; /** * A collection of arguments for invoking AsymmetricSignatures. */ export interface AsymmetricSignaturesArgs { /** * 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 AsymmetricSignatures. */ export interface AsymmetricSignaturesResult { 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.AsymmetricSignaturesSignatureInfo[]; /** * 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", * }); * ``` */ /** @deprecated volcengine.kms.AsymmetricSignatures has been deprecated in favor of volcengine.kms.getAsymmetricSignatures */ export declare function asymmetricSignaturesOutput(args: AsymmetricSignaturesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AsymmetricSignaturesResult>; /** * A collection of arguments for invoking AsymmetricSignatures. */ export interface AsymmetricSignaturesOutputArgs { /** * 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>; }