libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.UpdateThingGroupsForThing

Description

Updates the groups to which the thing belongs.

Requires permission to access the UpdateThingGroupsForThing action.

Synopsis

Creating a Request

data UpdateThingGroupsForThing Source #

See: newUpdateThingGroupsForThing smart constructor.

Constructors

UpdateThingGroupsForThing' 

Fields

  • thingGroupsToAdd :: Maybe [Text]

    The groups to which the thing will be added.

  • thingGroupsToRemove :: Maybe [Text]

    The groups from which the thing will be removed.

  • overrideDynamicGroups :: Maybe Bool

    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.

  • thingName :: Maybe Text

    The thing whose group memberships will be updated.

Instances

Instances details
Eq UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Read UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Show UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Generic UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Associated Types

type Rep UpdateThingGroupsForThing :: Type -> Type #

NFData UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Hashable UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

ToJSON UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

AWSRequest UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

ToHeaders UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

ToPath UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

ToQuery UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

type Rep UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

type Rep UpdateThingGroupsForThing = D1 ('MetaData "UpdateThingGroupsForThing" "Amazonka.IoT.UpdateThingGroupsForThing" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "UpdateThingGroupsForThing'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thingGroupsToAdd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "thingGroupsToRemove") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "overrideDynamicGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))
type AWSResponse UpdateThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

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_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.

Constructors

UpdateThingGroupsForThingResponse' 

Fields

Instances

Instances details
Eq UpdateThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Read UpdateThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Show UpdateThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Generic UpdateThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

Associated Types

type Rep UpdateThingGroupsForThingResponse :: Type -> Type #

NFData UpdateThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateThingGroupsForThing

type Rep UpdateThingGroupsForThingResponse Source # 
Instance details

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