libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AlexaBusiness.SearchUsers

Description

Searches users and lists the ones that meet a set of filter and sort criteria.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchUsers Source #

See: newSearchUsers smart constructor.

Constructors

SearchUsers' 

Fields

  • filters :: Maybe [Filter]

    The filters to use for listing a specific set of users. Required. Supported filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

  • sortCriteria :: Maybe [Sort]

    The sort order to use in listing the filtered set of users. Required. Supported sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

  • nextToken :: Maybe Text

    An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. Required.

  • maxResults :: Maybe Natural

    The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.

Instances

Instances details
Eq SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Read SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Show SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Generic SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Associated Types

type Rep SearchUsers :: Type -> Type #

NFData SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Methods

rnf :: SearchUsers -> () #

Hashable SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

ToJSON SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

AWSPager SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

AWSRequest SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Associated Types

type AWSResponse SearchUsers #

ToHeaders SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Methods

toHeaders :: SearchUsers -> [Header] #

ToPath SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

ToQuery SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

type Rep SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

type Rep SearchUsers = D1 ('MetaData "SearchUsers" "Amazonka.AlexaBusiness.SearchUsers" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SearchUsers'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "sortCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Sort]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

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:

$sel:filters:SearchUsers', searchUsers_filters - The filters to use for listing a specific set of users. Required. Supported filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

$sel:sortCriteria:SearchUsers', searchUsers_sortCriteria - The sort order to use in listing the filtered set of users. Required. Supported sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

$sel:nextToken:SearchUsers', searchUsers_nextToken - An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. Required.

$sel:maxResults:SearchUsers', searchUsers_maxResults - The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.

Request Lenses

searchUsers_filters :: Lens' SearchUsers (Maybe [Filter]) Source #

The filters to use for listing a specific set of users. Required. Supported filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

searchUsers_sortCriteria :: Lens' SearchUsers (Maybe [Sort]) Source #

The sort order to use in listing the filtered set of users. Required. Supported sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.

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

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. Required.

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

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.

Destructuring the Response

data SearchUsersResponse Source #

See: newSearchUsersResponse smart constructor.

Constructors

SearchUsersResponse' 

Fields

Instances

Instances details
Eq SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Read SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Show SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Generic SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Associated Types

type Rep SearchUsersResponse :: Type -> Type #

NFData SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Methods

rnf :: SearchUsersResponse -> () #

type Rep SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

type Rep SearchUsersResponse = D1 ('MetaData "SearchUsersResponse" "Amazonka.AlexaBusiness.SearchUsers" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SearchUsersResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UserData])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "totalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: 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:users:SearchUsersResponse', searchUsersResponse_users - The users that meet the specified set of filter criteria, in sort order.

$sel:nextToken:SearchUsers', searchUsersResponse_nextToken - The token returned to indicate that there is more data available.

$sel:totalCount:SearchUsersResponse', searchUsersResponse_totalCount - The total number of users returned.

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

Response Lenses

searchUsersResponse_users :: Lens' SearchUsersResponse (Maybe [UserData]) Source #

The users that meet the specified set of filter criteria, in sort order.

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

The token returned to indicate that there is more data available.

searchUsersResponse_totalCount :: Lens' SearchUsersResponse (Maybe Int) Source #

The total number of users returned.