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 information about all of the versions of an intent.
The GetIntentVersions
operation returns an IntentMetadata
object for
each version of an intent. For example, if an intent has three numbered
versions, the GetIntentVersions
operation returns four
IntentMetadata
objects in the response, one for each numbered version
and one for the $LATEST
version.
The GetIntentVersions
operation always returns at least one version,
the $LATEST
version.
This operation requires permissions for the lex:GetIntentVersions
action.
This operation returns paginated results.
Synopsis
- data GetIntentVersions = GetIntentVersions' {}
- newGetIntentVersions :: Text -> GetIntentVersions
- getIntentVersions_maxResults :: Lens' GetIntentVersions (Maybe Natural)
- getIntentVersions_nextToken :: Lens' GetIntentVersions (Maybe Text)
- getIntentVersions_name :: Lens' GetIntentVersions Text
- data GetIntentVersionsResponse = GetIntentVersionsResponse' {
- intents :: Maybe [IntentMetadata]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetIntentVersionsResponse :: Int -> GetIntentVersionsResponse
- getIntentVersionsResponse_intents :: Lens' GetIntentVersionsResponse (Maybe [IntentMetadata])
- getIntentVersionsResponse_nextToken :: Lens' GetIntentVersionsResponse (Maybe Text)
- getIntentVersionsResponse_httpStatus :: Lens' GetIntentVersionsResponse Int
Creating a Request
data GetIntentVersions Source #
See: newGetIntentVersions
smart constructor.
GetIntentVersions' | |
|
Instances
Create a value of GetIntentVersions
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:GetIntentVersions'
, getIntentVersions_maxResults
- The maximum number of intent versions to return in the response. The
default is 10.
GetIntentVersions
, getIntentVersions_nextToken
- A pagination token for fetching the next page of intent versions. If the
response to this call is truncated, Amazon Lex returns a pagination
token in the response. To fetch the next page of versions, specify the
pagination token in the next request.
GetIntentVersions
, getIntentVersions_name
- The name of the intent for which versions should be returned.
Request Lenses
getIntentVersions_maxResults :: Lens' GetIntentVersions (Maybe Natural) Source #
The maximum number of intent versions to return in the response. The default is 10.
getIntentVersions_nextToken :: Lens' GetIntentVersions (Maybe Text) Source #
A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
getIntentVersions_name :: Lens' GetIntentVersions Text Source #
The name of the intent for which versions should be returned.
Destructuring the Response
data GetIntentVersionsResponse Source #
See: newGetIntentVersionsResponse
smart constructor.
GetIntentVersionsResponse' | |
|
Instances
newGetIntentVersionsResponse Source #
Create a value of GetIntentVersionsResponse
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:intents:GetIntentVersionsResponse'
, getIntentVersionsResponse_intents
- An array of IntentMetadata
objects, one for each numbered version of
the intent plus one for the $LATEST
version.
GetIntentVersions
, getIntentVersionsResponse_nextToken
- A pagination token for fetching the next page of intent versions. If the
response to this call is truncated, Amazon Lex returns a pagination
token in the response. To fetch the next page of versions, specify the
pagination token in the next request.
$sel:httpStatus:GetIntentVersionsResponse'
, getIntentVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
getIntentVersionsResponse_intents :: Lens' GetIntentVersionsResponse (Maybe [IntentMetadata]) Source #
An array of IntentMetadata
objects, one for each numbered version of
the intent plus one for the $LATEST
version.
getIntentVersionsResponse_nextToken :: Lens' GetIntentVersionsResponse (Maybe Text) Source #
A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
getIntentVersionsResponse_httpStatus :: Lens' GetIntentVersionsResponse Int Source #
The response's http status code.