amazonka-alexa-business-2.0: Amazon Alexa For Business 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.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.

  • 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.

  • 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.

  • 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.

Instances

Instances details
ToJSON SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.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

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 #

Generic SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Associated Types

type Rep SearchUsers :: Type -> Type #

Read SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Show SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

NFData SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Methods

rnf :: SearchUsers -> () #

Eq SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Hashable SearchUsers Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

type AWSResponse 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" "amazonka-alexa-business-2.0-BWvKfxFukoyBarGovAkdOS" 'False) (C1 ('MetaCons "SearchUsers'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sortCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Sort])))))

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: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.

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: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.

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_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.

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_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.

Destructuring the Response

data SearchUsersResponse Source #

See: newSearchUsersResponse smart constructor.

Constructors

SearchUsersResponse' 

Fields

Instances

Instances details
Generic SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Associated Types

type Rep SearchUsersResponse :: Type -> Type #

Read SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Show SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

NFData SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

Methods

rnf :: SearchUsersResponse -> () #

Eq SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

type Rep SearchUsersResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchUsers

type Rep SearchUsersResponse = D1 ('MetaData "SearchUsersResponse" "Amazonka.AlexaBusiness.SearchUsers" "amazonka-alexa-business-2.0-BWvKfxFukoyBarGovAkdOS" 'False) (C1 ('MetaCons "SearchUsersResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "totalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UserData])) :*: 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:

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:users:SearchUsersResponse', searchUsersResponse_users - The users that meet the specified set of filter criteria, in sort order.

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

Response Lenses

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.

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

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