Modifier and Type | Method and Description |
---|---|
Project.Builder |
allowAllOutbound(java.lang.Boolean allowAllOutbound)
Whether to allow the CodeBuild to send all network traffic.
|
Project.Builder |
artifacts(IArtifacts artifacts)
Defines where build artifacts will be stored.
|
Project.Builder |
badge(java.lang.Boolean badge)
Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.
|
Project |
build() |
Project.Builder |
buildSpec(BuildSpec buildSpec)
Filename or contents of buildspec in JSON format.
|
Project.Builder |
cache(Cache cache)
Caching strategy to use.
|
Project.Builder |
checkSecretsInPlainTextEnvVariables(java.lang.Boolean checkSecretsInPlainTextEnvVariables)
Whether to check for the presence of any secrets in the environment variables of the default type, BuildEnvironmentVariableType.PLAINTEXT.
|
Project.Builder |
concurrentBuildLimit(java.lang.Number concurrentBuildLimit)
Maximum number of concurrent builds.
|
static Project.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
Project.Builder |
description(java.lang.String description)
A description of the project.
|
Project.Builder |
encryptionKey(IKey encryptionKey)
Encryption key to use to read and write artifacts.
|
Project.Builder |
environment(BuildEnvironment environment)
Build environment to use for the build.
|
Project.Builder |
environmentVariables(java.util.Map<java.lang.String,? extends BuildEnvironmentVariable> environmentVariables)
Additional environment variables to add to the build environment.
|
Project.Builder |
fileSystemLocations(java.util.List<? extends IFileSystemLocation> fileSystemLocations)
An ProjectFileSystemLocation objects for a CodeBuild build project.
|
Project.Builder |
grantReportGroupPermissions(java.lang.Boolean grantReportGroupPermissions)
Add permissions to this project's role to create and use test report groups with name starting with the name of this project.
|
Project.Builder |
logging(LoggingOptions logging)
Information about logs for the build project.
|
Project.Builder |
projectName(java.lang.String projectName)
The physical, human-readable name of the CodeBuild Project.
|
Project.Builder |
queuedTimeout(Duration queuedTimeout)
The number of minutes after which AWS CodeBuild stops the build if it's still in queue.
|
Project.Builder |
role(IRole role)
Service Role to assume while running the build.
|
Project.Builder |
secondaryArtifacts(java.util.List<? extends IArtifacts> secondaryArtifacts)
The secondary artifacts for the Project.
|
Project.Builder |
secondarySources(java.util.List<? extends ISource> secondarySources)
The secondary sources for the Project.
|
Project.Builder |
securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
What security group to associate with the codebuild project's network interfaces.
|
Project.Builder |
source(ISource source)
The source of the build.
|
Project.Builder |
subnetSelection(SubnetSelection subnetSelection)
Where to place the network interfaces within the VPC.
|
Project.Builder |
timeout(Duration timeout)
The number of minutes after which AWS CodeBuild stops the build if it's not complete.
|
Project.Builder |
vpc(IVpc vpc)
VPC network to place codebuild network interfaces.
|
public static Project.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.Project.Builder
.public Project.Builder allowAllOutbound(java.lang.Boolean allowAllOutbound)
If set to false, you must individually add traffic rules to allow the CodeBuild project to connect to network targets.
Only used if 'vpc' is supplied.
Default: true
allowAllOutbound
- Whether to allow the CodeBuild to send all network traffic. This parameter is required.this
public Project.Builder badge(java.lang.Boolean badge)
For more information, see Build Badges Sample in the AWS CodeBuild User Guide.
Default: false
badge
- Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. This parameter is required.this
public Project.Builder buildSpec(BuildSpec buildSpec)
Default: - Empty buildspec.
buildSpec
- Filename or contents of buildspec in JSON format. This parameter is required.this
public Project.Builder cache(Cache cache)
Default: Cache.none
cache
- Caching strategy to use. This parameter is required.this
public Project.Builder checkSecretsInPlainTextEnvVariables(java.lang.Boolean checkSecretsInPlainTextEnvVariables)
Default: true
checkSecretsInPlainTextEnvVariables
- Whether to check for the presence of any secrets in the environment variables of the default type, BuildEnvironmentVariableType.PLAINTEXT. Since using a secret for the value of that kind of variable would result in it being displayed in plain text in the AWS Console, the construct will throw an exception if it detects a secret was passed there. Pass this property as false if you want to skip this validation, and keep using a secret in a plain text environment variable. This parameter is required.this
public Project.Builder concurrentBuildLimit(java.lang.Number concurrentBuildLimit)
Minimum value is 1 and maximum is account build limit.
Default: - no explicit limit is set
concurrentBuildLimit
- Maximum number of concurrent builds. This parameter is required.this
public Project.Builder description(java.lang.String description)
Use the description to identify the purpose of the project.
Default: - No description.
description
- A description of the project. This parameter is required.this
public Project.Builder encryptionKey(IKey encryptionKey)
Default: - The AWS-managed CMK for Amazon Simple Storage Service (Amazon S3) is used.
encryptionKey
- Encryption key to use to read and write artifacts. This parameter is required.this
public Project.Builder environment(BuildEnvironment environment)
Default: BuildEnvironment.LinuxBuildImage.STANDARD_1_0
environment
- Build environment to use for the build. This parameter is required.this
public Project.Builder environmentVariables(java.util.Map<java.lang.String,? extends BuildEnvironmentVariable> environmentVariables)
Default: - No additional environment variables are specified.
environmentVariables
- Additional environment variables to add to the build environment. This parameter is required.this
public Project.Builder fileSystemLocations(java.util.List<? extends IFileSystemLocation> fileSystemLocations)
A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.
Default: - no file system locations
fileSystemLocations
- An ProjectFileSystemLocation objects for a CodeBuild build project. This parameter is required.this
public Project.Builder grantReportGroupPermissions(java.lang.Boolean grantReportGroupPermissions)
That is the standard report group that gets created when a simple name (in contrast to an ARN) is used in the 'reports' section of the buildspec of this project. This is usually harmless, but you can turn these off if you don't plan on using test reports in this project.
Default: true
grantReportGroupPermissions
- Add permissions to this project's role to create and use test report groups with name starting with the name of this project. This parameter is required.this
public Project.Builder logging(LoggingOptions logging)
A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.
Default: - no log configuration is set
logging
- Information about logs for the build project. This parameter is required.this
public Project.Builder projectName(java.lang.String projectName)
Default: - Name is automatically generated.
projectName
- The physical, human-readable name of the CodeBuild Project. This parameter is required.this
public Project.Builder queuedTimeout(Duration queuedTimeout)
For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Default: - no queue timeout is set
queuedTimeout
- The number of minutes after which AWS CodeBuild stops the build if it's still in queue. This parameter is required.this
public Project.Builder role(IRole role)
Default: - A role will be created.
role
- Service Role to assume while running the build. This parameter is required.this
public Project.Builder securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
If no security group is identified, one will be created automatically.
Only used if 'vpc' is supplied.
Default: - Security group will be automatically created.
securityGroups
- What security group to associate with the codebuild project's network interfaces. This parameter is required.this
public Project.Builder subnetSelection(SubnetSelection subnetSelection)
Only used if 'vpc' is supplied.
Default: - All private subnets.
subnetSelection
- Where to place the network interfaces within the VPC. This parameter is required.this
public Project.Builder timeout(Duration timeout)
For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Default: Duration.hours(1)
timeout
- The number of minutes after which AWS CodeBuild stops the build if it's not complete. This parameter is required.this
public Project.Builder vpc(IVpc vpc)
Specify this if the codebuild project needs to access resources in a VPC.
Default: - No VPC is specified.
vpc
- VPC network to place codebuild network interfaces. This parameter is required.this
public Project.Builder artifacts(IArtifacts artifacts)
Could be: PipelineBuildArtifacts, NoArtifacts and S3Artifacts.
Default: NoArtifacts
artifacts
- Defines where build artifacts will be stored. This parameter is required.this
public Project.Builder secondaryArtifacts(java.util.List<? extends IArtifacts> secondaryArtifacts)
Can also be added after the Project has been created by using the {@link Project#addSecondaryArtifact} method.
Default: - No secondary artifacts.
secondaryArtifacts
- The secondary artifacts for the Project. This parameter is required.this
public Project.Builder secondarySources(java.util.List<? extends ISource> secondarySources)
Can be also added after the Project has been created by using the {@link Project#addSecondarySource} method.
Default: - No secondary sources.
secondarySources
- The secondary sources for the Project. This parameter is required.this
public Project.Builder source(ISource source)
Note: if {@link NoSource} is given as the source,
then you need to provide an explicit buildSpec
.
Default: - NoSource
source
- The source of the build. This parameter is required.this
public Project build()