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 |
Creates a thing record in the thing registry.
- createThing :: Text -> CreateThing
- data CreateThing
- ctThingTypeName :: Lens' CreateThing (Maybe Text)
- 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
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.
Request Lenses
ctThingTypeName :: Lens' CreateThing (Maybe Text) Source #
The name of the thing type associated with the new thing.
ctAttributePayload :: Lens' CreateThing (Maybe AttributePayload) Source #
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
'{\"attributes\":{\"string1\":\"string2\"}})'
ctThingName :: Lens' CreateThing Text Source #
The name of the thing to create.
Destructuring the Response
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 ARN of the new thing.
ctrsThingName :: Lens' CreateThingResponse (Maybe Text) Source #
The name of the new thing.
ctrsResponseStatus :: Lens' CreateThingResponse Int Source #
The response status code.