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 |
Delete an OTA update.
Requires permission to access the DeleteOTAUpdate action.
Synopsis
- data DeleteOTAUpdate = DeleteOTAUpdate' {}
- newDeleteOTAUpdate :: Text -> DeleteOTAUpdate
- deleteOTAUpdate_forceDeleteAWSJob :: Lens' DeleteOTAUpdate (Maybe Bool)
- deleteOTAUpdate_deleteStream :: Lens' DeleteOTAUpdate (Maybe Bool)
- deleteOTAUpdate_otaUpdateId :: Lens' DeleteOTAUpdate Text
- data DeleteOTAUpdateResponse = DeleteOTAUpdateResponse' {
- httpStatus :: Int
- newDeleteOTAUpdateResponse :: Int -> DeleteOTAUpdateResponse
- deleteOTAUpdateResponse_httpStatus :: Lens' DeleteOTAUpdateResponse Int
Creating a Request
data DeleteOTAUpdate Source #
See: newDeleteOTAUpdate
smart constructor.
DeleteOTAUpdate' | |
|
Instances
Create a value of DeleteOTAUpdate
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:forceDeleteAWSJob:DeleteOTAUpdate'
, deleteOTAUpdate_forceDeleteAWSJob
- When true, deletes the IoT job created by the OTAUpdate process even if
it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state
("COMPLETED" or "CANCELED") an exception will occur. The default is
false.
$sel:deleteStream:DeleteOTAUpdate'
, deleteOTAUpdate_deleteStream
- When true, the stream created by the OTAUpdate process is deleted when
the OTA update is deleted. Ignored if the stream specified in the
OTAUpdate is supplied by the user.
$sel:otaUpdateId:DeleteOTAUpdate'
, deleteOTAUpdate_otaUpdateId
- The ID of the OTA update to delete.
Request Lenses
deleteOTAUpdate_forceDeleteAWSJob :: Lens' DeleteOTAUpdate (Maybe Bool) Source #
When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
deleteOTAUpdate_deleteStream :: Lens' DeleteOTAUpdate (Maybe Bool) Source #
When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
deleteOTAUpdate_otaUpdateId :: Lens' DeleteOTAUpdate Text Source #
The ID of the OTA update to delete.
Destructuring the Response
data DeleteOTAUpdateResponse Source #
See: newDeleteOTAUpdateResponse
smart constructor.
DeleteOTAUpdateResponse' | |
|
Instances
Eq DeleteOTAUpdateResponse Source # | |
Defined in Amazonka.IoT.DeleteOTAUpdate | |
Read DeleteOTAUpdateResponse Source # | |
Show DeleteOTAUpdateResponse Source # | |
Defined in Amazonka.IoT.DeleteOTAUpdate showsPrec :: Int -> DeleteOTAUpdateResponse -> ShowS # show :: DeleteOTAUpdateResponse -> String # showList :: [DeleteOTAUpdateResponse] -> ShowS # | |
Generic DeleteOTAUpdateResponse Source # | |
Defined in Amazonka.IoT.DeleteOTAUpdate type Rep DeleteOTAUpdateResponse :: Type -> Type # | |
NFData DeleteOTAUpdateResponse Source # | |
Defined in Amazonka.IoT.DeleteOTAUpdate rnf :: DeleteOTAUpdateResponse -> () # | |
type Rep DeleteOTAUpdateResponse Source # | |
Defined in Amazonka.IoT.DeleteOTAUpdate type Rep DeleteOTAUpdateResponse = D1 ('MetaData "DeleteOTAUpdateResponse" "Amazonka.IoT.DeleteOTAUpdate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DeleteOTAUpdateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteOTAUpdateResponse Source #
Create a value of DeleteOTAUpdateResponse
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:httpStatus:DeleteOTAUpdateResponse'
, deleteOTAUpdateResponse_httpStatus
- The response's http status code.
Response Lenses
deleteOTAUpdateResponse_httpStatus :: Lens' DeleteOTAUpdateResponse Int Source #
The response's http status code.