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 a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software. It makes use of the IoT Jobs feature which provides additional commands to manage a Greengrass core software update job.
Synopsis
- data CreateSoftwareUpdateJob = CreateSoftwareUpdateJob' {}
- newCreateSoftwareUpdateJob :: Text -> UpdateTargetsArchitecture -> SoftwareToUpdate -> UpdateTargetsOperatingSystem -> CreateSoftwareUpdateJob
- createSoftwareUpdateJob_updateAgentLogLevel :: Lens' CreateSoftwareUpdateJob (Maybe UpdateAgentLogLevel)
- createSoftwareUpdateJob_amznClientToken :: Lens' CreateSoftwareUpdateJob (Maybe Text)
- createSoftwareUpdateJob_s3UrlSignerRole :: Lens' CreateSoftwareUpdateJob Text
- createSoftwareUpdateJob_updateTargetsArchitecture :: Lens' CreateSoftwareUpdateJob UpdateTargetsArchitecture
- createSoftwareUpdateJob_softwareToUpdate :: Lens' CreateSoftwareUpdateJob SoftwareToUpdate
- createSoftwareUpdateJob_updateTargets :: Lens' CreateSoftwareUpdateJob [Text]
- createSoftwareUpdateJob_updateTargetsOperatingSystem :: Lens' CreateSoftwareUpdateJob UpdateTargetsOperatingSystem
- data CreateSoftwareUpdateJobResponse = CreateSoftwareUpdateJobResponse' {}
- newCreateSoftwareUpdateJobResponse :: Int -> CreateSoftwareUpdateJobResponse
- createSoftwareUpdateJobResponse_platformSoftwareVersion :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text)
- createSoftwareUpdateJobResponse_iotJobArn :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text)
- createSoftwareUpdateJobResponse_iotJobId :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text)
- createSoftwareUpdateJobResponse_httpStatus :: Lens' CreateSoftwareUpdateJobResponse Int
Creating a Request
data CreateSoftwareUpdateJob Source #
See: newCreateSoftwareUpdateJob
smart constructor.
CreateSoftwareUpdateJob' | |
|
Instances
newCreateSoftwareUpdateJob Source #
:: Text | |
-> UpdateTargetsArchitecture | |
-> SoftwareToUpdate | |
-> UpdateTargetsOperatingSystem | |
-> CreateSoftwareUpdateJob |
Create a value of CreateSoftwareUpdateJob
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:updateAgentLogLevel:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_updateAgentLogLevel
- Undocumented member.
$sel:amznClientToken:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_amznClientToken
- A client token used to correlate requests and responses.
$sel:s3UrlSignerRole:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_s3UrlSignerRole
- Undocumented member.
$sel:updateTargetsArchitecture:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_updateTargetsArchitecture
- Undocumented member.
$sel:softwareToUpdate:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_softwareToUpdate
- Undocumented member.
$sel:updateTargets:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_updateTargets
- Undocumented member.
$sel:updateTargetsOperatingSystem:CreateSoftwareUpdateJob'
, createSoftwareUpdateJob_updateTargetsOperatingSystem
- Undocumented member.
Request Lenses
createSoftwareUpdateJob_updateAgentLogLevel :: Lens' CreateSoftwareUpdateJob (Maybe UpdateAgentLogLevel) Source #
Undocumented member.
createSoftwareUpdateJob_amznClientToken :: Lens' CreateSoftwareUpdateJob (Maybe Text) Source #
A client token used to correlate requests and responses.
createSoftwareUpdateJob_s3UrlSignerRole :: Lens' CreateSoftwareUpdateJob Text Source #
Undocumented member.
createSoftwareUpdateJob_updateTargetsArchitecture :: Lens' CreateSoftwareUpdateJob UpdateTargetsArchitecture Source #
Undocumented member.
createSoftwareUpdateJob_softwareToUpdate :: Lens' CreateSoftwareUpdateJob SoftwareToUpdate Source #
Undocumented member.
createSoftwareUpdateJob_updateTargets :: Lens' CreateSoftwareUpdateJob [Text] Source #
Undocumented member.
createSoftwareUpdateJob_updateTargetsOperatingSystem :: Lens' CreateSoftwareUpdateJob UpdateTargetsOperatingSystem Source #
Undocumented member.
Destructuring the Response
data CreateSoftwareUpdateJobResponse Source #
See: newCreateSoftwareUpdateJobResponse
smart constructor.
Instances
newCreateSoftwareUpdateJobResponse Source #
Create a value of CreateSoftwareUpdateJobResponse
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:platformSoftwareVersion:CreateSoftwareUpdateJobResponse'
, createSoftwareUpdateJobResponse_platformSoftwareVersion
- The software version installed on the device or devices after the
update.
$sel:iotJobArn:CreateSoftwareUpdateJobResponse'
, createSoftwareUpdateJobResponse_iotJobArn
- The IoT Job ARN corresponding to this update.
$sel:iotJobId:CreateSoftwareUpdateJobResponse'
, createSoftwareUpdateJobResponse_iotJobId
- The IoT Job Id corresponding to this update.
$sel:httpStatus:CreateSoftwareUpdateJobResponse'
, createSoftwareUpdateJobResponse_httpStatus
- The response's http status code.
Response Lenses
createSoftwareUpdateJobResponse_platformSoftwareVersion :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text) Source #
The software version installed on the device or devices after the update.
createSoftwareUpdateJobResponse_iotJobArn :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text) Source #
The IoT Job ARN corresponding to this update.
createSoftwareUpdateJobResponse_iotJobId :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text) Source #
The IoT Job Id corresponding to this update.
createSoftwareUpdateJobResponse_httpStatus :: Lens' CreateSoftwareUpdateJobResponse Int Source #
The response's http status code.