HostKernel
- class aws_cdk.aws_codebuild.HostKernel(*values)
Bases:
EnumThe host operating system kernel used for builds in a CodeBuild project.
The host kernel does not affect the build environment operating system, which is determined by the build image.
Only applies to the
LINUX_CONTAINER,ARM_CONTAINER,LINUX_EC2andARM_EC2environment types. It is not applicable to Windows, Lambda or Mac environment types.- See:
- ExampleMetadata:
infused
Example:
codebuild.Project(self, "Project", environment=codebuild.BuildEnvironment( build_image=codebuild.LinuxBuildImage.STANDARD_7_0, host_kernel=codebuild.HostKernel.LINUX_KERNEL_6 ) )
Attributes
- LINUX_KERNEL_4
Runs on an Amazon Linux 2 host (kernel 4.x).
- LINUX_KERNEL_6
Runs on an Amazon Linux 2023 host (kernel 6.x).
- LINUX_KERNEL_LATEST
Runs on the latest supported host kernel.