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 an Amazon Rekognition Custom Labels model.
You can't delete a model if it is running or if it is training. To
check the status of a model, use the Status
field returned from
DescribeProjectVersions. To stop a running model call
StopProjectVersion. If the model is training, wait until it finishes.
This operation requires permissions to perform the
rekognition:DeleteProjectVersion
action.
Synopsis
- data DeleteProjectVersion = DeleteProjectVersion' {}
- newDeleteProjectVersion :: Text -> DeleteProjectVersion
- deleteProjectVersion_projectVersionArn :: Lens' DeleteProjectVersion Text
- data DeleteProjectVersionResponse = DeleteProjectVersionResponse' {}
- newDeleteProjectVersionResponse :: Int -> DeleteProjectVersionResponse
- deleteProjectVersionResponse_status :: Lens' DeleteProjectVersionResponse (Maybe ProjectVersionStatus)
- deleteProjectVersionResponse_httpStatus :: Lens' DeleteProjectVersionResponse Int
Creating a Request
data DeleteProjectVersion Source #
See: newDeleteProjectVersion
smart constructor.
DeleteProjectVersion' | |
|
Instances
newDeleteProjectVersion Source #
Create a value of DeleteProjectVersion
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:projectVersionArn:DeleteProjectVersion'
, deleteProjectVersion_projectVersionArn
- The Amazon Resource Name (ARN) of the model version that you want to
delete.
Request Lenses
deleteProjectVersion_projectVersionArn :: Lens' DeleteProjectVersion Text Source #
The Amazon Resource Name (ARN) of the model version that you want to delete.
Destructuring the Response
data DeleteProjectVersionResponse Source #
See: newDeleteProjectVersionResponse
smart constructor.
DeleteProjectVersionResponse' | |
|
Instances
newDeleteProjectVersionResponse Source #
Create a value of DeleteProjectVersionResponse
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:status:DeleteProjectVersionResponse'
, deleteProjectVersionResponse_status
- The status of the deletion operation.
$sel:httpStatus:DeleteProjectVersionResponse'
, deleteProjectVersionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteProjectVersionResponse_status :: Lens' DeleteProjectVersionResponse (Maybe ProjectVersionStatus) Source #
The status of the deletion operation.
deleteProjectVersionResponse_httpStatus :: Lens' DeleteProjectVersionResponse Int Source #
The response's http status code.