Cache

class aws_cdk.aws_codebuild.Cache

Bases: object

Cache options for CodeBuild Project.

A cache can store reusable pieces of your build environment and use them across multiple builds.

see :see: https://docs.aws.amazon.com/codebuild/latest/userguide/build-caching.html

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Static Methods

classmethod bucket(bucket, *, prefix=None)

Create an S3 caching strategy.

Parameters
  • bucket (IBucket) – the S3 bucket to use for caching.

  • prefix (Optional[str]) – The prefix to use to store the cache in the bucket.

Return type

Cache

classmethod local(*modes)

Create a local caching strategy.

Parameters

modes (LocalCacheMode) – the mode(s) to enable for local caching.

Return type

Cache

classmethod none()
Return type

Cache