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 |
Returns information about a specific version of a slot type. In addition to specifying the slot type name, you must specify the slot type version.
This operation requires permissions for the lex:GetSlotType
action.
- getSlotType :: Text -> Text -> GetSlotType
- data GetSlotType
- gstName :: Lens' GetSlotType Text
- gstVersion :: Lens' GetSlotType Text
- getSlotTypeResponse :: Int -> GetSlotTypeResponse
- data GetSlotTypeResponse
- getrsChecksum :: Lens' GetSlotTypeResponse (Maybe Text)
- getrsValueSelectionStrategy :: Lens' GetSlotTypeResponse (Maybe SlotValueSelectionStrategy)
- getrsCreatedDate :: Lens' GetSlotTypeResponse (Maybe UTCTime)
- getrsName :: Lens' GetSlotTypeResponse (Maybe Text)
- getrsVersion :: Lens' GetSlotTypeResponse (Maybe Text)
- getrsLastUpdatedDate :: Lens' GetSlotTypeResponse (Maybe UTCTime)
- getrsDescription :: Lens' GetSlotTypeResponse (Maybe Text)
- getrsEnumerationValues :: Lens' GetSlotTypeResponse (Maybe (NonEmpty EnumerationValue))
- getrsResponseStatus :: Lens' GetSlotTypeResponse Int
Creating a Request
:: Text | |
-> Text | |
-> GetSlotType |
Creates a value of GetSlotType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gstName
- The name of the slot type. The name is case sensitive.gstVersion
- The version of the slot type.
data GetSlotType Source #
See: getSlotType
smart constructor.
Request Lenses
gstVersion :: Lens' GetSlotType Text Source #
The version of the slot type.
Destructuring the Response
Creates a value of GetSlotTypeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
getrsChecksum
- Checksum of the> LATEST
version of the slot type.getrsValueSelectionStrategy
- The strategy that Amazon Lex uses to determine the value of the slot. For more information, seePutSlotType
.getrsCreatedDate
- The date that the slot type was created.getrsName
- The name of the slot type.getrsVersion
- The version of the slot type.getrsLastUpdatedDate
- The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.getrsDescription
- A description of the slot type.getrsEnumerationValues
- A list ofEnumerationValue
objects that defines the values that the slot type can take.getrsResponseStatus
- -- | The response status code.
data GetSlotTypeResponse Source #
See: getSlotTypeResponse
smart constructor.
Response Lenses
getrsChecksum :: Lens' GetSlotTypeResponse (Maybe Text) Source #
Checksum of the > LATEST
version of the slot type.
getrsValueSelectionStrategy :: Lens' GetSlotTypeResponse (Maybe SlotValueSelectionStrategy) Source #
The strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType
.
getrsCreatedDate :: Lens' GetSlotTypeResponse (Maybe UTCTime) Source #
The date that the slot type was created.
getrsVersion :: Lens' GetSlotTypeResponse (Maybe Text) Source #
The version of the slot type.
getrsLastUpdatedDate :: Lens' GetSlotTypeResponse (Maybe UTCTime) Source #
The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.
getrsDescription :: Lens' GetSlotTypeResponse (Maybe Text) Source #
A description of the slot type.
getrsEnumerationValues :: Lens' GetSlotTypeResponse (Maybe (NonEmpty EnumerationValue)) Source #
A list of EnumerationValue
objects that defines the values that the slot type can take.
getrsResponseStatus :: Lens' GetSlotTypeResponse Int Source #
- - | The response status code.