fetch-aws4
Version:
Fetch wrap to add AWS v4 signature to the request
14 lines (13 loc) • 402 B
TypeScript
export type FetchFunction = typeof fetch;
export type V4FetchFunction = (url: string | URL | Request, init?: V4RequestInit) => Promise<Response>;
interface AwsCredentials {
accessKeyId: string;
secretAccessKey: string;
sessionToken?: string;
}
export interface V4RequestInit extends RequestInit {
region?: string;
service?: string;
awsCredentials?: AwsCredentials;
}
export {};