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

Description

Lists the exports for a bot, bot locale, or custom vocabulary. Exports are kept in the list for 7 days.

Synopsis

Creating a Request

data ListExports Source #

See: newListExports smart constructor.

Constructors

ListExports' 

Fields

  • botId :: Maybe Text

    The unique identifier that Amazon Lex assigned to the bot.

  • botVersion :: Maybe Text

    The version of the bot to list exports for.

  • filters :: Maybe (NonEmpty ExportFilter)

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

  • localeId :: Maybe Text

    Specifies the resources that should be exported. If you don't specify a resource type in the filters parameter, both bot locales and custom vocabularies are exported.

  • maxResults :: Maybe Natural

    The maximum number of exports 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 from the ListExports operation contains more results that specified in the maxResults parameter, a token is returned in the response.

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

  • sortBy :: Maybe ExportSortBy

    Determines the field that the list of exports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order.

Instances

Instances details
ToJSON ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

ToHeaders ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Methods

toHeaders :: ListExports -> [Header] #

ToPath ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

ToQuery ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

AWSRequest ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Associated Types

type AWSResponse ListExports #

Generic ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Associated Types

type Rep ListExports :: Type -> Type #

Read ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Show ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

NFData ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Methods

rnf :: ListExports -> () #

Eq ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Hashable ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

type AWSResponse ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

type Rep ListExports Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

newListExports :: ListExports Source #

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

ListExports, listExports_botId - The unique identifier that Amazon Lex assigned to the bot.

ListExports, listExports_botVersion - The version of the bot to list exports for.

$sel:filters:ListExports', listExports_filters - Provides the specification of a filter used to limit the exports in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

ListExports, listExports_localeId - Specifies the resources that should be exported. If you don't specify a resource type in the filters parameter, both bot locales and custom vocabularies are exported.

$sel:maxResults:ListExports', listExports_maxResults - The maximum number of exports 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.

ListExports, listExports_nextToken - If the response from the ListExports operation contains more results that specified in the maxResults parameter, a token is returned in the response.

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

$sel:sortBy:ListExports', listExports_sortBy - Determines the field that the list of exports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order.

Request Lenses

listExports_botId :: Lens' ListExports (Maybe Text) Source #

The unique identifier that Amazon Lex assigned to the bot.

listExports_botVersion :: Lens' ListExports (Maybe Text) Source #

The version of the bot to list exports for.

listExports_filters :: Lens' ListExports (Maybe (NonEmpty ExportFilter)) Source #

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

listExports_localeId :: Lens' ListExports (Maybe Text) Source #

Specifies the resources that should be exported. If you don't specify a resource type in the filters parameter, both bot locales and custom vocabularies are exported.

listExports_maxResults :: Lens' ListExports (Maybe Natural) Source #

The maximum number of exports 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.

listExports_nextToken :: Lens' ListExports (Maybe Text) Source #

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

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

listExports_sortBy :: Lens' ListExports (Maybe ExportSortBy) Source #

Determines the field that the list of exports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order.

Destructuring the Response

data ListExportsResponse Source #

See: newListExportsResponse smart constructor.

Constructors

ListExportsResponse' 

Fields

  • botId :: Maybe Text

    The unique identifier assigned to the bot by Amazon Lex.

  • botVersion :: Maybe Text

    The version of the bot that was exported.

  • exportSummaries :: Maybe [ExportSummary]

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

  • localeId :: Maybe Text

    The locale specified in the request.

  • nextToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListExportsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Associated Types

type Rep ListExportsResponse :: Type -> Type #

Read ListExportsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Show ListExportsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

NFData ListExportsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

Methods

rnf :: ListExportsResponse -> () #

Eq ListExportsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

type Rep ListExportsResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.ListExports

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

newListExportsResponse Source #

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

ListExports, listExportsResponse_botId - The unique identifier assigned to the bot by Amazon Lex.

ListExports, listExportsResponse_botVersion - The version of the bot that was exported.

$sel:exportSummaries:ListExportsResponse', listExportsResponse_exportSummaries - Summary information for the exports that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter. If there are more exports available, the nextToken field contains a token to get the next page of results.

ListExports, listExportsResponse_localeId - The locale specified in the request.

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

$sel:httpStatus:ListExportsResponse', listExportsResponse_httpStatus - The response's http status code.

Response Lenses

listExportsResponse_botId :: Lens' ListExportsResponse (Maybe Text) Source #

The unique identifier assigned to the bot by Amazon Lex.

listExportsResponse_botVersion :: Lens' ListExportsResponse (Maybe Text) Source #

The version of the bot that was exported.

listExportsResponse_exportSummaries :: Lens' ListExportsResponse (Maybe [ExportSummary]) Source #

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

listExportsResponse_localeId :: Lens' ListExportsResponse (Maybe Text) Source #

The locale specified in the request.

listExportsResponse_nextToken :: Lens' ListExportsResponse (Maybe Text) Source #

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