| 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.GetSlotTypeVersions
Description
Gets information about all versions of a slot type.
The GetSlotTypeVersions operation returns a SlotTypeMetadata object
 for each version of a slot type. For example, if a slot type has three
 numbered versions, the GetSlotTypeVersions operation returns four
 SlotTypeMetadata objects in the response, one for each numbered
 version and one for the $LATEST version.
The GetSlotTypeVersions operation always returns at least one version,
 the $LATEST version.
This operation requires permissions for the lex:GetSlotTypeVersions
 action.
This operation returns paginated results.
Synopsis
- data GetSlotTypeVersions = GetSlotTypeVersions' {}
 - newGetSlotTypeVersions :: Text -> GetSlotTypeVersions
 - getSlotTypeVersions_maxResults :: Lens' GetSlotTypeVersions (Maybe Natural)
 - getSlotTypeVersions_nextToken :: Lens' GetSlotTypeVersions (Maybe Text)
 - getSlotTypeVersions_name :: Lens' GetSlotTypeVersions Text
 - data GetSlotTypeVersionsResponse = GetSlotTypeVersionsResponse' {
- nextToken :: Maybe Text
 - slotTypes :: Maybe [SlotTypeMetadata]
 - httpStatus :: Int
 
 - newGetSlotTypeVersionsResponse :: Int -> GetSlotTypeVersionsResponse
 - getSlotTypeVersionsResponse_nextToken :: Lens' GetSlotTypeVersionsResponse (Maybe Text)
 - getSlotTypeVersionsResponse_slotTypes :: Lens' GetSlotTypeVersionsResponse (Maybe [SlotTypeMetadata])
 - getSlotTypeVersionsResponse_httpStatus :: Lens' GetSlotTypeVersionsResponse Int
 
Creating a Request
data GetSlotTypeVersions Source #
See: newGetSlotTypeVersions smart constructor.
Constructors
| GetSlotTypeVersions' | |
Fields 
  | |
Instances
newGetSlotTypeVersions Source #
Arguments
| :: Text | |
| -> GetSlotTypeVersions | 
Create a value of GetSlotTypeVersions 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:maxResults:GetSlotTypeVersions', getSlotTypeVersions_maxResults - The maximum number of slot type versions to return in the response. The
 default is 10.
GetSlotTypeVersions, getSlotTypeVersions_nextToken - A pagination token for fetching the next page of slot type 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.
GetSlotTypeVersions, getSlotTypeVersions_name - The name of the slot type for which versions should be returned.
Request Lenses
getSlotTypeVersions_maxResults :: Lens' GetSlotTypeVersions (Maybe Natural) Source #
The maximum number of slot type versions to return in the response. The default is 10.
getSlotTypeVersions_nextToken :: Lens' GetSlotTypeVersions (Maybe Text) Source #
A pagination token for fetching the next page of slot type 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.
getSlotTypeVersions_name :: Lens' GetSlotTypeVersions Text Source #
The name of the slot type for which versions should be returned.
Destructuring the Response
data GetSlotTypeVersionsResponse Source #
See: newGetSlotTypeVersionsResponse smart constructor.
Constructors
| GetSlotTypeVersionsResponse' | |
Fields 
  | |
Instances
newGetSlotTypeVersionsResponse Source #
Create a value of GetSlotTypeVersionsResponse 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:
GetSlotTypeVersions, getSlotTypeVersionsResponse_nextToken - A pagination token for fetching the next page of slot type 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:slotTypes:GetSlotTypeVersionsResponse', getSlotTypeVersionsResponse_slotTypes - An array of SlotTypeMetadata objects, one for each numbered version of
 the slot type plus one for the $LATEST version.
$sel:httpStatus:GetSlotTypeVersionsResponse', getSlotTypeVersionsResponse_httpStatus - The response's http status code.
Response Lenses
getSlotTypeVersionsResponse_nextToken :: Lens' GetSlotTypeVersionsResponse (Maybe Text) Source #
A pagination token for fetching the next page of slot type 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.
getSlotTypeVersionsResponse_slotTypes :: Lens' GetSlotTypeVersionsResponse (Maybe [SlotTypeMetadata]) Source #
An array of SlotTypeMetadata objects, one for each numbered version of
 the slot type plus one for the $LATEST version.
getSlotTypeVersionsResponse_httpStatus :: Lens' GetSlotTypeVersionsResponse Int Source #
The response's http status code.