Class Architecture
Architectures supported by AWS Lambda.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class Architecture : DeputyBase
Syntax (vb)
Public Class Architecture
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
new Function(this, "MyFunction", new FunctionProps {
Runtime = Runtime.NODEJS_16_X,
Handler = "index.handler",
Architecture = Architecture.ARM_64,
Code = Code.FromAsset(Join(__dirname, "lambda-handler")),
InsightsVersion = LambdaInsightsVersion.VERSION_1_0_119_0
});
Synopsis
Constructors
Architecture(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Architecture(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ARM_64 | 64 bit architecture with the ARM instruction set. |
DockerPlatform | The platform to use for this architecture when building with Docker. |
Name | The name of the architecture as recognized by the AWS Lambda service APIs. |
X86_64 | 64 bit architecture with x86 instruction set. |
Methods
Custom(String, String) | Used to specify a custom architecture name. |
Constructors
Architecture(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Architecture(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Architecture(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Architecture(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ARM_64
64 bit architecture with the ARM instruction set.
public static Architecture ARM_64 { get; }
Property Value
DockerPlatform
The platform to use for this architecture when building with Docker.
public virtual string DockerPlatform { get; }
Property Value
System.String
Name
The name of the architecture as recognized by the AWS Lambda service APIs.
public virtual string Name { get; }
Property Value
System.String
X86_64
64 bit architecture with x86 instruction set.
public static Architecture X86_64 { get; }
Property Value
Methods
Custom(String, String)
Used to specify a custom architecture name.
public static Architecture Custom(string name, string dockerPlatform = null)
Parameters
- name System.String
the architecture name as recognized by AWS Lambda.
- dockerPlatform System.String
the platform to use for this architecture when building with Docker.
Returns
Remarks
Use this if the architecture name is not yet supported by the CDK.