Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a build project.
Synopsis
- createProject :: Text -> ProjectSource -> ProjectArtifacts -> ProjectEnvironment -> CreateProject
- data CreateProject
- cpBadgeEnabled :: Lens' CreateProject (Maybe Bool)
- cpCache :: Lens' CreateProject (Maybe ProjectCache)
- cpVpcConfig :: Lens' CreateProject (Maybe VPCConfig)
- cpEncryptionKey :: Lens' CreateProject (Maybe Text)
- cpDescription :: Lens' CreateProject (Maybe Text)
- cpServiceRole :: Lens' CreateProject (Maybe Text)
- cpTags :: Lens' CreateProject [Tag]
- cpTimeoutInMinutes :: Lens' CreateProject (Maybe Natural)
- cpName :: Lens' CreateProject Text
- cpSource :: Lens' CreateProject ProjectSource
- cpArtifacts :: Lens' CreateProject ProjectArtifacts
- cpEnvironment :: Lens' CreateProject ProjectEnvironment
- createProjectResponse :: Int -> CreateProjectResponse
- data CreateProjectResponse
- cprsProject :: Lens' CreateProjectResponse (Maybe Project)
- cprsResponseStatus :: Lens' CreateProjectResponse Int
Creating a Request
Creates a value of CreateProject
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpBadgeEnabled
- Set this to true to generate a publicly-accessible URL for your project's build badge.cpCache
- Stores recently used information so that it can be quickly accessed at a later time.cpVpcConfig
- VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.cpEncryptionKey
- The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the formatalias/alias-name
).cpDescription
- A description that makes the build project easy to identify.cpServiceRole
- The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.cpTags
- A set of tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags.cpTimeoutInMinutes
- How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes.cpName
- The name of the build project.cpSource
- Information about the build input source code for the build project.cpArtifacts
- Information about the build output artifacts for the build project.cpEnvironment
- Information about the build environment for the build project.
data CreateProject Source #
See: createProject
smart constructor.
Instances
Request Lenses
cpBadgeEnabled :: Lens' CreateProject (Maybe Bool) Source #
Set this to true to generate a publicly-accessible URL for your project's build badge.
cpCache :: Lens' CreateProject (Maybe ProjectCache) Source #
Stores recently used information so that it can be quickly accessed at a later time.
cpVpcConfig :: Lens' CreateProject (Maybe VPCConfig) Source #
VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
cpEncryptionKey :: Lens' CreateProject (Maybe Text) Source #
The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format alias/alias-name
).
cpDescription :: Lens' CreateProject (Maybe Text) Source #
A description that makes the build project easy to identify.
cpServiceRole :: Lens' CreateProject (Maybe Text) Source #
The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
cpTags :: Lens' CreateProject [Tag] Source #
A set of tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags.
cpTimeoutInMinutes :: Lens' CreateProject (Maybe Natural) Source #
How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes.
cpSource :: Lens' CreateProject ProjectSource Source #
Information about the build input source code for the build project.
cpArtifacts :: Lens' CreateProject ProjectArtifacts Source #
Information about the build output artifacts for the build project.
cpEnvironment :: Lens' CreateProject ProjectEnvironment Source #
Information about the build environment for the build project.
Destructuring the Response
createProjectResponse Source #
Creates a value of CreateProjectResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprsProject
- Information about the build project that was created.cprsResponseStatus
- -- | The response status code.
data CreateProjectResponse Source #
See: createProjectResponse
smart constructor.
Instances
Response Lenses
cprsProject :: Lens' CreateProjectResponse (Maybe Project) Source #
Information about the build project that was created.
cprsResponseStatus :: Lens' CreateProjectResponse Int Source #
- - | The response status code.