Class: AWSCDK::Greengrassv2::CfnComponentVersion::LambdaDeviceMountProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(add_group_owner: nil, path: nil, permission: nil) ⇒ LambdaDeviceMountProperty

Returns a new instance of LambdaDeviceMountProperty.

Parameters:

  • add_group_owner (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether or not to add the component's system user as an owner of the device.

  • path (String, nil) (defaults to: nil)

    The mount path for the device in the file system.

  • permission (String, nil) (defaults to: nil)

    The permission to access the device: read/only ( ro ) or read/write ( rw ).



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 = permission
  Jsii::Type.check_type(@permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permission") unless @permission.nil?
end

Instance Attribute Details

#add_group_ownerBoolean, ... (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

#pathString? (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

#permissionString? (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
  @permission
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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