amazonka-connect-2.0: Amazon Connect Service 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.Connect.SearchUsers

Description

Searches users in an Amazon Connect instance, with optional filtering.

AfterContactWorkTimeLimit is returned in milliseconds.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchUsers Source #

See: newSearchUsers smart constructor.

Constructors

SearchUsers' 

Fields

Instances

Instances details
ToJSON SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

ToHeaders SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Methods

toHeaders :: SearchUsers -> [Header] #

ToPath SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

ToQuery SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

AWSPager SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

AWSRequest SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Associated Types

type AWSResponse SearchUsers #

Generic SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Associated Types

type Rep SearchUsers :: Type -> Type #

Read SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Show SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

NFData SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Methods

rnf :: SearchUsers -> () #

Eq SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Hashable SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

type AWSResponse SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

type Rep SearchUsers Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

type Rep SearchUsers = D1 ('MetaData "SearchUsers" "Amazonka.Connect.SearchUsers" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "SearchUsers'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "searchCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserSearchCriteria)) :*: S1 ('MetaSel ('Just "searchFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserSearchFilter))))))

newSearchUsers :: SearchUsers Source #

Create a value of SearchUsers 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:

SearchUsers, searchUsers_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

$sel:maxResults:SearchUsers', searchUsers_maxResults - The maximum number of results to return per page.

SearchUsers, searchUsers_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

$sel:searchCriteria:SearchUsers', searchUsers_searchCriteria - Undocumented member.

$sel:searchFilter:SearchUsers', searchUsers_searchFilter - Filters to be applied to search results.

Request Lenses

searchUsers_instanceId :: Lens' SearchUsers (Maybe Text) Source #

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

searchUsers_maxResults :: Lens' SearchUsers (Maybe Natural) Source #

The maximum number of results to return per page.

searchUsers_nextToken :: Lens' SearchUsers (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

searchUsers_searchFilter :: Lens' SearchUsers (Maybe UserSearchFilter) Source #

Filters to be applied to search results.

Destructuring the Response

data SearchUsersResponse Source #

See: newSearchUsersResponse smart constructor.

Constructors

SearchUsersResponse' 

Fields

Instances

Instances details
Generic SearchUsersResponse Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Associated Types

type Rep SearchUsersResponse :: Type -> Type #

Read SearchUsersResponse Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Show SearchUsersResponse Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

NFData SearchUsersResponse Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

Methods

rnf :: SearchUsersResponse -> () #

Eq SearchUsersResponse Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

type Rep SearchUsersResponse Source # 
Instance details

Defined in Amazonka.Connect.SearchUsers

type Rep SearchUsersResponse = D1 ('MetaData "SearchUsersResponse" "Amazonka.Connect.SearchUsers" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "SearchUsersResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "approximateTotalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UserSearchSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSearchUsersResponse Source #

Create a value of SearchUsersResponse 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:approximateTotalCount:SearchUsersResponse', searchUsersResponse_approximateTotalCount - The total number of users who matched your search query.

SearchUsers, searchUsersResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:users:SearchUsersResponse', searchUsersResponse_users - Information about the users.

$sel:httpStatus:SearchUsersResponse', searchUsersResponse_httpStatus - The response's http status code.

Response Lenses

searchUsersResponse_approximateTotalCount :: Lens' SearchUsersResponse (Maybe Integer) Source #

The total number of users who matched your search query.

searchUsersResponse_nextToken :: Lens' SearchUsersResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.