Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_nextToken :: Lens' GetIntentVersions (Maybe Text)
- getIntentVersions_maxResults :: Lens' GetIntentVersions (Maybe Natural)
- 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:nextToken: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.
$sel:maxResults:GetIntentVersions'
, getIntentVersions_maxResults
- The maximum number of intent versions to return in the response. The
default is 10.
$sel:name:GetIntentVersions'
, getIntentVersions_name
- The name of the intent for which versions should be returned.
Request Lenses
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_maxResults :: Lens' GetIntentVersions (Maybe Natural) Source #
The maximum number of intent versions to return in the response. The default is 10.
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.
$sel:nextToken: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.