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

Description

Gets information about all of the versions of a bot.

The ListBotVersions operation returns a summary of each version of a bot. For example, if a bot has three numbered versions, the ListBotVersions operation returns for summaries, one for each numbered version and one for the DRAFT version.

The ListBotVersions operation always returns at least one version, the DRAFT version.

Synopsis

Creating a Request

data ListBotVersions Source #

See: newListBotVersions smart constructor.

Constructors

ListBotVersions' 

Fields

  • maxResults :: Maybe Natural

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

  • nextToken :: Maybe Text

    If the response to the ListBotVersion operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

  • sortBy :: Maybe BotVersionSortBy

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

  • botId :: Text

    The identifier of the bot to list versions for.

Instances

Instances details
ToJSON ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

ToHeaders ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

ToPath ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

ToQuery ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

AWSRequest ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Associated Types

type AWSResponse ListBotVersions #

Generic ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Associated Types

type Rep ListBotVersions :: Type -> Type #

Read ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Show ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

NFData ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Methods

rnf :: ListBotVersions -> () #

Eq ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Hashable ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

type AWSResponse ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

type Rep ListBotVersions Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

type Rep ListBotVersions = D1 ('MetaData "ListBotVersions" "Amazonka.LexV2Models.ListBotVersions" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "ListBotVersions'" '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 "sortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotVersionSortBy)) :*: S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListBotVersions Source #

Create a value of ListBotVersions 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:ListBotVersions', listBotVersions_maxResults - The maximum number of versions to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

ListBotVersions, listBotVersions_nextToken - If the response to the ListBotVersion operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

$sel:sortBy:ListBotVersions', listBotVersions_sortBy - Specifies sorting parameters for the list of versions. You can specify that the list be sorted by version name in either ascending or descending order.

ListBotVersions, listBotVersions_botId - The identifier of the bot to list versions for.

Request Lenses

listBotVersions_maxResults :: Lens' ListBotVersions (Maybe Natural) Source #

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

listBotVersions_nextToken :: Lens' ListBotVersions (Maybe Text) Source #

If the response to the ListBotVersion operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

listBotVersions_sortBy :: Lens' ListBotVersions (Maybe BotVersionSortBy) Source #

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

listBotVersions_botId :: Lens' ListBotVersions Text Source #

The identifier of the bot to list versions for.

Destructuring the Response

data ListBotVersionsResponse Source #

See: newListBotVersionsResponse smart constructor.

Constructors

ListBotVersionsResponse' 

Fields

  • botId :: Maybe Text

    The identifier of the bot to list versions for.

  • botVersionSummaries :: Maybe [BotVersionSummary]

    Summary information for the bot versions 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 versions available, the nextToken field contains a token to get the next page of results.

  • nextToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListBotVersionsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Associated Types

type Rep ListBotVersionsResponse :: Type -> Type #

Read ListBotVersionsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Show ListBotVersionsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

NFData ListBotVersionsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

Methods

rnf :: ListBotVersionsResponse -> () #

Eq ListBotVersionsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

type Rep ListBotVersionsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListBotVersions

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

newListBotVersionsResponse Source #

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

ListBotVersions, listBotVersionsResponse_botId - The identifier of the bot to list versions for.

$sel:botVersionSummaries:ListBotVersionsResponse', listBotVersionsResponse_botVersionSummaries - Summary information for the bot versions 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 versions available, the nextToken field contains a token to get the next page of results.

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

$sel:httpStatus:ListBotVersionsResponse', listBotVersionsResponse_httpStatus - The response's http status code.

Response Lenses

listBotVersionsResponse_botId :: Lens' ListBotVersionsResponse (Maybe Text) Source #

The identifier of the bot to list versions for.

listBotVersionsResponse_botVersionSummaries :: Lens' ListBotVersionsResponse (Maybe [BotVersionSummary]) Source #

Summary information for the bot versions 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 versions available, the nextToken field contains a token to get the next page of results.

listBotVersionsResponse_nextToken :: Lens' ListBotVersionsResponse (Maybe Text) Source #

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