Class: AWSCDK::Greengrassv2::CfnComponentVersion::LambdaVolumeMountProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrassv2::CfnComponentVersion::LambdaVolumeMountProperty
- Defined in:
- greengrassv2/cfn_component_version.rb
Overview
Contains information about a volume that Linux processes in a container can access.
When you define a volume, the AWS IoT Greengrass Core software mounts the source files to the destination inside the container.
Instance Attribute Summary collapse
-
#add_group_owner ⇒ Boolean, ...
readonly
Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
-
#destination_path ⇒ String?
readonly
The path to the logical volume in the file system.
-
#permission ⇒ String?
readonly
The permission to access the volume: read/only (
ro) or read/write (rw). -
#source_path ⇒ String?
readonly
The path to the physical volume in the file system.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(add_group_owner: nil, destination_path: nil, permission: nil, source_path: nil) ⇒ LambdaVolumeMountProperty
constructor
A new instance of LambdaVolumeMountProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(add_group_owner: nil, destination_path: nil, permission: nil, source_path: nil) ⇒ LambdaVolumeMountProperty
Returns a new instance of LambdaVolumeMountProperty.
1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 |
# File 'greengrassv2/cfn_component_version.rb', line 1131 def initialize(add_group_owner: nil, destination_path: nil, permission: nil, source_path: 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? @destination_path = destination_path Jsii::Type.check_type(@destination_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationPath") unless @destination_path.nil? @permission = Jsii::Type.check_type(@permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permission") unless @permission.nil? @source_path = source_path Jsii::Type.check_type(@source_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourcePath") unless @source_path.nil? end |
Instance Attribute Details
#add_group_owner ⇒ Boolean, ... (readonly)
Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.
Default: false
1148 1149 1150 |
# File 'greengrassv2/cfn_component_version.rb', line 1148 def add_group_owner @add_group_owner end |
#destination_path ⇒ String? (readonly)
The path to the logical volume in the file system.
1153 1154 1155 |
# File 'greengrassv2/cfn_component_version.rb', line 1153 def destination_path @destination_path end |
#permission ⇒ String? (readonly)
The permission to access the volume: read/only ( ro ) or read/write ( rw ).
Default: ro
1160 1161 1162 |
# File 'greengrassv2/cfn_component_version.rb', line 1160 def @permission end |
#source_path ⇒ String? (readonly)
The path to the physical volume in the file system.
1165 1166 1167 |
# File 'greengrassv2/cfn_component_version.rb', line 1165 def source_path @source_path end |
Class Method Details
.jsii_properties ⇒ Object
1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'greengrassv2/cfn_component_version.rb', line 1167 def self.jsii_properties { :add_group_owner => "addGroupOwner", :destination_path => "destinationPath", :permission => "permission", :source_path => "sourcePath", } end |
Instance Method Details
#to_jsii ⇒ Object
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'greengrassv2/cfn_component_version.rb', line 1176 def to_jsii result = {} result.merge!({ "addGroupOwner" => @add_group_owner, "destinationPath" => @destination_path, "permission" => @permission, "sourcePath" => @source_path, }) result.compact end |