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

  • thingGroupArn :: Maybe Text

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

  • thingArn :: Maybe Text

    The ARN of the thing to add to a group.

  • thingGroupName :: Maybe Text

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

  • 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 name of the thing to add to a group.

Instances

Instances details
Eq AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Read AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Show AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Generic AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Associated Types

type Rep AddThingToThingGroup :: Type -> Type #

NFData AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Methods

rnf :: AddThingToThingGroup -> () #

Hashable AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

ToJSON AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

AWSRequest AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Associated Types

type AWSResponse 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

type Rep AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

type Rep AddThingToThingGroup = D1 ('MetaData "AddThingToThingGroup" "Amazonka.IoT.AddThingToThingGroup" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "AddThingToThingGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thingGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thingArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "thingGroupName") '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 AddThingToThingGroup Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

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:

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

$sel:thingArn:AddThingToThingGroup', addThingToThingGroup_thingArn - The ARN of the thing to add to a group.

$sel:thingGroupName:AddThingToThingGroup', addThingToThingGroup_thingGroupName - The name of the group to which you are adding a thing.

$sel:overrideDynamicGroups: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.

$sel:thingName:AddThingToThingGroup', addThingToThingGroup_thingName - The name of the thing to add to a group.

Request Lenses

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

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

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

The ARN of the thing to add to a group.

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

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

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_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
Eq AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Read AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Show AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Generic AddThingToThingGroupResponse Source # 
Instance details

Defined in Amazonka.IoT.AddThingToThingGroup

Associated Types

type Rep AddThingToThingGroupResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotZSamazonka-iot" '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