| 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.FraudDetector.DeleteDetector
Description
Deletes the detector. Before deleting a detector, you must first delete all detector versions and rule versions associated with the detector.
When you delete a detector, Amazon Fraud Detector permanently deletes the detector and the data is no longer stored in Amazon Fraud Detector.
Synopsis
- data DeleteDetector = DeleteDetector' {
- detectorId :: Text
- newDeleteDetector :: Text -> DeleteDetector
- deleteDetector_detectorId :: Lens' DeleteDetector Text
- data DeleteDetectorResponse = DeleteDetectorResponse' {
- httpStatus :: Int
- newDeleteDetectorResponse :: Int -> DeleteDetectorResponse
- deleteDetectorResponse_httpStatus :: Lens' DeleteDetectorResponse Int
Creating a Request
data DeleteDetector Source #
See: newDeleteDetector smart constructor.
Constructors
| DeleteDetector' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteDetector |
Create a value of DeleteDetector 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:
DeleteDetector, deleteDetector_detectorId - The ID of the detector to delete.
Request Lenses
deleteDetector_detectorId :: Lens' DeleteDetector Text Source #
The ID of the detector to delete.
Destructuring the Response
data DeleteDetectorResponse Source #
See: newDeleteDetectorResponse smart constructor.
Constructors
| DeleteDetectorResponse' | |
Fields
| |
Instances
newDeleteDetectorResponse Source #
Create a value of DeleteDetectorResponse 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:DeleteDetectorResponse', deleteDetectorResponse_httpStatus - The response's http status code.
Response Lenses
deleteDetectorResponse_httpStatus :: Lens' DeleteDetectorResponse Int Source #
The response's http status code.