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 an IoT OTA update on a target group of things or groups.
Requires permission to access the CreateOTAUpdate action.
Synopsis
- data CreateOTAUpdate = CreateOTAUpdate' {
- awsJobAbortConfig :: Maybe AwsJobAbortConfig
- awsJobExecutionsRolloutConfig :: Maybe AwsJobExecutionsRolloutConfig
- protocols :: Maybe (NonEmpty Protocol)
- awsJobPresignedUrlConfig :: Maybe AwsJobPresignedUrlConfig
- additionalParameters :: Maybe (HashMap Text Text)
- awsJobTimeoutConfig :: Maybe AwsJobTimeoutConfig
- description :: Maybe Text
- targetSelection :: Maybe TargetSelection
- tags :: Maybe [Tag]
- otaUpdateId :: Text
- targets :: NonEmpty Text
- files :: NonEmpty OTAUpdateFile
- roleArn :: Text
- newCreateOTAUpdate :: Text -> NonEmpty Text -> NonEmpty OTAUpdateFile -> Text -> CreateOTAUpdate
- createOTAUpdate_awsJobAbortConfig :: Lens' CreateOTAUpdate (Maybe AwsJobAbortConfig)
- createOTAUpdate_awsJobExecutionsRolloutConfig :: Lens' CreateOTAUpdate (Maybe AwsJobExecutionsRolloutConfig)
- createOTAUpdate_protocols :: Lens' CreateOTAUpdate (Maybe (NonEmpty Protocol))
- createOTAUpdate_awsJobPresignedUrlConfig :: Lens' CreateOTAUpdate (Maybe AwsJobPresignedUrlConfig)
- createOTAUpdate_additionalParameters :: Lens' CreateOTAUpdate (Maybe (HashMap Text Text))
- createOTAUpdate_awsJobTimeoutConfig :: Lens' CreateOTAUpdate (Maybe AwsJobTimeoutConfig)
- createOTAUpdate_description :: Lens' CreateOTAUpdate (Maybe Text)
- createOTAUpdate_targetSelection :: Lens' CreateOTAUpdate (Maybe TargetSelection)
- createOTAUpdate_tags :: Lens' CreateOTAUpdate (Maybe [Tag])
- createOTAUpdate_otaUpdateId :: Lens' CreateOTAUpdate Text
- createOTAUpdate_targets :: Lens' CreateOTAUpdate (NonEmpty Text)
- createOTAUpdate_files :: Lens' CreateOTAUpdate (NonEmpty OTAUpdateFile)
- createOTAUpdate_roleArn :: Lens' CreateOTAUpdate Text
- data CreateOTAUpdateResponse = CreateOTAUpdateResponse' {}
- newCreateOTAUpdateResponse :: Int -> CreateOTAUpdateResponse
- createOTAUpdateResponse_awsIotJobId :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_otaUpdateStatus :: Lens' CreateOTAUpdateResponse (Maybe OTAUpdateStatus)
- createOTAUpdateResponse_awsIotJobArn :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_otaUpdateId :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_otaUpdateArn :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_httpStatus :: Lens' CreateOTAUpdateResponse Int
Creating a Request
data CreateOTAUpdate Source #
See: newCreateOTAUpdate
smart constructor.
CreateOTAUpdate' | |
|
Instances
:: Text | |
-> NonEmpty Text | |
-> NonEmpty OTAUpdateFile | |
-> Text | |
-> CreateOTAUpdate |
Create a value of CreateOTAUpdate
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:awsJobAbortConfig:CreateOTAUpdate'
, createOTAUpdate_awsJobAbortConfig
- The criteria that determine when and how a job abort takes place.
$sel:awsJobExecutionsRolloutConfig:CreateOTAUpdate'
, createOTAUpdate_awsJobExecutionsRolloutConfig
- Configuration for the rollout of OTA updates.
$sel:protocols:CreateOTAUpdate'
, createOTAUpdate_protocols
- The protocol used to transfer the OTA update image. Valid values are
[HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the
target device can choose the protocol.
$sel:awsJobPresignedUrlConfig:CreateOTAUpdate'
, createOTAUpdate_awsJobPresignedUrlConfig
- Configuration information for pre-signed URLs.
$sel:additionalParameters:CreateOTAUpdate'
, createOTAUpdate_additionalParameters
- A list of additional OTA update parameters which are name-value pairs.
$sel:awsJobTimeoutConfig:CreateOTAUpdate'
, createOTAUpdate_awsJobTimeoutConfig
- Specifies the amount of time each device has to finish its execution of
the job. A timer is started when the job execution status is set to
IN_PROGRESS
. If the job execution status is not set to another
terminal state before the timer expires, it will be automatically set to
TIMED_OUT
.
$sel:description:CreateOTAUpdate'
, createOTAUpdate_description
- The description of the OTA update.
$sel:targetSelection:CreateOTAUpdate'
, createOTAUpdate_targetSelection
- Specifies whether the update will continue to run (CONTINUOUS), or will
be complete after all the things specified as targets have completed the
update (SNAPSHOT). If continuous, the update may also be run on a thing
when a change is detected in a target. For example, an update will run
on a thing when the thing is added to a target group, even after the
update was completed by all things originally in the group. Valid
values: CONTINUOUS | SNAPSHOT.
$sel:tags:CreateOTAUpdate'
, createOTAUpdate_tags
- Metadata which can be used to manage updates.
$sel:otaUpdateId:CreateOTAUpdate'
, createOTAUpdate_otaUpdateId
- The ID of the OTA update to be created.
$sel:targets:CreateOTAUpdate'
, createOTAUpdate_targets
- The devices targeted to receive OTA updates.
$sel:files:CreateOTAUpdate'
, createOTAUpdate_files
- The files to be streamed by the OTA update.
$sel:roleArn:CreateOTAUpdate'
, createOTAUpdate_roleArn
- The IAM role that grants Amazon Web Services IoT Core access to the
Amazon S3, IoT jobs and Amazon Web Services Code Signing resources to
create an OTA update job.
Request Lenses
createOTAUpdate_awsJobAbortConfig :: Lens' CreateOTAUpdate (Maybe AwsJobAbortConfig) Source #
The criteria that determine when and how a job abort takes place.
createOTAUpdate_awsJobExecutionsRolloutConfig :: Lens' CreateOTAUpdate (Maybe AwsJobExecutionsRolloutConfig) Source #
Configuration for the rollout of OTA updates.
createOTAUpdate_protocols :: Lens' CreateOTAUpdate (Maybe (NonEmpty Protocol)) Source #
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
createOTAUpdate_awsJobPresignedUrlConfig :: Lens' CreateOTAUpdate (Maybe AwsJobPresignedUrlConfig) Source #
Configuration information for pre-signed URLs.
createOTAUpdate_additionalParameters :: Lens' CreateOTAUpdate (Maybe (HashMap Text Text)) Source #
A list of additional OTA update parameters which are name-value pairs.
createOTAUpdate_awsJobTimeoutConfig :: Lens' CreateOTAUpdate (Maybe AwsJobTimeoutConfig) Source #
Specifies the amount of time each device has to finish its execution of
the job. A timer is started when the job execution status is set to
IN_PROGRESS
. If the job execution status is not set to another
terminal state before the timer expires, it will be automatically set to
TIMED_OUT
.
createOTAUpdate_description :: Lens' CreateOTAUpdate (Maybe Text) Source #
The description of the OTA update.
createOTAUpdate_targetSelection :: Lens' CreateOTAUpdate (Maybe TargetSelection) Source #
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
createOTAUpdate_tags :: Lens' CreateOTAUpdate (Maybe [Tag]) Source #
Metadata which can be used to manage updates.
createOTAUpdate_otaUpdateId :: Lens' CreateOTAUpdate Text Source #
The ID of the OTA update to be created.
createOTAUpdate_targets :: Lens' CreateOTAUpdate (NonEmpty Text) Source #
The devices targeted to receive OTA updates.
createOTAUpdate_files :: Lens' CreateOTAUpdate (NonEmpty OTAUpdateFile) Source #
The files to be streamed by the OTA update.
createOTAUpdate_roleArn :: Lens' CreateOTAUpdate Text Source #
The IAM role that grants Amazon Web Services IoT Core access to the Amazon S3, IoT jobs and Amazon Web Services Code Signing resources to create an OTA update job.
Destructuring the Response
data CreateOTAUpdateResponse Source #
See: newCreateOTAUpdateResponse
smart constructor.
CreateOTAUpdateResponse' | |
|
Instances
newCreateOTAUpdateResponse Source #
Create a value of CreateOTAUpdateResponse
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:awsIotJobId:CreateOTAUpdateResponse'
, createOTAUpdateResponse_awsIotJobId
- The IoT job ID associated with the OTA update.
$sel:otaUpdateStatus:CreateOTAUpdateResponse'
, createOTAUpdateResponse_otaUpdateStatus
- The OTA update status.
$sel:awsIotJobArn:CreateOTAUpdateResponse'
, createOTAUpdateResponse_awsIotJobArn
- The IoT job ARN associated with the OTA update.
$sel:otaUpdateId:CreateOTAUpdate'
, createOTAUpdateResponse_otaUpdateId
- The OTA update ID.
$sel:otaUpdateArn:CreateOTAUpdateResponse'
, createOTAUpdateResponse_otaUpdateArn
- The OTA update ARN.
$sel:httpStatus:CreateOTAUpdateResponse'
, createOTAUpdateResponse_httpStatus
- The response's http status code.
Response Lenses
createOTAUpdateResponse_awsIotJobId :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The IoT job ID associated with the OTA update.
createOTAUpdateResponse_otaUpdateStatus :: Lens' CreateOTAUpdateResponse (Maybe OTAUpdateStatus) Source #
The OTA update status.
createOTAUpdateResponse_awsIotJobArn :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The IoT job ARN associated with the OTA update.
createOTAUpdateResponse_otaUpdateId :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The OTA update ID.
createOTAUpdateResponse_otaUpdateArn :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The OTA update ARN.
createOTAUpdateResponse_httpStatus :: Lens' CreateOTAUpdateResponse Int Source #
The response's http status code.