aws-cdk-lib.aws_codebuild.S3SourceProps

interface S3SourceProps

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.S3SourceProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#S3SourceProps
Javasoftware.amazon.awscdk.services.codebuild.S3SourceProps
Pythonaws_cdk.aws_codebuild.S3SourceProps
TypeScript (source)aws-cdk-lib » aws_codebuild » S3SourceProps

Construction properties for S3Source.

Example

const bucket = new s3.Bucket(this, 'MyBucket');

new codebuild.Project(this, 'MyProject', {
  source: codebuild.Source.s3({
    bucket: bucket,
    path: 'path/to/file.zip',
  }),
});

Properties

NameTypeDescription
bucketIBucket
pathstring
identifier?stringThe source identifier.
version?stringThe version ID of the object that represents the build input ZIP file to use.

bucket

Type: IBucket


path

Type: string


identifier?

Type: string (optional)

The source identifier.

This property is required on secondary sources.


version?

Type: string (optional, default: latest)

The version ID of the object that represents the build input ZIP file to use.