Class: AWSCDK::Greengrass::CfnResourceDefinition::GroupOwnerSettingProperty

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

Overview

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

You can give the permissions of the Linux group that owns the resource or choose another Linux group. These permissions are in addition to the function's RunAs permissions.

In an CloudFormation template, GroupOwnerSetting is a property of the LocalDeviceResourceData and LocalVolumeResourceData property types.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_add_group_owner:, group_owner: nil) ⇒ GroupOwnerSettingProperty

Returns a new instance of GroupOwnerSettingProperty.

Parameters:

  • auto_add_group_owner (Boolean, AWSCDK::IResolvable)

    Indicates whether to give the privileges of the Linux group that owns the resource to the Lambda process.

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

    The name of the Linux group whose privileges you want to add to the Lambda process.



606
607
608
609
610
611
# File 'greengrass/cfn_resource_definition.rb', line 606

def initialize(auto_add_group_owner:, group_owner: nil)
  @auto_add_group_owner = auto_add_group_owner
  Jsii::Type.check_type(@auto_add_group_owner, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoAddGroupOwner")
  @group_owner = group_owner
  Jsii::Type.check_type(@group_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupOwner") unless @group_owner.nil?
end

Instance Attribute Details

#auto_add_group_ownerBoolean, AWSCDK::IResolvable (readonly)

Indicates whether to give the privileges of the Linux group that owns the resource to the Lambda process.

This gives the Lambda process the file access permissions of the Linux group.



619
620
621
# File 'greengrass/cfn_resource_definition.rb', line 619

def auto_add_group_owner
  @auto_add_group_owner
end

#group_ownerString? (readonly)

The name of the Linux group whose privileges you want to add to the Lambda process.

This value is ignored if AutoAddGroupOwner is true.



626
627
628
# File 'greengrass/cfn_resource_definition.rb', line 626

def group_owner
  @group_owner
end

Class Method Details

.jsii_propertiesObject



628
629
630
631
632
633
# File 'greengrass/cfn_resource_definition.rb', line 628

def self.jsii_properties
  {
    :auto_add_group_owner => "autoAddGroupOwner",
    :group_owner => "groupOwner",
  }
end

Instance Method Details

#to_jsiiObject



635
636
637
638
639
640
641
642
# File 'greengrass/cfn_resource_definition.rb', line 635

def to_jsii
  result = {}
  result.merge!({
    "autoAddGroupOwner" => @auto_add_group_owner,
    "groupOwner" => @group_owner,
  })
  result.compact
end