@Stability(value=Stable) public static final class PipelineProject.Builder extends Object implements software.amazon.jsii.Builder<PipelineProject>
PipelineProject.| Modifier and Type | Method and Description |
|---|---|
PipelineProject.Builder |
allowAllOutbound(Boolean allowAllOutbound)
Whether to allow the CodeBuild to send all network traffic.
|
PipelineProject.Builder |
badge(Boolean badge)
Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge.
|
PipelineProject |
build() |
PipelineProject.Builder |
buildSpec(BuildSpec buildSpec)
Filename or contents of buildspec in JSON format.
|
PipelineProject.Builder |
cache(Cache cache)
Caching strategy to use.
|
PipelineProject.Builder |
checkSecretsInPlainTextEnvVariables(Boolean checkSecretsInPlainTextEnvVariables)
Whether to check for the presence of any secrets in the environment variables of the default type, BuildEnvironmentVariableType.PLAINTEXT.
|
PipelineProject.Builder |
concurrentBuildLimit(Number concurrentBuildLimit)
Maximum number of concurrent builds.
|
static PipelineProject.Builder |
create(software.constructs.Construct scope,
String id) |
PipelineProject.Builder |
description(String description)
A description of the project.
|
PipelineProject.Builder |
encryptionKey(IKey encryptionKey)
Encryption key to use to read and write artifacts.
|
PipelineProject.Builder |
environment(BuildEnvironment environment)
Build environment to use for the build.
|
PipelineProject.Builder |
environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
Additional environment variables to add to the build environment.
|
PipelineProject.Builder |
fileSystemLocations(List<? extends IFileSystemLocation> fileSystemLocations)
An ProjectFileSystemLocation objects for a CodeBuild build project.
|
PipelineProject.Builder |
grantReportGroupPermissions(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.
|
PipelineProject.Builder |
logging(LoggingOptions logging)
Information about logs for the build project.
|
PipelineProject.Builder |
projectName(String projectName)
The physical, human-readable name of the CodeBuild Project.
|
PipelineProject.Builder |
queuedTimeout(Duration queuedTimeout)
The number of minutes after which AWS CodeBuild stops the build if it's still in queue.
|
PipelineProject.Builder |
role(IRole role)
Service Role to assume while running the build.
|
PipelineProject.Builder |
securityGroups(List<? extends ISecurityGroup> securityGroups)
What security group to associate with the codebuild project's network interfaces.
|
PipelineProject.Builder |
subnetSelection(SubnetSelection subnetSelection)
Where to place the network interfaces within the VPC.
|
PipelineProject.Builder |
timeout(Duration timeout)
The number of minutes after which AWS CodeBuild stops the build if it's not complete.
|
PipelineProject.Builder |
vpc(IVpc vpc)
VPC network to place codebuild network interfaces.
|
@Stability(value=Stable) public static PipelineProject.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.PipelineProject.Builder.@Stability(value=Stable) public PipelineProject.Builder allowAllOutbound(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@Stability(value=Stable) public PipelineProject.Builder badge(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@Stability(value=Stable) public PipelineProject.Builder buildSpec(BuildSpec buildSpec)
Default: - Empty buildspec.
buildSpec - Filename or contents of buildspec in JSON format. This parameter is required.this@Stability(value=Stable) public PipelineProject.Builder cache(Cache cache)
Default: Cache.none
cache - Caching strategy to use. This parameter is required.this@Stability(value=Stable) public PipelineProject.Builder checkSecretsInPlainTextEnvVariables(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@Stability(value=Stable) public PipelineProject.Builder concurrentBuildLimit(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@Stability(value=Stable) public PipelineProject.Builder description(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@Stability(value=Stable) public PipelineProject.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@Stability(value=Stable) public PipelineProject.Builder environment(BuildEnvironment environment)
Default: BuildEnvironment.LinuxBuildImage.STANDARD_1_0
environment - Build environment to use for the build. This parameter is required.this@Stability(value=Stable) public PipelineProject.Builder environmentVariables(Map<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@Stability(value=Stable) public PipelineProject.Builder fileSystemLocations(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@Stability(value=Stable) public PipelineProject.Builder grantReportGroupPermissions(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@Stability(value=Stable) public PipelineProject.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@Stability(value=Stable) public PipelineProject.Builder projectName(String projectName)
Default: - Name is automatically generated.
projectName - The physical, human-readable name of the CodeBuild Project. This parameter is required.this@Stability(value=Stable) public PipelineProject.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@Stability(value=Stable) public PipelineProject.Builder role(IRole role)
Default: - A role will be created.
role - Service Role to assume while running the build. This parameter is required.this@Stability(value=Stable) public PipelineProject.Builder securityGroups(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@Stability(value=Stable) public PipelineProject.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@Stability(value=Stable) public PipelineProject.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@Stability(value=Stable) public PipelineProject.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@Stability(value=Stable) public PipelineProject build()
build in interface software.amazon.jsii.Builder<PipelineProject>Copyright © 2022. All rights reserved.