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 |
Adds a thing to a thing group.
Requires permission to access the AddThingToThingGroup action.
Synopsis
- data AddThingToThingGroup = AddThingToThingGroup' {}
- newAddThingToThingGroup :: AddThingToThingGroup
- addThingToThingGroup_thingGroupArn :: Lens' AddThingToThingGroup (Maybe Text)
- addThingToThingGroup_thingArn :: Lens' AddThingToThingGroup (Maybe Text)
- addThingToThingGroup_thingGroupName :: Lens' AddThingToThingGroup (Maybe Text)
- addThingToThingGroup_overrideDynamicGroups :: Lens' AddThingToThingGroup (Maybe Bool)
- 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.
AddThingToThingGroup' | |
|
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:
$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.
AddThingToThingGroupResponse' | |
|
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.