// Lists all AWS accounts assigned to the user. These AWS accounts are assigned by
// the administrator of the account. For more information, see Assign User Access
// (https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers)
// in the AWS SSO User Guide. This operation returns a paginated response.
Lists all AWS accounts assigned to the user. These AWS accounts are assigned by
the administrator of the account. For more information, see Assign User Access

in the AWS SSO User Guide. This operation returns a paginated response.
// Lists all AWS accounts assigned to the user . These AWS accounts are assigned by // the administrator of the account . For more information see Assign User Access // ( https : // docs . aws . amazon . com / singlesignon / latest / userguide / useraccess . html#assignusers ) // in the AWS SSO User Guide . This operation returns a paginated response .
func (c *Client) ListAccounts(ctx context.Context, params *ListAccountsInput, optFns ...func(*Options)) (*ListAccountsOutput, error) {
	if params == nil {
		params = &ListAccountsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListAccounts", params, optFns, addOperationListAccountsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListAccountsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListAccounts ( ctx context . Context , params * ListAccountsInput , optFns ... func ( * Options ) ) ( * ListAccountsOutput , error ) { if params == nil { params = & ListAccountsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListAccountsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListAccountsOutput ) out . ResultMetadata = metadata return out , nil }
Lists all AWS accounts assigned to the user.
Lists all AWS accounts assigned to the user .