Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::LocalDeviceResourceDataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinitionVersion::LocalDeviceResourceDataProperty
- Defined in:
- greengrass/cfn_resource_definition_version.rb
Overview
Settings for a local device resource, which represents a file under /dev .
For more information, see Access Local Resources with Lambda Functions in the Developer Guide .
In an CloudFormation template, LocalDeviceResourceData can be used in the ResourceDataContainer property type.
Instance Attribute Summary collapse
-
#group_owner_setting ⇒ AWSCDK::IResolvable, ...
readonly
Settings that define additional Linux OS group permissions to give to the Lambda function process.
-
#source_path ⇒ String
readonly
The local absolute path of the device resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source_path:, group_owner_setting: nil) ⇒ LocalDeviceResourceDataProperty
constructor
A new instance of LocalDeviceResourceDataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source_path:, group_owner_setting: nil) ⇒ LocalDeviceResourceDataProperty
Returns a new instance of LocalDeviceResourceDataProperty.
573 574 575 576 577 578 |
# File 'greengrass/cfn_resource_definition_version.rb', line 573 def initialize(source_path:, group_owner_setting: nil) @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
#group_owner_setting ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that define additional Linux OS group permissions to give to the Lambda function process.
591 592 593 |
# File 'greengrass/cfn_resource_definition_version.rb', line 591 def group_owner_setting @group_owner_setting end |
#source_path ⇒ String (readonly)
The local absolute path of the device resource.
The source path for a device resource can refer only to a character device or block device under /dev .
586 587 588 |
# File 'greengrass/cfn_resource_definition_version.rb', line 586 def source_path @source_path end |
Class Method Details
.jsii_properties ⇒ Object
593 594 595 596 597 598 |
# File 'greengrass/cfn_resource_definition_version.rb', line 593 def self.jsii_properties { :source_path => "sourcePath", :group_owner_setting => "groupOwnerSetting", } end |
Instance Method Details
#to_jsii ⇒ Object
600 601 602 603 604 605 606 607 |
# File 'greengrass/cfn_resource_definition_version.rb', line 600 def to_jsii result = {} result.merge!({ "sourcePath" => @source_path, "groupOwnerSetting" => @group_owner_setting, }) result.compact end |