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 |
Synopsis
- data OTAUpdateInfo = OTAUpdateInfo' {
- lastModifiedDate :: Maybe POSIX
- awsJobExecutionsRolloutConfig :: Maybe AwsJobExecutionsRolloutConfig
- awsIotJobId :: Maybe Text
- protocols :: Maybe (NonEmpty Protocol)
- awsJobPresignedUrlConfig :: Maybe AwsJobPresignedUrlConfig
- otaUpdateFiles :: Maybe (NonEmpty OTAUpdateFile)
- otaUpdateStatus :: Maybe OTAUpdateStatus
- targets :: Maybe (NonEmpty Text)
- awsIotJobArn :: Maybe Text
- creationDate :: Maybe POSIX
- additionalParameters :: Maybe (HashMap Text Text)
- otaUpdateId :: Maybe Text
- errorInfo :: Maybe ErrorInfo
- otaUpdateArn :: Maybe Text
- description :: Maybe Text
- targetSelection :: Maybe TargetSelection
- newOTAUpdateInfo :: OTAUpdateInfo
- oTAUpdateInfo_lastModifiedDate :: Lens' OTAUpdateInfo (Maybe UTCTime)
- oTAUpdateInfo_awsJobExecutionsRolloutConfig :: Lens' OTAUpdateInfo (Maybe AwsJobExecutionsRolloutConfig)
- oTAUpdateInfo_awsIotJobId :: Lens' OTAUpdateInfo (Maybe Text)
- oTAUpdateInfo_protocols :: Lens' OTAUpdateInfo (Maybe (NonEmpty Protocol))
- oTAUpdateInfo_awsJobPresignedUrlConfig :: Lens' OTAUpdateInfo (Maybe AwsJobPresignedUrlConfig)
- oTAUpdateInfo_otaUpdateFiles :: Lens' OTAUpdateInfo (Maybe (NonEmpty OTAUpdateFile))
- oTAUpdateInfo_otaUpdateStatus :: Lens' OTAUpdateInfo (Maybe OTAUpdateStatus)
- oTAUpdateInfo_targets :: Lens' OTAUpdateInfo (Maybe (NonEmpty Text))
- oTAUpdateInfo_awsIotJobArn :: Lens' OTAUpdateInfo (Maybe Text)
- oTAUpdateInfo_creationDate :: Lens' OTAUpdateInfo (Maybe UTCTime)
- oTAUpdateInfo_additionalParameters :: Lens' OTAUpdateInfo (Maybe (HashMap Text Text))
- oTAUpdateInfo_otaUpdateId :: Lens' OTAUpdateInfo (Maybe Text)
- oTAUpdateInfo_errorInfo :: Lens' OTAUpdateInfo (Maybe ErrorInfo)
- oTAUpdateInfo_otaUpdateArn :: Lens' OTAUpdateInfo (Maybe Text)
- oTAUpdateInfo_description :: Lens' OTAUpdateInfo (Maybe Text)
- oTAUpdateInfo_targetSelection :: Lens' OTAUpdateInfo (Maybe TargetSelection)
Documentation
data OTAUpdateInfo Source #
Information about an OTA update.
See: newOTAUpdateInfo
smart constructor.
OTAUpdateInfo' | |
|
Instances
newOTAUpdateInfo :: OTAUpdateInfo Source #
Create a value of OTAUpdateInfo
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:lastModifiedDate:OTAUpdateInfo'
, oTAUpdateInfo_lastModifiedDate
- The date when the OTA update was last updated.
$sel:awsJobExecutionsRolloutConfig:OTAUpdateInfo'
, oTAUpdateInfo_awsJobExecutionsRolloutConfig
- Configuration for the rollout of OTA updates.
$sel:awsIotJobId:OTAUpdateInfo'
, oTAUpdateInfo_awsIotJobId
- The IoT job ID associated with the OTA update.
$sel:protocols:OTAUpdateInfo'
, oTAUpdateInfo_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:OTAUpdateInfo'
, oTAUpdateInfo_awsJobPresignedUrlConfig
- Configuration information for pre-signed URLs. Valid when protocols
contains HTTP.
$sel:otaUpdateFiles:OTAUpdateInfo'
, oTAUpdateInfo_otaUpdateFiles
- A list of files associated with the OTA update.
$sel:otaUpdateStatus:OTAUpdateInfo'
, oTAUpdateInfo_otaUpdateStatus
- The status of the OTA update.
$sel:targets:OTAUpdateInfo'
, oTAUpdateInfo_targets
- The targets of the OTA update.
$sel:awsIotJobArn:OTAUpdateInfo'
, oTAUpdateInfo_awsIotJobArn
- The IoT job ARN associated with the OTA update.
$sel:creationDate:OTAUpdateInfo'
, oTAUpdateInfo_creationDate
- The date when the OTA update was created.
$sel:additionalParameters:OTAUpdateInfo'
, oTAUpdateInfo_additionalParameters
- A collection of name/value pairs
$sel:otaUpdateId:OTAUpdateInfo'
, oTAUpdateInfo_otaUpdateId
- The OTA update ID.
$sel:errorInfo:OTAUpdateInfo'
, oTAUpdateInfo_errorInfo
- Error information associated with the OTA update.
$sel:otaUpdateArn:OTAUpdateInfo'
, oTAUpdateInfo_otaUpdateArn
- The OTA update ARN.
$sel:description:OTAUpdateInfo'
, oTAUpdateInfo_description
- A description of the OTA update.
$sel:targetSelection:OTAUpdateInfo'
, oTAUpdateInfo_targetSelection
- Specifies whether the OTA update will continue to run (CONTINUOUS), or
will be complete after all those things specified as targets have
completed the OTA update (SNAPSHOT). If continuous, the OTA update may
also be run on a thing when a change is detected in a target. For
example, an OTA update will run on a thing when the thing is added to a
target group, even after the OTA update was completed by all things
originally in the group.
oTAUpdateInfo_lastModifiedDate :: Lens' OTAUpdateInfo (Maybe UTCTime) Source #
The date when the OTA update was last updated.
oTAUpdateInfo_awsJobExecutionsRolloutConfig :: Lens' OTAUpdateInfo (Maybe AwsJobExecutionsRolloutConfig) Source #
Configuration for the rollout of OTA updates.
oTAUpdateInfo_awsIotJobId :: Lens' OTAUpdateInfo (Maybe Text) Source #
The IoT job ID associated with the OTA update.
oTAUpdateInfo_protocols :: Lens' OTAUpdateInfo (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.
oTAUpdateInfo_awsJobPresignedUrlConfig :: Lens' OTAUpdateInfo (Maybe AwsJobPresignedUrlConfig) Source #
Configuration information for pre-signed URLs. Valid when protocols
contains HTTP.
oTAUpdateInfo_otaUpdateFiles :: Lens' OTAUpdateInfo (Maybe (NonEmpty OTAUpdateFile)) Source #
A list of files associated with the OTA update.
oTAUpdateInfo_otaUpdateStatus :: Lens' OTAUpdateInfo (Maybe OTAUpdateStatus) Source #
The status of the OTA update.
oTAUpdateInfo_targets :: Lens' OTAUpdateInfo (Maybe (NonEmpty Text)) Source #
The targets of the OTA update.
oTAUpdateInfo_awsIotJobArn :: Lens' OTAUpdateInfo (Maybe Text) Source #
The IoT job ARN associated with the OTA update.
oTAUpdateInfo_creationDate :: Lens' OTAUpdateInfo (Maybe UTCTime) Source #
The date when the OTA update was created.
oTAUpdateInfo_additionalParameters :: Lens' OTAUpdateInfo (Maybe (HashMap Text Text)) Source #
A collection of name/value pairs
oTAUpdateInfo_otaUpdateId :: Lens' OTAUpdateInfo (Maybe Text) Source #
The OTA update ID.
oTAUpdateInfo_errorInfo :: Lens' OTAUpdateInfo (Maybe ErrorInfo) Source #
Error information associated with the OTA update.
oTAUpdateInfo_otaUpdateArn :: Lens' OTAUpdateInfo (Maybe Text) Source #
The OTA update ARN.
oTAUpdateInfo_description :: Lens' OTAUpdateInfo (Maybe Text) Source #
A description of the OTA update.
oTAUpdateInfo_targetSelection :: Lens' OTAUpdateInfo (Maybe TargetSelection) Source #
Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when a change is detected in a target. For example, an OTA update will run on a thing when the thing is added to a target group, even after the OTA update was completed by all things originally in the group.