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 |
Updates a Type
object.
Synopsis
- data UpdateType = UpdateType' {
- definition :: Maybe Text
- apiId :: Text
- typeName :: Text
- format :: TypeDefinitionFormat
- newUpdateType :: Text -> Text -> TypeDefinitionFormat -> UpdateType
- updateType_definition :: Lens' UpdateType (Maybe Text)
- updateType_apiId :: Lens' UpdateType Text
- updateType_typeName :: Lens' UpdateType Text
- updateType_format :: Lens' UpdateType TypeDefinitionFormat
- data UpdateTypeResponse = UpdateTypeResponse' {
- type' :: Maybe Type
- httpStatus :: Int
- newUpdateTypeResponse :: Int -> UpdateTypeResponse
- updateTypeResponse_type :: Lens' UpdateTypeResponse (Maybe Type)
- updateTypeResponse_httpStatus :: Lens' UpdateTypeResponse Int
Creating a Request
data UpdateType Source #
See: newUpdateType
smart constructor.
UpdateType' | |
|
Instances
:: Text | |
-> Text | |
-> TypeDefinitionFormat | |
-> UpdateType |
Create a value of UpdateType
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:definition:UpdateType'
, updateType_definition
- The new definition.
$sel:apiId:UpdateType'
, updateType_apiId
- The API ID.
$sel:typeName:UpdateType'
, updateType_typeName
- The new type name.
$sel:format:UpdateType'
, updateType_format
- The new type format: SDL or JSON.
Request Lenses
updateType_definition :: Lens' UpdateType (Maybe Text) Source #
The new definition.
updateType_apiId :: Lens' UpdateType Text Source #
The API ID.
updateType_typeName :: Lens' UpdateType Text Source #
The new type name.
updateType_format :: Lens' UpdateType TypeDefinitionFormat Source #
The new type format: SDL or JSON.
Destructuring the Response
data UpdateTypeResponse Source #
See: newUpdateTypeResponse
smart constructor.
UpdateTypeResponse' | |
|
Instances
newUpdateTypeResponse Source #
Create a value of UpdateTypeResponse
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:type':UpdateTypeResponse'
, updateTypeResponse_type
- The updated Type
object.
$sel:httpStatus:UpdateTypeResponse'
, updateTypeResponse_httpStatus
- The response's http status code.
Response Lenses
updateTypeResponse_type :: Lens' UpdateTypeResponse (Maybe Type) Source #
The updated Type
object.
updateTypeResponse_httpStatus :: Lens' UpdateTypeResponse Int Source #
The response's http status code.