Copyright | (c) 2013-2021 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 |
Provisions a thing in the device registry. RegisterThing calls other IoT control plane APIs. These calls might exceed your account level IoT Throttling Limits and cause throttle errors. Please contact Amazon Web Services Customer Support to raise your throttling limits if necessary.
Requires permission to access the RegisterThing action.
Synopsis
- data RegisterThing = RegisterThing' {
- parameters :: Maybe (HashMap Text Text)
- templateBody :: Text
- newRegisterThing :: Text -> RegisterThing
- registerThing_parameters :: Lens' RegisterThing (Maybe (HashMap Text Text))
- registerThing_templateBody :: Lens' RegisterThing Text
- data RegisterThingResponse = RegisterThingResponse' {
- certificatePem :: Maybe Text
- resourceArns :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newRegisterThingResponse :: Int -> RegisterThingResponse
- registerThingResponse_certificatePem :: Lens' RegisterThingResponse (Maybe Text)
- registerThingResponse_resourceArns :: Lens' RegisterThingResponse (Maybe (HashMap Text Text))
- registerThingResponse_httpStatus :: Lens' RegisterThingResponse Int
Creating a Request
data RegisterThing Source #
See: newRegisterThing
smart constructor.
RegisterThing' | |
|
Instances
Create a value of RegisterThing
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:parameters:RegisterThing'
, registerThing_parameters
- The parameters for provisioning a thing. See
Provisioning Templates
for more information.
$sel:templateBody:RegisterThing'
, registerThing_templateBody
- The provisioning template. See
Provisioning Devices That Have Device Certificates
for more information.
Request Lenses
registerThing_parameters :: Lens' RegisterThing (Maybe (HashMap Text Text)) Source #
The parameters for provisioning a thing. See Provisioning Templates for more information.
registerThing_templateBody :: Lens' RegisterThing Text Source #
The provisioning template. See Provisioning Devices That Have Device Certificates for more information.
Destructuring the Response
data RegisterThingResponse Source #
See: newRegisterThingResponse
smart constructor.
RegisterThingResponse' | |
|
Instances
newRegisterThingResponse Source #
Create a value of RegisterThingResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:certificatePem:RegisterThingResponse'
, registerThingResponse_certificatePem
- The certificate data, in PEM format.
$sel:resourceArns:RegisterThingResponse'
, registerThingResponse_resourceArns
- ARNs for the generated resources.
$sel:httpStatus:RegisterThingResponse'
, registerThingResponse_httpStatus
- The response's http status code.
Response Lenses
registerThingResponse_certificatePem :: Lens' RegisterThingResponse (Maybe Text) Source #
The certificate data, in PEM format.
registerThingResponse_resourceArns :: Lens' RegisterThingResponse (Maybe (HashMap Text Text)) Source #
ARNs for the generated resources.
registerThingResponse_httpStatus :: Lens' RegisterThingResponse Int Source #
The response's http status code.