Copyright | (c) 2013-2021 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 |
Updates the groups to which the thing belongs.
Requires permission to access the UpdateThingGroupsForThing action.
Synopsis
- data UpdateThingGroupsForThing = UpdateThingGroupsForThing' {}
- newUpdateThingGroupsForThing :: UpdateThingGroupsForThing
- updateThingGroupsForThing_thingGroupsToAdd :: Lens' UpdateThingGroupsForThing (Maybe [Text])
- updateThingGroupsForThing_thingGroupsToRemove :: Lens' UpdateThingGroupsForThing (Maybe [Text])
- updateThingGroupsForThing_overrideDynamicGroups :: Lens' UpdateThingGroupsForThing (Maybe Bool)
- 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.
UpdateThingGroupsForThing' | |
|
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:
$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.
$sel:overrideDynamicGroups: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:thingName:UpdateThingGroupsForThing'
, updateThingGroupsForThing_thingName
- The thing whose group memberships will be updated.
Request Lenses
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_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_thingName :: Lens' UpdateThingGroupsForThing (Maybe Text) Source #
The thing whose group memberships will be updated.
Destructuring the Response
data UpdateThingGroupsForThingResponse Source #
See: newUpdateThingGroupsForThingResponse
smart constructor.
UpdateThingGroupsForThingResponse' | |
|
Instances
Eq UpdateThingGroupsForThingResponse Source # | |
Read UpdateThingGroupsForThingResponse Source # | |
Show UpdateThingGroupsForThingResponse Source # | |
Defined in Amazonka.IoT.UpdateThingGroupsForThing | |
Generic UpdateThingGroupsForThingResponse Source # | |
NFData UpdateThingGroupsForThingResponse Source # | |
Defined in Amazonka.IoT.UpdateThingGroupsForThing rnf :: UpdateThingGroupsForThingResponse -> () # | |
type Rep UpdateThingGroupsForThingResponse Source # | |
Defined in Amazonka.IoT.UpdateThingGroupsForThing type Rep UpdateThingGroupsForThingResponse = D1 ('MetaData "UpdateThingGroupsForThingResponse" "Amazonka.IoT.UpdateThingGroupsForThing" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "UpdateThingGroupsForThingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateThingGroupsForThingResponse Source #
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.