libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.Types.OTAUpdateInfo

Description

 
Synopsis

Documentation

data OTAUpdateInfo Source #

Information about an OTA update.

See: newOTAUpdateInfo smart constructor.

Constructors

OTAUpdateInfo' 

Fields

Instances

Instances details
Eq OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

Read OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

Show OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

Generic OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

Associated Types

type Rep OTAUpdateInfo :: Type -> Type #

NFData OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

Methods

rnf :: OTAUpdateInfo -> () #

Hashable OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

FromJSON OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

type Rep OTAUpdateInfo Source # 
Instance details

Defined in Amazonka.IoT.Types.OTAUpdateInfo

type Rep OTAUpdateInfo = D1 ('MetaData "OTAUpdateInfo" "Amazonka.IoT.Types.OTAUpdateInfo" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "OTAUpdateInfo'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "lastModifiedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "awsJobExecutionsRolloutConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AwsJobExecutionsRolloutConfig))) :*: (S1 ('MetaSel ('Just "awsIotJobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "protocols") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Protocol))))) :*: ((S1 ('MetaSel ('Just "awsJobPresignedUrlConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AwsJobPresignedUrlConfig)) :*: S1 ('MetaSel ('Just "otaUpdateFiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty OTAUpdateFile)))) :*: (S1 ('MetaSel ('Just "otaUpdateStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OTAUpdateStatus)) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))))) :*: (((S1 ('MetaSel ('Just "awsIotJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "additionalParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "otaUpdateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "errorInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ErrorInfo)) :*: S1 ('MetaSel ('Just "otaUpdateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targetSelection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TargetSelection)))))))

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_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_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_errorInfo :: Lens' OTAUpdateInfo (Maybe ErrorInfo) Source #

Error information associated with the OTA update.

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.