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 job to run on one or more devices.
Synopsis
- data CreateJobForDevices = CreateJobForDevices' {}
- newCreateJobForDevices :: NonEmpty Text -> DeviceJobConfig -> JobType -> CreateJobForDevices
- createJobForDevices_deviceIds :: Lens' CreateJobForDevices (NonEmpty Text)
- createJobForDevices_deviceJobConfig :: Lens' CreateJobForDevices DeviceJobConfig
- createJobForDevices_jobType :: Lens' CreateJobForDevices JobType
- data CreateJobForDevicesResponse = CreateJobForDevicesResponse' {
- httpStatus :: Int
- jobs :: [Job]
- newCreateJobForDevicesResponse :: Int -> CreateJobForDevicesResponse
- createJobForDevicesResponse_httpStatus :: Lens' CreateJobForDevicesResponse Int
- createJobForDevicesResponse_jobs :: Lens' CreateJobForDevicesResponse [Job]
Creating a Request
data CreateJobForDevices Source #
See: newCreateJobForDevices
smart constructor.
CreateJobForDevices' | |
|
Instances
newCreateJobForDevices Source #
Create a value of CreateJobForDevices
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:deviceIds:CreateJobForDevices'
, createJobForDevices_deviceIds
- IDs of target devices.
$sel:deviceJobConfig:CreateJobForDevices'
, createJobForDevices_deviceJobConfig
- Configuration settings for the job.
$sel:jobType:CreateJobForDevices'
, createJobForDevices_jobType
- The type of job to run.
Request Lenses
createJobForDevices_deviceIds :: Lens' CreateJobForDevices (NonEmpty Text) Source #
IDs of target devices.
createJobForDevices_deviceJobConfig :: Lens' CreateJobForDevices DeviceJobConfig Source #
Configuration settings for the job.
createJobForDevices_jobType :: Lens' CreateJobForDevices JobType Source #
The type of job to run.
Destructuring the Response
data CreateJobForDevicesResponse Source #
See: newCreateJobForDevicesResponse
smart constructor.
CreateJobForDevicesResponse' | |
|
Instances
newCreateJobForDevicesResponse Source #
Create a value of CreateJobForDevicesResponse
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:httpStatus:CreateJobForDevicesResponse'
, createJobForDevicesResponse_httpStatus
- The response's http status code.
$sel:jobs:CreateJobForDevicesResponse'
, createJobForDevicesResponse_jobs
- A list of jobs.
Response Lenses
createJobForDevicesResponse_httpStatus :: Lens' CreateJobForDevicesResponse Int Source #
The response's http status code.
createJobForDevicesResponse_jobs :: Lens' CreateJobForDevicesResponse [Job] Source #
A list of jobs.