S3SourceProps

class aws_cdk.aws_codebuild.S3SourceProps(*, identifier=None, bucket, path, version=None)

Bases: SourceProps

Construction properties for S3Source.

Parameters:
  • identifier (Optional[str]) – The source identifier. This property is required on secondary sources.

  • bucket (IBucket) –

  • path (str) –

  • version (Optional[str]) – The version ID of the object that represents the build input ZIP file to use. Default: latest

ExampleMetadata:

infused

Example:

bucket = s3.Bucket(self, "MyBucket")

codebuild.Project(self, "MyProject",
    source=codebuild.Source.s3(
        bucket=bucket,
        path="path/to/file.zip"
    )
)

Attributes

bucket
identifier

The source identifier.

This property is required on secondary sources.

path
version

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

Default:

latest