| 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.CreateThingGroup
Description
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_tags :: Lens' CreateThingGroup (Maybe [Tag])
- createThingGroup_thingGroupProperties :: Lens' CreateThingGroup (Maybe ThingGroupProperties)
- 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.
Constructors
| CreateThingGroup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateThingGroup |
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:
CreateThingGroup, createThingGroup_parentGroupName - The name of the parent thing group.
$sel:tags:CreateThingGroup', createThingGroup_tags - Metadata which can be used to manage the thing group.
$sel:thingGroupProperties:CreateThingGroup', createThingGroup_thingGroupProperties - The thing group properties.
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_tags :: Lens' CreateThingGroup (Maybe [Tag]) Source #
Metadata which can be used to manage the thing group.
createThingGroup_thingGroupProperties :: Lens' CreateThingGroup (Maybe ThingGroupProperties) Source #
The thing group properties.
createThingGroup_thingGroupName :: Lens' CreateThingGroup Text Source #
The thing group name to create.
Destructuring the Response
data CreateThingGroupResponse Source #
See: newCreateThingGroupResponse smart constructor.
Constructors
| CreateThingGroupResponse' | |
Fields
| |
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.
CreateThingGroupResponse, createThingGroupResponse_thingGroupId - The thing group ID.
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.