import { MetadataBearer as __MetadataBearer } from '@aws-sdk/types'; /** * @public *

Credentials for the provided identity ID.

*/ export interface Credentials { /** *

The Access Key portion of the credentials.

*/ AccessKeyId?: string; /** *

The Secret Access Key portion of the credentials

*/ SecretKey?: string; /** *

The Session Token portion of the credentials

*/ SessionToken?: string; /** *

The date at which these credentials will expire.

*/ Expiration?: Date; } /** * @public * * The input for {@link GetCredentialsForIdentityCommand}. */ export type GetCredentialsForIdentityCommandInput = GetCredentialsForIdentityInput; /** * @public * * The output of {@link GetCredentialsForIdentityCommand}. */ export interface GetCredentialsForIdentityCommandOutput extends GetCredentialsForIdentityResponse, __MetadataBearer { } /** * @public *

Input to the GetCredentialsForIdentity action.

*/ export interface GetCredentialsForIdentityInput { /** *

A unique identifier in the format REGION:GUID.

*/ IdentityId: string | undefined; /** *

A set of optional name-value pairs that map provider names to provider tokens. The * name-value pair will follow the syntax "provider_name": * "provider_user_identifier".

*

Logins should not be specified when trying to get credentials for an unauthenticated * identity.

*

The Logins parameter is required when using identities associated with external * identity providers such as Facebook. For examples of Logins maps, see the code * examples in the External Identity Providers section of the Amazon Cognito Developer * Guide.

*/ Logins?: Record; /** *

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were * received in the token from the identity provider. For example, a SAML-based identity * provider. This parameter is optional for identity providers that do not support role * customization.

*/ CustomRoleArn?: string; } /** * @public *

Returned in response to a successful GetCredentialsForIdentity * operation.

*/ export interface GetCredentialsForIdentityResponse { /** *

A unique identifier in the format REGION:GUID.

*/ IdentityId?: string; /** *

Credentials for the provided identity ID.

*/ Credentials?: Credentials; } /** * @public * * The input for {@link GetIdCommand}. */ export type GetIdCommandInput = GetIdInput; /** * @public * * The output of {@link GetIdCommand}. */ export interface GetIdCommandOutput extends GetIdResponse, __MetadataBearer { } /** * @public *

Input to the GetId action.

*/ export interface GetIdInput { /** *

A standard AWS account ID (9+ digits).

*/ AccountId?: string; /** *

An identity pool ID in the format REGION:GUID.

*/ IdentityPoolId: string | undefined; /** *

A set of optional name-value pairs that map provider names to provider tokens. The * available provider names for Logins are as follows:

* */ Logins?: Record; } /** * @public *

Returned in response to a GetId request.

*/ export interface GetIdResponse { /** *

A unique identifier in the format REGION:GUID.

*/ IdentityId?: string; } export {};