amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.AddThingToThingGroup

Description

Adds a thing to a thing group.

Requires permission to access the AddThingToThingGroup action.

Synopsis

Creating a Request

data AddThingToThingGroup Source #

See: newAddThingToThingGroup smart constructor.

Constructors

AddThingToThingGroup' 

Fields

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

  • thingArn :: Maybe Text

    The ARN of the thing to add to a group.

  • thingGroupArn :: Maybe Text

    The ARN of the group to which you are adding a thing.

  • thingGroupName :: Maybe Text

    The name of the group to which you are adding a thing.

  • thingName :: Maybe Text

    The name of the thing to add to a group.

Instances

Instances details
ToJSON AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

ToHeaders AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

ToPath AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

ToQuery AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

AWSRequest AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Associated Types

type AWSResponse AddThingToThingGroup #

Generic AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Associated Types

type Rep AddThingToThingGroup :: Type -> Type #

Read AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Show AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

NFData AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Methods

rnf :: AddThingToThingGroup -> () #

Eq AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Hashable AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

type AWSResponse AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

type Rep AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

type Rep AddThingToThingGroup = D1 ('MetaData "AddThingToThingGroup" "Amazonka.IoT.AddThingToThingGroup" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "AddThingToThingGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "overrideDynamicGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "thingArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "thingGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "thingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newAddThingToThingGroup :: AddThingToThingGroup Source #

Create a value of AddThingToThingGroup 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:

AddThingToThingGroup, addThingToThingGroup_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.

AddThingToThingGroup, addThingToThingGroup_thingArn - The ARN of the thing to add to a group.

$sel:thingGroupArn:AddThingToThingGroup', addThingToThingGroup_thingGroupArn - The ARN of the group to which you are adding a thing.

AddThingToThingGroup, addThingToThingGroup_thingGroupName - The name of the group to which you are adding a thing.

AddThingToThingGroup, addThingToThingGroup_thingName - The name of the thing to add to a group.

Request Lenses

addThingToThingGroup_overrideDynamicGroups :: Lens' AddThingToThingGroup (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.

addThingToThingGroup_thingArn :: Lens' AddThingToThingGroup (Maybe Text) Source #

The ARN of the thing to add to a group.

addThingToThingGroup_thingGroupArn :: Lens' AddThingToThingGroup (Maybe Text) Source #

The ARN of the group to which you are adding a thing.

addThingToThingGroup_thingGroupName :: Lens' AddThingToThingGroup (Maybe Text) Source #

The name of the group to which you are adding a thing.

addThingToThingGroup_thingName :: Lens' AddThingToThingGroup (Maybe Text) Source #

The name of the thing to add to a group.

Destructuring the Response

data AddThingToThingGroupResponse Source #

See: newAddThingToThingGroupResponse smart constructor.

Constructors

AddThingToThingGroupResponse' 

Fields

Instances

Instances details
Generic AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Associated Types

type Rep AddThingToThingGroupResponse :: Type -> Type #

Read AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Show AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

NFData AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Eq AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

type Rep AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

type Rep AddThingToThingGroupResponse = D1 ('MetaData "AddThingToThingGroupResponse" "Amazonka.IoT.AddThingToThingGroup" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "AddThingToThingGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddThingToThingGroupResponse Source #

Create a value of AddThingToThingGroupResponse 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:AddThingToThingGroupResponse', addThingToThingGroupResponse_httpStatus - The response's http status code.

Response Lenses