libZSservicesZSamazonka-lookoutvisionZSamazonka-lookoutvision
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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, such as an network outage, 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. 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
Eq CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Read CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Show CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Generic CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Associated Types

type Rep CreateProject :: Type -> Type #

NFData CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Methods

rnf :: CreateProject -> () #

Hashable CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

ToJSON CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

AWSRequest CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Associated Types

type AWSResponse 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

type Rep CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

type Rep CreateProject = D1 ('MetaData "CreateProject" "Amazonka.LookoutVision.CreateProject" "libZSservicesZSamazonka-lookoutvisionZSamazonka-lookoutvision" '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)))
type AWSResponse CreateProject Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

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, such as an network outage, 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. 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.

$sel:projectName: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, such as an network outage, 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. 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
Eq CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Read CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Show CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Generic CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Associated Types

type Rep CreateProjectResponse :: Type -> Type #

NFData CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

Methods

rnf :: CreateProjectResponse -> () #

type Rep CreateProjectResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.CreateProject

type Rep CreateProjectResponse = D1 ('MetaData "CreateProjectResponse" "Amazonka.LookoutVision.CreateProject" "libZSservicesZSamazonka-lookoutvisionZSamazonka-lookoutvision" '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