import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { SSOServiceException as __BaseException } from "./SSOServiceException"; /** *

Provides information about your AWS account.

* @public */ export interface AccountInfo { /** *

The identifier of the AWS account that is assigned to the user.

* @public */ accountId?: string; /** *

The display name of the AWS account that is assigned to the user.

* @public */ accountName?: string; /** *

The email address of the AWS account that is assigned to the user.

* @public */ emailAddress?: string; } /** * @public */ export interface GetRoleCredentialsRequest { /** *

The friendly name of the role that is assigned to the user.

* @public */ roleName: string | undefined; /** *

The identifier for the AWS account that is assigned to the user.

* @public */ accountId: string | undefined; /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the IAM Identity Center OIDC API Reference Guide.

* @public */ accessToken: string | undefined; } /** *

Provides information about the role credentials that are assigned to the user.

* @public */ export interface RoleCredentials { /** *

The identifier used for the temporary security credentials. For more information, see * Using Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.

* @public */ accessKeyId?: string; /** *

The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.

* @public */ secretAccessKey?: string; /** *

The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the * AWS IAM User Guide.

* @public */ sessionToken?: string; /** *

The date on which temporary security credentials expire.

* @public */ expiration?: number; } /** * @public */ export interface GetRoleCredentialsResponse { /** *

The credentials for the role that is assigned to the user.

* @public */ roleCredentials?: RoleCredentials; } /** *

Indicates that a problem occurred with the input to the request. For example, a required * parameter might be missing or out of range.

* @public */ export declare class InvalidRequestException extends __BaseException { readonly name: "InvalidRequestException"; readonly $fault: "client"; /** * @internal */ constructor(opts: __ExceptionOptionType); } /** *

The specified resource doesn't exist.

* @public */ export declare class ResourceNotFoundException extends __BaseException { readonly name: "ResourceNotFoundException"; readonly $fault: "client"; /** * @internal */ constructor(opts: __ExceptionOptionType); } /** *

Indicates that the request is being made too frequently and is more than what the server * can handle.

* @public */ export declare class TooManyRequestsException extends __BaseException { readonly name: "TooManyRequestsException"; readonly $fault: "client"; /** * @internal */ constructor(opts: __ExceptionOptionType); } /** *

Indicates that the request is not authorized. This can happen due to an invalid access * token in the request.

* @public */ export declare class UnauthorizedException extends __BaseException { readonly name: "UnauthorizedException"; readonly $fault: "client"; /** * @internal */ constructor(opts: __ExceptionOptionType); } /** * @public */ export interface ListAccountRolesRequest { /** *

The page token from the previous response output when you request subsequent pages.

* @public */ nextToken?: string; /** *

The number of items that clients can request per page.

* @public */ maxResults?: number; /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the IAM Identity Center OIDC API Reference Guide.

* @public */ accessToken: string | undefined; /** *

The identifier for the AWS account that is assigned to the user.

* @public */ accountId: string | undefined; } /** *

Provides information about the role that is assigned to the user.

* @public */ export interface RoleInfo { /** *

The friendly name of the role that is assigned to the user.

* @public */ roleName?: string; /** *

The identifier of the AWS account assigned to the user.

* @public */ accountId?: string; } /** * @public */ export interface ListAccountRolesResponse { /** *

The page token client that is used to retrieve the list of accounts.

* @public */ nextToken?: string; /** *

A paginated response with the list of roles and the next token if more results are * available.

* @public */ roleList?: RoleInfo[]; } /** * @public */ export interface ListAccountsRequest { /** *

(Optional) When requesting subsequent pages, this is the page token from the previous * response output.

* @public */ nextToken?: string; /** *

This is the number of items clients can request per page.

* @public */ maxResults?: number; /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the IAM Identity Center OIDC API Reference Guide.

* @public */ accessToken: string | undefined; } /** * @public */ export interface ListAccountsResponse { /** *

The page token client that is used to retrieve the list of accounts.

* @public */ nextToken?: string; /** *

A paginated response with the list of account information and the next token if more * results are available.

* @public */ accountList?: AccountInfo[]; } /** * @public */ export interface LogoutRequest { /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the IAM Identity Center OIDC API Reference Guide.

* @public */ accessToken: string | undefined; } /** * @internal */ export declare const GetRoleCredentialsRequestFilterSensitiveLog: (obj: GetRoleCredentialsRequest) => any; /** * @internal */ export declare const RoleCredentialsFilterSensitiveLog: (obj: RoleCredentials) => any; /** * @internal */ export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRoleCredentialsResponse) => any; /** * @internal */ export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any; /** * @internal */ export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any; /** * @internal */ export declare const LogoutRequestFilterSensitiveLog: (obj: LogoutRequest) => any;