Enum Class FleetComputeType
- All Implemented Interfaces:
Serializable,Comparable<FleetComputeType>,java.lang.constant.Constable
ComputeType values.
The allocated memory, vCPU count and disk space of the build machine for a given compute type are dependent on the environment type. Some compute types may also not be available for all environment types.
Example:
Fleet fleet = Fleet.Builder.create(this, "Fleet")
.computeType(FleetComputeType.MEDIUM)
.environmentType(EnvironmentType.LINUX_CONTAINER)
.baseCapacity(1)
.build();
Project.Builder.create(this, "Project")
.environment(BuildEnvironment.builder()
.fleet(fleet)
.buildImage(LinuxBuildImage.STANDARD_7_0)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FleetComputeTypeReturns the enum constant of this class with the specified name.static FleetComputeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALL
Small compute type.May not be available for all environment types, see
docs} for more information.invalid @link
{@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types -
MEDIUM
Medium compute type.May not be available for all environment types, see
docs} for more information.invalid @link
{@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types -
LARGE
Large compute type. -
X_LARGE
Extra Large compute type.May not be available for all environment types, see
docs} for more information.invalid @link
{@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types -
X2_LARGE
Extra, Extra Large compute type.May not be available for all environment types, see
docs} for more information.invalid @link
{@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-