libZSservicesZSamazonka-codestarZSamazonka-codestar
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.CodeStar.CreateProject

Description

Creates a project, including project resources. This action creates a project based on a submitted project request. A set of source code files and a toolchain template file can be included with the project request. If these are not provided, an empty project is created.

Synopsis

Creating a Request

data CreateProject Source #

See: newCreateProject smart constructor.

Constructors

CreateProject' 

Fields

  • sourceCode :: Maybe [Code]

    A list of the Code objects submitted with the project request. If this parameter is specified, the request must also include the toolchain parameter.

  • toolchain :: Maybe Toolchain

    The name of the toolchain template file submitted with the project request. If this parameter is specified, the request must also include the sourceCode parameter.

  • clientRequestToken :: Maybe Text

    A user- or system-generated token that identifies the entity that requested project creation. This token can be used to repeat the request.

  • description :: Maybe (Sensitive Text)

    The description of the project, if any.

  • tags :: Maybe (HashMap Text Text)

    The tags created for the project.

  • name :: Sensitive Text

    The display name for the project to be created in AWS CodeStar.

  • id :: Text

    The ID of the project to be created in AWS CodeStar.

Instances

Instances details
Eq CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Show CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Generic CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Associated Types

type Rep CreateProject :: Type -> Type #

NFData CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Methods

rnf :: CreateProject -> () #

Hashable CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

ToJSON CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

AWSRequest CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Associated Types

type AWSResponse CreateProject #

ToHeaders CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

ToPath CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

ToQuery CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

type Rep CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

type AWSResponse CreateProject Source # 
Instance details

Defined in Amazonka.CodeStar.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:sourceCode:CreateProject', createProject_sourceCode - A list of the Code objects submitted with the project request. If this parameter is specified, the request must also include the toolchain parameter.

$sel:toolchain:CreateProject', createProject_toolchain - The name of the toolchain template file submitted with the project request. If this parameter is specified, the request must also include the sourceCode parameter.

$sel:clientRequestToken:CreateProject', createProject_clientRequestToken - A user- or system-generated token that identifies the entity that requested project creation. This token can be used to repeat the request.

$sel:description:CreateProject', createProject_description - The description of the project, if any.

$sel:tags:CreateProject', createProject_tags - The tags created for the project.

$sel:name:CreateProject', createProject_name - The display name for the project to be created in AWS CodeStar.

$sel:id:CreateProject', createProject_id - The ID of the project to be created in AWS CodeStar.

Request Lenses

createProject_sourceCode :: Lens' CreateProject (Maybe [Code]) Source #

A list of the Code objects submitted with the project request. If this parameter is specified, the request must also include the toolchain parameter.

createProject_toolchain :: Lens' CreateProject (Maybe Toolchain) Source #

The name of the toolchain template file submitted with the project request. If this parameter is specified, the request must also include the sourceCode parameter.

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

A user- or system-generated token that identifies the entity that requested project creation. This token can be used to repeat the request.

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

The description of the project, if any.

createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text)) Source #

The tags created for the project.

createProject_name :: Lens' CreateProject Text Source #

The display name for the project to be created in AWS CodeStar.

createProject_id :: Lens' CreateProject Text Source #

The ID of the project to be created in AWS CodeStar.

Destructuring the Response

data CreateProjectResponse Source #

See: newCreateProjectResponse smart constructor.

Constructors

CreateProjectResponse' 

Fields

Instances

Instances details
Eq CreateProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Read CreateProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Show CreateProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Generic CreateProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Associated Types

type Rep CreateProjectResponse :: Type -> Type #

NFData CreateProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

Methods

rnf :: CreateProjectResponse -> () #

type Rep CreateProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.CreateProject

type Rep CreateProjectResponse = D1 ('MetaData "CreateProjectResponse" "Amazonka.CodeStar.CreateProject" "libZSservicesZSamazonka-codestarZSamazonka-codestar" 'False) (C1 ('MetaCons "CreateProjectResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "projectTemplateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:projectTemplateId:CreateProjectResponse', createProjectResponse_projectTemplateId - Reserved for future use.

$sel:clientRequestToken:CreateProject', createProjectResponse_clientRequestToken - A user- or system-generated token that identifies the entity that requested project creation.

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

$sel:id:CreateProject', createProjectResponse_id - The ID of the project.

$sel:arn:CreateProjectResponse', createProjectResponse_arn - The Amazon Resource Name (ARN) of the created project.

Response Lenses

createProjectResponse_clientRequestToken :: Lens' CreateProjectResponse (Maybe Text) Source #

A user- or system-generated token that identifies the entity that requested project creation.

createProjectResponse_arn :: Lens' CreateProjectResponse Text Source #

The Amazon Resource Name (ARN) of the created project.