Copyright | (c) 2013-2021 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 |
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_nextToken :: Lens' GetSlotTypeVersions (Maybe Text)
- getSlotTypeVersions_maxResults :: Lens' GetSlotTypeVersions (Maybe Natural)
- 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.
GetSlotTypeVersions' | |
|
Instances
newGetSlotTypeVersions Source #
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:nextToken: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.
$sel:maxResults:GetSlotTypeVersions'
, getSlotTypeVersions_maxResults
- The maximum number of slot type versions to return in the response. The
default is 10.
$sel:name:GetSlotTypeVersions'
, getSlotTypeVersions_name
- The name of the slot type for which versions should be returned.
Request Lenses
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_maxResults :: Lens' GetSlotTypeVersions (Maybe Natural) Source #
The maximum number of slot type versions to return in the response. The default is 10.
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.
GetSlotTypeVersionsResponse' | |
|
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:
$sel:nextToken: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.