Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::GroupOwnerSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_resource_definition_version.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.



522
523
524
525
526
527
# File 'greengrass/cfn_resource_definition_version.rb', line 522

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.



535
536
537
# File 'greengrass/cfn_resource_definition_version.rb', line 535

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.



542
543
544
# File 'greengrass/cfn_resource_definition_version.rb', line 542

def group_owner
  @group_owner
end

Class Method Details

.jsii_propertiesObject



544
545
546
547
548
549
# File 'greengrass/cfn_resource_definition_version.rb', line 544

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

Instance Method Details

#to_jsiiObject



551
552
553
554
555
556
557
558
# File 'greengrass/cfn_resource_definition_version.rb', line 551

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