| 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.UpdateThingGroupsForThing
Description
Updates the groups to which the thing belongs.
Requires permission to access the UpdateThingGroupsForThing action.
Synopsis
- data UpdateThingGroupsForThing = UpdateThingGroupsForThing' {}
- newUpdateThingGroupsForThing :: UpdateThingGroupsForThing
- updateThingGroupsForThing_overrideDynamicGroups :: Lens' UpdateThingGroupsForThing (Maybe Bool)
- updateThingGroupsForThing_thingGroupsToAdd :: Lens' UpdateThingGroupsForThing (Maybe [Text])
- updateThingGroupsForThing_thingGroupsToRemove :: Lens' UpdateThingGroupsForThing (Maybe [Text])
- updateThingGroupsForThing_thingName :: Lens' UpdateThingGroupsForThing (Maybe Text)
- data UpdateThingGroupsForThingResponse = UpdateThingGroupsForThingResponse' {
- httpStatus :: Int
- newUpdateThingGroupsForThingResponse :: Int -> UpdateThingGroupsForThingResponse
- updateThingGroupsForThingResponse_httpStatus :: Lens' UpdateThingGroupsForThingResponse Int
Creating a Request
data UpdateThingGroupsForThing Source #
See: newUpdateThingGroupsForThing smart constructor.
Constructors
| UpdateThingGroupsForThing' | |
Fields
| |
Instances
newUpdateThingGroupsForThing :: UpdateThingGroupsForThing Source #
Create a value of UpdateThingGroupsForThing 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:
UpdateThingGroupsForThing, updateThingGroupsForThing_overrideDynamicGroups - Override dynamic thing groups with static thing groups when 10-group
limit is reached. If a thing belongs to 10 thing groups, and one or more
of those groups are dynamic thing groups, adding a thing to a static
group removes the thing from the last dynamic group.
$sel:thingGroupsToAdd:UpdateThingGroupsForThing', updateThingGroupsForThing_thingGroupsToAdd - The groups to which the thing will be added.
$sel:thingGroupsToRemove:UpdateThingGroupsForThing', updateThingGroupsForThing_thingGroupsToRemove - The groups from which the thing will be removed.
UpdateThingGroupsForThing, updateThingGroupsForThing_thingName - The thing whose group memberships will be updated.
Request Lenses
updateThingGroupsForThing_overrideDynamicGroups :: Lens' UpdateThingGroupsForThing (Maybe Bool) Source #
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
updateThingGroupsForThing_thingGroupsToAdd :: Lens' UpdateThingGroupsForThing (Maybe [Text]) Source #
The groups to which the thing will be added.
updateThingGroupsForThing_thingGroupsToRemove :: Lens' UpdateThingGroupsForThing (Maybe [Text]) Source #
The groups from which the thing will be removed.
updateThingGroupsForThing_thingName :: Lens' UpdateThingGroupsForThing (Maybe Text) Source #
The thing whose group memberships will be updated.
Destructuring the Response
data UpdateThingGroupsForThingResponse Source #
See: newUpdateThingGroupsForThingResponse smart constructor.
Constructors
| UpdateThingGroupsForThingResponse' | |
Fields
| |
Instances
newUpdateThingGroupsForThingResponse Source #
Arguments
| :: Int | |
| -> UpdateThingGroupsForThingResponse |
Create a value of UpdateThingGroupsForThingResponse 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:httpStatus:UpdateThingGroupsForThingResponse', updateThingGroupsForThingResponse_httpStatus - The response's http status code.
Response Lenses
updateThingGroupsForThingResponse_httpStatus :: Lens' UpdateThingGroupsForThingResponse Int Source #
The response's http status code.