Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::LocalVolumeResourceDataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_resource_definition_version.rb

Overview

Settings for a local volume resource, which represents a file or directory on the root file system.

For more information, see Access Local Resources with Lambda Functions in the Developer Guide .

In an CloudFormation template, LocalVolumeResourceData can be used in the ResourceDataContainer property type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_path:, source_path:, group_owner_setting: nil) ⇒ LocalVolumeResourceDataProperty

Returns a new instance of LocalVolumeResourceDataProperty.

Parameters:



623
624
625
626
627
628
629
630
# File 'greengrass/cfn_resource_definition_version.rb', line 623

def initialize(destination_path:, source_path:, group_owner_setting: nil)
  @destination_path = destination_path
  Jsii::Type.check_type(@destination_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationPath")
  @source_path = source_path
  Jsii::Type.check_type(@source_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourcePath")
  @group_owner_setting = group_owner_setting.is_a?(Hash) ? ::AWSCDK::Greengrass::CfnResourceDefinitionVersion::GroupOwnerSettingProperty.new(**group_owner_setting.transform_keys(&:to_sym)) : group_owner_setting
  Jsii::Type.check_type(@group_owner_setting, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzLkNmblJlc291cmNlRGVmaW5pdGlvblZlcnNpb24uR3JvdXBPd25lclNldHRpbmdQcm9wZXJ0eSJ9XX19")), "groupOwnerSetting") unless @group_owner_setting.nil?
end

Instance Attribute Details

#destination_pathString (readonly)

The absolute local path of the resource in the Lambda environment.



636
637
638
# File 'greengrass/cfn_resource_definition_version.rb', line 636

def destination_path
  @destination_path
end

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

Settings that define additional Linux OS group permissions to give to the Lambda function process.



648
649
650
# File 'greengrass/cfn_resource_definition_version.rb', line 648

def group_owner_setting
  @group_owner_setting
end

#source_pathString (readonly)

The local absolute path of the volume resource on the host.

The source path for a volume resource type cannot start with /sys .



643
644
645
# File 'greengrass/cfn_resource_definition_version.rb', line 643

def source_path
  @source_path
end

Class Method Details

.jsii_propertiesObject



650
651
652
653
654
655
656
# File 'greengrass/cfn_resource_definition_version.rb', line 650

def self.jsii_properties
  {
    :destination_path => "destinationPath",
    :source_path => "sourcePath",
    :group_owner_setting => "groupOwnerSetting",
  }
end

Instance Method Details

#to_jsiiObject



658
659
660
661
662
663
664
665
666
# File 'greengrass/cfn_resource_definition_version.rb', line 658

def to_jsii
  result = {}
  result.merge!({
    "destinationPath" => @destination_path,
    "sourcePath" => @source_path,
    "groupOwnerSetting" => @group_owner_setting,
  })
  result.compact
end