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 project. To delete a project you must first delete all models associated with the project. To delete a model, see DeleteProjectVersion.
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:
$sel:projectArn: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:
$sel:status: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.