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 |
Updates the detector version’s status. You can perform the following
promotions or demotions using UpdateDetectorVersionStatus
: DRAFT
to
ACTIVE
, ACTIVE
to INACTIVE
, and INACTIVE
to ACTIVE
.
Synopsis
- data UpdateDetectorVersionStatus = UpdateDetectorVersionStatus' {}
- newUpdateDetectorVersionStatus :: Text -> Text -> DetectorVersionStatus -> UpdateDetectorVersionStatus
- updateDetectorVersionStatus_detectorId :: Lens' UpdateDetectorVersionStatus Text
- updateDetectorVersionStatus_detectorVersionId :: Lens' UpdateDetectorVersionStatus Text
- updateDetectorVersionStatus_status :: Lens' UpdateDetectorVersionStatus DetectorVersionStatus
- data UpdateDetectorVersionStatusResponse = UpdateDetectorVersionStatusResponse' {
- httpStatus :: Int
- newUpdateDetectorVersionStatusResponse :: Int -> UpdateDetectorVersionStatusResponse
- updateDetectorVersionStatusResponse_httpStatus :: Lens' UpdateDetectorVersionStatusResponse Int
Creating a Request
data UpdateDetectorVersionStatus Source #
See: newUpdateDetectorVersionStatus
smart constructor.
UpdateDetectorVersionStatus' | |
|
Instances
newUpdateDetectorVersionStatus Source #
Create a value of UpdateDetectorVersionStatus
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:detectorId:UpdateDetectorVersionStatus'
, updateDetectorVersionStatus_detectorId
- The detector ID.
$sel:detectorVersionId:UpdateDetectorVersionStatus'
, updateDetectorVersionStatus_detectorVersionId
- The detector version ID.
$sel:status:UpdateDetectorVersionStatus'
, updateDetectorVersionStatus_status
- The new status.
Request Lenses
updateDetectorVersionStatus_detectorId :: Lens' UpdateDetectorVersionStatus Text Source #
The detector ID.
updateDetectorVersionStatus_detectorVersionId :: Lens' UpdateDetectorVersionStatus Text Source #
The detector version ID.
updateDetectorVersionStatus_status :: Lens' UpdateDetectorVersionStatus DetectorVersionStatus Source #
The new status.
Destructuring the Response
data UpdateDetectorVersionStatusResponse Source #
See: newUpdateDetectorVersionStatusResponse
smart constructor.
UpdateDetectorVersionStatusResponse' | |
|
Instances
newUpdateDetectorVersionStatusResponse Source #
Create a value of UpdateDetectorVersionStatusResponse
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:UpdateDetectorVersionStatusResponse'
, updateDetectorVersionStatusResponse_httpStatus
- The response's http status code.
Response Lenses
updateDetectorVersionStatusResponse_httpStatus :: Lens' UpdateDetectorVersionStatusResponse Int Source #
The response's http status code.