@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.331Z") @Stability(value=Stable) public enum ComputeType extends Enum<ComputeType>
Example:
Vpc vpc;
SecurityGroup mySecurityGroup;
CodeBuildStep.Builder.create("Synth")
// ...standard ShellStep props...
.commands(List.of())
.env(Map.of())
// If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory
// to be the synth step's output.
.primaryOutputDirectory("cdk.out")
// Control the name of the project
.projectName("MyProject")
// Control parts of the BuildSpec other than the regular 'build' and 'install' commands
.partialBuildSpec(BuildSpec.fromObject(Map.of(
"version", "0.2")))
// Control the build environment
.buildEnvironment(BuildEnvironment.builder()
.computeType(ComputeType.LARGE)
.build())
.timeout(Duration.minutes(90))
// Control Elastic Network Interface creation
.vpc(vpc)
.subnetSelection(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_WITH_EGRESS).build())
.securityGroups(List.of(mySecurityGroup))
// Control caching
.cache(Cache.bucket(new Bucket(this, "Cache")))
// Additional policy statements for the execution role
.rolePolicyStatements(List.of(
PolicyStatement.Builder.create().build()))
.build();
| Modifier and Type | Method and Description |
|---|---|
static ComputeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComputeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final ComputeType SMALL
@Stability(value=Stable) public static final ComputeType MEDIUM
@Stability(value=Stable) public static final ComputeType LARGE
@Stability(value=Stable) public static final ComputeType X2_LARGE
public static ComputeType[] values()
for (ComputeType c : ComputeType.values()) System.out.println(c);
public static ComputeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.