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 |
Creates a device and returns a configuration archive. The configuration archive is a ZIP file that contains a provisioning certificate that is valid for 5 minutes. Transfer the configuration archive to the device with the included USB storage device within 5 minutes.
Synopsis
- data ProvisionDevice = ProvisionDevice' {}
- newProvisionDevice :: Text -> ProvisionDevice
- provisionDevice_description :: Lens' ProvisionDevice (Maybe Text)
- provisionDevice_networkingConfiguration :: Lens' ProvisionDevice (Maybe NetworkPayload)
- provisionDevice_tags :: Lens' ProvisionDevice (Maybe (HashMap Text Text))
- provisionDevice_name :: Lens' ProvisionDevice Text
- data ProvisionDeviceResponse = ProvisionDeviceResponse' {
- certificates :: Maybe Base64
- deviceId :: Maybe Text
- iotThingName :: Maybe Text
- httpStatus :: Int
- arn :: Text
- status :: DeviceStatus
- newProvisionDeviceResponse :: Int -> Text -> DeviceStatus -> ProvisionDeviceResponse
- provisionDeviceResponse_certificates :: Lens' ProvisionDeviceResponse (Maybe ByteString)
- provisionDeviceResponse_deviceId :: Lens' ProvisionDeviceResponse (Maybe Text)
- provisionDeviceResponse_iotThingName :: Lens' ProvisionDeviceResponse (Maybe Text)
- provisionDeviceResponse_httpStatus :: Lens' ProvisionDeviceResponse Int
- provisionDeviceResponse_arn :: Lens' ProvisionDeviceResponse Text
- provisionDeviceResponse_status :: Lens' ProvisionDeviceResponse DeviceStatus
Creating a Request
data ProvisionDevice Source #
See: newProvisionDevice
smart constructor.
ProvisionDevice' | |
|
Instances
Create a value of ProvisionDevice
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:description:ProvisionDevice'
, provisionDevice_description
- A description for the device.
$sel:networkingConfiguration:ProvisionDevice'
, provisionDevice_networkingConfiguration
- A networking configuration for the device.
$sel:tags:ProvisionDevice'
, provisionDevice_tags
- Tags for the device.
$sel:name:ProvisionDevice'
, provisionDevice_name
- A name for the device.
Request Lenses
provisionDevice_description :: Lens' ProvisionDevice (Maybe Text) Source #
A description for the device.
provisionDevice_networkingConfiguration :: Lens' ProvisionDevice (Maybe NetworkPayload) Source #
A networking configuration for the device.
provisionDevice_tags :: Lens' ProvisionDevice (Maybe (HashMap Text Text)) Source #
Tags for the device.
provisionDevice_name :: Lens' ProvisionDevice Text Source #
A name for the device.
Destructuring the Response
data ProvisionDeviceResponse Source #
See: newProvisionDeviceResponse
smart constructor.
ProvisionDeviceResponse' | |
|
Instances
newProvisionDeviceResponse Source #
:: Int | |
-> Text | |
-> DeviceStatus | |
-> ProvisionDeviceResponse |
Create a value of ProvisionDeviceResponse
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:certificates:ProvisionDeviceResponse'
, provisionDeviceResponse_certificates
- The device's configuration bundle.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:deviceId:ProvisionDeviceResponse'
, provisionDeviceResponse_deviceId
- The device's ID.
$sel:iotThingName:ProvisionDeviceResponse'
, provisionDeviceResponse_iotThingName
- The device's IoT thing name.
$sel:httpStatus:ProvisionDeviceResponse'
, provisionDeviceResponse_httpStatus
- The response's http status code.
$sel:arn:ProvisionDeviceResponse'
, provisionDeviceResponse_arn
- The device's ARN.
$sel:status:ProvisionDeviceResponse'
, provisionDeviceResponse_status
- The device's status.
Response Lenses
provisionDeviceResponse_certificates :: Lens' ProvisionDeviceResponse (Maybe ByteString) Source #
The device's configuration bundle.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
provisionDeviceResponse_deviceId :: Lens' ProvisionDeviceResponse (Maybe Text) Source #
The device's ID.
provisionDeviceResponse_iotThingName :: Lens' ProvisionDeviceResponse (Maybe Text) Source #
The device's IoT thing name.
provisionDeviceResponse_httpStatus :: Lens' ProvisionDeviceResponse Int Source #
The response's http status code.
provisionDeviceResponse_arn :: Lens' ProvisionDeviceResponse Text Source #
The device's ARN.
provisionDeviceResponse_status :: Lens' ProvisionDeviceResponse DeviceStatus Source #
The device's status.