Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Create a thing group.
Synopsis
- createThingGroup :: Text -> CreateThingGroup
- data CreateThingGroup
- ctgParentGroupName :: Lens' CreateThingGroup (Maybe Text)
- ctgThingGroupProperties :: Lens' CreateThingGroup (Maybe ThingGroupProperties)
- ctgThingGroupName :: Lens' CreateThingGroup Text
- createThingGroupResponse :: Int -> CreateThingGroupResponse
- data CreateThingGroupResponse
- ctgrsThingGroupARN :: Lens' CreateThingGroupResponse (Maybe Text)
- ctgrsThingGroupId :: Lens' CreateThingGroupResponse (Maybe Text)
- ctgrsThingGroupName :: Lens' CreateThingGroupResponse (Maybe Text)
- ctgrsResponseStatus :: Lens' CreateThingGroupResponse Int
Creating a Request
Creates a value of CreateThingGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctgParentGroupName
- The name of the parent thing group.ctgThingGroupProperties
- The thing group properties.ctgThingGroupName
- The thing group name to create.
data CreateThingGroup Source #
See: createThingGroup
smart constructor.
Instances
Request Lenses
ctgParentGroupName :: Lens' CreateThingGroup (Maybe Text) Source #
The name of the parent thing group.
ctgThingGroupProperties :: Lens' CreateThingGroup (Maybe ThingGroupProperties) Source #
The thing group properties.
ctgThingGroupName :: Lens' CreateThingGroup Text Source #
The thing group name to create.
Destructuring the Response
createThingGroupResponse Source #
Creates a value of CreateThingGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctgrsThingGroupARN
- The thing group ARN.ctgrsThingGroupId
- The thing group ID.ctgrsThingGroupName
- The thing group name.ctgrsResponseStatus
- -- | The response status code.
data CreateThingGroupResponse Source #
See: createThingGroupResponse
smart constructor.
Instances
Response Lenses
ctgrsThingGroupARN :: Lens' CreateThingGroupResponse (Maybe Text) Source #
The thing group ARN.
ctgrsThingGroupId :: Lens' CreateThingGroupResponse (Maybe Text) Source #
The thing group ID.
ctgrsThingGroupName :: Lens' CreateThingGroupResponse (Maybe Text) Source #
The thing group name.
ctgrsResponseStatus :: Lens' CreateThingGroupResponse Int Source #
- - | The response status code.