Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates an AWS IoT OTAUpdate on a target group of things or groups.
Synopsis
- createOTAUpdate :: Text -> NonEmpty Text -> NonEmpty OTAUpdateFile -> Text -> CreateOTAUpdate
- data CreateOTAUpdate
- cotauAdditionalParameters :: Lens' CreateOTAUpdate (HashMap Text Text)
- cotauDescription :: Lens' CreateOTAUpdate (Maybe Text)
- cotauTargetSelection :: Lens' CreateOTAUpdate (Maybe TargetSelection)
- cotauOtaUpdateId :: Lens' CreateOTAUpdate Text
- cotauTargets :: Lens' CreateOTAUpdate (NonEmpty Text)
- cotauFiles :: Lens' CreateOTAUpdate (NonEmpty OTAUpdateFile)
- cotauRoleARN :: Lens' CreateOTAUpdate Text
- createOTAUpdateResponse :: Int -> CreateOTAUpdateResponse
- data CreateOTAUpdateResponse
- cotaursAwsIotJobId :: Lens' CreateOTAUpdateResponse (Maybe Text)
- cotaursOtaUpdateStatus :: Lens' CreateOTAUpdateResponse (Maybe OTAUpdateStatus)
- cotaursAwsIotJobARN :: Lens' CreateOTAUpdateResponse (Maybe Text)
- cotaursOtaUpdateId :: Lens' CreateOTAUpdateResponse (Maybe Text)
- cotaursOtaUpdateARN :: Lens' CreateOTAUpdateResponse (Maybe Text)
- cotaursResponseStatus :: Lens' CreateOTAUpdateResponse Int
Creating a Request
:: Text | |
-> NonEmpty Text | |
-> NonEmpty OTAUpdateFile | |
-> Text | |
-> CreateOTAUpdate |
Creates a value of CreateOTAUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cotauAdditionalParameters
- A list of additional OTA update parameters which are name-value pairs.cotauDescription
- The description of the OTA update.cotauTargetSelection
- 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.cotauOtaUpdateId
- The ID of the OTA update to be created.cotauTargets
- The targeted devices to receive OTA updates.cotauFiles
- The files to be streamed by the OTA update.cotauRoleARN
- The IAM role that allows access to the AWS IoT Jobs service.
data CreateOTAUpdate Source #
See: createOTAUpdate
smart constructor.
Instances
Request Lenses
cotauAdditionalParameters :: Lens' CreateOTAUpdate (HashMap Text Text) Source #
A list of additional OTA update parameters which are name-value pairs.
cotauDescription :: Lens' CreateOTAUpdate (Maybe Text) Source #
The description of the OTA update.
cotauTargetSelection :: 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.
cotauOtaUpdateId :: Lens' CreateOTAUpdate Text Source #
The ID of the OTA update to be created.
cotauTargets :: Lens' CreateOTAUpdate (NonEmpty Text) Source #
The targeted devices to receive OTA updates.
cotauFiles :: Lens' CreateOTAUpdate (NonEmpty OTAUpdateFile) Source #
The files to be streamed by the OTA update.
cotauRoleARN :: Lens' CreateOTAUpdate Text Source #
The IAM role that allows access to the AWS IoT Jobs service.
Destructuring the Response
createOTAUpdateResponse Source #
Creates a value of CreateOTAUpdateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cotaursAwsIotJobId
- The AWS IoT job ID associated with the OTA update.cotaursOtaUpdateStatus
- The OTA update status.cotaursAwsIotJobARN
- The AWS IoT job ARN associated with the OTA update.cotaursOtaUpdateId
- The OTA update ID.cotaursOtaUpdateARN
- The OTA update ARN.cotaursResponseStatus
- -- | The response status code.
data CreateOTAUpdateResponse Source #
See: createOTAUpdateResponse
smart constructor.
Instances
Response Lenses
cotaursAwsIotJobId :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The AWS IoT job ID associated with the OTA update.
cotaursOtaUpdateStatus :: Lens' CreateOTAUpdateResponse (Maybe OTAUpdateStatus) Source #
The OTA update status.
cotaursAwsIotJobARN :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The AWS IoT job ARN associated with the OTA update.
cotaursOtaUpdateId :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The OTA update ID.
cotaursOtaUpdateARN :: Lens' CreateOTAUpdateResponse (Maybe Text) Source #
The OTA update ARN.
cotaursResponseStatus :: Lens' CreateOTAUpdateResponse Int Source #
- - | The response status code.