| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data CreateProject = CreateProject' {}
- newCreateProject :: Text -> Text -> CreateProject
- createProject_clientRequestToken :: Lens' CreateProject (Maybe Text)
- createProject_description :: Lens' CreateProject (Maybe Text)
- createProject_sourceCode :: Lens' CreateProject (Maybe [Code])
- createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text))
- createProject_toolchain :: Lens' CreateProject (Maybe Toolchain)
- createProject_name :: Lens' CreateProject Text
- createProject_id :: Lens' CreateProject Text
- data CreateProjectResponse = CreateProjectResponse' {
- clientRequestToken :: Maybe Text
- projectTemplateId :: Maybe Text
- httpStatus :: Int
- id :: Text
- arn :: Text
- newCreateProjectResponse :: Int -> Text -> Text -> CreateProjectResponse
- createProjectResponse_clientRequestToken :: Lens' CreateProjectResponse (Maybe Text)
- createProjectResponse_projectTemplateId :: Lens' CreateProjectResponse (Maybe Text)
- createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int
- createProjectResponse_id :: Lens' CreateProjectResponse Text
- createProjectResponse_arn :: Lens' CreateProjectResponse Text
Creating a Request
data CreateProject Source #
See: newCreateProject smart constructor.
Constructors
| CreateProject' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateProject |
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:
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.
CreateProject, createProject_description - The description of the project, if any.
$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:tags:CreateProject', createProject_tags - The tags created for the project.
$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.
CreateProject, createProject_name - The display name for the project to be created in AWS CodeStar.
CreateProject, createProject_id - The ID of the project to be created in AWS CodeStar.
Request Lenses
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_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_tags :: Lens' CreateProject (Maybe (HashMap Text Text)) Source #
The tags created for the project.
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_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
newCreateProjectResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> CreateProjectResponse |
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:
CreateProject, createProjectResponse_clientRequestToken - A user- or system-generated token that identifies the entity that
requested project creation.
$sel:projectTemplateId:CreateProjectResponse', createProjectResponse_projectTemplateId - Reserved for future use.
$sel:httpStatus:CreateProjectResponse', createProjectResponse_httpStatus - The response's http status code.
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_projectTemplateId :: Lens' CreateProjectResponse (Maybe Text) Source #
Reserved for future use.
createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int Source #
The response's http status code.
createProjectResponse_id :: Lens' CreateProjectResponse Text Source #
The ID of the project.
createProjectResponse_arn :: Lens' CreateProjectResponse Text Source #
The Amazon Resource Name (ARN) of the created project.