Enum EnvironmentType
Build environment type.
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum EnvironmentType
Syntax (vb)
Public Enum EnvironmentType
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
var fleet = new Fleet(this, "MyFleet", new FleetProps {
BaseCapacity = 1,
ComputeType = FleetComputeType.CUSTOM_INSTANCE_TYPE,
EnvironmentType = EnvironmentType.LINUX_CONTAINER,
ComputeConfiguration = new ComputeConfiguration {
InstanceType = InstanceType.Of(InstanceClass.T3, InstanceSize.MEDIUM),
// By default, 64 GiB of disk space is included. Any value optionally
// specified here is _incremental_ on top of the included disk space.
Disk = Size.Gibibytes(10)
}
});
Synopsis
Fields
| ARM_CONTAINER | ARM container. |
| ARM_EC2 | ARM EC2. |
| LINUX_CONTAINER | Linux container. |
| LINUX_EC2 | Linux EC2. |
| LINUX_GPU_CONTAINER | Linux GPU container. |
| MAC_ARM | MacOS ARM container. |
| WINDOWS_EC2 | Windows EC2. |
| WINDOWS_SERVER_2019_CONTAINER | Windows Server 2019 container. |
| WINDOWS_SERVER_2022_CONTAINER | Windows Server 2022 container. |
Fields
| Name | Description |
|---|---|
| ARM_CONTAINER | ARM container. |
| ARM_EC2 | ARM EC2. |
| LINUX_CONTAINER | Linux container. |
| LINUX_EC2 | Linux EC2. |
| LINUX_GPU_CONTAINER | Linux GPU container. |
| MAC_ARM | MacOS ARM container. |
| WINDOWS_EC2 | Windows EC2. |
| WINDOWS_SERVER_2019_CONTAINER | Windows Server 2019 container. |
| WINDOWS_SERVER_2022_CONTAINER | Windows Server 2022 container. |