Class: AWSCDK::Lambda::Architecture
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Lambda::Architecture
- Defined in:
- lambda/architecture.rb
Overview
Architectures supported by AWS Lambda.
Class Method Summary collapse
-
.ARM_64 ⇒ AWSCDK::Lambda::Architecture
64 bit architecture with the ARM instruction set.
-
.custom(name, docker_platform = nil) ⇒ AWSCDK::Lambda::Architecture
Used to specify a custom architecture name.
- .jsii_overridable_methods ⇒ Object
-
.X86_64 ⇒ AWSCDK::Lambda::Architecture
64 bit architecture with x86 instruction set.
Instance Method Summary collapse
-
#docker_platform ⇒ String
The platform to use for this architecture when building with Docker.
-
#initialize(*args) ⇒ Architecture
constructor
A new instance of Architecture.
-
#name ⇒ String
The name of the architecture as recognized by the AWS Lambda service APIs.
-
#to_string ⇒ String
Returns a string representation of the architecture using the name.
Constructor Details
#initialize(*args) ⇒ Architecture
Returns a new instance of Architecture.
8 9 10 |
# File 'lambda/architecture.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_lambda.Architecture does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.ARM_64 ⇒ AWSCDK::Lambda::Architecture
64 bit architecture with the ARM instruction set.
36 37 38 |
# File 'lambda/architecture.rb', line 36 def self.ARM_64() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Architecture", "ARM_64") end |
.custom(name, docker_platform = nil) ⇒ AWSCDK::Lambda::Architecture
Used to specify a custom architecture name.
Use this if the architecture name is not yet supported by the CDK.
27 28 29 30 31 |
# File 'lambda/architecture.rb', line 27 def self.custom(name, docker_platform = nil) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Type.check_type(docker_platform, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dockerPlatform") unless docker_platform.nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_lambda.Architecture", "custom", [name, docker_platform]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 17 18 |
# File 'lambda/architecture.rb', line 12 def self.jsii_overridable_methods { :docker_platform => { kind: :property, name: "dockerPlatform", is_optional: false }, :name => { kind: :property, name: "name", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
.X86_64 ⇒ AWSCDK::Lambda::Architecture
64 bit architecture with x86 instruction set.
43 44 45 |
# File 'lambda/architecture.rb', line 43 def self.X86_64() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_lambda.Architecture", "X86_64") end |
Instance Method Details
#docker_platform ⇒ String
The platform to use for this architecture when building with Docker.
50 51 52 |
# File 'lambda/architecture.rb', line 50 def docker_platform() jsii_get_property("dockerPlatform") end |
#name ⇒ String
The name of the architecture as recognized by the AWS Lambda service APIs.
57 58 59 |
# File 'lambda/architecture.rb', line 57 def name() jsii_get_property("name") end |
#to_string ⇒ String
Returns a string representation of the architecture using the name.
64 65 66 |
# File 'lambda/architecture.rb', line 64 def to_string() jsii_call_method("toString", []) end |