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 Lookout for Vision project.
To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation.
You also have to delete the dataset(s) associated with the model. For more information, see DeleteDataset. The images referenced by the training and test datasets aren't deleted.
This operation requires permissions to perform the
lookoutvision:DeleteProject
operation.
Synopsis
- data DeleteProject = DeleteProject' {
- clientToken :: Maybe Text
- projectName :: Text
- newDeleteProject :: Text -> DeleteProject
- deleteProject_clientToken :: Lens' DeleteProject (Maybe Text)
- deleteProject_projectName :: Lens' DeleteProject Text
- data DeleteProjectResponse = DeleteProjectResponse' {
- projectArn :: Maybe Text
- httpStatus :: Int
- newDeleteProjectResponse :: Int -> DeleteProjectResponse
- deleteProjectResponse_projectArn :: Lens' DeleteProjectResponse (Maybe Text)
- 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:clientToken:DeleteProject'
, deleteProject_clientToken
- ClientToken is an idempotency token that ensures a call to
DeleteProject
completes only once. You choose the value to pass. For
example, An issue, such as an network outage, might prevent you from
getting a response from DeleteProject
. In this case, safely retry your
call to DeleteProject
by using the same ClientToken
parameter value.
An error occurs if the other input parameters are not the same as in the
first request. Using a different value for ClientToken
is considered a
new call to DeleteProject
. An idempotency token is active for 8 hours.
$sel:projectName:DeleteProject'
, deleteProject_projectName
- The name of the project to delete.
Request Lenses
deleteProject_clientToken :: Lens' DeleteProject (Maybe Text) Source #
ClientToken is an idempotency token that ensures a call to
DeleteProject
completes only once. You choose the value to pass. For
example, An issue, such as an network outage, might prevent you from
getting a response from DeleteProject
. In this case, safely retry your
call to DeleteProject
by using the same ClientToken
parameter value.
An error occurs if the other input parameters are not the same as in the
first request. Using a different value for ClientToken
is considered a
new call to DeleteProject
. An idempotency token is active for 8 hours.
deleteProject_projectName :: Lens' DeleteProject Text Source #
The name of the project 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:projectArn:DeleteProjectResponse'
, deleteProjectResponse_projectArn
- The Amazon Resource Name (ARN) of the project that was deleted.
$sel:httpStatus:DeleteProjectResponse'
, deleteProjectResponse_httpStatus
- The response's http status code.
Response Lenses
deleteProjectResponse_projectArn :: Lens' DeleteProjectResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the project that was deleted.
deleteProjectResponse_httpStatus :: Lens' DeleteProjectResponse Int Source #
The response's http status code.