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 a list of built-in intents that meet the specified criteria.
This operation requires permission for the lex:GetBuiltinIntents
action.
- getBuiltinIntents :: GetBuiltinIntents
- data GetBuiltinIntents
- gbiLocale :: Lens' GetBuiltinIntents (Maybe Locale)
- gbiNextToken :: Lens' GetBuiltinIntents (Maybe Text)
- gbiSignatureContains :: Lens' GetBuiltinIntents (Maybe Text)
- gbiMaxResults :: Lens' GetBuiltinIntents (Maybe Natural)
- getBuiltinIntentsResponse :: Int -> GetBuiltinIntentsResponse
- data GetBuiltinIntentsResponse
- grsIntents :: Lens' GetBuiltinIntentsResponse [BuiltinIntentMetadata]
- grsNextToken :: Lens' GetBuiltinIntentsResponse (Maybe Text)
- grsResponseStatus :: Lens' GetBuiltinIntentsResponse Int
Creating a Request
getBuiltinIntents :: GetBuiltinIntents Source #
Creates a value of GetBuiltinIntents
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbiLocale
- A list of locales that the intent supports.gbiNextToken
- A pagination token that fetches the next page of intents. If this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, use the pagination token in the next request.gbiSignatureContains
- Substring to match in built-in intent signatures. An intent will be returned if any part of its signature matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit .gbiMaxResults
- The maximum number of intents to return in the response. The default is 10.
data GetBuiltinIntents Source #
See: getBuiltinIntents
smart constructor.
Request Lenses
gbiLocale :: Lens' GetBuiltinIntents (Maybe Locale) Source #
A list of locales that the intent supports.
gbiNextToken :: Lens' GetBuiltinIntents (Maybe Text) Source #
A pagination token that fetches the next page of intents. If this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, use the pagination token in the next request.
gbiSignatureContains :: Lens' GetBuiltinIntents (Maybe Text) Source #
Substring to match in built-in intent signatures. An intent will be returned if any part of its signature matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit .
gbiMaxResults :: Lens' GetBuiltinIntents (Maybe Natural) Source #
The maximum number of intents to return in the response. The default is 10.
Destructuring the Response
getBuiltinIntentsResponse Source #
Creates a value of GetBuiltinIntentsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grsIntents
- An array ofbuiltinIntentMetadata
objects, one for each intent in the response.grsNextToken
- A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.grsResponseStatus
- -- | The response status code.
data GetBuiltinIntentsResponse Source #
See: getBuiltinIntentsResponse
smart constructor.
Response Lenses
grsIntents :: Lens' GetBuiltinIntentsResponse [BuiltinIntentMetadata] Source #
An array of builtinIntentMetadata
objects, one for each intent in the response.
grsNextToken :: Lens' GetBuiltinIntentsResponse (Maybe Text) Source #
A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.
grsResponseStatus :: Lens' GetBuiltinIntentsResponse Int Source #
- - | The response status code.