@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
70 lines • 3.25 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `scaleway.keymanager.getVerify` data source is used to verify a message signature against a message digest with a given key. The key must have its usage set to asymmetric_signing. The message digest must be generated using the same digest algorithm that is defined in the key's algorithm configuration, and encoded as a base64 string.
*
* Refer to the Key Manager [documentation](https://www.scaleway.com/en/docs/key-manager/) and [API documentation](https://www.scaleway.com/en/developers/api/key-manager/) for more information.
*/
export declare function getVerify(args: GetVerifyArgs, opts?: pulumi.InvokeOptions): Promise<GetVerifyResult>;
/**
* A collection of arguments for invoking getVerify.
*/
export interface GetVerifyArgs {
/**
* Digest of the original signed message. Must be generated using the same algorithm specified in the key’s configuration, and encoded as a base64 string.
*/
digest: string;
/**
* ID of the key to use for signature verification. Can be a plain UUID or a regional ID.
*/
keyId: string;
/**
* The region of the key. If not set, the region is derived from the keyId when possible or from the provider `region` configuration.
*/
region?: string;
/**
* The message signature to verify, encoded as a base64 string.
*/
signature: string;
}
/**
* A collection of values returned by getVerify.
*/
export interface GetVerifyResult {
readonly digest: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly keyId: string;
readonly region?: string;
readonly signature: string;
readonly valid: boolean;
}
/**
* The `scaleway.keymanager.getVerify` data source is used to verify a message signature against a message digest with a given key. The key must have its usage set to asymmetric_signing. The message digest must be generated using the same digest algorithm that is defined in the key's algorithm configuration, and encoded as a base64 string.
*
* Refer to the Key Manager [documentation](https://www.scaleway.com/en/docs/key-manager/) and [API documentation](https://www.scaleway.com/en/developers/api/key-manager/) for more information.
*/
export declare function getVerifyOutput(args: GetVerifyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVerifyResult>;
/**
* A collection of arguments for invoking getVerify.
*/
export interface GetVerifyOutputArgs {
/**
* Digest of the original signed message. Must be generated using the same algorithm specified in the key’s configuration, and encoded as a base64 string.
*/
digest: pulumi.Input<string>;
/**
* ID of the key to use for signature verification. Can be a plain UUID or a regional ID.
*/
keyId: pulumi.Input<string>;
/**
* The region of the key. If not set, the region is derived from the keyId when possible or from the provider `region` configuration.
*/
region?: pulumi.Input<string | undefined>;
/**
* The message signature to verify, encoded as a base64 string.
*/
signature: pulumi.Input<string>;
}
//# sourceMappingURL=getVerify.d.ts.map