Class PipelineProjectProps.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.PipelineProjectProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PipelineProjectProps>
- Enclosing interface:
- PipelineProjectProps
@Stability(Stable)
public static final class PipelineProjectProps.Builder
extends Object
implements software.amazon.jsii.Builder<PipelineProjectProps>
A builder for
PipelineProjectProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowAllOutbound
(Boolean allowAllOutbound) Sets the value ofCommonProjectProps.getAllowAllOutbound()
Sets the value ofCommonProjectProps.getBadge()
build()
Builds the configured instance.Sets the value ofCommonProjectProps.getBuildSpec()
Sets the value ofCommonProjectProps.getCache()
checkSecretsInPlainTextEnvVariables
(Boolean checkSecretsInPlainTextEnvVariables) Sets the value ofCommonProjectProps.getCheckSecretsInPlainTextEnvVariables()
concurrentBuildLimit
(Number concurrentBuildLimit) Sets the value ofCommonProjectProps.getConcurrentBuildLimit()
description
(String description) Sets the value ofCommonProjectProps.getDescription()
encryptionKey
(IKey encryptionKey) Sets the value ofCommonProjectProps.getEncryptionKey()
environment
(BuildEnvironment environment) Sets the value ofCommonProjectProps.getEnvironment()
environmentVariables
(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Sets the value ofCommonProjectProps.getEnvironmentVariables()
fileSystemLocations
(List<? extends IFileSystemLocation> fileSystemLocations) Sets the value ofCommonProjectProps.getFileSystemLocations()
grantReportGroupPermissions
(Boolean grantReportGroupPermissions) Sets the value ofCommonProjectProps.getGrantReportGroupPermissions()
logging
(LoggingOptions logging) Sets the value ofCommonProjectProps.getLogging()
projectName
(String projectName) Sets the value ofCommonProjectProps.getProjectName()
queuedTimeout
(Duration queuedTimeout) Sets the value ofCommonProjectProps.getQueuedTimeout()
Sets the value ofCommonProjectProps.getRole()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofCommonProjectProps.getSecurityGroups()
subnetSelection
(SubnetSelection subnetSelection) Sets the value ofCommonProjectProps.getSubnetSelection()
Sets the value ofCommonProjectProps.getTimeout()
Sets the value ofCommonProjectProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowAllOutbound
Sets the value ofCommonProjectProps.getAllowAllOutbound()
- Parameters:
allowAllOutbound
- Whether to allow the CodeBuild to send all network traffic. 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.
- Returns:
this
-
badge
Sets the value ofCommonProjectProps.getBadge()
- Parameters:
badge
- 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.- Returns:
this
-
buildSpec
Sets the value ofCommonProjectProps.getBuildSpec()
- Parameters:
buildSpec
- Filename or contents of buildspec in JSON format.- Returns:
this
-
cache
Sets the value ofCommonProjectProps.getCache()
- Parameters:
cache
- Caching strategy to use.- Returns:
this
-
checkSecretsInPlainTextEnvVariables
@Stability(Stable) public PipelineProjectProps.Builder checkSecretsInPlainTextEnvVariables(Boolean checkSecretsInPlainTextEnvVariables) Sets the value ofCommonProjectProps.getCheckSecretsInPlainTextEnvVariables()
- Parameters:
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.- Returns:
this
-
concurrentBuildLimit
@Stability(Stable) public PipelineProjectProps.Builder concurrentBuildLimit(Number concurrentBuildLimit) Sets the value ofCommonProjectProps.getConcurrentBuildLimit()
- Parameters:
concurrentBuildLimit
- Maximum number of concurrent builds. Minimum value is 1 and maximum is account build limit.- Returns:
this
-
description
Sets the value ofCommonProjectProps.getDescription()
- Parameters:
description
- A description of the project. Use the description to identify the purpose of the project.- Returns:
this
-
encryptionKey
Sets the value ofCommonProjectProps.getEncryptionKey()
- Parameters:
encryptionKey
- Encryption key to use to read and write artifacts.- Returns:
this
-
environment
Sets the value ofCommonProjectProps.getEnvironment()
- Parameters:
environment
- Build environment to use for the build.- Returns:
this
-
environmentVariables
@Stability(Stable) public PipelineProjectProps.Builder environmentVariables(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Sets the value ofCommonProjectProps.getEnvironmentVariables()
- Parameters:
environmentVariables
- Additional environment variables to add to the build environment.- Returns:
this
-
fileSystemLocations
@Stability(Stable) public PipelineProjectProps.Builder fileSystemLocations(List<? extends IFileSystemLocation> fileSystemLocations) Sets the value ofCommonProjectProps.getFileSystemLocations()
- Parameters:
fileSystemLocations
- An ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.- Returns:
this
-
grantReportGroupPermissions
@Stability(Stable) public PipelineProjectProps.Builder grantReportGroupPermissions(Boolean grantReportGroupPermissions) Sets the value ofCommonProjectProps.getGrantReportGroupPermissions()
- Parameters:
grantReportGroupPermissions
- Add permissions to this project's role to create and use test report groups with name starting with the name of this project. 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.- Returns:
this
-
logging
Sets the value ofCommonProjectProps.getLogging()
- Parameters:
logging
- Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.- Returns:
this
-
projectName
Sets the value ofCommonProjectProps.getProjectName()
- Parameters:
projectName
- The physical, human-readable name of the CodeBuild Project.- Returns:
this
-
queuedTimeout
Sets the value ofCommonProjectProps.getQueuedTimeout()
- Parameters:
queuedTimeout
- The number of minutes after which AWS CodeBuild stops the build if it's still in queue. For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.- Returns:
this
-
role
Sets the value ofCommonProjectProps.getRole()
- Parameters:
role
- Service Role to assume while running the build.- Returns:
this
-
securityGroups
@Stability(Stable) public PipelineProjectProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofCommonProjectProps.getSecurityGroups()
- Parameters:
securityGroups
- What security group to associate with the codebuild project's network interfaces. If no security group is identified, one will be created automatically.Only used if 'vpc' is supplied.
- Returns:
this
-
subnetSelection
@Stability(Stable) public PipelineProjectProps.Builder subnetSelection(SubnetSelection subnetSelection) Sets the value ofCommonProjectProps.getSubnetSelection()
- Parameters:
subnetSelection
- Where to place the network interfaces within the VPC. Only used if 'vpc' is supplied.- Returns:
this
-
timeout
Sets the value ofCommonProjectProps.getTimeout()
- Parameters:
timeout
- The number of minutes after which AWS CodeBuild stops the build if it's not complete. For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.- Returns:
this
-
vpc
Sets the value ofCommonProjectProps.getVpc()
- Parameters:
vpc
- VPC network to place codebuild network interfaces. Specify this if the codebuild project needs to access resources in a VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PipelineProjectProps>
- Returns:
- a new instance of
PipelineProjectProps
- Throws:
NullPointerException
- if any required attribute was not provided
-