amazonka-lookoutvision-2.0: Amazon Lookout for Vision SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LookoutVision.DeleteProject

Description

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

Creating a Request

data DeleteProject Source #

See: newDeleteProject smart constructor.

Constructors

DeleteProject' 

Fields

  • clientToken :: Maybe Text

    ClientToken is an idempotency token that ensures a call to DeleteProject completes only once. You choose the value to pass. For example, An issue 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.

    If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project deletion requests. You'll need to provide your own value for other use cases.

    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.

  • projectName :: Text

    The name of the project to delete.

Instances

Instances details
ToHeaders DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

ToPath DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

ToQuery DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

AWSRequest DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Associated Types

type AWSResponse DeleteProject #

Generic DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Associated Types

type Rep DeleteProject :: Type -> Type #

Read DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Show DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

NFData DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Methods

rnf :: DeleteProject -> () #

Eq DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Hashable DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

type AWSResponse DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

type Rep DeleteProject Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

type Rep DeleteProject = D1 ('MetaData "DeleteProject" "Amazonka.LookoutVision.DeleteProject" "amazonka-lookoutvision-2.0-3cIJAF9xWxx8xGDY24BOkS" 'False) (C1 ('MetaCons "DeleteProject'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteProject Source #

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 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.

If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project deletion requests. You'll need to provide your own value for other use cases.

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, 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 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.

If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project deletion requests. You'll need to provide your own value for other use cases.

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.

Constructors

DeleteProjectResponse' 

Fields

Instances

Instances details
Generic DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Associated Types

type Rep DeleteProjectResponse :: Type -> Type #

Read DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Show DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

NFData DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

Methods

rnf :: DeleteProjectResponse -> () #

Eq DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

type Rep DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.DeleteProject

type Rep DeleteProjectResponse = D1 ('MetaData "DeleteProjectResponse" "Amazonka.LookoutVision.DeleteProject" "amazonka-lookoutvision-2.0-3cIJAF9xWxx8xGDY24BOkS" 'False) (C1 ('MetaCons "DeleteProjectResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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_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.