Metzploreur/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts
clement callaert 244d45ceb8 Version 2
2023-11-01 17:33:25 +01:00

26 lines
1.3 KiB
TypeScript

import { AwsCredentialIdentity, ChecksumConstructor, HashConstructor } from "@smithy/types";
/**
* Create a string describing the scope of credentials used to sign a request.
*
* @param shortDate The current calendar date in the form YYYYMMDD.
* @param region The AWS region in which the service resides.
* @param service The service to which the signed request is being sent.
*/
export declare const createScope: (shortDate: string, region: string, service: string) => string;
/**
* Derive a signing key from its composite parts
*
* @param sha256Constructor A constructor function that can instantiate SHA-256
* hash objects.
* @param credentials The credentials with which the request will be
* signed.
* @param shortDate The current calendar date in the form YYYYMMDD.
* @param region The AWS region in which the service resides.
* @param service The service to which the signed request is being
* sent.
*/
export declare const getSigningKey: (sha256Constructor: ChecksumConstructor | HashConstructor, credentials: AwsCredentialIdentity, shortDate: string, region: string, service: string) => Promise<Uint8Array>;
/**
* @internal
*/
export declare const clearCredentialCache: () => void;