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 |
Create a thing group.
This is a control plane operation. See Authorization for information about authorizing control plane actions.
Requires permission to access the CreateThingGroup action.
Synopsis
- data CreateThingGroup = CreateThingGroup' {}
- newCreateThingGroup :: Text -> CreateThingGroup
- createThingGroup_parentGroupName :: Lens' CreateThingGroup (Maybe Text)
- createThingGroup_thingGroupProperties :: Lens' CreateThingGroup (Maybe ThingGroupProperties)
- createThingGroup_tags :: Lens' CreateThingGroup (Maybe [Tag])
- createThingGroup_thingGroupName :: Lens' CreateThingGroup Text
- data CreateThingGroupResponse = CreateThingGroupResponse' {}
- newCreateThingGroupResponse :: Int -> CreateThingGroupResponse
- createThingGroupResponse_thingGroupArn :: Lens' CreateThingGroupResponse (Maybe Text)
- createThingGroupResponse_thingGroupId :: Lens' CreateThingGroupResponse (Maybe Text)
- createThingGroupResponse_thingGroupName :: Lens' CreateThingGroupResponse (Maybe Text)
- createThingGroupResponse_httpStatus :: Lens' CreateThingGroupResponse Int
Creating a Request
data CreateThingGroup Source #
See: newCreateThingGroup
smart constructor.
CreateThingGroup' | |
|
Instances
Create a value of CreateThingGroup
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:parentGroupName:CreateThingGroup'
, createThingGroup_parentGroupName
- The name of the parent thing group.
$sel:thingGroupProperties:CreateThingGroup'
, createThingGroup_thingGroupProperties
- The thing group properties.
$sel:tags:CreateThingGroup'
, createThingGroup_tags
- Metadata which can be used to manage the thing group.
$sel:thingGroupName:CreateThingGroup'
, createThingGroup_thingGroupName
- The thing group name to create.
Request Lenses
createThingGroup_parentGroupName :: Lens' CreateThingGroup (Maybe Text) Source #
The name of the parent thing group.
createThingGroup_thingGroupProperties :: Lens' CreateThingGroup (Maybe ThingGroupProperties) Source #
The thing group properties.
createThingGroup_tags :: Lens' CreateThingGroup (Maybe [Tag]) Source #
Metadata which can be used to manage the thing group.
createThingGroup_thingGroupName :: Lens' CreateThingGroup Text Source #
The thing group name to create.
Destructuring the Response
data CreateThingGroupResponse Source #
See: newCreateThingGroupResponse
smart constructor.
CreateThingGroupResponse' | |
|
Instances
newCreateThingGroupResponse Source #
Create a value of CreateThingGroupResponse
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:CreateThingGroupResponse'
, createThingGroupResponse_thingGroupArn
- The thing group ARN.
$sel:thingGroupId:CreateThingGroupResponse'
, createThingGroupResponse_thingGroupId
- The thing group ID.
$sel:thingGroupName:CreateThingGroup'
, createThingGroupResponse_thingGroupName
- The thing group name.
$sel:httpStatus:CreateThingGroupResponse'
, createThingGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createThingGroupResponse_thingGroupArn :: Lens' CreateThingGroupResponse (Maybe Text) Source #
The thing group ARN.
createThingGroupResponse_thingGroupId :: Lens' CreateThingGroupResponse (Maybe Text) Source #
The thing group ID.
createThingGroupResponse_thingGroupName :: Lens' CreateThingGroupResponse (Maybe Text) Source #
The thing group name.
createThingGroupResponse_httpStatus :: Lens' CreateThingGroupResponse Int Source #
The response's http status code.