Class LinuxLambdaBuildImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codebuild.LinuxLambdaBuildImage
- All Implemented Interfaces:
IBuildImage
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:05.914Z")
@Stability(Stable)
public class LinuxLambdaBuildImage
extends software.amazon.jsii.JsiiObject
implements IBuildImage
A CodeBuild image running x86-64 Lambda.
This class has a bunch of public constants that represent the CodeBuild Lambda x86-64 images.
Example:
Project.Builder.create(this, "Project") .environment(BuildEnvironment.builder() .buildImage(LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18) .build()) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codebuild.IBuildImage
IBuildImage.Jsii$Default, IBuildImage.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:corretto11
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:corretto17
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet6
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:go1.21
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs18
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:python3.11
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:ruby3.2
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:corretto21
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet8
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs20
build image.static final IBuildImage
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:python3.12
build image. -
Constructor Summary
ModifierConstructorDescriptionprotected
LinuxLambdaBuildImage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LinuxLambdaBuildImage
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe defaultComputeType
to use with this image, if one was not specified inBuildEnvironment#computeType
explicitly.The Docker image identifier that the build environment uses.getType()
The type of build environment.runScriptBuildspec
(String entrypoint) Make a buildspec to run the indicated script.validate
(BuildEnvironment buildEnvironment) Allows the image a chance to validate whether the passed configuration is correct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.services.codebuild.IBuildImage
getImagePullPrincipalType, getRepository, getSecretsManagerCredentials
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
AMAZON_LINUX_2_CORRETTO_11
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:corretto11
build image. -
AMAZON_LINUX_2_CORRETTO_17
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:corretto17
build image. -
AMAZON_LINUX_2_DOTNET_6
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet6
build image. -
AMAZON_LINUX_2_GO_1_21
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:go1.21
build image. -
AMAZON_LINUX_2_NODE_18
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs18
build image. -
AMAZON_LINUX_2_PYTHON_3_11
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:python3.11
build image. -
AMAZON_LINUX_2_RUBY_3_2
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:ruby3.2
build image. -
AMAZON_LINUX_2023_CORRETTO_21
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:corretto21
build image. -
AMAZON_LINUX_2023_DOTNET_8
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet8
build image. -
AMAZON_LINUX_2023_NODE_20
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs20
build image. -
AMAZON_LINUX_2023_PYTHON_3_12
Theaws/codebuild/amazonlinux-x86_64-lambda-standard:python3.12
build image.
-
-
Constructor Details
-
LinuxLambdaBuildImage
protected LinuxLambdaBuildImage(software.amazon.jsii.JsiiObjectRef objRef) -
LinuxLambdaBuildImage
protected LinuxLambdaBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
runScriptBuildspec
Make a buildspec to run the indicated script.- Specified by:
runScriptBuildspec
in interfaceIBuildImage
- Parameters:
entrypoint
- This parameter is required.
-
validate
@Stability(Stable) @NotNull public List<String> validate(@NotNull BuildEnvironment buildEnvironment) Allows the image a chance to validate whether the passed configuration is correct.- Specified by:
validate
in interfaceIBuildImage
- Parameters:
buildEnvironment
- This parameter is required.
-
getDefaultComputeType
The defaultComputeType
to use with this image, if one was not specified inBuildEnvironment#computeType
explicitly.- Specified by:
getDefaultComputeType
in interfaceIBuildImage
-
getImageId
The Docker image identifier that the build environment uses.- Specified by:
getImageId
in interfaceIBuildImage
- See Also:
-
getType
The type of build environment.- Specified by:
getType
in interfaceIBuildImage
-