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 bulk thing provisioning task.
- startThingRegistrationTask :: Text -> Text -> Text -> Text -> StartThingRegistrationTask
- data StartThingRegistrationTask
- strtTemplateBody :: Lens' StartThingRegistrationTask Text
- strtInputFileBucket :: Lens' StartThingRegistrationTask Text
- strtInputFileKey :: Lens' StartThingRegistrationTask Text
- strtRoleARN :: Lens' StartThingRegistrationTask Text
- startThingRegistrationTaskResponse :: Int -> StartThingRegistrationTaskResponse
- data StartThingRegistrationTaskResponse
- strtrsTaskId :: Lens' StartThingRegistrationTaskResponse (Maybe Text)
- strtrsResponseStatus :: Lens' StartThingRegistrationTaskResponse Int
Creating a Request
startThingRegistrationTask Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> StartThingRegistrationTask |
Creates a value of StartThingRegistrationTask
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
strtTemplateBody
- The provisioning template.strtInputFileBucket
- The S3 bucket that contains the input file.strtInputFileKey
- The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each line contains the parameter values to provision one device (thing).strtRoleARN
- The IAM role ARN that grants permission the input file.
data StartThingRegistrationTask Source #
See: startThingRegistrationTask
smart constructor.
Request Lenses
strtTemplateBody :: Lens' StartThingRegistrationTask Text Source #
The provisioning template.
strtInputFileBucket :: Lens' StartThingRegistrationTask Text Source #
The S3 bucket that contains the input file.
strtInputFileKey :: Lens' StartThingRegistrationTask Text Source #
The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each line contains the parameter values to provision one device (thing).
strtRoleARN :: Lens' StartThingRegistrationTask Text Source #
The IAM role ARN that grants permission the input file.
Destructuring the Response
startThingRegistrationTaskResponse Source #
Creates a value of StartThingRegistrationTaskResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
strtrsTaskId
- The bulk thing provisioning task ID.strtrsResponseStatus
- -- | The response status code.
data StartThingRegistrationTaskResponse Source #
See: startThingRegistrationTaskResponse
smart constructor.
Response Lenses
strtrsTaskId :: Lens' StartThingRegistrationTaskResponse (Maybe Text) Source #
The bulk thing provisioning task ID.
strtrsResponseStatus :: Lens' StartThingRegistrationTaskResponse Int Source #
- - | The response status code.