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 version.
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 version, Amazon Fraud Detector permanently deletes that model version and the data is no longer stored in Amazon Fraud Detector.
Synopsis
- data DeleteModelVersion = DeleteModelVersion' {}
- newDeleteModelVersion :: Text -> ModelTypeEnum -> Text -> DeleteModelVersion
- deleteModelVersion_modelId :: Lens' DeleteModelVersion Text
- deleteModelVersion_modelType :: Lens' DeleteModelVersion ModelTypeEnum
- deleteModelVersion_modelVersionNumber :: Lens' DeleteModelVersion Text
- data DeleteModelVersionResponse = DeleteModelVersionResponse' {
- httpStatus :: Int
- newDeleteModelVersionResponse :: Int -> DeleteModelVersionResponse
- deleteModelVersionResponse_httpStatus :: Lens' DeleteModelVersionResponse Int
Creating a Request
data DeleteModelVersion Source #
See: newDeleteModelVersion
smart constructor.
DeleteModelVersion' | |
|
Instances
newDeleteModelVersion Source #
:: Text | |
-> ModelTypeEnum | |
-> Text | |
-> DeleteModelVersion |
Create a value of DeleteModelVersion
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:DeleteModelVersion'
, deleteModelVersion_modelId
- The model ID of the model version to delete.
$sel:modelType:DeleteModelVersion'
, deleteModelVersion_modelType
- The model type of the model version to delete.
$sel:modelVersionNumber:DeleteModelVersion'
, deleteModelVersion_modelVersionNumber
- The model version number of the model version to delete.
Request Lenses
deleteModelVersion_modelId :: Lens' DeleteModelVersion Text Source #
The model ID of the model version to delete.
deleteModelVersion_modelType :: Lens' DeleteModelVersion ModelTypeEnum Source #
The model type of the model version to delete.
deleteModelVersion_modelVersionNumber :: Lens' DeleteModelVersion Text Source #
The model version number of the model version to delete.
Destructuring the Response
data DeleteModelVersionResponse Source #
See: newDeleteModelVersionResponse
smart constructor.
DeleteModelVersionResponse' | |
|
Instances
newDeleteModelVersionResponse Source #
Create a value of DeleteModelVersionResponse
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:DeleteModelVersionResponse'
, deleteModelVersionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteModelVersionResponse_httpStatus :: Lens' DeleteModelVersionResponse Int Source #
The response's http status code.