UNPKG

@aws/bedrock-token-generator

Version:

A lightweight library for generating short-term bearer tokens for AWS Bedrock API authentication

22 lines 658 B
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, Provider } from "@smithy/types"; /** * @internal */ export interface CreateTokenConfig { expiresInSeconds?: number; credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider; region: string | Provider<string>; } /** * @internal */ export declare const createToken: (config: CreateTokenConfig) => Promise<string>; /** * @internal */ export declare const validateTokenExpiryInput: (expiresInSeconds?: number) => void; //# sourceMappingURL=token.d.ts.map