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

Description

Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.

This operation requires permissions to perform the lookoutvision:CreateProject operation.

Synopsis

Creating a Request

data CreateProject Source #

See: newCreateProject smart constructor.

Constructors

CreateProject' 

Fields

  • clientToken :: Maybe Text

    ClientToken is an idempotency token that ensures a call to CreateProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateProject. In this case, safely retry your call to CreateProject 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 creation 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 CreateProject. An idempotency token is active for 8 hours.

  • projectName :: Text

    The name for the project.

Instances

Instances details
ToJSON CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

ToHeaders CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

ToPath CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

ToQuery CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

AWSRequest CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Associated Types

type AWSResponse CreateProject #

Generic CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Associated Types

type Rep CreateProject :: Type -> Type #

Read CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Show CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

NFData CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Methods

rnf :: CreateProject -> () #

Eq CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Hashable CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

type AWSResponse CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

type Rep CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

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

newCreateProject Source #

Create a value of CreateProject 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:CreateProject', createProject_clientToken - ClientToken is an idempotency token that ensures a call to CreateProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateProject. In this case, safely retry your call to CreateProject 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 creation 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 CreateProject. An idempotency token is active for 8 hours.

CreateProject, createProject_projectName - The name for the project.

Request Lenses

createProject_clientToken :: Lens' CreateProject (Maybe Text) Source #

ClientToken is an idempotency token that ensures a call to CreateProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateProject. In this case, safely retry your call to CreateProject 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 creation 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 CreateProject. An idempotency token is active for 8 hours.

Destructuring the Response

data CreateProjectResponse Source #

See: newCreateProjectResponse smart constructor.

Constructors

CreateProjectResponse' 

Fields

Instances

Instances details
Generic CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Associated Types

type Rep CreateProjectResponse :: Type -> Type #

Read CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Show CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

NFData CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Methods

rnf :: CreateProjectResponse -> () #

Eq CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

type Rep CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

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

newCreateProjectResponse Source #

Create a value of CreateProjectResponse 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:projectMetadata:CreateProjectResponse', createProjectResponse_projectMetadata - Information about the project.

$sel:httpStatus:CreateProjectResponse', createProjectResponse_httpStatus - The response's http status code.

Response Lenses