Copyright | (c) 2013-2018 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 |
Lists the types for a given API.
Synopsis
- listTypes :: Text -> TypeDefinitionFormat -> ListTypes
- data ListTypes
- ltNextToken :: Lens' ListTypes (Maybe Text)
- ltMaxResults :: Lens' ListTypes (Maybe Natural)
- ltApiId :: Lens' ListTypes Text
- ltFormat :: Lens' ListTypes TypeDefinitionFormat
- listTypesResponse :: Int -> ListTypesResponse
- data ListTypesResponse
- ltrsTypes :: Lens' ListTypesResponse [Type]
- ltrsNextToken :: Lens' ListTypesResponse (Maybe Text)
- ltrsResponseStatus :: Lens' ListTypesResponse Int
Creating a Request
Creates a value of ListTypes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltNextToken
- 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.ltMaxResults
- The maximum number of results you want the request to return.ltApiId
- The API ID.ltFormat
- The type format: SDL or JSON.
See: listTypes
smart constructor.
Instances
Request Lenses
ltNextToken :: 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.
ltMaxResults :: Lens' ListTypes (Maybe Natural) Source #
The maximum number of results you want the request to return.
Destructuring the Response
Creates a value of ListTypesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltrsTypes
- TheType
objects.ltrsNextToken
- An identifier to be passed in the next request to this operation to return the next set of items in the list.ltrsResponseStatus
- -- | The response status code.
data ListTypesResponse Source #
See: listTypesResponse
smart constructor.
Instances
Response Lenses
ltrsNextToken :: 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.
ltrsResponseStatus :: Lens' ListTypesResponse Int Source #
- - | The response status code.