@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.405Z") @Stability(value=Stable) public class CfnProject extends CfnResource implements IInspectable
Example:
// 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.*;
CfnProject cfnProject = CfnProject.Builder.create(this, "MyCfnProject")
.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")
.environmentVariables(List.of(EnvironmentVariableProperty.builder()
.name("name")
.value("value")
// the properties below are optional
.type("type")
.build()))
.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
.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()
.type("type")
// the properties below are optional
.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())))
.webhook(false)
.build())
.visibility("visibility")
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.vpcId("vpcId")
.build())
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnProject(software.constructs.Construct scope,
String id,
CfnProjectProps props)
Create a new `AWS::CodeBuild::Project`.
|
protected |
CfnProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnProject(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getArtifacts()
`AWS::CodeBuild::Project.Artifacts`.
|
String |
getAttrArn() |
Object |
getBadgeEnabled()
`AWS::CodeBuild::Project.BadgeEnabled`.
|
Object |
getBuildBatchConfig()
`AWS::CodeBuild::Project.BuildBatchConfig`.
|
Object |
getCache()
`AWS::CodeBuild::Project.Cache`.
|
protected Map<String,Object> |
getCfnProperties() |
Number |
getConcurrentBuildLimit()
`AWS::CodeBuild::Project.ConcurrentBuildLimit`.
|
String |
getDescription()
`AWS::CodeBuild::Project.Description`.
|
String |
getEncryptionKey()
`AWS::CodeBuild::Project.EncryptionKey`.
|
Object |
getEnvironment()
`AWS::CodeBuild::Project.Environment`.
|
Object |
getFileSystemLocations()
`AWS::CodeBuild::Project.FileSystemLocations`.
|
Object |
getLogsConfig()
`AWS::CodeBuild::Project.LogsConfig`.
|
String |
getName()
`AWS::CodeBuild::Project.Name`.
|
Number |
getQueuedTimeoutInMinutes()
`AWS::CodeBuild::Project.QueuedTimeoutInMinutes`.
|
String |
getResourceAccessRole()
`AWS::CodeBuild::Project.ResourceAccessRole`.
|
Object |
getSecondaryArtifacts()
`AWS::CodeBuild::Project.SecondaryArtifacts`.
|
Object |
getSecondarySources()
`AWS::CodeBuild::Project.SecondarySources`.
|
Object |
getSecondarySourceVersions()
`AWS::CodeBuild::Project.SecondarySourceVersions`.
|
String |
getServiceRole()
`AWS::CodeBuild::Project.ServiceRole`.
|
Object |
getSource()
`AWS::CodeBuild::Project.Source`.
|
String |
getSourceVersion()
`AWS::CodeBuild::Project.SourceVersion`.
|
TagManager |
getTags()
`AWS::CodeBuild::Project.Tags`.
|
Number |
getTimeoutInMinutes()
`AWS::CodeBuild::Project.TimeoutInMinutes`.
|
Object |
getTriggers()
`AWS::CodeBuild::Project.Triggers`.
|
String |
getVisibility()
`AWS::CodeBuild::Project.Visibility`.
|
Object |
getVpcConfig()
`AWS::CodeBuild::Project.VpcConfig`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setArtifacts(CfnProject.ArtifactsProperty value)
`AWS::CodeBuild::Project.Artifacts`.
|
void |
setArtifacts(IResolvable value)
`AWS::CodeBuild::Project.Artifacts`.
|
void |
setBadgeEnabled(Boolean value)
`AWS::CodeBuild::Project.BadgeEnabled`.
|
void |
setBadgeEnabled(IResolvable value)
`AWS::CodeBuild::Project.BadgeEnabled`.
|
void |
setBuildBatchConfig(CfnProject.ProjectBuildBatchConfigProperty value)
`AWS::CodeBuild::Project.BuildBatchConfig`.
|
void |
setBuildBatchConfig(IResolvable value)
`AWS::CodeBuild::Project.BuildBatchConfig`.
|
void |
setCache(CfnProject.ProjectCacheProperty value)
`AWS::CodeBuild::Project.Cache`.
|
void |
setCache(IResolvable value)
`AWS::CodeBuild::Project.Cache`.
|
void |
setConcurrentBuildLimit(Number value)
`AWS::CodeBuild::Project.ConcurrentBuildLimit`.
|
void |
setDescription(String value)
`AWS::CodeBuild::Project.Description`.
|
void |
setEncryptionKey(String value)
`AWS::CodeBuild::Project.EncryptionKey`.
|
void |
setEnvironment(CfnProject.EnvironmentProperty value)
`AWS::CodeBuild::Project.Environment`.
|
void |
setEnvironment(IResolvable value)
`AWS::CodeBuild::Project.Environment`.
|
void |
setFileSystemLocations(IResolvable value)
`AWS::CodeBuild::Project.FileSystemLocations`.
|
void |
setFileSystemLocations(List<Object> value)
`AWS::CodeBuild::Project.FileSystemLocations`.
|
void |
setLogsConfig(CfnProject.LogsConfigProperty value)
`AWS::CodeBuild::Project.LogsConfig`.
|
void |
setLogsConfig(IResolvable value)
`AWS::CodeBuild::Project.LogsConfig`.
|
void |
setName(String value)
`AWS::CodeBuild::Project.Name`.
|
void |
setQueuedTimeoutInMinutes(Number value)
`AWS::CodeBuild::Project.QueuedTimeoutInMinutes`.
|
void |
setResourceAccessRole(String value)
`AWS::CodeBuild::Project.ResourceAccessRole`.
|
void |
setSecondaryArtifacts(IResolvable value)
`AWS::CodeBuild::Project.SecondaryArtifacts`.
|
void |
setSecondaryArtifacts(List<Object> value)
`AWS::CodeBuild::Project.SecondaryArtifacts`.
|
void |
setSecondarySources(IResolvable value)
`AWS::CodeBuild::Project.SecondarySources`.
|
void |
setSecondarySources(List<Object> value)
`AWS::CodeBuild::Project.SecondarySources`.
|
void |
setSecondarySourceVersions(IResolvable value)
`AWS::CodeBuild::Project.SecondarySourceVersions`.
|
void |
setSecondarySourceVersions(List<Object> value)
`AWS::CodeBuild::Project.SecondarySourceVersions`.
|
void |
setServiceRole(String value)
`AWS::CodeBuild::Project.ServiceRole`.
|
void |
setSource(CfnProject.SourceProperty value)
`AWS::CodeBuild::Project.Source`.
|
void |
setSource(IResolvable value)
`AWS::CodeBuild::Project.Source`.
|
void |
setSourceVersion(String value)
`AWS::CodeBuild::Project.SourceVersion`.
|
void |
setTimeoutInMinutes(Number value)
`AWS::CodeBuild::Project.TimeoutInMinutes`.
|
void |
setTriggers(CfnProject.ProjectTriggersProperty value)
`AWS::CodeBuild::Project.Triggers`.
|
void |
setTriggers(IResolvable value)
`AWS::CodeBuild::Project.Triggers`.
|
void |
setVisibility(String value)
`AWS::CodeBuild::Project.Visibility`.
|
void |
setVpcConfig(CfnProject.VpcConfigProperty value)
`AWS::CodeBuild::Project.VpcConfig`.
|
void |
setVpcConfig(IResolvable value)
`AWS::CodeBuild::Project.VpcConfig`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnProject(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnProject(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnProjectProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public Object getArtifacts()
@Stability(value=Stable)
public void setArtifacts(@NotNull
CfnProject.ArtifactsProperty value)
@Stability(value=Stable)
public void setArtifacts(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @Nullable public Object getBadgeEnabled()
@Stability(value=Stable)
public void setBadgeEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setBadgeEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getBuildBatchConfig()
@Stability(value=Stable)
public void setBuildBatchConfig(@Nullable
CfnProject.ProjectBuildBatchConfigProperty value)
@Stability(value=Stable)
public void setBuildBatchConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCache()
@Stability(value=Stable)
public void setCache(@Nullable
CfnProject.ProjectCacheProperty value)
@Stability(value=Stable)
public void setCache(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Number getConcurrentBuildLimit()
@Stability(value=Stable)
public void setConcurrentBuildLimit(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getEncryptionKey()
@Stability(value=Stable)
public void setEncryptionKey(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getEnvironment()
@Stability(value=Stable)
public void setEnvironment(@NotNull
CfnProject.EnvironmentProperty value)
@Stability(value=Stable)
public void setEnvironment(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Object getFileSystemLocations()
@Stability(value=Stable)
public void setFileSystemLocations(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setFileSystemLocations(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getLogsConfig()
@Stability(value=Stable)
public void setLogsConfig(@Nullable
CfnProject.LogsConfigProperty value)
@Stability(value=Stable)
public void setLogsConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getQueuedTimeoutInMinutes()
@Stability(value=Stable)
public void setQueuedTimeoutInMinutes(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getResourceAccessRole()
@Stability(value=Stable)
public void setResourceAccessRole(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getSecondaryArtifacts()
@Stability(value=Stable)
public void setSecondaryArtifacts(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setSecondaryArtifacts(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getSecondarySources()
@Stability(value=Stable)
public void setSecondarySources(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setSecondarySources(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getSecondarySourceVersions()
@Stability(value=Stable)
public void setSecondarySourceVersions(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setSecondarySourceVersions(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public String getServiceRole()
@Stability(value=Stable)
public void setServiceRole(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getSource()
@Stability(value=Stable)
public void setSource(@NotNull
CfnProject.SourceProperty value)
@Stability(value=Stable)
public void setSource(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public String getSourceVersion()
@Stability(value=Stable)
public void setSourceVersion(@Nullable
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public Number getTimeoutInMinutes()
@Stability(value=Stable)
public void setTimeoutInMinutes(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Object getTriggers()
@Stability(value=Stable)
public void setTriggers(@Nullable
CfnProject.ProjectTriggersProperty value)
@Stability(value=Stable)
public void setTriggers(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getVisibility()
@Stability(value=Stable)
public void setVisibility(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getVpcConfig()
@Stability(value=Stable)
public void setVpcConfig(@Nullable
CfnProject.VpcConfigProperty value)
@Stability(value=Stable)
public void setVpcConfig(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.