Class: AWSCDK::Greengrassv2::CfnComponentVersion::LambdaContainerParamsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrassv2/cfn_component_version.rb

Overview

Contains information about a container in which AWS Lambda functions run on AWS IoT Greengrass core devices.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(devices: nil, memory_size_in_kb: nil, mount_ro_sysfs: nil, volumes: nil) ⇒ LambdaContainerParamsProperty

Returns a new instance of LambdaContainerParamsProperty.

Parameters:



677
678
679
680
681
682
683
684
685
686
# File 'greengrassv2/cfn_component_version.rb', line 677

def initialize(devices: nil, memory_size_in_kb: nil, mount_ro_sysfs: nil, volumes: nil)
  @devices = devices
  Jsii::Type.check_type(@devices, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzc3YyLkNmbkNvbXBvbmVudFZlcnNpb24uTGFtYmRhRGV2aWNlTW91bnRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "devices") unless @devices.nil?
  @memory_size_in_kb = memory_size_in_kb
  Jsii::Type.check_type(@memory_size_in_kb, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "memorySizeInKb") unless @memory_size_in_kb.nil?
  @mount_ro_sysfs = mount_ro_sysfs
  Jsii::Type.check_type(@mount_ro_sysfs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "mountRoSysfs") unless @mount_ro_sysfs.nil?
  @volumes = volumes
  Jsii::Type.check_type(@volumes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzc3YyLkNmbkNvbXBvbmVudFZlcnNpb24uTGFtYmRhVm9sdW1lTW91bnRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "volumes") unless @volumes.nil?
end

Instance Attribute Details

#devicesAWSCDK::IResolvable, ... (readonly)

The list of system devices that the container can access.



692
693
694
# File 'greengrassv2/cfn_component_version.rb', line 692

def devices
  @devices
end

#memory_size_in_kbNumeric? (readonly)

The memory size of the container, expressed in kilobytes.

Default: 16384 (16 MB)



699
700
701
# File 'greengrassv2/cfn_component_version.rb', line 699

def memory_size_in_kb
  @memory_size_in_kb
end

#mount_ro_sysfsBoolean, ... (readonly)

Whether or not the container can read information from the device's /sys folder.

Default: false



706
707
708
# File 'greengrassv2/cfn_component_version.rb', line 706

def mount_ro_sysfs
  @mount_ro_sysfs
end

#volumesAWSCDK::IResolvable, ... (readonly)

The list of volumes that the container can access.



711
712
713
# File 'greengrassv2/cfn_component_version.rb', line 711

def volumes
  @volumes
end

Class Method Details

.jsii_propertiesObject



713
714
715
716
717
718
719
720
# File 'greengrassv2/cfn_component_version.rb', line 713

def self.jsii_properties
  {
    :devices => "devices",
    :memory_size_in_kb => "memorySizeInKb",
    :mount_ro_sysfs => "mountRoSysfs",
    :volumes => "volumes",
  }
end

Instance Method Details

#to_jsiiObject



722
723
724
725
726
727
728
729
730
731
# File 'greengrassv2/cfn_component_version.rb', line 722

def to_jsii
  result = {}
  result.merge!({
    "devices" => @devices,
    "memorySizeInKb" => @memory_size_in_kb,
    "mountRoSysfs" => @mount_ro_sysfs,
    "volumes" => @volumes,
  })
  result.compact
end