import { SENSITIVE_STRING } from "@aws-sdk/smithy-client"; import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** *

Provides information about your AWS account.

*/ export interface AccountInfo { /** *

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

*/ accountId?: string; /** *

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

*/ accountName?: string; /** *

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

*/ emailAddress?: string; } export namespace AccountInfo { /** * @internal */ export const filterSensitiveLog = (obj: AccountInfo): any => ({ ...obj, }); } export interface GetRoleCredentialsRequest { /** *

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

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

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

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

The token issued by the CreateToken API call. For more information, see * CreateToken in the AWS SSO OIDC API Reference Guide.

*/ accessToken: string | undefined; } export namespace GetRoleCredentialsRequest { /** * @internal */ export const filterSensitiveLog = (obj: GetRoleCredentialsRequest): any => ({ ...obj, ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), }); } /** *

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

*/ 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.

*/ 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.

*/ 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.

*/ sessionToken?: string; /** *

The date on which temporary security credentials expire.

*/ expiration?: number; } export namespace RoleCredentials { /** * @internal */ export const filterSensitiveLog = (obj: RoleCredentials): any => ({ ...obj, ...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }), ...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }), }); } export interface GetRoleCredentialsResponse { /** *

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

*/ roleCredentials?: RoleCredentials; } export namespace GetRoleCredentialsResponse { /** * @internal */ export const filterSensitiveLog = (obj: GetRoleCredentialsResponse): any => ({ ...obj, ...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }), }); } /** *

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

*/ export interface InvalidRequestException extends __SmithyException, $MetadataBearer { name: "InvalidRequestException"; $fault: "client"; message?: string; } export namespace InvalidRequestException { /** * @internal */ export const filterSensitiveLog = (obj: InvalidRequestException): any => ({ ...obj, }); } /** *

The specified resource doesn't exist.

*/ export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer { name: "ResourceNotFoundException"; $fault: "client"; message?: string; } export namespace ResourceNotFoundException { /** * @internal */ export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({ ...obj, }); } /** *

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

*/ export interface TooManyRequestsException extends __SmithyException, $MetadataBearer { name: "TooManyRequestsException"; $fault: "client"; message?: string; } export namespace TooManyRequestsException { /** * @internal */ export const filterSensitiveLog = (obj: TooManyRequestsException): any => ({ ...obj, }); } /** *

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

*/ export interface UnauthorizedException extends __SmithyException, $MetadataBearer { name: "UnauthorizedException"; $fault: "client"; message?: string; } export namespace UnauthorizedException { /** * @internal */ export const filterSensitiveLog = (obj: UnauthorizedException): any => ({ ...obj, }); } export interface ListAccountRolesRequest { /** *

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

*/ nextToken?: string; /** *

The number of items that clients can request per page.

*/ maxResults?: number; /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the AWS SSO OIDC API Reference Guide.

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

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

*/ accountId: string | undefined; } export namespace ListAccountRolesRequest { /** * @internal */ export const filterSensitiveLog = (obj: ListAccountRolesRequest): any => ({ ...obj, ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), }); } /** *

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

*/ export interface RoleInfo { /** *

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

*/ roleName?: string; /** *

The identifier of the AWS account assigned to the user.

*/ accountId?: string; } export namespace RoleInfo { /** * @internal */ export const filterSensitiveLog = (obj: RoleInfo): any => ({ ...obj, }); } export interface ListAccountRolesResponse { /** *

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

*/ nextToken?: string; /** *

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

*/ roleList?: RoleInfo[]; } export namespace ListAccountRolesResponse { /** * @internal */ export const filterSensitiveLog = (obj: ListAccountRolesResponse): any => ({ ...obj, }); } export interface ListAccountsRequest { /** *

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

*/ nextToken?: string; /** *

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

*/ maxResults?: number; /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the AWS SSO OIDC API Reference Guide.

*/ accessToken: string | undefined; } export namespace ListAccountsRequest { /** * @internal */ export const filterSensitiveLog = (obj: ListAccountsRequest): any => ({ ...obj, ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), }); } export interface ListAccountsResponse { /** *

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

*/ nextToken?: string; /** *

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

*/ accountList?: AccountInfo[]; } export namespace ListAccountsResponse { /** * @internal */ export const filterSensitiveLog = (obj: ListAccountsResponse): any => ({ ...obj, }); } export interface LogoutRequest { /** *

The token issued by the CreateToken API call. For more information, see * CreateToken in the AWS SSO OIDC API Reference Guide.

*/ accessToken: string | undefined; } export namespace LogoutRequest { /** * @internal */ export const filterSensitiveLog = (obj: LogoutRequest): any => ({ ...obj, ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), }); }