Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets a list of locales for the specified bot.
Synopsis
- data ListBotLocales = ListBotLocales' {
- filters :: Maybe (NonEmpty BotLocaleFilter)
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- sortBy :: Maybe BotLocaleSortBy
- botId :: Text
- botVersion :: Text
- newListBotLocales :: Text -> Text -> ListBotLocales
- listBotLocales_filters :: Lens' ListBotLocales (Maybe (NonEmpty BotLocaleFilter))
- listBotLocales_maxResults :: Lens' ListBotLocales (Maybe Natural)
- listBotLocales_nextToken :: Lens' ListBotLocales (Maybe Text)
- listBotLocales_sortBy :: Lens' ListBotLocales (Maybe BotLocaleSortBy)
- listBotLocales_botId :: Lens' ListBotLocales Text
- listBotLocales_botVersion :: Lens' ListBotLocales Text
- data ListBotLocalesResponse = ListBotLocalesResponse' {
- botId :: Maybe Text
- botLocaleSummaries :: Maybe [BotLocaleSummary]
- botVersion :: Maybe Text
- nextToken :: Maybe Text
- httpStatus :: Int
- newListBotLocalesResponse :: Int -> ListBotLocalesResponse
- listBotLocalesResponse_botId :: Lens' ListBotLocalesResponse (Maybe Text)
- listBotLocalesResponse_botLocaleSummaries :: Lens' ListBotLocalesResponse (Maybe [BotLocaleSummary])
- listBotLocalesResponse_botVersion :: Lens' ListBotLocalesResponse (Maybe Text)
- listBotLocalesResponse_nextToken :: Lens' ListBotLocalesResponse (Maybe Text)
- listBotLocalesResponse_httpStatus :: Lens' ListBotLocalesResponse Int
Creating a Request
data ListBotLocales Source #
See: newListBotLocales
smart constructor.
ListBotLocales' | |
|
Instances
Create a value of ListBotLocales
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:ListBotLocales'
, listBotLocales_filters
- Provides the specification for a filter used to limit the response to
only those locales that match the filter specification. You can only
specify one filter and one value to filter on.
$sel:maxResults:ListBotLocales'
, listBotLocales_maxResults
- The maximum number of aliases 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.
ListBotLocales
, listBotLocales_nextToken
- If the response from the ListBotLocales
operation contains more
results than specified in the maxResults
parameter, a token is
returned in the response. Use that token as the nextToken
parameter to
return the next page of results.
$sel:sortBy:ListBotLocales'
, listBotLocales_sortBy
- Specifies sorting parameters for the list of locales. You can sort by
locale name in ascending or descending order.
ListBotLocales
, listBotLocales_botId
- The identifier of the bot to list locales for.
ListBotLocales
, listBotLocales_botVersion
- The version of the bot to list locales for.
Request Lenses
listBotLocales_filters :: Lens' ListBotLocales (Maybe (NonEmpty BotLocaleFilter)) Source #
Provides the specification for a filter used to limit the response to only those locales that match the filter specification. You can only specify one filter and one value to filter on.
listBotLocales_maxResults :: Lens' ListBotLocales (Maybe Natural) Source #
The maximum number of aliases 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.
listBotLocales_nextToken :: Lens' ListBotLocales (Maybe Text) Source #
If the response from the ListBotLocales
operation contains more
results than specified in the maxResults
parameter, a token is
returned in the response. Use that token as the nextToken
parameter to
return the next page of results.
listBotLocales_sortBy :: Lens' ListBotLocales (Maybe BotLocaleSortBy) Source #
Specifies sorting parameters for the list of locales. You can sort by locale name in ascending or descending order.
listBotLocales_botId :: Lens' ListBotLocales Text Source #
The identifier of the bot to list locales for.
listBotLocales_botVersion :: Lens' ListBotLocales Text Source #
The version of the bot to list locales for.
Destructuring the Response
data ListBotLocalesResponse Source #
See: newListBotLocalesResponse
smart constructor.
ListBotLocalesResponse' | |
|
Instances
newListBotLocalesResponse Source #
Create a value of ListBotLocalesResponse
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:
ListBotLocales
, listBotLocalesResponse_botId
- The identifier of the bot to list locales for.
$sel:botLocaleSummaries:ListBotLocalesResponse'
, listBotLocalesResponse_botLocaleSummaries
- Summary information for the locales 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 locales
available, the nextToken
field contains a token to get the next page
of results.
ListBotLocales
, listBotLocalesResponse_botVersion
- The version of the bot.
ListBotLocales
, listBotLocalesResponse_nextToken
- A token that indicates whether there are more results to return in a
response to the ListBotLocales
operation. If the nextToken
field is
present, you send the contents as the nextToken
parameter of a
ListBotLocales
operation request to get the next page of results.
$sel:httpStatus:ListBotLocalesResponse'
, listBotLocalesResponse_httpStatus
- The response's http status code.
Response Lenses
listBotLocalesResponse_botId :: Lens' ListBotLocalesResponse (Maybe Text) Source #
The identifier of the bot to list locales for.
listBotLocalesResponse_botLocaleSummaries :: Lens' ListBotLocalesResponse (Maybe [BotLocaleSummary]) Source #
Summary information for the locales 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 locales
available, the nextToken
field contains a token to get the next page
of results.
listBotLocalesResponse_botVersion :: Lens' ListBotLocalesResponse (Maybe Text) Source #
The version of the bot.
listBotLocalesResponse_nextToken :: Lens' ListBotLocalesResponse (Maybe Text) Source #
A token that indicates whether there are more results to return in a
response to the ListBotLocales
operation. If the nextToken
field is
present, you send the contents as the nextToken
parameter of a
ListBotLocales
operation request to get the next page of results.
listBotLocalesResponse_httpStatus :: Lens' ListBotLocalesResponse Int Source #
The response's http status code.