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 |
Updates a Type
object.
- updateType :: Text -> Text -> TypeDefinitionFormat -> UpdateType
- data UpdateType
- utDefinition :: Lens' UpdateType (Maybe Text)
- utApiId :: Lens' UpdateType Text
- utTypeName :: Lens' UpdateType Text
- utFormat :: Lens' UpdateType TypeDefinitionFormat
- updateTypeResponse :: Int -> UpdateTypeResponse
- data UpdateTypeResponse
- utrsType :: Lens' UpdateTypeResponse (Maybe Type)
- utrsResponseStatus :: Lens' UpdateTypeResponse Int
Creating a Request
Creates a value of UpdateType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utDefinition
- The new definition.utApiId
- The API ID.utTypeName
- The new type name.utFormat
- The new type format: SDL or JSON.
data UpdateType Source #
See: updateType
smart constructor.
Request Lenses
utDefinition :: Lens' UpdateType (Maybe Text) Source #
The new definition.
utTypeName :: Lens' UpdateType Text Source #
The new type name.
utFormat :: Lens' UpdateType TypeDefinitionFormat Source #
The new type format: SDL or JSON.
Destructuring the Response
Creates a value of UpdateTypeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utrsType
- The updatedType
object.utrsResponseStatus
- -- | The response status code.
data UpdateTypeResponse Source #
See: updateTypeResponse
smart constructor.
Response Lenses
utrsResponseStatus :: Lens' UpdateTypeResponse Int Source #
- - | The response status code.