@Stability(value=Stable)
public static interface CfnProject.ProjectCacheProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
ProjectCacheProperty projectCacheProperty = ProjectCacheProperty.builder()
.type("type")
// the properties below are optional
.location("location")
.modes(List.of("modes"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnProject.ProjectCacheProperty.Builder
A builder for
CfnProject.ProjectCacheProperty |
static class |
CfnProject.ProjectCacheProperty.Jsii$Proxy
An implementation for
CfnProject.ProjectCacheProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnProject.ProjectCacheProperty.Builder |
builder() |
default String |
getLocation()
Information about the cache location:.
|
default List<String> |
getModes()
An array of strings that specify the local cache modes.
|
String |
getType()
The type of cache used by the build project.
|
@Stability(value=Stable) @NotNull String getType()
NO_CACHE : The build project does not use any cache.S3 : The build project reads and writes from and to S3.LOCAL : The build project stores a cache locally on a build host that is only available to that build host.@Stability(value=Stable) @Nullable default String getLocation()
NO_CACHE or LOCAL : This value is ignored.S3 : This is the S3 bucket name/prefix.@Stability(value=Stable) @Nullable default List<String> getModes()
You can use one or more local cache modes at the same time. This is only used for LOCAL cache types.
Possible values are:
- You can use a Docker layer cache in the Linux environment only.
- The
privilegedflag must be set so that your project has the required Docker permissions.- You should consider the security implications before you use a Docker layer cache.
@Stability(value=Stable) static CfnProject.ProjectCacheProperty.Builder builder()
Copyright © 2022. All rights reserved.