Skip to content
v2.273.0

S3SourceProps Struct ​

Construction properties for S3Source.

Example ​

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

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

Properties ​

bucketIBucketbucketIBucketbucketIBucketBucketIBucketBucketIBucketrequired#
identifierstringidentifierstridentifierStringIdentifierstringIdentifier*string#
The source identifier.

This property is required on secondary sources.

pathstringpathstrpathStringPathstringPath*stringrequired#
versionstringversionstrversionStringVersionstringVersion*string= latest#
The version ID of the object that represents the build input ZIP file to use.