Class: AWSCDK::Lambda::LambdaRuntimeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::LambdaRuntimeProps
- Defined in:
- lambda/lambda_runtime_props.rb
Instance Attribute Summary collapse
-
#bundling_docker_image ⇒ String?
readonly
The Docker image name to be used for bundling in this runtime.
-
#is_variable ⇒ Boolean?
readonly
Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.
-
#supports_code_guru_profiling ⇒ Boolean?
readonly
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
-
#supports_inline_code ⇒ Boolean?
readonly
Whether the
ZipFile(aka inline code) property can be used with this runtime. -
#supports_snap_start ⇒ Boolean?
readonly
Whether this runtime supports SnapStart.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bundling_docker_image: nil, is_variable: nil, supports_code_guru_profiling: nil, supports_inline_code: nil, supports_snap_start: nil) ⇒ LambdaRuntimeProps
constructor
A new instance of LambdaRuntimeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bundling_docker_image: nil, is_variable: nil, supports_code_guru_profiling: nil, supports_inline_code: nil, supports_snap_start: nil) ⇒ LambdaRuntimeProps
Returns a new instance of LambdaRuntimeProps.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lambda/lambda_runtime_props.rb', line 11 def initialize(bundling_docker_image: nil, is_variable: nil, supports_code_guru_profiling: nil, supports_inline_code: nil, supports_snap_start: nil) @bundling_docker_image = bundling_docker_image Jsii::Type.check_type(@bundling_docker_image, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bundlingDockerImage") unless @bundling_docker_image.nil? @is_variable = is_variable Jsii::Type.check_type(@is_variable, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "isVariable") unless @is_variable.nil? @supports_code_guru_profiling = supports_code_guru_profiling Jsii::Type.check_type(@supports_code_guru_profiling, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "supportsCodeGuruProfiling") unless @supports_code_guru_profiling.nil? @supports_inline_code = supports_inline_code Jsii::Type.check_type(@supports_inline_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "supportsInlineCode") unless @supports_inline_code.nil? @supports_snap_start = supports_snap_start Jsii::Type.check_type(@supports_snap_start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "supportsSnapStart") unless @supports_snap_start.nil? end |
Instance Attribute Details
#bundling_docker_image ⇒ String? (readonly)
Default: - the latest docker image "amazon/public.ecr.aws/sam/build-
The Docker image name to be used for bundling in this runtime.
28 29 30 |
# File 'lambda/lambda_runtime_props.rb', line 28 def bundling_docker_image @bundling_docker_image end |
#is_variable ⇒ Boolean? (readonly)
Default: false
Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.
33 34 35 |
# File 'lambda/lambda_runtime_props.rb', line 33 def is_variable @is_variable end |
#supports_code_guru_profiling ⇒ Boolean? (readonly)
Default: false
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
38 39 40 |
# File 'lambda/lambda_runtime_props.rb', line 38 def supports_code_guru_profiling @supports_code_guru_profiling end |
#supports_inline_code ⇒ Boolean? (readonly)
Default: false
Whether the ZipFile (aka inline code) property can be used with this runtime.
43 44 45 |
# File 'lambda/lambda_runtime_props.rb', line 43 def supports_inline_code @supports_inline_code end |
#supports_snap_start ⇒ Boolean? (readonly)
Default: false
Whether this runtime supports SnapStart.
48 49 50 |
# File 'lambda/lambda_runtime_props.rb', line 48 def supports_snap_start @supports_snap_start end |
Class Method Details
.jsii_properties ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 'lambda/lambda_runtime_props.rb', line 50 def self.jsii_properties { :bundling_docker_image => "bundlingDockerImage", :is_variable => "isVariable", :supports_code_guru_profiling => "supportsCodeGuruProfiling", :supports_inline_code => "supportsInlineCode", :supports_snap_start => "supportsSnapStart", } end |
Instance Method Details
#to_jsii ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lambda/lambda_runtime_props.rb', line 60 def to_jsii result = {} result.merge!({ "bundlingDockerImage" => @bundling_docker_image, "isVariable" => @is_variable, "supportsCodeGuruProfiling" => @supports_code_guru_profiling, "supportsInlineCode" => @supports_inline_code, "supportsSnapStart" => @supports_snap_start, }) result.compact end |