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 bulk thing provisioning task.
Requires permission to access the StartThingRegistrationTask action.
Synopsis
- data StartThingRegistrationTask = StartThingRegistrationTask' {
- templateBody :: Text
- inputFileBucket :: Text
- inputFileKey :: Text
- roleArn :: Text
- newStartThingRegistrationTask :: Text -> Text -> Text -> Text -> StartThingRegistrationTask
- startThingRegistrationTask_templateBody :: Lens' StartThingRegistrationTask Text
- startThingRegistrationTask_inputFileBucket :: Lens' StartThingRegistrationTask Text
- startThingRegistrationTask_inputFileKey :: Lens' StartThingRegistrationTask Text
- startThingRegistrationTask_roleArn :: Lens' StartThingRegistrationTask Text
- data StartThingRegistrationTaskResponse = StartThingRegistrationTaskResponse' {
- taskId :: Maybe Text
- httpStatus :: Int
- newStartThingRegistrationTaskResponse :: Int -> StartThingRegistrationTaskResponse
- startThingRegistrationTaskResponse_taskId :: Lens' StartThingRegistrationTaskResponse (Maybe Text)
- startThingRegistrationTaskResponse_httpStatus :: Lens' StartThingRegistrationTaskResponse Int
Creating a Request
data StartThingRegistrationTask Source #
See: newStartThingRegistrationTask
smart constructor.
StartThingRegistrationTask' | |
|
Instances
newStartThingRegistrationTask Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> StartThingRegistrationTask |
Create a value of StartThingRegistrationTask
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:templateBody:StartThingRegistrationTask'
, startThingRegistrationTask_templateBody
- The provisioning template.
$sel:inputFileBucket:StartThingRegistrationTask'
, startThingRegistrationTask_inputFileBucket
- The S3 bucket that contains the input file.
$sel:inputFileKey:StartThingRegistrationTask'
, startThingRegistrationTask_inputFileKey
- 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).
$sel:roleArn:StartThingRegistrationTask'
, startThingRegistrationTask_roleArn
- The IAM role ARN that grants permission the input file.
Request Lenses
startThingRegistrationTask_templateBody :: Lens' StartThingRegistrationTask Text Source #
The provisioning template.
startThingRegistrationTask_inputFileBucket :: Lens' StartThingRegistrationTask Text Source #
The S3 bucket that contains the input file.
startThingRegistrationTask_inputFileKey :: 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).
startThingRegistrationTask_roleArn :: Lens' StartThingRegistrationTask Text Source #
The IAM role ARN that grants permission the input file.
Destructuring the Response
data StartThingRegistrationTaskResponse Source #
See: newStartThingRegistrationTaskResponse
smart constructor.
StartThingRegistrationTaskResponse' | |
|
Instances
Eq StartThingRegistrationTaskResponse Source # | |
Read StartThingRegistrationTaskResponse Source # | |
Show StartThingRegistrationTaskResponse Source # | |
Generic StartThingRegistrationTaskResponse Source # | |
NFData StartThingRegistrationTaskResponse Source # | |
Defined in Amazonka.IoT.StartThingRegistrationTask rnf :: StartThingRegistrationTaskResponse -> () # | |
type Rep StartThingRegistrationTaskResponse Source # | |
Defined in Amazonka.IoT.StartThingRegistrationTask type Rep StartThingRegistrationTaskResponse = D1 ('MetaData "StartThingRegistrationTaskResponse" "Amazonka.IoT.StartThingRegistrationTask" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "StartThingRegistrationTaskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newStartThingRegistrationTaskResponse Source #
Create a value of StartThingRegistrationTaskResponse
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:taskId:StartThingRegistrationTaskResponse'
, startThingRegistrationTaskResponse_taskId
- The bulk thing provisioning task ID.
$sel:httpStatus:StartThingRegistrationTaskResponse'
, startThingRegistrationTaskResponse_httpStatus
- The response's http status code.
Response Lenses
startThingRegistrationTaskResponse_taskId :: Lens' StartThingRegistrationTaskResponse (Maybe Text) Source #
The bulk thing provisioning task ID.
startThingRegistrationTaskResponse_httpStatus :: Lens' StartThingRegistrationTaskResponse Int Source #
The response's http status code.