Class CfnProjectMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProjectMixinProps>
- Enclosing interface:
CfnProjectMixinProps
CfnProjectMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifacts(CfnProjectPropsMixin.ArtifactsProperty artifacts) Sets the value ofCfnProjectMixinProps.getArtifacts()artifacts(IResolvable artifacts) Sets the value ofCfnProjectMixinProps.getArtifacts()autoRetryLimit(Number autoRetryLimit) Sets the value ofCfnProjectMixinProps.getAutoRetryLimit()badgeEnabled(Boolean badgeEnabled) Sets the value ofCfnProjectMixinProps.getBadgeEnabled()badgeEnabled(IResolvable badgeEnabled) Sets the value ofCfnProjectMixinProps.getBadgeEnabled()build()Builds the configured instance.buildBatchConfig(CfnProjectPropsMixin.ProjectBuildBatchConfigProperty buildBatchConfig) Sets the value ofCfnProjectMixinProps.getBuildBatchConfig()buildBatchConfig(IResolvable buildBatchConfig) Sets the value ofCfnProjectMixinProps.getBuildBatchConfig()Sets the value ofCfnProjectMixinProps.getCache()cache(IResolvable cache) Sets the value ofCfnProjectMixinProps.getCache()concurrentBuildLimit(Number concurrentBuildLimit) Sets the value ofCfnProjectMixinProps.getConcurrentBuildLimit()description(String description) Sets the value ofCfnProjectMixinProps.getDescription()encryptionKey(String encryptionKey) Sets the value ofCfnProjectMixinProps.getEncryptionKey()environment(CfnProjectPropsMixin.EnvironmentProperty environment) Sets the value ofCfnProjectMixinProps.getEnvironment()environment(IResolvable environment) Sets the value ofCfnProjectMixinProps.getEnvironment()fileSystemLocations(List<? extends Object> fileSystemLocations) Sets the value ofCfnProjectMixinProps.getFileSystemLocations()fileSystemLocations(IResolvable fileSystemLocations) Sets the value ofCfnProjectMixinProps.getFileSystemLocations()logsConfig(CfnProjectPropsMixin.LogsConfigProperty logsConfig) Sets the value ofCfnProjectMixinProps.getLogsConfig()logsConfig(IResolvable logsConfig) Sets the value ofCfnProjectMixinProps.getLogsConfig()Sets the value ofCfnProjectMixinProps.getName()queuedTimeoutInMinutes(Number queuedTimeoutInMinutes) Sets the value ofCfnProjectMixinProps.getQueuedTimeoutInMinutes()resourceAccessRole(String resourceAccessRole) Sets the value ofCfnProjectMixinProps.getResourceAccessRole()secondaryArtifacts(List<? extends Object> secondaryArtifacts) Sets the value ofCfnProjectMixinProps.getSecondaryArtifacts()secondaryArtifacts(IResolvable secondaryArtifacts) Sets the value ofCfnProjectMixinProps.getSecondaryArtifacts()secondarySources(List<? extends Object> secondarySources) Sets the value ofCfnProjectMixinProps.getSecondarySources()secondarySources(IResolvable secondarySources) Sets the value ofCfnProjectMixinProps.getSecondarySources()secondarySourceVersions(List<? extends Object> secondarySourceVersions) Sets the value ofCfnProjectMixinProps.getSecondarySourceVersions()secondarySourceVersions(IResolvable secondarySourceVersions) Sets the value ofCfnProjectMixinProps.getSecondarySourceVersions()serviceRole(String serviceRole) Sets the value ofCfnProjectMixinProps.getServiceRole()Sets the value ofCfnProjectMixinProps.getSource()source(IResolvable source) Sets the value ofCfnProjectMixinProps.getSource()sourceVersion(String sourceVersion) Sets the value ofCfnProjectMixinProps.getSourceVersion()Sets the value ofCfnProjectMixinProps.getTags()timeoutInMinutes(Number timeoutInMinutes) Sets the value ofCfnProjectMixinProps.getTimeoutInMinutes()Sets the value ofCfnProjectMixinProps.getTriggers()triggers(IResolvable triggers) Sets the value ofCfnProjectMixinProps.getTriggers()visibility(String visibility) Sets the value ofCfnProjectMixinProps.getVisibility()vpcConfig(CfnProjectPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnProjectMixinProps.getVpcConfig()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnProjectMixinProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
artifacts
Sets the value ofCfnProjectMixinProps.getArtifacts()- Parameters:
artifacts-Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.- Returns:
this
-
artifacts
@Stability(Stable) public CfnProjectMixinProps.Builder artifacts(CfnProjectPropsMixin.ArtifactsProperty artifacts) Sets the value ofCfnProjectMixinProps.getArtifacts()- Parameters:
artifacts-Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.- Returns:
this
-
autoRetryLimit
Sets the value ofCfnProjectMixinProps.getAutoRetryLimit()- Parameters:
autoRetryLimit- the value to be set.- Returns:
this
-
badgeEnabled
Sets the value ofCfnProjectMixinProps.getBadgeEnabled()- Parameters:
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.- Returns:
this
-
badgeEnabled
Sets the value ofCfnProjectMixinProps.getBadgeEnabled()- Parameters:
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.- Returns:
this
-
buildBatchConfig
@Stability(Stable) public CfnProjectMixinProps.Builder buildBatchConfig(IResolvable buildBatchConfig) Sets the value ofCfnProjectMixinProps.getBuildBatchConfig()- Parameters:
buildBatchConfig- AProjectBuildBatchConfigobject that defines the batch build options for the project.- Returns:
this
-
buildBatchConfig
@Stability(Stable) public CfnProjectMixinProps.Builder buildBatchConfig(CfnProjectPropsMixin.ProjectBuildBatchConfigProperty buildBatchConfig) Sets the value ofCfnProjectMixinProps.getBuildBatchConfig()- Parameters:
buildBatchConfig- AProjectBuildBatchConfigobject that defines the batch build options for the project.- Returns:
this
-
cache
Sets the value ofCfnProjectMixinProps.getCache()- Parameters:
cache- Settings that AWS CodeBuild uses to store and reuse build dependencies.- Returns:
this
-
cache
@Stability(Stable) public CfnProjectMixinProps.Builder cache(CfnProjectPropsMixin.ProjectCacheProperty cache) Sets the value ofCfnProjectMixinProps.getCache()- Parameters:
cache- Settings that AWS CodeBuild uses to store and reuse build dependencies.- Returns:
this
-
concurrentBuildLimit
@Stability(Stable) public CfnProjectMixinProps.Builder concurrentBuildLimit(Number concurrentBuildLimit) Sets the value ofCfnProjectMixinProps.getConcurrentBuildLimit()- Parameters:
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.- Returns:
this
-
description
Sets the value ofCfnProjectMixinProps.getDescription()- Parameters:
description- A description that makes the build project easy to identify.- Returns:
this
-
encryptionKey
Sets the value ofCfnProjectMixinProps.getEncryptionKey()- Parameters:
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).- Returns:
this
-
environment
Sets the value ofCfnProjectMixinProps.getEnvironment()- Parameters:
environment- The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.- Returns:
this
-
environment
@Stability(Stable) public CfnProjectMixinProps.Builder environment(CfnProjectPropsMixin.EnvironmentProperty environment) Sets the value ofCfnProjectMixinProps.getEnvironment()- Parameters:
environment- The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.- Returns:
this
-
fileSystemLocations
@Stability(Stable) public CfnProjectMixinProps.Builder fileSystemLocations(IResolvable fileSystemLocations) Sets the value ofCfnProjectMixinProps.getFileSystemLocations()- Parameters:
fileSystemLocations- An array ofProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Returns:
this
-
fileSystemLocations
@Stability(Stable) public CfnProjectMixinProps.Builder fileSystemLocations(List<? extends Object> fileSystemLocations) Sets the value ofCfnProjectMixinProps.getFileSystemLocations()- Parameters:
fileSystemLocations- An array ofProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Returns:
this
-
logsConfig
Sets the value ofCfnProjectMixinProps.getLogsConfig()- Parameters:
logsConfig- Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.- Returns:
this
-
logsConfig
@Stability(Stable) public CfnProjectMixinProps.Builder logsConfig(CfnProjectPropsMixin.LogsConfigProperty logsConfig) Sets the value ofCfnProjectMixinProps.getLogsConfig()- Parameters:
logsConfig- Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.- Returns:
this
-
name
Sets the value ofCfnProjectMixinProps.getName()- Parameters:
name- The name of the build project. The name must be unique across all of the projects in your AWS account .- Returns:
this
-
queuedTimeoutInMinutes
@Stability(Stable) public CfnProjectMixinProps.Builder queuedTimeoutInMinutes(Number queuedTimeoutInMinutes) Sets the value ofCfnProjectMixinProps.getQueuedTimeoutInMinutes()- Parameters:
queuedTimeoutInMinutes- The number of minutes a build is allowed to be queued before it times out.- Returns:
this
-
resourceAccessRole
@Stability(Stable) public CfnProjectMixinProps.Builder resourceAccessRole(String resourceAccessRole) Sets the value ofCfnProjectMixinProps.getResourceAccessRole()- Parameters:
resourceAccessRole- The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.- Returns:
this
-
secondaryArtifacts
@Stability(Stable) public CfnProjectMixinProps.Builder secondaryArtifacts(IResolvable secondaryArtifacts) Sets the value ofCfnProjectMixinProps.getSecondaryArtifacts()- Parameters:
secondaryArtifacts- A list ofArtifactsobjects. Each artifacts object specifies output settings that the project generates during a build.- Returns:
this
-
secondaryArtifacts
@Stability(Stable) public CfnProjectMixinProps.Builder secondaryArtifacts(List<? extends Object> secondaryArtifacts) Sets the value ofCfnProjectMixinProps.getSecondaryArtifacts()- Parameters:
secondaryArtifacts- A list ofArtifactsobjects. Each artifacts object specifies output settings that the project generates during a build.- Returns:
this
-
secondarySources
@Stability(Stable) public CfnProjectMixinProps.Builder secondarySources(IResolvable secondarySources) Sets the value ofCfnProjectMixinProps.getSecondarySources()- Parameters:
secondarySources- An array ofProjectSourceobjects.- Returns:
this
-
secondarySources
@Stability(Stable) public CfnProjectMixinProps.Builder secondarySources(List<? extends Object> secondarySources) Sets the value ofCfnProjectMixinProps.getSecondarySources()- Parameters:
secondarySources- An array ofProjectSourceobjects.- Returns:
this
-
secondarySourceVersions
@Stability(Stable) public CfnProjectMixinProps.Builder secondarySourceVersions(IResolvable secondarySourceVersions) Sets the value ofCfnProjectMixinProps.getSecondarySourceVersions()- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects. IfsecondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level).- Returns:
this
-
secondarySourceVersions
@Stability(Stable) public CfnProjectMixinProps.Builder secondarySourceVersions(List<? extends Object> secondarySourceVersions) Sets the value ofCfnProjectMixinProps.getSecondarySourceVersions()- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects. IfsecondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level).- Returns:
this
-
serviceRole
Sets the value ofCfnProjectMixinProps.getServiceRole()- Parameters:
serviceRole- The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.- Returns:
this
-
source
Sets the value ofCfnProjectMixinProps.getSource()- Parameters:
source- The source code settings for the project, such as the source code's repository type and location.- Returns:
this
-
source
@Stability(Stable) public CfnProjectMixinProps.Builder source(CfnProjectPropsMixin.SourceProperty source) Sets the value ofCfnProjectMixinProps.getSource()- Parameters:
source- The source code settings for the project, such as the source code's repository type and location.- Returns:
this
-
sourceVersion
Sets the value ofCfnProjectMixinProps.getSourceVersion()- Parameters:
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:- For CodeCommit: the commit ID, branch, or Git tag to use.
- For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID(for examplepr/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. - For GitLab: the commit ID, branch, or Git tag to use.
- For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. 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.
- For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
If
sourceVersionis specified at the build level, then that version takes precedence over thissourceVersion(at the project level).For more information, see Source Version Sample with CodeBuild in the AWS CodeBuild User Guide .
- Returns:
this
-
tags
Sets the value ofCfnProjectMixinProps.getTags()- Parameters:
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.- Returns:
this
-
timeoutInMinutes
Sets the value ofCfnProjectMixinProps.getTimeoutInMinutes()- Parameters:
timeoutInMinutes- How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.- Returns:
this
-
triggers
Sets the value ofCfnProjectMixinProps.getTriggers()- Parameters:
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.- Returns:
this
-
triggers
@Stability(Stable) public CfnProjectMixinProps.Builder triggers(CfnProjectPropsMixin.ProjectTriggersProperty triggers) Sets the value ofCfnProjectMixinProps.getTriggers()- Parameters:
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.- Returns:
this
-
visibility
Sets the value ofCfnProjectMixinProps.getVisibility()- Parameters:
visibility- Specifies the visibility of the project's builds. Possible values are:.- PUBLIC_READ - The project builds are visible to the public.
- PRIVATE - The project builds are not visible to the public.
- Returns:
this
-
vpcConfig
Sets the value ofCfnProjectMixinProps.getVpcConfig()- Parameters:
vpcConfig-VpcConfigspecifies 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 .- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnProjectMixinProps.Builder vpcConfig(CfnProjectPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnProjectMixinProps.getVpcConfig()- Parameters:
vpcConfig-VpcConfigspecifies 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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProjectMixinProps>- Returns:
- a new instance of
CfnProjectMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-