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 |
Deletes a model.
You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.
When you delete a model, Amazon Fraud Detector permanently deletes that model and the data is no longer stored in Amazon Fraud Detector.
Synopsis
- data DeleteModel = DeleteModel' {}
- newDeleteModel :: Text -> ModelTypeEnum -> DeleteModel
- deleteModel_modelId :: Lens' DeleteModel Text
- deleteModel_modelType :: Lens' DeleteModel ModelTypeEnum
- data DeleteModelResponse = DeleteModelResponse' {
- httpStatus :: Int
- newDeleteModelResponse :: Int -> DeleteModelResponse
- deleteModelResponse_httpStatus :: Lens' DeleteModelResponse Int
Creating a Request
data DeleteModel Source #
See: newDeleteModel
smart constructor.
DeleteModel' | |
|
Instances
Create a value of DeleteModel
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:modelId:DeleteModel'
, deleteModel_modelId
- The model ID of the model to delete.
$sel:modelType:DeleteModel'
, deleteModel_modelType
- The model type of the model to delete.
Request Lenses
deleteModel_modelId :: Lens' DeleteModel Text Source #
The model ID of the model to delete.
deleteModel_modelType :: Lens' DeleteModel ModelTypeEnum Source #
The model type of the model to delete.
Destructuring the Response
data DeleteModelResponse Source #
See: newDeleteModelResponse
smart constructor.
DeleteModelResponse' | |
|
Instances
newDeleteModelResponse Source #
Create a value of DeleteModelResponse
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:DeleteModelResponse'
, deleteModelResponse_httpStatus
- The response's http status code.
Response Lenses
deleteModelResponse_httpStatus :: Lens' DeleteModelResponse Int Source #
The response's http status code.