Class: AWSCDK::Greengrassv2::CfnComponentVersion::LambdaDeviceMountProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrassv2::CfnComponentVersion::LambdaDeviceMountProperty
- Defined in:
- greengrassv2/cfn_component_version.rb
Overview
Contains information about a device that Linux processes in a container can access.
Instance Attribute Summary collapse
-
#add_group_owner ⇒ Boolean, ...
readonly
Whether or not to add the component's system user as an owner of the device.
-
#path ⇒ String?
readonly
The mount path for the device in the file system.
-
#permission ⇒ String?
readonly
The permission to access the device: read/only (
ro) or read/write (rw).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(add_group_owner: nil, path: nil, permission: nil) ⇒ LambdaDeviceMountProperty
constructor
A new instance of LambdaDeviceMountProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(add_group_owner: nil, path: nil, permission: nil) ⇒ LambdaDeviceMountProperty
Returns a new instance of LambdaDeviceMountProperty.
743 744 745 746 747 748 749 750 |
# File 'greengrassv2/cfn_component_version.rb', line 743 def initialize(add_group_owner: nil, path: nil, permission: nil) @add_group_owner = add_group_owner Jsii::Type.check_type(@add_group_owner, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "addGroupOwner") unless @add_group_owner.nil? @path = path Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil? @permission = Jsii::Type.check_type(@permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permission") unless @permission.nil? end |
Instance Attribute Details
#add_group_owner ⇒ Boolean, ... (readonly)
Whether or not to add the component's system user as an owner of the device.
Default: false
758 759 760 |
# File 'greengrassv2/cfn_component_version.rb', line 758 def add_group_owner @add_group_owner end |
#path ⇒ String? (readonly)
The mount path for the device in the file system.
763 764 765 |
# File 'greengrassv2/cfn_component_version.rb', line 763 def path @path end |
#permission ⇒ String? (readonly)
The permission to access the device: read/only ( ro ) or read/write ( rw ).
Default: ro
770 771 772 |
# File 'greengrassv2/cfn_component_version.rb', line 770 def @permission end |
Class Method Details
.jsii_properties ⇒ Object
772 773 774 775 776 777 778 |
# File 'greengrassv2/cfn_component_version.rb', line 772 def self.jsii_properties { :add_group_owner => "addGroupOwner", :path => "path", :permission => "permission", } end |
Instance Method Details
#to_jsii ⇒ Object
780 781 782 783 784 785 786 787 788 |
# File 'greengrassv2/cfn_component_version.rb', line 780 def to_jsii result = {} result.merge!({ "addGroupOwner" => @add_group_owner, "path" => @path, "permission" => @permission, }) result.compact end |