| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.IoT.CreateThing
Description
Creates a thing in the Thing Registry.
- createThing :: Text -> CreateThing
- data CreateThing
- ctAttributePayload :: Lens' CreateThing (Maybe AttributePayload)
- ctThingName :: Lens' CreateThing Text
- createThingResponse :: Int -> CreateThingResponse
- data CreateThingResponse
- ctrsThingARN :: Lens' CreateThingResponse (Maybe Text)
- ctrsThingName :: Lens' CreateThingResponse (Maybe Text)
- ctrsResponseStatus :: Lens' CreateThingResponse Int
Creating a Request
Arguments
| :: Text | |
| -> CreateThing |
Creates a value of CreateThing with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateThing Source #
The input for the CreateThing operation.
See: createThing smart constructor.
Instances
Request Lenses
ctAttributePayload :: Lens' CreateThing (Maybe AttributePayload) Source #
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
ctThingName :: Lens' CreateThing Text Source #
The name of the thing.
Destructuring the Response
Arguments
| :: Int | |
| -> CreateThingResponse |
Creates a value of CreateThingResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateThingResponse Source #
The output of the CreateThing operation.
See: createThingResponse smart constructor.
Response Lenses
ctrsThingARN :: Lens' CreateThingResponse (Maybe Text) Source #
The thing ARN.
ctrsThingName :: Lens' CreateThingResponse (Maybe Text) Source #
The name of the thing.
ctrsResponseStatus :: Lens' CreateThingResponse Int Source #
The response status code.