Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates an IoT OTA update on a target group of things or groups.
Requires permission to access the CreateOTAUpdate action.
Synopsis
- data CreateOTAUpdate = CreateOTAUpdate' {
- additionalParameters :: Maybe (HashMap Text Text)
- awsJobAbortConfig :: Maybe AwsJobAbortConfig
- awsJobExecutionsRolloutConfig :: Maybe AwsJobExecutionsRolloutConfig
- awsJobPresignedUrlConfig :: Maybe AwsJobPresignedUrlConfig
- awsJobTimeoutConfig :: Maybe AwsJobTimeoutConfig
- description :: Maybe Text
- protocols :: Maybe (NonEmpty Protocol)
- tags :: Maybe [Tag]
- targetSelection :: Maybe TargetSelection
- otaUpdateId :: Text
- targets :: NonEmpty Text
- files :: NonEmpty OTAUpdateFile
- roleArn :: Text
- newCreateOTAUpdate :: Text -> NonEmpty Text -> NonEmpty OTAUpdateFile -> Text -> CreateOTAUpdate
- createOTAUpdate_additionalParameters :: Lens' CreateOTAUpdate (Maybe (HashMap Text Text))
- createOTAUpdate_awsJobAbortConfig :: Lens' CreateOTAUpdate (Maybe AwsJobAbortConfig)
- createOTAUpdate_awsJobExecutionsRolloutConfig :: Lens' CreateOTAUpdate (Maybe AwsJobExecutionsRolloutConfig)
- createOTAUpdate_awsJobPresignedUrlConfig :: Lens' CreateOTAUpdate (Maybe AwsJobPresignedUrlConfig)
- createOTAUpdate_awsJobTimeoutConfig :: Lens' CreateOTAUpdate (Maybe AwsJobTimeoutConfig)
- createOTAUpdate_description :: Lens' CreateOTAUpdate (Maybe Text)
- createOTAUpdate_protocols :: Lens' CreateOTAUpdate (Maybe (NonEmpty Protocol))
- createOTAUpdate_tags :: Lens' CreateOTAUpdate (Maybe [Tag])
- createOTAUpdate_targetSelection :: Lens' CreateOTAUpdate (Maybe TargetSelection)
- 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_awsIotJobArn :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_awsIotJobId :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_otaUpdateArn :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_otaUpdateId :: Lens' CreateOTAUpdateResponse (Maybe Text)
- createOTAUpdateResponse_otaUpdateStatus :: Lens' CreateOTAUpdateResponse (Maybe OTAUpdateStatus)
- 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:
CreateOTAUpdate
, createOTAUpdate_additionalParameters
- A list of additional OTA update parameters which are name-value pairs.
$sel:awsJobAbortConfig:CreateOTAUpdate'
, createOTAUpdate_awsJobAbortConfig
- The criteria that determine when and how a job abort takes place.
CreateOTAUpdate
, createOTAUpdate_awsJobExecutionsRolloutConfig
- Configuration for the rollout of OTA updates.
CreateOTAUpdate
, createOTAUpdate_awsJobPresignedUrlConfig
- Configuration information for pre-signed URLs.
$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
.
CreateOTAUpdate
, createOTAUpdate_description
- The description of the OTA update.
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:tags:CreateOTAUpdate'
, createOTAUpdate_tags
- Metadata which can be used to manage updates.
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.
CreateOTAUpdate
, createOTAUpdate_otaUpdateId
- The ID of the OTA update to be created.
CreateOTAUpdate
, createOTAUpdate_targets
- The devices targeted to receive OTA updates.
CreateOTAUpdate
, createOTAUpdate_files
- The files to be streamed by the OTA update.
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_additionalParameters :: Lens' CreateOTAUpdate (Maybe (HashMap Text Text)) Source #
A list of additional OTA update parameters which are name-value pairs.
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_awsJobPresignedUrlConfig :: Lens' CreateOTAUpdate (Maybe AwsJobPresignedUrlConfig) Source #
Configuration information for pre-signed URLs.
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_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_tags :: Lens' CreateOTAUpdate (Maybe [Tag]) Source #
Metadata which can be used to manage updates.
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_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:
CreateOTAUpdateResponse
, createOTAUpdateResponse_awsIotJobArn
- The IoT job ARN associated with the OTA update.
CreateOTAUpdateResponse
, createOTAUpdateResponse_awsIotJobId
- The IoT job ID associated with the OTA update.
CreateOTAUpdateResponse
, createOTAUpdateResponse_otaUpdateArn
- The OTA update ARN.
CreateOTAUpdate
, createOTAUpdateResponse_otaUpdateId
- The OTA update ID.
CreateOTAUpdateResponse
, createOTAUpdateResponse_otaUpdateStatus
- The OTA update status.
$sel:httpStatus:CreateOTAUpdateResponse'
, createOTAUpdateResponse_httpStatus
- The response's http status code.
Response Lenses
createOTAUpdateResponse_awsIotJobArn :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The IoT job ARN associated with the OTA update.
createOTAUpdateResponse_awsIotJobId :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The IoT job ID associated with the OTA update.
createOTAUpdateResponse_otaUpdateArn :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The OTA update ARN.
createOTAUpdateResponse_otaUpdateId :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The OTA update ID.
createOTAUpdateResponse_otaUpdateStatus :: Lens' CreateOTAUpdateResponse (Maybe OTAUpdateStatus) Source #
The OTA update status.
createOTAUpdateResponse_httpStatus :: Lens' CreateOTAUpdateResponse Int Source #
The response's http status code.