| 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 |
Amazonka.IoT.GetOTAUpdate
Description
Gets an OTA update.
Requires permission to access the GetOTAUpdate action.
Synopsis
- data GetOTAUpdate = GetOTAUpdate' {
- otaUpdateId :: Text
- newGetOTAUpdate :: Text -> GetOTAUpdate
- getOTAUpdate_otaUpdateId :: Lens' GetOTAUpdate Text
- data GetOTAUpdateResponse = GetOTAUpdateResponse' {}
- newGetOTAUpdateResponse :: Int -> GetOTAUpdateResponse
- getOTAUpdateResponse_otaUpdateInfo :: Lens' GetOTAUpdateResponse (Maybe OTAUpdateInfo)
- getOTAUpdateResponse_httpStatus :: Lens' GetOTAUpdateResponse Int
Creating a Request
data GetOTAUpdate Source #
See: newGetOTAUpdate smart constructor.
Constructors
| GetOTAUpdate' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetOTAUpdate |
Create a value of GetOTAUpdate 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:
GetOTAUpdate, getOTAUpdate_otaUpdateId - The OTA update ID.
Request Lenses
getOTAUpdate_otaUpdateId :: Lens' GetOTAUpdate Text Source #
The OTA update ID.
Destructuring the Response
data GetOTAUpdateResponse Source #
See: newGetOTAUpdateResponse smart constructor.
Constructors
| GetOTAUpdateResponse' | |
Fields
| |
Instances
newGetOTAUpdateResponse Source #
Arguments
| :: Int | |
| -> GetOTAUpdateResponse |
Create a value of GetOTAUpdateResponse 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:otaUpdateInfo:GetOTAUpdateResponse', getOTAUpdateResponse_otaUpdateInfo - The OTA update info.
$sel:httpStatus:GetOTAUpdateResponse', getOTAUpdateResponse_httpStatus - The response's http status code.
Response Lenses
getOTAUpdateResponse_otaUpdateInfo :: Lens' GetOTAUpdateResponse (Maybe OTAUpdateInfo) Source #
The OTA update info.
getOTAUpdateResponse_httpStatus :: Lens' GetOTAUpdateResponse Int Source #
The response's http status code.