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 |
Update a thing group.
Synopsis
- updateThingGroup :: Text -> ThingGroupProperties -> UpdateThingGroup
- data UpdateThingGroup
- utgExpectedVersion :: Lens' UpdateThingGroup (Maybe Integer)
- utgThingGroupName :: Lens' UpdateThingGroup Text
- utgThingGroupProperties :: Lens' UpdateThingGroup ThingGroupProperties
- updateThingGroupResponse :: Int -> UpdateThingGroupResponse
- data UpdateThingGroupResponse
- utgrsVersion :: Lens' UpdateThingGroupResponse (Maybe Integer)
- utgrsResponseStatus :: Lens' UpdateThingGroupResponse Int
Creating a Request
Creates a value of UpdateThingGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utgExpectedVersion
- The expected version of the thing group. If this does not match the version of the thing group being updated, the update will fail.utgThingGroupName
- The thing group to update.utgThingGroupProperties
- The thing group properties.
data UpdateThingGroup Source #
See: updateThingGroup
smart constructor.
Instances
Request Lenses
utgExpectedVersion :: Lens' UpdateThingGroup (Maybe Integer) Source #
The expected version of the thing group. If this does not match the version of the thing group being updated, the update will fail.
utgThingGroupName :: Lens' UpdateThingGroup Text Source #
The thing group to update.
utgThingGroupProperties :: Lens' UpdateThingGroup ThingGroupProperties Source #
The thing group properties.
Destructuring the Response
updateThingGroupResponse Source #
Creates a value of UpdateThingGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utgrsVersion
- The version of the updated thing group.utgrsResponseStatus
- -- | The response status code.
data UpdateThingGroupResponse Source #
See: updateThingGroupResponse
smart constructor.
Instances
Response Lenses
utgrsVersion :: Lens' UpdateThingGroupResponse (Maybe Integer) Source #
The version of the updated thing group.
utgrsResponseStatus :: Lens' UpdateThingGroupResponse Int Source #
- - | The response status code.