Class CfnProjectPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnProjectPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:57.236Z")
@Stability(Stable)
public class CfnProjectPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::CodeBuild::Project resource configures how AWS CodeBuild builds your source code.
For example, it tells CodeBuild where to get the source code and which build environment to use.
To unset or remove a project value via CFN, explicitly provide the attribute with value as empty input.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.codebuild.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnProjectPropsMixin cfnProjectPropsMixin = CfnProjectPropsMixin.Builder.create(CfnProjectMixinProps.builder()
.artifacts(ArtifactsProperty.builder()
.artifactIdentifier("artifactIdentifier")
.encryptionDisabled(false)
.location("location")
.name("name")
.namespaceType("namespaceType")
.overrideArtifactName(false)
.packaging("packaging")
.path("path")
.type("type")
.build())
.autoRetryLimit(123)
.badgeEnabled(false)
.buildBatchConfig(ProjectBuildBatchConfigProperty.builder()
.batchReportMode("batchReportMode")
.combineArtifacts(false)
.restrictions(BatchRestrictionsProperty.builder()
.computeTypesAllowed(List.of("computeTypesAllowed"))
.maximumBuildsAllowed(123)
.build())
.serviceRole("serviceRole")
.timeoutInMins(123)
.build())
.cache(ProjectCacheProperty.builder()
.cacheNamespace("cacheNamespace")
.location("location")
.modes(List.of("modes"))
.type("type")
.build())
.concurrentBuildLimit(123)
.description("description")
.encryptionKey("encryptionKey")
.environment(EnvironmentProperty.builder()
.certificate("certificate")
.computeType("computeType")
.dockerServer(DockerServerProperty.builder()
.computeType("computeType")
.securityGroupIds(List.of("securityGroupIds"))
.build())
.environmentVariables(List.of(EnvironmentVariableProperty.builder()
.name("name")
.type("type")
.value("value")
.build()))
.fleet(ProjectFleetProperty.builder()
.fleetArn("fleetArn")
.build())
.image("image")
.imagePullCredentialsType("imagePullCredentialsType")
.privilegedMode(false)
.registryCredential(RegistryCredentialProperty.builder()
.credential("credential")
.credentialProvider("credentialProvider")
.build())
.type("type")
.build())
.fileSystemLocations(List.of(ProjectFileSystemLocationProperty.builder()
.identifier("identifier")
.location("location")
.mountOptions("mountOptions")
.mountPoint("mountPoint")
.type("type")
.build()))
.logsConfig(LogsConfigProperty.builder()
.cloudWatchLogs(CloudWatchLogsConfigProperty.builder()
.groupName("groupName")
.status("status")
.streamName("streamName")
.build())
.s3Logs(S3LogsConfigProperty.builder()
.encryptionDisabled(false)
.location("location")
.status("status")
.build())
.build())
.name("name")
.queuedTimeoutInMinutes(123)
.resourceAccessRole("resourceAccessRole")
.secondaryArtifacts(List.of(ArtifactsProperty.builder()
.artifactIdentifier("artifactIdentifier")
.encryptionDisabled(false)
.location("location")
.name("name")
.namespaceType("namespaceType")
.overrideArtifactName(false)
.packaging("packaging")
.path("path")
.type("type")
.build()))
.secondarySources(List.of(SourceProperty.builder()
.auth(SourceAuthProperty.builder()
.resource("resource")
.type("type")
.build())
.buildSpec("buildSpec")
.buildStatusConfig(BuildStatusConfigProperty.builder()
.context("context")
.targetUrl("targetUrl")
.build())
.gitCloneDepth(123)
.gitSubmodulesConfig(GitSubmodulesConfigProperty.builder()
.fetchSubmodules(false)
.build())
.insecureSsl(false)
.location("location")
.reportBuildStatus(false)
.sourceIdentifier("sourceIdentifier")
.type("type")
.build()))
.secondarySourceVersions(List.of(ProjectSourceVersionProperty.builder()
.sourceIdentifier("sourceIdentifier")
.sourceVersion("sourceVersion")
.build()))
.serviceRole("serviceRole")
.source(SourceProperty.builder()
.auth(SourceAuthProperty.builder()
.resource("resource")
.type("type")
.build())
.buildSpec("buildSpec")
.buildStatusConfig(BuildStatusConfigProperty.builder()
.context("context")
.targetUrl("targetUrl")
.build())
.gitCloneDepth(123)
.gitSubmodulesConfig(GitSubmodulesConfigProperty.builder()
.fetchSubmodules(false)
.build())
.insecureSsl(false)
.location("location")
.reportBuildStatus(false)
.sourceIdentifier("sourceIdentifier")
.type("type")
.build())
.sourceVersion("sourceVersion")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeoutInMinutes(123)
.triggers(ProjectTriggersProperty.builder()
.buildType("buildType")
.filterGroups(List.of(List.of(WebhookFilterProperty.builder()
.excludeMatchedPattern(false)
.pattern("pattern")
.type("type")
.build())))
.pullRequestBuildPolicy(PullRequestBuildPolicyProperty.builder()
.approverRoles(List.of("approverRoles"))
.requiresCommentApproval("requiresCommentApproval")
.build())
.scopeConfiguration(ScopeConfigurationProperty.builder()
.domain("domain")
.name("name")
.scope("scope")
.build())
.webhook(false)
.build())
.visibility("visibility")
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.vpcId("vpcId")
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceArtifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.static interfaceSpecifies restrictions for the batch build.static final classA fluent builder forCfnProjectPropsMixin.static interfaceContains information that defines how the AWS CodeBuild build project reports the build status to the source provider.static interfaceCloudWatchLogsis a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build.static interfaceExample:static interfaceEnvironmentis a property of the AWS::CodeBuild::Project resource that specifies the environment for an AWS CodeBuild project.static interfaceEnvironmentVariableis a property of the AWS CodeBuild Project Environment property type that specifies the name and value of an environment variable for an AWS CodeBuild project environment.static interfaceGitSubmodulesConfigis a property of the AWS CodeBuild Project Source property type that specifies information about the Git submodules configuration for the build project.static interfaceLogsConfigis a property of the AWS CodeBuild Project resource that specifies information about logs for a build project.static interfaceContains configuration information about a batch build project.static interfaceProjectCacheis a property of the AWS CodeBuild Project resource that specifies information about the cache for the build project.static interfaceInformation about a file system created by Amazon Elastic File System (EFS).static interfaceInformation about the compute fleet of the build project.static interfaceA source identifier and its corresponding version.static interfaceProjectTriggersis a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.static interfaceExample:static interfaceRegistryCredentialis a property of the AWS CodeBuild Project Environment property type that specifies information about credentials that provide access to a private Docker registry.static interfaceS3Logsis a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for logs generated by an AWS CodeBuild build in an S3 bucket.static interfaceContains configuration information about the scope for a webhook.static interfaceSourceAuthis a property of the AWS CodeBuild Project Source property type that specifies authorization settings for AWS CodeBuild to access the source code to be built.static interfaceSourceis a property of the AWS::CodeBuild::Project resource that specifies the source code settings for the project, such as the source code's repository type and location.static interfaceVpcConfigis a property of the AWS::CodeBuild::Project resource that enable AWS CodeBuild to access resources in an Amazon VPC.static interfaceWebhookFilteris a structure of theFilterGroupsproperty on the AWS CodeBuild Project ProjectTriggers property type that specifies which webhooks trigger an AWS CodeBuild build.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::CodeBuild::Project.CfnProjectPropsMixin(CfnProjectMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CodeBuild::Project.protectedCfnProjectPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnProjectPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnProjectMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnProjectPropsMixin
protected CfnProjectPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnProjectPropsMixin
protected CfnProjectPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnProjectPropsMixin
@Stability(Stable) public CfnProjectPropsMixin(@NotNull CfnProjectMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CodeBuild::Project.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnProjectPropsMixin
Create a mixin to apply properties toAWS::CodeBuild::Project.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-