| 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.IoT.UpdateThingGroup
Description
Update a thing group.
Requires permission to access the UpdateThingGroup action.
Synopsis
- data UpdateThingGroup = UpdateThingGroup' {}
- newUpdateThingGroup :: Text -> ThingGroupProperties -> UpdateThingGroup
- updateThingGroup_expectedVersion :: Lens' UpdateThingGroup (Maybe Integer)
- updateThingGroup_thingGroupName :: Lens' UpdateThingGroup Text
- updateThingGroup_thingGroupProperties :: Lens' UpdateThingGroup ThingGroupProperties
- data UpdateThingGroupResponse = UpdateThingGroupResponse' {
- version :: Maybe Integer
- httpStatus :: Int
- newUpdateThingGroupResponse :: Int -> UpdateThingGroupResponse
- updateThingGroupResponse_version :: Lens' UpdateThingGroupResponse (Maybe Integer)
- updateThingGroupResponse_httpStatus :: Lens' UpdateThingGroupResponse Int
Creating a Request
data UpdateThingGroup Source #
See: newUpdateThingGroup smart constructor.
Constructors
| UpdateThingGroup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ThingGroupProperties | |
| -> UpdateThingGroup |
Create a value of UpdateThingGroup 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:expectedVersion:UpdateThingGroup', updateThingGroup_expectedVersion - The expected version of the thing group. If this does not match the
version of the thing group being updated, the update will fail.
UpdateThingGroup, updateThingGroup_thingGroupName - The thing group to update.
$sel:thingGroupProperties:UpdateThingGroup', updateThingGroup_thingGroupProperties - The thing group properties.
Request Lenses
updateThingGroup_expectedVersion :: 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.
updateThingGroup_thingGroupName :: Lens' UpdateThingGroup Text Source #
The thing group to update.
updateThingGroup_thingGroupProperties :: Lens' UpdateThingGroup ThingGroupProperties Source #
The thing group properties.
Destructuring the Response
data UpdateThingGroupResponse Source #
See: newUpdateThingGroupResponse smart constructor.
Constructors
| UpdateThingGroupResponse' | |
Fields
| |
Instances
newUpdateThingGroupResponse Source #
Create a value of UpdateThingGroupResponse 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:
UpdateThingGroupResponse, updateThingGroupResponse_version - The version of the updated thing group.
$sel:httpStatus:UpdateThingGroupResponse', updateThingGroupResponse_httpStatus - The response's http status code.
Response Lenses
updateThingGroupResponse_version :: Lens' UpdateThingGroupResponse (Maybe Integer) Source #
The version of the updated thing group.
updateThingGroupResponse_httpStatus :: Lens' UpdateThingGroupResponse Int Source #
The response's http status code.