| 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.AddThingToThingGroup
Description
Adds a thing to a thing group.
Requires permission to access the AddThingToThingGroup action.
Synopsis
- data AddThingToThingGroup = AddThingToThingGroup' {}
- newAddThingToThingGroup :: AddThingToThingGroup
- addThingToThingGroup_overrideDynamicGroups :: Lens' AddThingToThingGroup (Maybe Bool)
- addThingToThingGroup_thingArn :: Lens' AddThingToThingGroup (Maybe Text)
- addThingToThingGroup_thingGroupArn :: Lens' AddThingToThingGroup (Maybe Text)
- addThingToThingGroup_thingGroupName :: Lens' AddThingToThingGroup (Maybe Text)
- addThingToThingGroup_thingName :: Lens' AddThingToThingGroup (Maybe Text)
- data AddThingToThingGroupResponse = AddThingToThingGroupResponse' {- httpStatus :: Int
 
- newAddThingToThingGroupResponse :: Int -> AddThingToThingGroupResponse
- addThingToThingGroupResponse_httpStatus :: Lens' AddThingToThingGroupResponse Int
Creating a Request
data AddThingToThingGroup Source #
See: newAddThingToThingGroup smart constructor.
Constructors
| AddThingToThingGroup' | |
| Fields 
 | |
Instances
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
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
addThingToThingGroupResponse_httpStatus :: Lens' AddThingToThingGroupResponse Int Source #
The response's http status code.