class Artifacts
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.Artifacts |
Java | software.amazon.awscdk.services.codebuild.Artifacts |
Python | aws_cdk.aws_codebuild.Artifacts |
TypeScript (source) | @aws-cdk/aws-codebuild » Artifacts |
Implements
IArtifacts
Artifacts definition for a CodeBuild Project.
Example
declare const bucket: s3.Bucket;
const project = new codebuild.Project(this, 'MyProject', {
buildSpec: codebuild.BuildSpec.fromObject({
version: '0.2',
}),
artifacts: codebuild.Artifacts.s3({
bucket,
includeBuildId: false,
packageZip: true,
path: 'another/path',
identifier: 'AddArtifact1',
}),
});
Initializer (protected)
super(props: ArtifactsProps)
Parameters
- props
Artifacts
Props
Properties
Name | Type | Description |
---|---|---|
type | string | The CodeBuild type of this artifact. |
identifier? | string | The artifact identifier. |
type
Type:
string
The CodeBuild type of this artifact.
identifier?
Type:
string
(optional)
The artifact identifier.
This property is required on secondary artifacts.
Methods
Name | Description |
---|---|
bind(_scope, _project) | Callback when an Artifacts class is used in a CodeBuild Project. |
static s3(props) |
bind(_scope, _project)
public bind(_scope: Construct, _project: IProject): ArtifactsConfig
Parameters
Returns
Callback when an Artifacts class is used in a CodeBuild Project.
static s3(props)
public static s3(props: S3ArtifactsProps): IArtifacts
Parameters
- props
S3
Artifacts Props
Returns