amazonka-chime-2.0: Amazon Chime SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Chime.ListUsers

Description

Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to.

This operation returns paginated results.

Synopsis

Creating a Request

data ListUsers Source #

See: newListUsers smart constructor.

Constructors

ListUsers' 

Fields

Instances

Instances details
ToHeaders ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Methods

toHeaders :: ListUsers -> [Header] #

ToPath ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

ToQuery ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

AWSPager ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

AWSRequest ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Associated Types

type AWSResponse ListUsers #

Generic ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Associated Types

type Rep ListUsers :: Type -> Type #

Show ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

NFData ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Methods

rnf :: ListUsers -> () #

Eq ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Hashable ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

type AWSResponse ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

type Rep ListUsers Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

type Rep ListUsers = D1 ('MetaData "ListUsers" "Amazonka.Chime.ListUsers" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "ListUsers'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "userEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "userType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserType)) :*: S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newListUsers Source #

Arguments

:: Text

ListUsers

-> ListUsers 

Create a value of ListUsers with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListUsers', listUsers_maxResults - The maximum number of results to return in a single call. Defaults to 100.

ListUsers, listUsers_nextToken - The token to use to retrieve the next page of results.

$sel:userEmail:ListUsers', listUsers_userEmail - Optional. The user email address used to filter results. Maximum 1.

ListUsers, listUsers_userType - The user type.

ListUsers, listUsers_accountId - The Amazon Chime account ID.

Request Lenses

listUsers_maxResults :: Lens' ListUsers (Maybe Natural) Source #

The maximum number of results to return in a single call. Defaults to 100.

listUsers_nextToken :: Lens' ListUsers (Maybe Text) Source #

The token to use to retrieve the next page of results.

listUsers_userEmail :: Lens' ListUsers (Maybe Text) Source #

Optional. The user email address used to filter results. Maximum 1.

listUsers_accountId :: Lens' ListUsers Text Source #

The Amazon Chime account ID.

Destructuring the Response

data ListUsersResponse Source #

See: newListUsersResponse smart constructor.

Constructors

ListUsersResponse' 

Fields

Instances

Instances details
Generic ListUsersResponse Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Associated Types

type Rep ListUsersResponse :: Type -> Type #

Show ListUsersResponse Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

NFData ListUsersResponse Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

Methods

rnf :: ListUsersResponse -> () #

Eq ListUsersResponse Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

type Rep ListUsersResponse Source # 
Instance details

Defined in Amazonka.Chime.ListUsers

type Rep ListUsersResponse = D1 ('MetaData "ListUsersResponse" "Amazonka.Chime.ListUsers" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "ListUsersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [User])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListUsersResponse Source #

Create a value of ListUsersResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ListUsers, listUsersResponse_nextToken - The token to use to retrieve the next page of results.

$sel:users:ListUsersResponse', listUsersResponse_users - List of users and user details.

$sel:httpStatus:ListUsersResponse', listUsersResponse_httpStatus - The response's http status code.

Response Lenses

listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text) Source #

The token to use to retrieve the next page of results.

listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User]) Source #

List of users and user details.

listUsersResponse_httpStatus :: Lens' ListUsersResponse Int Source #

The response's http status code.