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 |
Lists the types for a given API.
This operation returns paginated results.
Synopsis
- data ListTypes = ListTypes' {}
- newListTypes :: Text -> TypeDefinitionFormat -> ListTypes
- listTypes_nextToken :: Lens' ListTypes (Maybe Text)
- listTypes_maxResults :: Lens' ListTypes (Maybe Natural)
- listTypes_apiId :: Lens' ListTypes Text
- listTypes_format :: Lens' ListTypes TypeDefinitionFormat
- data ListTypesResponse = ListTypesResponse' {}
- newListTypesResponse :: Int -> ListTypesResponse
- listTypesResponse_types :: Lens' ListTypesResponse (Maybe [Type])
- listTypesResponse_nextToken :: Lens' ListTypesResponse (Maybe Text)
- listTypesResponse_httpStatus :: Lens' ListTypesResponse Int
Creating a Request
See: newListTypes
smart constructor.
ListTypes' | |
|
Instances
Create a value of ListTypes
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:ListTypes'
, listTypes_nextToken
- An identifier that was returned from the previous call to this
operation, which can be used to return the next set of items in the
list.
$sel:maxResults:ListTypes'
, listTypes_maxResults
- The maximum number of results you want the request to return.
$sel:apiId:ListTypes'
, listTypes_apiId
- The API ID.
$sel:format:ListTypes'
, listTypes_format
- The type format: SDL or JSON.
Request Lenses
listTypes_nextToken :: Lens' ListTypes (Maybe Text) Source #
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
listTypes_maxResults :: Lens' ListTypes (Maybe Natural) Source #
The maximum number of results you want the request to return.
listTypes_format :: Lens' ListTypes TypeDefinitionFormat Source #
The type format: SDL or JSON.
Destructuring the Response
data ListTypesResponse Source #
See: newListTypesResponse
smart constructor.
Instances
Create a value of ListTypesResponse
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:types:ListTypesResponse'
, listTypesResponse_types
- The Type
objects.
$sel:nextToken:ListTypes'
, listTypesResponse_nextToken
- An identifier to be passed in the next request to this operation to
return the next set of items in the list.
$sel:httpStatus:ListTypesResponse'
, listTypesResponse_httpStatus
- The response's http status code.
Response Lenses
listTypesResponse_types :: Lens' ListTypesResponse (Maybe [Type]) Source #
The Type
objects.
listTypesResponse_nextToken :: Lens' ListTypesResponse (Maybe Text) Source #
An identifier to be passed in the next request to this operation to return the next set of items in the list.
listTypesResponse_httpStatus :: Lens' ListTypesResponse Int Source #
The response's http status code.