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