Class CfnProject.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject>
- Enclosing class:
CfnProject
CfnProject.-
Method Summary
Modifier and TypeMethodDescriptionartifacts(IResolvable artifacts) Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.artifacts(CfnProject.ArtifactsProperty artifacts) Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.autoRetryLimit(Number autoRetryLimit) badgeEnabled(Boolean badgeEnabled) Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.badgeEnabled(IResolvable badgeEnabled) Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.build()buildBatchConfig(IResolvable buildBatchConfig) AProjectBuildBatchConfigobject that defines the batch build options for the project.buildBatchConfig(CfnProject.ProjectBuildBatchConfigProperty buildBatchConfig) AProjectBuildBatchConfigobject that defines the batch build options for the project.cache(IResolvable cache) Settings that AWS CodeBuild uses to store and reuse build dependencies.Settings that AWS CodeBuild uses to store and reuse build dependencies.concurrentBuildLimit(Number concurrentBuildLimit) The maximum number of concurrent builds that are allowed for this project.static CfnProject.Builderdescription(String description) A description that makes the build project easy to identify.encryptionKey(String encryptionKey) The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.environment(IResolvable environment) The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.environment(CfnProject.EnvironmentProperty environment) The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.fileSystemLocations(List<? extends Object> fileSystemLocations) An array ofProjectFileSystemLocationobjects for a CodeBuild build project.fileSystemLocations(IResolvable fileSystemLocations) An array ofProjectFileSystemLocationobjects for a CodeBuild build project.logsConfig(IResolvable logsConfig) Information about logs for the build project.logsConfig(CfnProject.LogsConfigProperty logsConfig) Information about logs for the build project.The name of the build project.queuedTimeoutInMinutes(Number queuedTimeoutInMinutes) The number of minutes a build is allowed to be queued before it times out.resourceAccessRole(String resourceAccessRole) The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.secondaryArtifacts(List<? extends Object> secondaryArtifacts) A list ofArtifactsobjects.secondaryArtifacts(IResolvable secondaryArtifacts) A list ofArtifactsobjects.secondarySources(List<? extends Object> secondarySources) An array ofProjectSourceobjects.secondarySources(IResolvable secondarySources) An array ofProjectSourceobjects.secondarySourceVersions(List<? extends Object> secondarySourceVersions) An array ofProjectSourceVersionobjects.secondarySourceVersions(IResolvable secondarySourceVersions) An array ofProjectSourceVersionobjects.serviceRole(String serviceRole) The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.source(IResolvable source) The source code settings for the project, such as the source code's repository type and location.source(CfnProject.SourceProperty source) The source code settings for the project, such as the source code's repository type and location.sourceVersion(String sourceVersion) A version of the build input to be built for this project.An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project.timeoutInMinutes(Number timeoutInMinutes) How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed.triggers(IResolvable triggers) For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.triggers(CfnProject.ProjectTriggersProperty triggers) For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.visibility(String visibility) Specifies the visibility of the project's builds.vpcConfig(IResolvable vpcConfig) VpcConfigspecifies settings that enable AWS CodeBuild to access resources in an Amazon VPC.vpcConfig(CfnProject.VpcConfigProperty vpcConfig) VpcConfigspecifies settings that enable AWS CodeBuild to access resources in an Amazon VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnProject.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnProject.Builder.
-
artifacts
Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.- Parameters:
artifacts-Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build. This parameter is required.- Returns:
this- See Also:
-
artifacts
Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.- Parameters:
artifacts-Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build. This parameter is required.- Returns:
this- See Also:
-
environment
The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.- Parameters:
environment- The build environment settings for the project, such as the environment type or the environment variables to use for the build environment. This parameter is required.- Returns:
this- See Also:
-
environment
@Stability(Stable) public CfnProject.Builder environment(CfnProject.EnvironmentProperty environment) The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.- Parameters:
environment- The build environment settings for the project, such as the environment type or the environment variables to use for the build environment. This parameter is required.- Returns:
this- See Also:
-
serviceRole
The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.- Parameters:
serviceRole- The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account. This parameter is required.- Returns:
this- See Also:
-
source
The source code settings for the project, such as the source code's repository type and location.- Parameters:
source- The source code settings for the project, such as the source code's repository type and location. This parameter is required.- Returns:
this- See Also:
-
source
The source code settings for the project, such as the source code's repository type and location.- Parameters:
source- The source code settings for the project, such as the source code's repository type and location. This parameter is required.- Returns:
this- See Also:
-
autoRetryLimit
- Parameters:
autoRetryLimit- This parameter is required.- Returns:
this- See Also:
-
badgeEnabled
Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.For more information, see Build Badges Sample in the AWS CodeBuild User Guide .
Including build badges with your project is currently not supported if the source type is CodePipeline. If you specify
CODEPIPELINEfor theSourceproperty, do not specify theBadgeEnabledproperty.- Parameters:
badgeEnabled- Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. This parameter is required.- Returns:
this- See Also:
-
badgeEnabled
Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.For more information, see Build Badges Sample in the AWS CodeBuild User Guide .
Including build badges with your project is currently not supported if the source type is CodePipeline. If you specify
CODEPIPELINEfor theSourceproperty, do not specify theBadgeEnabledproperty.- Parameters:
badgeEnabled- Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. This parameter is required.- Returns:
this- See Also:
-
buildBatchConfig
AProjectBuildBatchConfigobject that defines the batch build options for the project.- Parameters:
buildBatchConfig- AProjectBuildBatchConfigobject that defines the batch build options for the project. This parameter is required.- Returns:
this- See Also:
-
buildBatchConfig
@Stability(Stable) public CfnProject.Builder buildBatchConfig(CfnProject.ProjectBuildBatchConfigProperty buildBatchConfig) AProjectBuildBatchConfigobject that defines the batch build options for the project.- Parameters:
buildBatchConfig- AProjectBuildBatchConfigobject that defines the batch build options for the project. This parameter is required.- Returns:
this- See Also:
-
cache
Settings that AWS CodeBuild uses to store and reuse build dependencies.- Parameters:
cache- Settings that AWS CodeBuild uses to store and reuse build dependencies. This parameter is required.- Returns:
this- See Also:
-
cache
Settings that AWS CodeBuild uses to store and reuse build dependencies.- Parameters:
cache- Settings that AWS CodeBuild uses to store and reuse build dependencies. This parameter is required.- Returns:
this- See Also:
-
concurrentBuildLimit
The maximum number of concurrent builds that are allowed for this project.New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
- Parameters:
concurrentBuildLimit- The maximum number of concurrent builds that are allowed for this project. This parameter is required.- Returns:
this- See Also:
-
description
A description that makes the build project easy to identify.- Parameters:
description- A description that makes the build project easy to identify. This parameter is required.- Returns:
this- See Also:
-
encryptionKey
The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format
alias/<alias-name>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).- Parameters:
encryptionKey- The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts. This parameter is required.- Returns:
this- See Also:
-
fileSystemLocations
An array ofProjectFileSystemLocationobjects for a CodeBuild build project.A
ProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Parameters:
fileSystemLocations- An array ofProjectFileSystemLocationobjects for a CodeBuild build project. This parameter is required.- Returns:
this- See Also:
-
fileSystemLocations
@Stability(Stable) public CfnProject.Builder fileSystemLocations(List<? extends Object> fileSystemLocations) An array ofProjectFileSystemLocationobjects for a CodeBuild build project.A
ProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Parameters:
fileSystemLocations- An array ofProjectFileSystemLocationobjects for a CodeBuild build project. This parameter is required.- Returns:
this- See Also:
-
logsConfig
Information about logs for the build project.A project can create logs in CloudWatch Logs, an S3 bucket, or both.
- Parameters:
logsConfig- Information about logs for the build project. This parameter is required.- Returns:
this- See Also:
-
logsConfig
Information about logs for the build project.A project can create logs in CloudWatch Logs, an S3 bucket, or both.
- Parameters:
logsConfig- Information about logs for the build project. This parameter is required.- Returns:
this- See Also:
-
name
The name of the build project.The name must be unique across all of the projects in your AWS account .
- Parameters:
name- The name of the build project. This parameter is required.- Returns:
this- See Also:
-
queuedTimeoutInMinutes
The number of minutes a build is allowed to be queued before it times out.- Parameters:
queuedTimeoutInMinutes- The number of minutes a build is allowed to be queued before it times out. This parameter is required.- Returns:
this- See Also:
-
resourceAccessRole
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.- Parameters:
resourceAccessRole- The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds. This parameter is required.- Returns:
this- See Also:
-
secondaryArtifacts
A list ofArtifactsobjects.Each artifacts object specifies output settings that the project generates during a build.
- Parameters:
secondaryArtifacts- A list ofArtifactsobjects. This parameter is required.- Returns:
this- See Also:
-
secondaryArtifacts
@Stability(Stable) public CfnProject.Builder secondaryArtifacts(List<? extends Object> secondaryArtifacts) A list ofArtifactsobjects.Each artifacts object specifies output settings that the project generates during a build.
- Parameters:
secondaryArtifacts- A list ofArtifactsobjects. This parameter is required.- Returns:
this- See Also:
-
secondarySources
An array ofProjectSourceobjects.- Parameters:
secondarySources- An array ofProjectSourceobjects. This parameter is required.- Returns:
this- See Also:
-
secondarySources
@Stability(Stable) public CfnProject.Builder secondarySources(List<? extends Object> secondarySources) An array ofProjectSourceobjects.- Parameters:
secondarySources- An array ofProjectSourceobjects. This parameter is required.- Returns:
this- See Also:
-
secondarySourceVersions
@Stability(Stable) public CfnProject.Builder secondarySourceVersions(IResolvable secondarySourceVersions) An array ofProjectSourceVersionobjects.If
secondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level).- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects. This parameter is required.- Returns:
this- See Also:
-
secondarySourceVersions
@Stability(Stable) public CfnProject.Builder secondarySourceVersions(List<? extends Object> secondarySourceVersions) An array ofProjectSourceVersionobjects.If
secondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level).- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects. This parameter is required.- Returns:
this- See Also:
-
sourceVersion
A version of the build input to be built for this project.If not specified, the latest version is used. If specified, it must be one of:
- For CodeCommit: the commit ID, branch, or Git tag to use.
- For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID(for examplepr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. - For GitLab: the commit ID, branch, or Git tag to use.
- For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
- For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
If
sourceVersionis specified at the build level, then that version takes precedence over thissourceVersion(at the project level).For more information, see Source Version Sample with CodeBuild in the AWS CodeBuild User Guide .
- Parameters:
sourceVersion- A version of the build input to be built for this project. This parameter is required.- Returns:
this- See Also:
-
tags
An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project.These tags are available for use by AWS services that support AWS CodeBuild build project tags.
- Parameters:
tags- An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project. This parameter is required.- Returns:
this- See Also:
-
timeoutInMinutes
How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed.The default is 60 minutes.
- Parameters:
timeoutInMinutes- How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. This parameter is required.- Returns:
this- See Also:
-
triggers
For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.- Parameters:
triggers- For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository. This parameter is required.- Returns:
this- See Also:
-
triggers
For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.- Parameters:
triggers- For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository. This parameter is required.- Returns:
this- See Also:
-
visibility
Specifies the visibility of the project's builds. Possible values are:.- PUBLIC_READ - The project builds are visible to the public.
- PRIVATE - The project builds are not visible to the public.
- Parameters:
visibility- Specifies the visibility of the project's builds. Possible values are:. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
VpcConfigspecifies settings that enable AWS CodeBuild to access resources in an Amazon VPC.For more information, see Use AWS CodeBuild with Amazon Virtual Private Cloud in the AWS CodeBuild User Guide .
- Parameters:
vpcConfig-VpcConfigspecifies settings that enable AWS CodeBuild to access resources in an Amazon VPC. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
VpcConfigspecifies settings that enable AWS CodeBuild to access resources in an Amazon VPC.For more information, see Use AWS CodeBuild with Amazon Virtual Private Cloud in the AWS CodeBuild User Guide .
- Parameters:
vpcConfig-VpcConfigspecifies settings that enable AWS CodeBuild to access resources in an Amazon VPC. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject>- Returns:
- a newly built instance of
CfnProject.
-