@Stability(value=Stable) public static final class CfnProjectProps.Builder extends Object implements software.amazon.jsii.Builder<CfnProjectProps>
CfnProjectProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnProjectProps.Builder artifacts(CfnProject.ArtifactsProperty artifacts)
CfnProjectProps.getArtifacts()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 CfnProjectProps.Builder artifacts(IResolvable artifacts)
CfnProjectProps.getArtifacts()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 CfnProjectProps.Builder environment(CfnProject.EnvironmentProperty environment)
CfnProjectProps.getEnvironment()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 CfnProjectProps.Builder environment(IResolvable environment)
CfnProjectProps.getEnvironment()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 CfnProjectProps.Builder serviceRole(String serviceRole)
CfnProjectProps.getServiceRole()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 CfnProjectProps.Builder source(CfnProject.SourceProperty source)
CfnProjectProps.getSource()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 CfnProjectProps.Builder source(IResolvable source)
CfnProjectProps.getSource()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 CfnProjectProps.Builder badgeEnabled(Boolean badgeEnabled)
CfnProjectProps.getBadgeEnabled()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.
this@Stability(value=Stable) public CfnProjectProps.Builder badgeEnabled(IResolvable badgeEnabled)
CfnProjectProps.getBadgeEnabled()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.
this@Stability(value=Stable) public CfnProjectProps.Builder buildBatchConfig(CfnProject.ProjectBuildBatchConfigProperty buildBatchConfig)
CfnProjectProps.getBuildBatchConfig()buildBatchConfig - A `ProjectBuildBatchConfig` object that defines the batch build options for the project.this@Stability(value=Stable) public CfnProjectProps.Builder buildBatchConfig(IResolvable buildBatchConfig)
CfnProjectProps.getBuildBatchConfig()buildBatchConfig - A `ProjectBuildBatchConfig` object that defines the batch build options for the project.this@Stability(value=Stable) public CfnProjectProps.Builder cache(CfnProject.ProjectCacheProperty cache)
CfnProjectProps.getCache()cache - Settings that AWS CodeBuild uses to store and reuse build dependencies.this@Stability(value=Stable) public CfnProjectProps.Builder cache(IResolvable cache)
CfnProjectProps.getCache()cache - Settings that AWS CodeBuild uses to store and reuse build dependencies.this@Stability(value=Stable) public CfnProjectProps.Builder concurrentBuildLimit(Number concurrentBuildLimit)
CfnProjectProps.getConcurrentBuildLimit()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.this@Stability(value=Stable) public CfnProjectProps.Builder description(String description)
CfnProjectProps.getDescription()description - A description that makes the build project easy to identify.this@Stability(value=Stable) public CfnProjectProps.Builder encryptionKey(String encryptionKey)
CfnProjectProps.getEncryptionKey()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).
this@Stability(value=Stable) public CfnProjectProps.Builder fileSystemLocations(IResolvable fileSystemLocations)
CfnProjectProps.getFileSystemLocations()fileSystemLocations - An array of `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.this@Stability(value=Stable) public CfnProjectProps.Builder fileSystemLocations(List<? extends Object> fileSystemLocations)
CfnProjectProps.getFileSystemLocations()fileSystemLocations - An array of `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.this@Stability(value=Stable) public CfnProjectProps.Builder logsConfig(CfnProject.LogsConfigProperty logsConfig)
CfnProjectProps.getLogsConfig()logsConfig - Information about logs for the build project.
A project can create logs in CloudWatch Logs, an S3 bucket, or both.this@Stability(value=Stable) public CfnProjectProps.Builder logsConfig(IResolvable logsConfig)
CfnProjectProps.getLogsConfig()logsConfig - Information about logs for the build project.
A project can create logs in CloudWatch Logs, an S3 bucket, or both.this@Stability(value=Stable) public CfnProjectProps.Builder name(String name)
CfnProjectProps.getName()name - The name of the build project.
The name must be unique across all of the projects in your AWS account .this@Stability(value=Stable) public CfnProjectProps.Builder queuedTimeoutInMinutes(Number queuedTimeoutInMinutes)
CfnProjectProps.getQueuedTimeoutInMinutes()queuedTimeoutInMinutes - The number of minutes a build is allowed to be queued before it times out.this@Stability(value=Stable) public CfnProjectProps.Builder resourceAccessRole(String resourceAccessRole)
CfnProjectProps.getResourceAccessRole()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@Stability(value=Stable) public CfnProjectProps.Builder secondaryArtifacts(IResolvable secondaryArtifacts)
CfnProjectProps.getSecondaryArtifacts()secondaryArtifacts - A list of `Artifacts` objects.
Each artifacts object specifies output settings that the project generates during a build.this@Stability(value=Stable) public CfnProjectProps.Builder secondaryArtifacts(List<? extends Object> secondaryArtifacts)
CfnProjectProps.getSecondaryArtifacts()secondaryArtifacts - A list of `Artifacts` objects.
Each artifacts object specifies output settings that the project generates during a build.this@Stability(value=Stable) public CfnProjectProps.Builder secondarySources(IResolvable secondarySources)
CfnProjectProps.getSecondarySources()secondarySources - An array of `ProjectSource` objects.this@Stability(value=Stable) public CfnProjectProps.Builder secondarySources(List<? extends Object> secondarySources)
CfnProjectProps.getSecondarySources()secondarySources - An array of `ProjectSource` objects.this@Stability(value=Stable) public CfnProjectProps.Builder secondarySourceVersions(IResolvable secondarySourceVersions)
CfnProjectProps.getSecondarySourceVersions()secondarySourceVersions - An array of `ProjectSourceVersion` objects.
If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).this@Stability(value=Stable) public CfnProjectProps.Builder secondarySourceVersions(List<? extends Object> secondarySourceVersions)
CfnProjectProps.getSecondarySourceVersions()secondarySourceVersions - An array of `ProjectSourceVersion` objects.
If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).this@Stability(value=Stable) public CfnProjectProps.Builder sourceVersion(String sourceVersion)
CfnProjectProps.getSourceVersion()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:
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 .
this@Stability(value=Stable) public CfnProjectProps.Builder tags(List<? extends CfnTag> tags)
CfnProjectProps.getTags()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.this@Stability(value=Stable) public CfnProjectProps.Builder timeoutInMinutes(Number timeoutInMinutes)
CfnProjectProps.getTimeoutInMinutes()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.
The default is 60 minutes.this@Stability(value=Stable) public CfnProjectProps.Builder triggers(CfnProject.ProjectTriggersProperty triggers)
CfnProjectProps.getTriggers()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@Stability(value=Stable) public CfnProjectProps.Builder triggers(IResolvable triggers)
CfnProjectProps.getTriggers()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@Stability(value=Stable) public CfnProjectProps.Builder visibility(String visibility)
CfnProjectProps.getVisibility()visibility - Specifies the visibility of the project's builds. Possible values are:.
this@Stability(value=Stable) public CfnProjectProps.Builder vpcConfig(CfnProject.VpcConfigProperty vpcConfig)
CfnProjectProps.getVpcConfig()vpcConfig - `VpcConfig` specifies 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 .this@Stability(value=Stable) public CfnProjectProps.Builder vpcConfig(IResolvable vpcConfig)
CfnProjectProps.getVpcConfig()vpcConfig - `VpcConfig` specifies 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 .this@Stability(value=Stable) public CfnProjectProps build()
build in interface software.amazon.jsii.Builder<CfnProjectProps>CfnProjectPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.