Class Architecture

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.Architecture
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-20T14:04:26.862Z") @Stability(Stable) public class Architecture extends software.amazon.jsii.JsiiObject
Architectures supported by AWS Lambda.

Example:

 Function.Builder.create(this, "MyFunction")
         .runtime(Runtime.NODEJS_18_X)
         .handler("index.handler")
         .architecture(Architecture.ARM_64)
         .code(Code.fromAsset(join(__dirname, "lambda-handler")))
         .insightsVersion(LambdaInsightsVersion.VERSION_1_0_119_0)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Architecture
    64 bit architecture with the ARM instruction set.
    static final Architecture
    64 bit architecture with x86 instruction set.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Architecture(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    custom(String name)
    Used to specify a custom architecture name.
    custom(String name, String dockerPlatform)
    Used to specify a custom architecture name.
    The platform to use for this architecture when building with Docker.
    The name of the architecture as recognized by the AWS Lambda service APIs.
    Returns a string representation of the architecture using the name.

    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, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • ARM_64

      @Stability(Stable) public static final Architecture ARM_64
      64 bit architecture with the ARM instruction set.
    • X86_64

      @Stability(Stable) public static final Architecture X86_64
      64 bit architecture with x86 instruction set.
  • Constructor Details

    • Architecture

      protected Architecture(software.amazon.jsii.JsiiObjectRef objRef)
    • Architecture

      protected Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • custom

      @Stability(Stable) @NotNull public static Architecture custom(@NotNull String name, @Nullable String dockerPlatform)
      Used to specify a custom architecture name.

      Use this if the architecture name is not yet supported by the CDK.

      Parameters:
      name - the architecture name as recognized by AWS Lambda. This parameter is required.
      dockerPlatform - the platform to use for this architecture when building with Docker.
    • custom

      @Stability(Stable) @NotNull public static Architecture custom(@NotNull String name)
      Used to specify a custom architecture name.

      Use this if the architecture name is not yet supported by the CDK.

      Parameters:
      name - the architecture name as recognized by AWS Lambda. This parameter is required.
    • toString

      @Stability(Stable) @NotNull public String toString()
      Returns a string representation of the architecture using the name.
      Overrides:
      toString in class Object
    • getDockerPlatform

      @Stability(Stable) @NotNull public String getDockerPlatform()
      The platform to use for this architecture when building with Docker.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the architecture as recognized by the AWS Lambda service APIs.