Copyright | (c) 2013-2017 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 |
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.
- getIntentVersions :: Text -> GetIntentVersions
- data GetIntentVersions
- givNextToken :: Lens' GetIntentVersions (Maybe Text)
- givMaxResults :: Lens' GetIntentVersions (Maybe Natural)
- givName :: Lens' GetIntentVersions Text
- getIntentVersionsResponse :: Int -> GetIntentVersionsResponse
- data GetIntentVersionsResponse
- givrsIntents :: Lens' GetIntentVersionsResponse [IntentMetadata]
- givrsNextToken :: Lens' GetIntentVersionsResponse (Maybe Text)
- givrsResponseStatus :: Lens' GetIntentVersionsResponse Int
Creating a Request
Creates a value of GetIntentVersions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
givNextToken
- 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.givMaxResults
- The maximum number of intent versions to return in the response. The default is 10.givName
- The name of the intent for which versions should be returned.
data GetIntentVersions Source #
See: getIntentVersions
smart constructor.
Request Lenses
givNextToken :: 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.
givMaxResults :: Lens' GetIntentVersions (Maybe Natural) Source #
The maximum number of intent versions to return in the response. The default is 10.
givName :: Lens' GetIntentVersions Text Source #
The name of the intent for which versions should be returned.
Destructuring the Response
getIntentVersionsResponse Source #
Creates a value of GetIntentVersionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
givrsIntents
- An array ofIntentMetadata
objects, one for each numbered version of the intent plus one for the> LATEST
version.givrsNextToken
- 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.givrsResponseStatus
- -- | The response status code.
data GetIntentVersionsResponse Source #
See: getIntentVersionsResponse
smart constructor.
Response Lenses
givrsIntents :: Lens' GetIntentVersionsResponse [IntentMetadata] Source #
An array of IntentMetadata
objects, one for each numbered version of the intent plus one for the > LATEST
version.
givrsNextToken :: 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.
givrsResponseStatus :: Lens' GetIntentVersionsResponse Int Source #
- - | The response status code.