LinuxArmLambdaBuildImage

class aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage(*args: Any, **kwargs)

Bases: object

A CodeBuild image running aarch64 Lambda.

This class has a bunch of public constants that represent the CodeBuild aarch64 Lambda images.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild

linux_arm_lambda_build_image = codebuild.LinuxArmLambdaBuildImage.AMAZON_LINUX_2_CORRETTO_11

Methods

run_script_buildspec(entrypoint)

Make a buildspec to run the indicated script.

Parameters:

entrypoint (str) –

Return type:

BuildSpec

validate(*, build_image=None, certificate=None, compute_type=None, environment_variables=None, fleet=None, privileged=None)

Allows the image a chance to validate whether the passed configuration is correct.

Parameters:
  • build_image (Optional[IBuildImage]) – The image used for the builds. Default: LinuxBuildImage.STANDARD_1_0

  • certificate (Union[BuildEnvironmentCertificate, Dict[str, Any], None]) – The location of the PEM-encoded certificate for the build project. Default: - No external certificate is added to the project

  • compute_type (Optional[ComputeType]) – The type of compute to use for this build. See the ComputeType enum for the possible values. Default: taken from #buildImage#defaultComputeType

  • environment_variables (Optional[Mapping[str, Union[BuildEnvironmentVariable, Dict[str, Any]]]]) – The environment variables that your builds can use.

  • fleet (Optional[IFleet]) – Fleet resource for a reserved capacity CodeBuild project. Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects. You will be charged for the resources in the fleet, even if they are idle. Default: - No fleet will be attached to the project, which will remain on-demand.

  • privileged (Optional[bool]) – Indicates how the project builds Docker images. Specify true to enable running the Docker daemon inside a Docker container. This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Default: false

Return type:

List[str]

Attributes

AMAZON_LINUX_2023_CORRETTO_21 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2023_DOTNET_8 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2023_NODE_20 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2023_PYTHON_3_12 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_CORRETTO_11 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_CORRETTO_17 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_DOTNET_6 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_GO_1_21 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_NODE_18 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_PYTHON_3_11 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
AMAZON_LINUX_2_RUBY_3_2 = <aws_cdk.aws_codebuild.LinuxArmLambdaBuildImage object>
default_compute_type

The default ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly.

image_id

The Docker image identifier that the build environment uses.

type

The type of build environment.