Enum LocalCacheMode
- All Implemented Interfaces:
Serializable
,Comparable<LocalCacheMode>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.827Z")
@Stability(Stable)
public enum LocalCacheMode
extends Enum<LocalCacheMode>
Local cache modes to enable for the CodeBuild Project.
Example:
Project.Builder.create(this, "Project") .source(Source.gitHubEnterprise(GitHubEnterpriseSourceProps.builder() .httpsCloneUrl("https://my-github-enterprise.com/owner/repo") .build())) // Enable Docker AND custom caching .cache(Cache.local(LocalCacheMode.DOCKER_LAYER, LocalCacheMode.CUSTOM)) // BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can // also come from 'buildspec.yml' in your source. .buildSpec(BuildSpec.fromObject(Map.of( "version", "0.2", "phases", Map.of( "build", Map.of( "commands", List.of("..."))), "cache", Map.of( "paths", List.of("/root/cachedir/**/*"))))) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCaches directories you specify in the buildspec file.Caches existing Docker layers.Caches Git metadata for primary and secondary sources. -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalCacheMode
Returns the enum constant of this type with the specified name.static LocalCacheMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SOURCE
Caches Git metadata for primary and secondary sources. -
DOCKER_LAYER
Caches existing Docker layers. -
CUSTOM
Caches directories you specify in the buildspec file.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-