Interface IProjectProps
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IProjectProps : ICommonProjectProps
Syntax (vb)
Public Interface IProjectProps
Inherits ICommonProjectProps
Remarks
ExampleMetadata: infused
Examples
Repository ecrRepository;
new Project(this, "Project", new ProjectProps {
Environment = new BuildEnvironment {
BuildImage = WindowsBuildImage.FromEcrRepository(ecrRepository, "v1.0", WindowsImageType.SERVER_2019),
// optional certificate to include in the build image
Certificate = new BuildEnvironmentCertificate {
Bucket = Bucket.FromBucketName(this, "Bucket", "my-bucket"),
ObjectKey = "path/to/cert.pem"
}
}
});
Synopsis
Properties
Artifacts | Defines where build artifacts will be stored. |
SecondaryArtifacts | The secondary artifacts for the Project. |
SecondarySources | The secondary sources for the Project. |
Source | The source of the build. |
Properties
Artifacts
Defines where build artifacts will be stored.
virtual IArtifacts Artifacts { get; }
Property Value
Remarks
Could be: PipelineBuildArtifacts, NoArtifacts and S3Artifacts.
Default: NoArtifacts
SecondaryArtifacts
The secondary artifacts for the Project.
virtual IArtifacts[] SecondaryArtifacts { get; }
Property Value
Remarks
Can also be added after the Project has been created by using the Project#addSecondaryArtifact
method.
Default: - No secondary artifacts.
See: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html
SecondarySources
The secondary sources for the Project.
virtual ISource[] SecondarySources { get; }
Property Value
ISource[]
Remarks
Can be also added after the Project has been created by using the Project#addSecondarySource
method.
Default: - No secondary sources.
See: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html
Source
The source of the build.
virtual ISource Source { get; }
Property Value
Remarks
Note: if NoSource
is given as the source,
then you need to provide an explicit buildSpec
.
Default: - NoSource