Copyright | (c) 2013-2015 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 in the thing registry.
See: AWS API Reference for CreateThing.
- 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
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
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
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.