| 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 |
Amazonka.LexModels.GetSlotType
Description
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.
Synopsis
- data GetSlotType = GetSlotType' {}
- newGetSlotType :: Text -> Text -> GetSlotType
- getSlotType_name :: Lens' GetSlotType Text
- getSlotType_version :: Lens' GetSlotType Text
- data GetSlotTypeResponse = GetSlotTypeResponse' {
- checksum :: Maybe Text
- createdDate :: Maybe POSIX
- description :: Maybe Text
- enumerationValues :: Maybe [EnumerationValue]
- lastUpdatedDate :: Maybe POSIX
- name :: Maybe Text
- parentSlotTypeSignature :: Maybe Text
- slotTypeConfigurations :: Maybe [SlotTypeConfiguration]
- valueSelectionStrategy :: Maybe SlotValueSelectionStrategy
- version :: Maybe Text
- httpStatus :: Int
- newGetSlotTypeResponse :: Int -> GetSlotTypeResponse
- getSlotTypeResponse_checksum :: Lens' GetSlotTypeResponse (Maybe Text)
- getSlotTypeResponse_createdDate :: Lens' GetSlotTypeResponse (Maybe UTCTime)
- getSlotTypeResponse_description :: Lens' GetSlotTypeResponse (Maybe Text)
- getSlotTypeResponse_enumerationValues :: Lens' GetSlotTypeResponse (Maybe [EnumerationValue])
- getSlotTypeResponse_lastUpdatedDate :: Lens' GetSlotTypeResponse (Maybe UTCTime)
- getSlotTypeResponse_name :: Lens' GetSlotTypeResponse (Maybe Text)
- getSlotTypeResponse_parentSlotTypeSignature :: Lens' GetSlotTypeResponse (Maybe Text)
- getSlotTypeResponse_slotTypeConfigurations :: Lens' GetSlotTypeResponse (Maybe [SlotTypeConfiguration])
- getSlotTypeResponse_valueSelectionStrategy :: Lens' GetSlotTypeResponse (Maybe SlotValueSelectionStrategy)
- getSlotTypeResponse_version :: Lens' GetSlotTypeResponse (Maybe Text)
- getSlotTypeResponse_httpStatus :: Lens' GetSlotTypeResponse Int
Creating a Request
data GetSlotType Source #
See: newGetSlotType smart constructor.
Constructors
| GetSlotType' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetSlotType |
Create a value of GetSlotType 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:
GetSlotType, getSlotType_name - The name of the slot type. The name is case sensitive.
GetSlotType, getSlotType_version - The version of the slot type.
Request Lenses
getSlotType_name :: Lens' GetSlotType Text Source #
The name of the slot type. The name is case sensitive.
getSlotType_version :: Lens' GetSlotType Text Source #
The version of the slot type.
Destructuring the Response
data GetSlotTypeResponse Source #
See: newGetSlotTypeResponse smart constructor.
Constructors
| GetSlotTypeResponse' | |
Fields
| |
Instances
newGetSlotTypeResponse Source #
Arguments
| :: Int | |
| -> GetSlotTypeResponse |
Create a value of GetSlotTypeResponse 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:
GetSlotTypeResponse, getSlotTypeResponse_checksum - Checksum of the $LATEST version of the slot type.
GetSlotTypeResponse, getSlotTypeResponse_createdDate - The date that the slot type was created.
GetSlotTypeResponse, getSlotTypeResponse_description - A description of the slot type.
$sel:enumerationValues:GetSlotTypeResponse', getSlotTypeResponse_enumerationValues - A list of EnumerationValue objects that defines the values that the
slot type can take.
GetSlotTypeResponse, getSlotTypeResponse_lastUpdatedDate - The date that the slot type was updated. When you create a resource, the
creation date and last update date are the same.
GetSlotType, getSlotTypeResponse_name - The name of the slot type.
$sel:parentSlotTypeSignature:GetSlotTypeResponse', getSlotTypeResponse_parentSlotTypeSignature - The built-in slot type used as a parent for the slot type.
$sel:slotTypeConfigurations:GetSlotTypeResponse', getSlotTypeResponse_slotTypeConfigurations - Configuration information that extends the parent built-in slot type.
$sel:valueSelectionStrategy:GetSlotTypeResponse', getSlotTypeResponse_valueSelectionStrategy - The strategy that Amazon Lex uses to determine the value of the slot.
For more information, see PutSlotType.
GetSlotType, getSlotTypeResponse_version - The version of the slot type.
$sel:httpStatus:GetSlotTypeResponse', getSlotTypeResponse_httpStatus - The response's http status code.
Response Lenses
getSlotTypeResponse_checksum :: Lens' GetSlotTypeResponse (Maybe Text) Source #
Checksum of the $LATEST version of the slot type.
getSlotTypeResponse_createdDate :: Lens' GetSlotTypeResponse (Maybe UTCTime) Source #
The date that the slot type was created.
getSlotTypeResponse_description :: Lens' GetSlotTypeResponse (Maybe Text) Source #
A description of the slot type.
getSlotTypeResponse_enumerationValues :: Lens' GetSlotTypeResponse (Maybe [EnumerationValue]) Source #
A list of EnumerationValue objects that defines the values that the
slot type can take.
getSlotTypeResponse_lastUpdatedDate :: 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.
getSlotTypeResponse_name :: Lens' GetSlotTypeResponse (Maybe Text) Source #
The name of the slot type.
getSlotTypeResponse_parentSlotTypeSignature :: Lens' GetSlotTypeResponse (Maybe Text) Source #
The built-in slot type used as a parent for the slot type.
getSlotTypeResponse_slotTypeConfigurations :: Lens' GetSlotTypeResponse (Maybe [SlotTypeConfiguration]) Source #
Configuration information that extends the parent built-in slot type.
getSlotTypeResponse_valueSelectionStrategy :: Lens' GetSlotTypeResponse (Maybe SlotValueSelectionStrategy) Source #
The strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.
getSlotTypeResponse_version :: Lens' GetSlotTypeResponse (Maybe Text) Source #
The version of the slot type.
getSlotTypeResponse_httpStatus :: Lens' GetSlotTypeResponse Int Source #
The response's http status code.