serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
36 lines (35 loc) • 1.17 kB
TypeScript
import type { CredentialProviderOptions, RuntimeConfigIdentityProvider } from "@aws-sdk/types";
import type { AwsCredentialIdentity } from "@smithy/types";
import { CognitoProviderParameters } from "./CognitoProviderParameters";
/**
* @internal
*/
export interface CognitoIdentityCredentials extends AwsCredentialIdentity {
/**
* The Cognito ID returned by the last call to AWS.CognitoIdentity.getOpenIdToken().
*/
identityId: string;
}
/**
* @internal
*/
export type CognitoIdentityCredentialProvider = RuntimeConfigIdentityProvider<CognitoIdentityCredentials>;
/**
* @internal
*
* Retrieves temporary AWS credentials using Amazon Cognito's
* `GetCredentialsForIdentity` operation.
*
* Results from this function call are not cached internally.
*/
export declare function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): CognitoIdentityCredentialProvider;
/**
* @internal
*/
export interface FromCognitoIdentityParameters extends CognitoProviderParameters, CredentialProviderOptions {
/**
* The unique identifier for the identity against which credentials will be
* issued.
*/
identityId: string;
}