amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 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.LexV2Models.ListBots

Description

Gets a list of available bots.

Synopsis

Creating a Request

data ListBots Source #

See: newListBots smart constructor.

Constructors

ListBots' 

Fields

  • filters :: Maybe (NonEmpty BotFilter)

    Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

  • maxResults :: Maybe Natural

    The maximum number of bots to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.

  • nextToken :: Maybe Text

    If the response from the ListBots operation contains more results than specified in the maxResults parameter, a token is returned in the response.

    Use the returned token in the nextToken parameter of a ListBots request to return the next page of results. For a complete set of results, call the ListBots operation until the nextToken returned in the response is null.

  • sortBy :: Maybe BotSortBy

    Specifies sorting parameters for the list of bots. You can specify that the list be sorted by bot name in ascending or descending order.

Instances

Instances details
ToJSON ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

ToHeaders ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Methods

toHeaders :: ListBots -> [Header] #

ToPath ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

ToQuery ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

AWSRequest ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Associated Types

type AWSResponse ListBots #

Generic ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Associated Types

type Rep ListBots :: Type -> Type #

Methods

from :: ListBots -> Rep ListBots x #

to :: Rep ListBots x -> ListBots #

Read ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Show ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

NFData ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Methods

rnf :: ListBots -> () #

Eq ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Hashable ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Methods

hashWithSalt :: Int -> ListBots -> Int #

hash :: ListBots -> Int #

type AWSResponse ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

type Rep ListBots Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

type Rep ListBots = D1 ('MetaData "ListBots" "Amazonka.LexV2Models.ListBots" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "ListBots'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty BotFilter))) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotSortBy)))))

newListBots :: ListBots Source #

Create a value of ListBots 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:ListBots', listBots_filters - Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

$sel:maxResults:ListBots', listBots_maxResults - The maximum number of bots to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.

ListBots, listBots_nextToken - If the response from the ListBots operation contains more results than specified in the maxResults parameter, a token is returned in the response.

Use the returned token in the nextToken parameter of a ListBots request to return the next page of results. For a complete set of results, call the ListBots operation until the nextToken returned in the response is null.

$sel:sortBy:ListBots', listBots_sortBy - Specifies sorting parameters for the list of bots. You can specify that the list be sorted by bot name in ascending or descending order.

Request Lenses

listBots_filters :: Lens' ListBots (Maybe (NonEmpty BotFilter)) Source #

Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

listBots_maxResults :: Lens' ListBots (Maybe Natural) Source #

The maximum number of bots to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.

listBots_nextToken :: Lens' ListBots (Maybe Text) Source #

If the response from the ListBots operation contains more results than specified in the maxResults parameter, a token is returned in the response.

Use the returned token in the nextToken parameter of a ListBots request to return the next page of results. For a complete set of results, call the ListBots operation until the nextToken returned in the response is null.

listBots_sortBy :: Lens' ListBots (Maybe BotSortBy) Source #

Specifies sorting parameters for the list of bots. You can specify that the list be sorted by bot name in ascending or descending order.

Destructuring the Response

data ListBotsResponse Source #

See: newListBotsResponse smart constructor.

Constructors

ListBotsResponse' 

Fields

  • botSummaries :: Maybe [BotSummary]

    Summary information for the bots that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter of the request. If there are more bots available, the nextToken field contains a token to the next page of results.

  • nextToken :: Maybe Text

    A token that indicates whether there are more results to return in a response to the ListBots operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBots operation request to get the next page of results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListBotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Associated Types

type Rep ListBotsResponse :: Type -> Type #

Read ListBotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Show ListBotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

NFData ListBotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

Methods

rnf :: ListBotsResponse -> () #

Eq ListBotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

type Rep ListBotsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBots

type Rep ListBotsResponse = D1 ('MetaData "ListBotsResponse" "Amazonka.LexV2Models.ListBots" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "ListBotsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "botSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BotSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListBotsResponse Source #

Create a value of ListBotsResponse 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:botSummaries:ListBotsResponse', listBotsResponse_botSummaries - Summary information for the bots that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter of the request. If there are more bots available, the nextToken field contains a token to the next page of results.

ListBots, listBotsResponse_nextToken - A token that indicates whether there are more results to return in a response to the ListBots operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBots operation request to get the next page of results.

$sel:httpStatus:ListBotsResponse', listBotsResponse_httpStatus - The response's http status code.

Response Lenses

listBotsResponse_botSummaries :: Lens' ListBotsResponse (Maybe [BotSummary]) Source #

Summary information for the bots that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter of the request. If there are more bots available, the nextToken field contains a token to the next page of results.

listBotsResponse_nextToken :: Lens' ListBotsResponse (Maybe Text) Source #

A token that indicates whether there are more results to return in a response to the ListBots operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBots operation request to get the next page of results.

listBotsResponse_httpStatus :: Lens' ListBotsResponse Int Source #

The response's http status code.