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 |
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.
GetOTAUpdate' | |
|
Instances
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:
$sel:otaUpdateId: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.
GetOTAUpdateResponse' | |
|
Instances
newGetOTAUpdateResponse Source #
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.