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 the data for a thing.
- updateThing :: Text -> UpdateThing
- data UpdateThing
- utRemoveThingType :: Lens' UpdateThing (Maybe Bool)
- utThingTypeName :: Lens' UpdateThing (Maybe Text)
- utExpectedVersion :: Lens' UpdateThing (Maybe Integer)
- utAttributePayload :: Lens' UpdateThing (Maybe AttributePayload)
- utThingName :: Lens' UpdateThing Text
- updateThingResponse :: Int -> UpdateThingResponse
- data UpdateThingResponse
- utrsResponseStatus :: Lens' UpdateThingResponse Int
Creating a Request
Creates a value of UpdateThing
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utRemoveThingType
- Remove a thing type association. If true , the association is removed.utThingTypeName
- The name of the thing type.utExpectedVersion
- The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, theUpdateThing
request is rejected with aVersionConflictException
.utAttributePayload
- A list of thing attributes, a JSON string containing name-value pairs. For example:{"attributes":{"name1":"value2"}}
This data is used to add new attributes or update existing attributes.utThingName
- The name of the thing to update.
data UpdateThing Source #
The input for the UpdateThing operation.
See: updateThing
smart constructor.
Request Lenses
utRemoveThingType :: Lens' UpdateThing (Maybe Bool) Source #
Remove a thing type association. If true , the association is removed.
utThingTypeName :: Lens' UpdateThing (Maybe Text) Source #
The name of the thing type.
utExpectedVersion :: Lens' UpdateThing (Maybe Integer) Source #
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing
request is rejected with a VersionConflictException
.
utAttributePayload :: Lens' UpdateThing (Maybe AttributePayload) Source #
A list of thing attributes, a JSON string containing name-value pairs. For example: {"attributes":{"name1":"value2"}}
This data is used to add new attributes or update existing attributes.
utThingName :: Lens' UpdateThing Text Source #
The name of the thing to update.
Destructuring the Response
Creates a value of UpdateThingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utrsResponseStatus
- -- | The response status code.
data UpdateThingResponse Source #
The output from the UpdateThing operation.
See: updateThingResponse
smart constructor.
Response Lenses
utrsResponseStatus :: Lens' UpdateThingResponse Int Source #
- - | The response status code.