@Stability(value=Stable) public static final class CfnProject.Builder extends Object implements software.amazon.jsii.Builder<CfnProject>
CfnProject.| Modifier and Type | Method and Description |
|---|---|
CfnProject.Builder |
artifacts(CfnProject.ArtifactsProperty artifacts)
`Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build.
|
CfnProject.Builder |
artifacts(IResolvable artifacts)
`Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build.
|
CfnProject.Builder |
badgeEnabled(Boolean badgeEnabled)
Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.
|
CfnProject.Builder |
badgeEnabled(IResolvable badgeEnabled)
Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.
|
CfnProject |
build() |
CfnProject.Builder |
buildBatchConfig(CfnProject.ProjectBuildBatchConfigProperty buildBatchConfig)
A `ProjectBuildBatchConfig` object that defines the batch build options for the project.
|
CfnProject.Builder |
buildBatchConfig(IResolvable buildBatchConfig)
A `ProjectBuildBatchConfig` object that defines the batch build options for the project.
|
CfnProject.Builder |
cache(CfnProject.ProjectCacheProperty cache)
Settings that AWS CodeBuild uses to store and reuse build dependencies.
|
CfnProject.Builder |
cache(IResolvable cache)
Settings that AWS CodeBuild uses to store and reuse build dependencies.
|
CfnProject.Builder |
concurrentBuildLimit(Number concurrentBuildLimit)
The maximum number of concurrent builds that are allowed for this project.
|
static CfnProject.Builder |
create(software.constructs.Construct scope,
String id) |
CfnProject.Builder |
description(String description)
A description that makes the build project easy to identify.
|
CfnProject.Builder |
encryptionKey(String encryptionKey)
The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
|
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.
|
CfnProject.Builder |
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.
|
CfnProject.Builder |
fileSystemLocations(IResolvable fileSystemLocations)
An array of `ProjectFileSystemLocation` objects for a CodeBuild build project.
|
CfnProject.Builder |
fileSystemLocations(List<? extends Object> fileSystemLocations)
An array of `ProjectFileSystemLocation` objects for a CodeBuild build project.
|
CfnProject.Builder |
logsConfig(CfnProject.LogsConfigProperty logsConfig)
Information about logs for the build project.
|
CfnProject.Builder |
logsConfig(IResolvable logsConfig)
Information about logs for the build project.
|
CfnProject.Builder |
name(String name)
The name of the build project.
|
CfnProject.Builder |
queuedTimeoutInMinutes(Number queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
|
CfnProject.Builder |
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.
|
CfnProject.Builder |
secondaryArtifacts(IResolvable secondaryArtifacts)
A list of `Artifacts` objects.
|
CfnProject.Builder |
secondaryArtifacts(List<? extends Object> secondaryArtifacts)
A list of `Artifacts` objects.
|
CfnProject.Builder |
secondarySources(IResolvable secondarySources)
An array of `ProjectSource` objects.
|
CfnProject.Builder |
secondarySources(List<? extends Object> secondarySources)
An array of `ProjectSource` objects.
|
CfnProject.Builder |
secondarySourceVersions(IResolvable secondarySourceVersions)
An array of `ProjectSourceVersion` objects.
|
CfnProject.Builder |
secondarySourceVersions(List<? extends Object> secondarySourceVersions)
An array of `ProjectSourceVersion` objects.
|
CfnProject.Builder |
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.
|
CfnProject.Builder |
source(CfnProject.SourceProperty source)
The source code settings for the project, such as the source code's repository type and location.
|
CfnProject.Builder |
source(IResolvable source)
The source code settings for the project, such as the source code's repository type and location.
|
CfnProject.Builder |
sourceVersion(String sourceVersion)
A version of the build input to be built for this project.
|
CfnProject.Builder |
tags(List<? extends CfnTag> tags)
An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project.
|
CfnProject.Builder |
timeoutInMinutes(Number timeoutInMinutes)
How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed.
|
CfnProject.Builder |
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.
|
CfnProject.Builder |
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.
|
CfnProject.Builder |
visibility(String visibility)
Specifies the visibility of the project's builds.
|
CfnProject.Builder |
vpcConfig(CfnProject.VpcConfigProperty vpcConfig)
`VpcConfig` specifies settings that enable AWS CodeBuild to access resources in an Amazon VPC.
|
CfnProject.Builder |
vpcConfig(IResolvable vpcConfig)
`VpcConfig` specifies settings that enable AWS CodeBuild to access resources in an Amazon VPC.
|
@Stability(value=Stable) public static CfnProject.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnProject.ArtifactsProperty.Builder.@Stability(value=Stable) public CfnProject.Builder artifacts(CfnProject.ArtifactsProperty artifacts)
artifacts - `Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder artifacts(IResolvable artifacts)
artifacts - `Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder environment(CfnProject.EnvironmentProperty environment)
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.this@Stability(value=Stable) public CfnProject.Builder environment(IResolvable environment)
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.this@Stability(value=Stable) public CfnProject.Builder serviceRole(String serviceRole)
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.this@Stability(value=Stable) public CfnProject.Builder source(CfnProject.SourceProperty source)
source - The source code settings for the project, such as the source code's repository type and location. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder source(IResolvable source)
source - The source code settings for the project, such as the source code's repository type and location. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder badgeEnabled(Boolean badgeEnabled)
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.
badgeEnabled - Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder badgeEnabled(IResolvable badgeEnabled)
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.
badgeEnabled - Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder buildBatchConfig(CfnProject.ProjectBuildBatchConfigProperty buildBatchConfig)
buildBatchConfig - A `ProjectBuildBatchConfig` object that defines the batch build options for the project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder buildBatchConfig(IResolvable buildBatchConfig)
buildBatchConfig - A `ProjectBuildBatchConfig` object that defines the batch build options for the project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder cache(CfnProject.ProjectCacheProperty cache)
cache - Settings that AWS CodeBuild uses to store and reuse build dependencies. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder cache(IResolvable cache)
cache - Settings that AWS CodeBuild uses to store and reuse build dependencies. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder concurrentBuildLimit(Number concurrentBuildLimit)
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.
concurrentBuildLimit - The maximum number of concurrent builds that are allowed for this project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder description(String description)
description - A description that makes the build project easy to identify. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder encryptionKey(String encryptionKey)
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).
encryptionKey - The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder fileSystemLocations(IResolvable fileSystemLocations)
A ProjectFileSystemLocation object specifies the identifier , location , mountOptions , mountPoint , and type of a file system created using Amazon Elastic File System.
fileSystemLocations - An array of `ProjectFileSystemLocation` objects for a CodeBuild build project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder fileSystemLocations(List<? extends Object> fileSystemLocations)
A ProjectFileSystemLocation object specifies the identifier , location , mountOptions , mountPoint , and type of a file system created using Amazon Elastic File System.
fileSystemLocations - An array of `ProjectFileSystemLocation` objects for a CodeBuild build project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder logsConfig(CfnProject.LogsConfigProperty logsConfig)
A project can create logs in CloudWatch Logs, an S3 bucket, or both.
logsConfig - Information about logs for the build project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder logsConfig(IResolvable logsConfig)
A project can create logs in CloudWatch Logs, an S3 bucket, or both.
logsConfig - Information about logs for the build project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder name(String name)
The name must be unique across all of the projects in your AWS account .
name - The name of the build project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder queuedTimeoutInMinutes(Number queuedTimeoutInMinutes)
queuedTimeoutInMinutes - The number of minutes a build is allowed to be queued before it times out. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder resourceAccessRole(String resourceAccessRole)
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.this@Stability(value=Stable) public CfnProject.Builder secondaryArtifacts(IResolvable secondaryArtifacts)
Each artifacts object specifies output settings that the project generates during a build.
secondaryArtifacts - A list of `Artifacts` objects. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder secondaryArtifacts(List<? extends Object> secondaryArtifacts)
Each artifacts object specifies output settings that the project generates during a build.
secondaryArtifacts - A list of `Artifacts` objects. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder secondarySources(IResolvable secondarySources)
secondarySources - An array of `ProjectSource` objects. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder secondarySources(List<? extends Object> secondarySources)
secondarySources - An array of `ProjectSource` objects. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder secondarySourceVersions(IResolvable secondarySourceVersions)
If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).
secondarySourceVersions - An array of `ProjectSourceVersion` objects. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder secondarySourceVersions(List<? extends Object> secondarySourceVersions)
If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).
secondarySourceVersions - An array of `ProjectSourceVersion` objects. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder sourceVersion(String sourceVersion)
If not specified, the latest version is used. If specified, it must be one of:
pr/pull-request-ID (for example pr/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.
If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).
For more information, see Source Version Sample with CodeBuild in the AWS CodeBuild User Guide .
sourceVersion - A version of the build input to be built for this project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder tags(List<? extends CfnTag> tags)
These tags are available for use by AWS services that support AWS CodeBuild build project tags.
tags - An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder timeoutInMinutes(Number timeoutInMinutes)
The default is 60 minutes.
timeoutInMinutes - How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder triggers(CfnProject.ProjectTriggersProperty triggers)
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.this@Stability(value=Stable) public CfnProject.Builder triggers(IResolvable triggers)
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.this@Stability(value=Stable) public CfnProject.Builder visibility(String visibility)
visibility - Specifies the visibility of the project's builds. Possible values are:. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder vpcConfig(CfnProject.VpcConfigProperty vpcConfig)
For more information, see Use AWS CodeBuild with Amazon Virtual Private Cloud in the AWS CodeBuild User Guide .
vpcConfig - `VpcConfig` specifies settings that enable AWS CodeBuild to access resources in an Amazon VPC. This parameter is required.this@Stability(value=Stable) public CfnProject.Builder vpcConfig(IResolvable vpcConfig)
For more information, see Use AWS CodeBuild with Amazon Virtual Private Cloud in the AWS CodeBuild User Guide .
vpcConfig - `VpcConfig` specifies settings that enable AWS CodeBuild to access resources in an Amazon VPC. This parameter is required.this@Stability(value=Stable) public CfnProject build()
build in interface software.amazon.jsii.Builder<CfnProject>Copyright © 2022. All rights reserved.