CfnProjectProps Struct
Properties for defining a CfnProject.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const cfnProjectProps: codebuild.CfnProjectProps = {
artifacts: {
type: 'type',
// the properties below are optional
artifactIdentifier: 'artifactIdentifier',
encryptionDisabled: false,
location: 'location',
name: 'name',
namespaceType: 'namespaceType',
overrideArtifactName: false,
packaging: 'packaging',
path: 'path',
},
environment: {
computeType: 'computeType',
image: 'image',
type: 'type',
// the properties below are optional
certificate: 'certificate',
dockerServer: {
computeType: 'computeType',
// the properties below are optional
securityGroupIds: ['securityGroupIds'],
},
environmentVariables: [{
name: 'name',
value: 'value',
// the properties below are optional
type: 'type',
}],
fleet: {
fleetArn: 'fleetArn',
},
hostKernel: 'hostKernel',
imagePullCredentialsType: 'imagePullCredentialsType',
privilegedMode: false,
registryCredential: {
credential: 'credential',
credentialProvider: 'credentialProvider',
},
},
serviceRole: 'serviceRole',
source: {
type: 'type',
// the properties below are optional
auth: {
type: 'type',
// the properties below are optional
resource: 'resource',
},
buildSpec: 'buildSpec',
buildStatusConfig: {
context: 'context',
targetUrl: 'targetUrl',
},
gitCloneDepth: 123,
gitSubmodulesConfig: {
fetchSubmodules: false,
},
insecureSsl: false,
location: 'location',
reportBuildStatus: false,
sourceIdentifier: 'sourceIdentifier',
},
// the properties below are optional
autoRetryLimit: 123,
badgeEnabled: false,
buildBatchConfig: {
batchReportMode: 'batchReportMode',
combineArtifacts: false,
restrictions: {
computeTypesAllowed: ['computeTypesAllowed'],
fleetsAllowed: ['fleetsAllowed'],
maximumBuildsAllowed: 123,
},
serviceRole: 'serviceRole',
timeoutInMins: 123,
},
cache: {
type: 'type',
// the properties below are optional
cacheNamespace: 'cacheNamespace',
location: 'location',
modes: ['modes'],
},
concurrentBuildLimit: 123,
description: 'description',
encryptionKey: 'encryptionKey',
fileSystemLocations: [{
identifier: 'identifier',
location: 'location',
mountPoint: 'mountPoint',
type: 'type',
// the properties below are optional
mountOptions: 'mountOptions',
}],
logsConfig: {
cloudWatchLogs: {
status: 'status',
// the properties below are optional
groupName: 'groupName',
streamName: 'streamName',
},
s3Logs: {
status: 'status',
// the properties below are optional
encryptionDisabled: false,
location: 'location',
},
},
name: 'name',
queuedTimeoutInMinutes: 123,
resourceAccessRole: 'resourceAccessRole',
secondaryArtifacts: [{
type: 'type',
// the properties below are optional
artifactIdentifier: 'artifactIdentifier',
encryptionDisabled: false,
location: 'location',
name: 'name',
namespaceType: 'namespaceType',
overrideArtifactName: false,
packaging: 'packaging',
path: 'path',
}],
secondarySources: [{
type: 'type',
// the properties below are optional
auth: {
type: 'type',
// the properties below are optional
resource: 'resource',
},
buildSpec: 'buildSpec',
buildStatusConfig: {
context: 'context',
targetUrl: 'targetUrl',
},
gitCloneDepth: 123,
gitSubmodulesConfig: {
fetchSubmodules: false,
},
insecureSsl: false,
location: 'location',
reportBuildStatus: false,
sourceIdentifier: 'sourceIdentifier',
}],
secondarySourceVersions: [{
sourceIdentifier: 'sourceIdentifier',
// the properties below are optional
sourceVersion: 'sourceVersion',
}],
sourceVersion: 'sourceVersion',
tags: [{
key: 'key',
value: 'value',
}],
timeoutInMinutes: 123,
triggers: {
buildType: 'buildType',
filterGroups: [[{
pattern: 'pattern',
type: 'type',
// the properties below are optional
excludeMatchedPattern: false,
}]],
pullRequestBuildPolicy: {
requiresCommentApproval: 'requiresCommentApproval',
// the properties below are optional
approverRoles: ['approverRoles'],
},
scopeConfiguration: {
name: 'name',
// the properties below are optional
domain: 'domain',
scope: 'scope',
},
webhook: false,
},
visibility: 'visibility',
vpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
vpcId: 'vpcId',
},
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
cfn_project_props = codebuild.CfnProjectProps(
artifacts=codebuild.CfnProject.ArtifactsProperty(
type="type",
# the properties below are optional
artifact_identifier="artifactIdentifier",
encryption_disabled=False,
location="location",
name="name",
namespace_type="namespaceType",
override_artifact_name=False,
packaging="packaging",
path="path"
),
environment=codebuild.CfnProject.EnvironmentProperty(
compute_type="computeType",
image="image",
type="type",
# the properties below are optional
certificate="certificate",
docker_server=codebuild.CfnProject.DockerServerProperty(
compute_type="computeType",
# the properties below are optional
security_group_ids=["securityGroupIds"]
),
environment_variables=[codebuild.CfnProject.EnvironmentVariableProperty(
name="name",
value="value",
# the properties below are optional
type="type"
)],
fleet=codebuild.CfnProject.ProjectFleetProperty(
fleet_arn="fleetArn"
),
host_kernel="hostKernel",
image_pull_credentials_type="imagePullCredentialsType",
privileged_mode=False,
registry_credential=codebuild.CfnProject.RegistryCredentialProperty(
credential="credential",
credential_provider="credentialProvider"
)
),
service_role="serviceRole",
source=codebuild.CfnProject.SourceProperty(
type="type",
# the properties below are optional
auth=codebuild.CfnProject.SourceAuthProperty(
type="type",
# the properties below are optional
resource="resource"
),
build_spec="buildSpec",
build_status_config=codebuild.CfnProject.BuildStatusConfigProperty(
context="context",
target_url="targetUrl"
),
git_clone_depth=123,
git_submodules_config=codebuild.CfnProject.GitSubmodulesConfigProperty(
fetch_submodules=False
),
insecure_ssl=False,
location="location",
report_build_status=False,
source_identifier="sourceIdentifier"
),
# the properties below are optional
auto_retry_limit=123,
badge_enabled=False,
build_batch_config=codebuild.CfnProject.ProjectBuildBatchConfigProperty(
batch_report_mode="batchReportMode",
combine_artifacts=False,
restrictions=codebuild.CfnProject.BatchRestrictionsProperty(
compute_types_allowed=["computeTypesAllowed"],
fleets_allowed=["fleetsAllowed"],
maximum_builds_allowed=123
),
service_role="serviceRole",
timeout_in_mins=123
),
cache=codebuild.CfnProject.ProjectCacheProperty(
type="type",
# the properties below are optional
cache_namespace="cacheNamespace",
location="location",
modes=["modes"]
),
concurrent_build_limit=123,
description="description",
encryption_key="encryptionKey",
file_system_locations=[codebuild.CfnProject.ProjectFileSystemLocationProperty(
identifier="identifier",
location="location",
mount_point="mountPoint",
type="type",
# the properties below are optional
mount_options="mountOptions"
)],
logs_config=codebuild.CfnProject.LogsConfigProperty(
cloud_watch_logs=codebuild.CfnProject.CloudWatchLogsConfigProperty(
status="status",
# the properties below are optional
group_name="groupName",
stream_name="streamName"
),
s3_logs=codebuild.CfnProject.S3LogsConfigProperty(
status="status",
# the properties below are optional
encryption_disabled=False,
location="location"
)
),
name="name",
queued_timeout_in_minutes=123,
resource_access_role="resourceAccessRole",
secondary_artifacts=[codebuild.CfnProject.ArtifactsProperty(
type="type",
# the properties below are optional
artifact_identifier="artifactIdentifier",
encryption_disabled=False,
location="location",
name="name",
namespace_type="namespaceType",
override_artifact_name=False,
packaging="packaging",
path="path"
)],
secondary_sources=[codebuild.CfnProject.SourceProperty(
type="type",
# the properties below are optional
auth=codebuild.CfnProject.SourceAuthProperty(
type="type",
# the properties below are optional
resource="resource"
),
build_spec="buildSpec",
build_status_config=codebuild.CfnProject.BuildStatusConfigProperty(
context="context",
target_url="targetUrl"
),
git_clone_depth=123,
git_submodules_config=codebuild.CfnProject.GitSubmodulesConfigProperty(
fetch_submodules=False
),
insecure_ssl=False,
location="location",
report_build_status=False,
source_identifier="sourceIdentifier"
)],
secondary_source_versions=[codebuild.CfnProject.ProjectSourceVersionProperty(
source_identifier="sourceIdentifier",
# the properties below are optional
source_version="sourceVersion"
)],
source_version="sourceVersion",
tags=[CfnTag(
key="key",
value="value"
)],
timeout_in_minutes=123,
triggers=codebuild.CfnProject.ProjectTriggersProperty(
build_type="buildType",
filter_groups=[[codebuild.CfnProject.WebhookFilterProperty(
pattern="pattern",
type="type",
# the properties below are optional
exclude_matched_pattern=False
)]],
pull_request_build_policy=codebuild.CfnProject.PullRequestBuildPolicyProperty(
requires_comment_approval="requiresCommentApproval",
# the properties below are optional
approver_roles=["approverRoles"]
),
scope_configuration=codebuild.CfnProject.ScopeConfigurationProperty(
name="name",
# the properties below are optional
domain="domain",
scope="scope"
),
webhook=False
),
visibility="visibility",
vpc_config=codebuild.CfnProject.VpcConfigProperty(
security_group_ids=["securityGroupIds"],
subnets=["subnets"],
vpc_id="vpcId"
)
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
CfnProjectProps cfnProjectProps = CfnProjectProps.builder()
.artifacts(ArtifactsProperty.builder()
.type("type")
// the properties below are optional
.artifactIdentifier("artifactIdentifier")
.encryptionDisabled(false)
.location("location")
.name("name")
.namespaceType("namespaceType")
.overrideArtifactName(false)
.packaging("packaging")
.path("path")
.build())
.environment(EnvironmentProperty.builder()
.computeType("computeType")
.image("image")
.type("type")
// the properties below are optional
.certificate("certificate")
.dockerServer(DockerServerProperty.builder()
.computeType("computeType")
// the properties below are optional
.securityGroupIds(List.of("securityGroupIds"))
.build())
.environmentVariables(List.of(EnvironmentVariableProperty.builder()
.name("name")
.value("value")
// the properties below are optional
.type("type")
.build()))
.fleet(ProjectFleetProperty.builder()
.fleetArn("fleetArn")
.build())
.hostKernel("hostKernel")
.imagePullCredentialsType("imagePullCredentialsType")
.privilegedMode(false)
.registryCredential(RegistryCredentialProperty.builder()
.credential("credential")
.credentialProvider("credentialProvider")
.build())
.build())
.serviceRole("serviceRole")
.source(SourceProperty.builder()
.type("type")
// the properties below are optional
.auth(SourceAuthProperty.builder()
.type("type")
// the properties below are optional
.resource("resource")
.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")
.build())
// the properties below are optional
.autoRetryLimit(123)
.badgeEnabled(false)
.buildBatchConfig(ProjectBuildBatchConfigProperty.builder()
.batchReportMode("batchReportMode")
.combineArtifacts(false)
.restrictions(BatchRestrictionsProperty.builder()
.computeTypesAllowed(List.of("computeTypesAllowed"))
.fleetsAllowed(List.of("fleetsAllowed"))
.maximumBuildsAllowed(123)
.build())
.serviceRole("serviceRole")
.timeoutInMins(123)
.build())
.cache(ProjectCacheProperty.builder()
.type("type")
// the properties below are optional
.cacheNamespace("cacheNamespace")
.location("location")
.modes(List.of("modes"))
.build())
.concurrentBuildLimit(123)
.description("description")
.encryptionKey("encryptionKey")
.fileSystemLocations(List.of(ProjectFileSystemLocationProperty.builder()
.identifier("identifier")
.location("location")
.mountPoint("mountPoint")
.type("type")
// the properties below are optional
.mountOptions("mountOptions")
.build()))
.logsConfig(LogsConfigProperty.builder()
.cloudWatchLogs(CloudWatchLogsConfigProperty.builder()
.status("status")
// the properties below are optional
.groupName("groupName")
.streamName("streamName")
.build())
.s3Logs(S3LogsConfigProperty.builder()
.status("status")
// the properties below are optional
.encryptionDisabled(false)
.location("location")
.build())
.build())
.name("name")
.queuedTimeoutInMinutes(123)
.resourceAccessRole("resourceAccessRole")
.secondaryArtifacts(List.of(ArtifactsProperty.builder()
.type("type")
// the properties below are optional
.artifactIdentifier("artifactIdentifier")
.encryptionDisabled(false)
.location("location")
.name("name")
.namespaceType("namespaceType")
.overrideArtifactName(false)
.packaging("packaging")
.path("path")
.build()))
.secondarySources(List.of(SourceProperty.builder()
.type("type")
// the properties below are optional
.auth(SourceAuthProperty.builder()
.type("type")
// the properties below are optional
.resource("resource")
.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")
.build()))
.secondarySourceVersions(List.of(ProjectSourceVersionProperty.builder()
.sourceIdentifier("sourceIdentifier")
// the properties below are optional
.sourceVersion("sourceVersion")
.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()
.pattern("pattern")
.type("type")
// the properties below are optional
.excludeMatchedPattern(false)
.build())))
.pullRequestBuildPolicy(PullRequestBuildPolicyProperty.builder()
.requiresCommentApproval("requiresCommentApproval")
// the properties below are optional
.approverRoles(List.of("approverRoles"))
.build())
.scopeConfiguration(ScopeConfigurationProperty.builder()
.name("name")
// the properties below are optional
.domain("domain")
.scope("scope")
.build())
.webhook(false)
.build())
.visibility("visibility")
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.vpcId("vpcId")
.build())
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var cfnProjectProps = new CfnProjectProps {
Artifacts = new ArtifactsProperty {
Type = "type",
// the properties below are optional
ArtifactIdentifier = "artifactIdentifier",
EncryptionDisabled = false,
Location = "location",
Name = "name",
NamespaceType = "namespaceType",
OverrideArtifactName = false,
Packaging = "packaging",
Path = "path"
},
Environment = new EnvironmentProperty {
ComputeType = "computeType",
Image = "image",
Type = "type",
// the properties below are optional
Certificate = "certificate",
DockerServer = new DockerServerProperty {
ComputeType = "computeType",
// the properties below are optional
SecurityGroupIds = new [] { "securityGroupIds" }
},
EnvironmentVariables = new [] { new EnvironmentVariableProperty {
Name = "name",
Value = "value",
// the properties below are optional
Type = "type"
} },
Fleet = new ProjectFleetProperty {
FleetArn = "fleetArn"
},
HostKernel = "hostKernel",
ImagePullCredentialsType = "imagePullCredentialsType",
PrivilegedMode = false,
RegistryCredential = new RegistryCredentialProperty {
Credential = "credential",
CredentialProvider = "credentialProvider"
}
},
ServiceRole = "serviceRole",
Source = new SourceProperty {
Type = "type",
// the properties below are optional
Auth = new SourceAuthProperty {
Type = "type",
// the properties below are optional
Resource = "resource"
},
BuildSpec = "buildSpec",
BuildStatusConfig = new BuildStatusConfigProperty {
Context = "context",
TargetUrl = "targetUrl"
},
GitCloneDepth = 123,
GitSubmodulesConfig = new GitSubmodulesConfigProperty {
FetchSubmodules = false
},
InsecureSsl = false,
Location = "location",
ReportBuildStatus = false,
SourceIdentifier = "sourceIdentifier"
},
// the properties below are optional
AutoRetryLimit = 123,
BadgeEnabled = false,
BuildBatchConfig = new ProjectBuildBatchConfigProperty {
BatchReportMode = "batchReportMode",
CombineArtifacts = false,
Restrictions = new BatchRestrictionsProperty {
ComputeTypesAllowed = new [] { "computeTypesAllowed" },
FleetsAllowed = new [] { "fleetsAllowed" },
MaximumBuildsAllowed = 123
},
ServiceRole = "serviceRole",
TimeoutInMins = 123
},
Cache = new ProjectCacheProperty {
Type = "type",
// the properties below are optional
CacheNamespace = "cacheNamespace",
Location = "location",
Modes = new [] { "modes" }
},
ConcurrentBuildLimit = 123,
Description = "description",
EncryptionKey = "encryptionKey",
FileSystemLocations = new [] { new ProjectFileSystemLocationProperty {
Identifier = "identifier",
Location = "location",
MountPoint = "mountPoint",
Type = "type",
// the properties below are optional
MountOptions = "mountOptions"
} },
LogsConfig = new LogsConfigProperty {
CloudWatchLogs = new CloudWatchLogsConfigProperty {
Status = "status",
// the properties below are optional
GroupName = "groupName",
StreamName = "streamName"
},
S3Logs = new S3LogsConfigProperty {
Status = "status",
// the properties below are optional
EncryptionDisabled = false,
Location = "location"
}
},
Name = "name",
QueuedTimeoutInMinutes = 123,
ResourceAccessRole = "resourceAccessRole",
SecondaryArtifacts = new [] { new ArtifactsProperty {
Type = "type",
// the properties below are optional
ArtifactIdentifier = "artifactIdentifier",
EncryptionDisabled = false,
Location = "location",
Name = "name",
NamespaceType = "namespaceType",
OverrideArtifactName = false,
Packaging = "packaging",
Path = "path"
} },
SecondarySources = new [] { new SourceProperty {
Type = "type",
// the properties below are optional
Auth = new SourceAuthProperty {
Type = "type",
// the properties below are optional
Resource = "resource"
},
BuildSpec = "buildSpec",
BuildStatusConfig = new BuildStatusConfigProperty {
Context = "context",
TargetUrl = "targetUrl"
},
GitCloneDepth = 123,
GitSubmodulesConfig = new GitSubmodulesConfigProperty {
FetchSubmodules = false
},
InsecureSsl = false,
Location = "location",
ReportBuildStatus = false,
SourceIdentifier = "sourceIdentifier"
} },
SecondarySourceVersions = new [] { new ProjectSourceVersionProperty {
SourceIdentifier = "sourceIdentifier",
// the properties below are optional
SourceVersion = "sourceVersion"
} },
SourceVersion = "sourceVersion",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TimeoutInMinutes = 123,
Triggers = new ProjectTriggersProperty {
BuildType = "buildType",
FilterGroups = new [] { new [] { new WebhookFilterProperty {
Pattern = "pattern",
Type = "type",
// the properties below are optional
ExcludeMatchedPattern = false
} } },
PullRequestBuildPolicy = new PullRequestBuildPolicyProperty {
RequiresCommentApproval = "requiresCommentApproval",
// the properties below are optional
ApproverRoles = new [] { "approverRoles" }
},
ScopeConfiguration = new ScopeConfigurationProperty {
Name = "name",
// the properties below are optional
Domain = "domain",
Scope = "scope"
},
Webhook = false
},
Visibility = "visibility",
VpcConfig = new VpcConfigProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
Subnets = new [] { "subnets" },
VpcId = "vpcId"
}
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnProjectProps := &CfnProjectProps{
Artifacts: &ArtifactsProperty{
Type: jsii.String("type"),
// the properties below are optional
ArtifactIdentifier: jsii.String("artifactIdentifier"),
EncryptionDisabled: jsii.Boolean(false),
Location: jsii.String("location"),
Name: jsii.String("name"),
NamespaceType: jsii.String("namespaceType"),
OverrideArtifactName: jsii.Boolean(false),
Packaging: jsii.String("packaging"),
Path: jsii.String("path"),
},
Environment: &EnvironmentProperty{
ComputeType: jsii.String("computeType"),
Image: jsii.String("image"),
Type: jsii.String("type"),
// the properties below are optional
Certificate: jsii.String("certificate"),
DockerServer: &DockerServerProperty{
ComputeType: jsii.String("computeType"),
// the properties below are optional
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
},
EnvironmentVariables: []interface{}{
&EnvironmentVariableProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
// the properties below are optional
Type: jsii.String("type"),
},
},
Fleet: &ProjectFleetProperty{
FleetArn: jsii.String("fleetArn"),
},
HostKernel: jsii.String("hostKernel"),
ImagePullCredentialsType: jsii.String("imagePullCredentialsType"),
PrivilegedMode: jsii.Boolean(false),
RegistryCredential: &RegistryCredentialProperty{
Credential: jsii.String("credential"),
CredentialProvider: jsii.String("credentialProvider"),
},
},
ServiceRole: jsii.String("serviceRole"),
Source: &SourceProperty{
Type: jsii.String("type"),
// the properties below are optional
Auth: &SourceAuthProperty{
Type: jsii.String("type"),
// the properties below are optional
Resource: jsii.String("resource"),
},
BuildSpec: jsii.String("buildSpec"),
BuildStatusConfig: &BuildStatusConfigProperty{
Context: jsii.String("context"),
TargetUrl: jsii.String("targetUrl"),
},
GitCloneDepth: jsii.Number(123),
GitSubmodulesConfig: &GitSubmodulesConfigProperty{
FetchSubmodules: jsii.Boolean(false),
},
InsecureSsl: jsii.Boolean(false),
Location: jsii.String("location"),
ReportBuildStatus: jsii.Boolean(false),
SourceIdentifier: jsii.String("sourceIdentifier"),
},
// the properties below are optional
AutoRetryLimit: jsii.Number(123),
BadgeEnabled: jsii.Boolean(false),
BuildBatchConfig: &ProjectBuildBatchConfigProperty{
BatchReportMode: jsii.String("batchReportMode"),
CombineArtifacts: jsii.Boolean(false),
Restrictions: &BatchRestrictionsProperty{
ComputeTypesAllowed: []*string{
jsii.String("computeTypesAllowed"),
},
FleetsAllowed: []*string{
jsii.String("fleetsAllowed"),
},
MaximumBuildsAllowed: jsii.Number(123),
},
ServiceRole: jsii.String("serviceRole"),
TimeoutInMins: jsii.Number(123),
},
Cache: &ProjectCacheProperty{
Type: jsii.String("type"),
// the properties below are optional
CacheNamespace: jsii.String("cacheNamespace"),
Location: jsii.String("location"),
Modes: []*string{
jsii.String("modes"),
},
},
ConcurrentBuildLimit: jsii.Number(123),
Description: jsii.String("description"),
EncryptionKey: jsii.String("encryptionKey"),
FileSystemLocations: []interface{}{
&ProjectFileSystemLocationProperty{
Identifier: jsii.String("identifier"),
Location: jsii.String("location"),
MountPoint: jsii.String("mountPoint"),
Type: jsii.String("type"),
// the properties below are optional
MountOptions: jsii.String("mountOptions"),
},
},
LogsConfig: &LogsConfigProperty{
CloudWatchLogs: &CloudWatchLogsConfigProperty{
Status: jsii.String("status"),
// the properties below are optional
GroupName: jsii.String("groupName"),
StreamName: jsii.String("streamName"),
},
S3Logs: &S3LogsConfigProperty{
Status: jsii.String("status"),
// the properties below are optional
EncryptionDisabled: jsii.Boolean(false),
Location: jsii.String("location"),
},
},
Name: jsii.String("name"),
QueuedTimeoutInMinutes: jsii.Number(123),
ResourceAccessRole: jsii.String("resourceAccessRole"),
SecondaryArtifacts: []interface{}{
&ArtifactsProperty{
Type: jsii.String("type"),
// the properties below are optional
ArtifactIdentifier: jsii.String("artifactIdentifier"),
EncryptionDisabled: jsii.Boolean(false),
Location: jsii.String("location"),
Name: jsii.String("name"),
NamespaceType: jsii.String("namespaceType"),
OverrideArtifactName: jsii.Boolean(false),
Packaging: jsii.String("packaging"),
Path: jsii.String("path"),
},
},
SecondarySources: []interface{}{
&SourceProperty{
Type: jsii.String("type"),
// the properties below are optional
Auth: &SourceAuthProperty{
Type: jsii.String("type"),
// the properties below are optional
Resource: jsii.String("resource"),
},
BuildSpec: jsii.String("buildSpec"),
BuildStatusConfig: &BuildStatusConfigProperty{
Context: jsii.String("context"),
TargetUrl: jsii.String("targetUrl"),
},
GitCloneDepth: jsii.Number(123),
GitSubmodulesConfig: &GitSubmodulesConfigProperty{
FetchSubmodules: jsii.Boolean(false),
},
InsecureSsl: jsii.Boolean(false),
Location: jsii.String("location"),
ReportBuildStatus: jsii.Boolean(false),
SourceIdentifier: jsii.String("sourceIdentifier"),
},
},
SecondarySourceVersions: []interface{}{
&ProjectSourceVersionProperty{
SourceIdentifier: jsii.String("sourceIdentifier"),
// the properties below are optional
SourceVersion: jsii.String("sourceVersion"),
},
},
SourceVersion: jsii.String("sourceVersion"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
TimeoutInMinutes: jsii.Number(123),
Triggers: &ProjectTriggersProperty{
BuildType: jsii.String("buildType"),
FilterGroups: []interface{}{
[]interface{}{
&WebhookFilterProperty{
Pattern: jsii.String("pattern"),
Type: jsii.String("type"),
// the properties below are optional
ExcludeMatchedPattern: jsii.Boolean(false),
},
},
},
PullRequestBuildPolicy: &PullRequestBuildPolicyProperty{
RequiresCommentApproval: jsii.String("requiresCommentApproval"),
// the properties below are optional
ApproverRoles: []*string{
jsii.String("approverRoles"),
},
},
ScopeConfiguration: &ScopeConfigurationProperty{
Name: jsii.String("name"),
// the properties below are optional
Domain: jsii.String("domain"),
Scope: jsii.String("scope"),
},
Webhook: jsii.Boolean(false),
},
Visibility: jsii.String("visibility"),
VpcConfig: &VpcConfigProperty{
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Subnets: []*string{
jsii.String("subnets"),
},
VpcId: jsii.String("vpcId"),
},
}
Properties
artifactsIResolvable | CfnProject.ArtifactsPropertyartifactstyping.Union[IResolvable, ArtifactsProperty]artifactsIResolvableArtifactsIResolvableArtifactsinterface{} required #autoRetryLimitoptionalnumberauto_retry_limitoptionalint | floatautoRetryLimitoptionalNumberAutoRetryLimitoptionaldoubleAutoRetryLimitoptional*float64 #badgeEnabledoptionalboolean | IResolvablebadge_enabledoptionaltyping.Union[bool, IResolvable]badgeEnabledoptionalBooleanBadgeEnabledoptionalboolBadgeEnabledoptionalinterface{} #notes
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.
buildBatchConfigoptionalIResolvable | CfnProject.build_batch_configoptionaltyping.Union[IResolvable, ProjectBuildBatchConfigProperty]buildBatchConfigoptionalIResolvableBuildBatchConfigoptionalIResolvableBuildBatchConfigoptionalinterface{} #cacheoptionalIResolvable | CfnProject.ProjectCachePropertycacheoptionaltyping.Union[IResolvable, ProjectCacheProperty]cacheoptionalIResolvableCacheoptionalIResolvableCacheoptionalinterface{} #concurrentBuildLimitoptionalnumberconcurrent_build_limitoptionalint | floatconcurrentBuildLimitoptionalNumberConcurrentBuildLimitoptionaldoubleConcurrentBuildLimitoptional*float64 #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.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #encryptionKeyoptionalstringencryption_keyoptionalstrencryptionKeyoptionalStringEncryptionKeyoptionalstringEncryptionKeyoptional*string #notes
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).
environmentIResolvable | CfnProject.EnvironmentPropertyenvironmenttyping.Union[IResolvable, EnvironmentProperty]environmentIResolvableEnvironmentIResolvableEnvironmentinterface{} required #fileSystemLocationsoptionalIResolvable | IResolvable | CfnProject.file_system_locationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ProjectFileSystemLocationProperty]]]fileSystemLocationsoptionalIResolvableFileSystemLocationsoptionalIResolvableFileSystemLocationsoptionalinterface{} #A ProjectFileSystemLocation object specifies the identifier , location , mountOptions , mountPoint , and type of a file system created using Amazon Elastic File System.
logsConfigoptionalIResolvable | CfnProject.LogsConfigPropertylogs_configoptionaltyping.Union[IResolvable, LogsConfigProperty]logsConfigoptionalIResolvableLogsConfigoptionalIResolvableLogsConfigoptionalinterface{} #A project can create logs in CloudWatch Logs, an S3 bucket, or both.
The name must be unique across all of the projects in your AWS account .
queuedTimeoutInMinutesoptionalnumberqueued_timeout_in_minutesoptionalint | floatqueuedTimeoutInMinutesoptionalNumberQueuedTimeoutInMinutesoptionaldoubleQueuedTimeoutInMinutesoptional*float64 #resourceAccessRoleoptionalstringresource_access_roleoptionalstrresourceAccessRoleoptionalStringResourceAccessRoleoptionalstringResourceAccessRoleoptional*string #secondaryArtifactsoptionalIResolvable | IResolvable | CfnProject.ArtifactsProperty[]secondary_artifactsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ArtifactsProperty]]]secondaryArtifactsoptionalIResolvableSecondaryArtifactsoptionalIResolvableSecondaryArtifactsoptionalinterface{} #Each artifacts object specifies output settings that the project generates during a build.
secondarySourcesoptionalIResolvable | IResolvable | CfnProject.SourceProperty[]secondary_sourcesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SourceProperty]]]secondarySourcesoptionalIResolvableSecondarySourcesoptionalIResolvableSecondarySourcesoptionalinterface{} #secondarySourceVersionsoptionalIResolvable | IResolvable | CfnProject.secondary_source_versionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ProjectSourceVersionProperty]]]secondarySourceVersionsoptionalIResolvableSecondarySourceVersionsoptionalIResolvableSecondarySourceVersionsoptionalinterface{} #If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).
sourceIResolvable | CfnProject.SourcePropertysourcetyping.Union[IResolvable, SourceProperty]sourceIResolvableSourceIResolvableSourceinterface{} required #sourceVersionoptionalstringsource_versionoptionalstrsourceVersionoptionalStringSourceVersionoptionalstringSourceVersionoptional*string #notes
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 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 .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #These tags are available for use by AWS services that support AWS CodeBuild build project tags.
timeoutInMinutesoptionalnumbertimeout_in_minutesoptionalint | floattimeoutInMinutesoptionalNumberTimeoutInMinutesoptionaldoubleTimeoutInMinutesoptional*float64 #The default is 60 minutes.
triggersoptionalIResolvable | CfnProject.triggersoptionaltyping.Union[IResolvable, ProjectTriggersProperty]triggersoptionalIResolvableTriggersoptionalIResolvableTriggersoptionalinterface{} #visibilityoptionalstringvisibilityoptionalstrvisibilityoptionalStringVisibilityoptionalstringVisibilityoptional*string #- PUBLIC_READ - The project builds are visible to the public.
- PRIVATE - The project builds are not visible to the public.
vpcConfigoptionalIResolvable | CfnProject.VpcConfigPropertyvpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]vpcConfigoptionalIResolvableVpcConfigoptionalIResolvableVpcConfigoptionalinterface{} #For more information, see Use AWS CodeBuild with Amazon Virtual Private Cloud in the AWS CodeBuild User Guide .