Enum 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic FleetComputeType
Returns the enum constant of this type with the specified name.static FleetComputeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SMALL
Small compute type.May not be available for all environment types, see
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
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
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
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 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
-