| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppSync.UpdateType
Description
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.
Constructors
| UpdateType' | |
Fields
| |
Instances
Arguments
| :: 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:
UpdateType, updateType_definition - The new definition.
UpdateType, updateType_apiId - The API ID.
UpdateType, updateType_typeName - The new type name.
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.
Constructors
| UpdateTypeResponse' | |
Fields
| |
Instances
newUpdateTypeResponse Source #
Arguments
| :: Int | |
| -> UpdateTypeResponse |
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:
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.