Class: AWSCDK::Lambda::LambdaRuntimeProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/lambda_runtime_props.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • bundling_docker_image (String, nil) (defaults to: nil)

    The Docker image name to be used for bundling in this runtime.

  • is_variable (Boolean, nil) (defaults to: nil)

    Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.

  • supports_code_guru_profiling (Boolean, nil) (defaults to: nil)

    Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.

  • supports_inline_code (Boolean, nil) (defaults to: nil)

    Whether the ZipFile (aka inline code) property can be used with this runtime.

  • supports_snap_start (Boolean, nil) (defaults to: nil)

    Whether this runtime supports SnapStart.



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_imageString? (readonly)

Note:

Default: - the latest docker image "amazon/public.ecr.aws/sam/build-" from https://gallery.ecr.aws

The Docker image name to be used for bundling in this runtime.

Returns:

  • (String, nil)


28
29
30
# File 'lambda/lambda_runtime_props.rb', line 28

def bundling_docker_image
  @bundling_docker_image
end

#is_variableBoolean? (readonly)

Note:

Default: false

Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.

Returns:

  • (Boolean, nil)


33
34
35
# File 'lambda/lambda_runtime_props.rb', line 33

def is_variable
  @is_variable
end

#supports_code_guru_profilingBoolean? (readonly)

Note:

Default: false

Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.

Returns:

  • (Boolean, nil)


38
39
40
# File 'lambda/lambda_runtime_props.rb', line 38

def supports_code_guru_profiling
  @supports_code_guru_profiling
end

#supports_inline_codeBoolean? (readonly)

Note:

Default: false

Whether the ZipFile (aka inline code) property can be used with this runtime.

Returns:

  • (Boolean, nil)


43
44
45
# File 'lambda/lambda_runtime_props.rb', line 43

def supports_inline_code
  @supports_inline_code
end

#supports_snap_startBoolean? (readonly)

Note:

Default: false

Whether this runtime supports SnapStart.

Returns:

  • (Boolean, nil)


48
49
50
# File 'lambda/lambda_runtime_props.rb', line 48

def supports_snap_start
  @supports_snap_start
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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