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 |
Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated with the project. To delete a model, see DeleteProjectVersion.
DeleteProject
is an asynchronous operation. To check if the project is
deleted, call DescribeProjects. The project is deleted when the project
no longer appears in the response. Be aware that deleting a given
project will also delete any ProjectPolicies
associated with that
project.
This operation requires permissions to perform the
rekognition:DeleteProject
action.
Synopsis
- data DeleteProject = DeleteProject' {
- projectArn :: Text
- newDeleteProject :: Text -> DeleteProject
- deleteProject_projectArn :: Lens' DeleteProject Text
- data DeleteProjectResponse = DeleteProjectResponse' {}
- newDeleteProjectResponse :: Int -> DeleteProjectResponse
- deleteProjectResponse_status :: Lens' DeleteProjectResponse (Maybe ProjectStatus)
- deleteProjectResponse_httpStatus :: Lens' DeleteProjectResponse Int
Creating a Request
data DeleteProject Source #
See: newDeleteProject
smart constructor.
DeleteProject' | |
|
Instances
Create a value of DeleteProject
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:
DeleteProject
, deleteProject_projectArn
- The Amazon Resource Name (ARN) of the project that you want to delete.
Request Lenses
deleteProject_projectArn :: Lens' DeleteProject Text Source #
The Amazon Resource Name (ARN) of the project that you want to delete.
Destructuring the Response
data DeleteProjectResponse Source #
See: newDeleteProjectResponse
smart constructor.
DeleteProjectResponse' | |
|
Instances
newDeleteProjectResponse Source #
Create a value of DeleteProjectResponse
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:
DeleteProjectResponse
, deleteProjectResponse_status
- The current status of the delete project operation.
$sel:httpStatus:DeleteProjectResponse'
, deleteProjectResponse_httpStatus
- The response's http status code.
Response Lenses
deleteProjectResponse_status :: Lens' DeleteProjectResponse (Maybe ProjectStatus) Source #
The current status of the delete project operation.
deleteProjectResponse_httpStatus :: Lens' DeleteProjectResponse Int Source #
The response's http status code.