Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_sourceCode :: Lens' CreateProject (Maybe [Code])
- createProject_toolchain :: Lens' CreateProject (Maybe Toolchain)
- createProject_clientRequestToken :: Lens' CreateProject (Maybe Text)
- createProject_description :: Lens' CreateProject (Maybe Text)
- createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text))
- createProject_name :: Lens' CreateProject Text
- createProject_id :: Lens' CreateProject Text
- data CreateProjectResponse = CreateProjectResponse' {
- projectTemplateId :: Maybe Text
- clientRequestToken :: Maybe Text
- httpStatus :: Int
- id :: Text
- arn :: Text
- newCreateProjectResponse :: Int -> Text -> Text -> CreateProjectResponse
- createProjectResponse_projectTemplateId :: Lens' CreateProjectResponse (Maybe Text)
- createProjectResponse_clientRequestToken :: 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.
CreateProject' | |
|
Instances
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.
CreateProjectResponse' | |
|
Instances
newCreateProjectResponse Source #
:: 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:
$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_projectTemplateId :: Lens' CreateProjectResponse (Maybe Text) Source #
Reserved for future use.
createProjectResponse_clientRequestToken :: Lens' CreateProjectResponse (Maybe Text) Source #
A user- or system-generated token that identifies the entity that requested project creation.
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.