Class: AWSCDK::Greengrass::CfnResourceDefinition::GroupOwnerSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinition::GroupOwnerSettingProperty
- 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
-
#auto_add_group_owner ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether to give the privileges of the Linux group that owns the resource to the Lambda process.
-
#group_owner ⇒ String?
readonly
The name of the Linux group whose privileges you want to add to the Lambda process.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_add_group_owner:, group_owner: nil) ⇒ GroupOwnerSettingProperty
constructor
A new instance of GroupOwnerSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_add_group_owner:, group_owner: nil) ⇒ GroupOwnerSettingProperty
Returns a new instance of GroupOwnerSettingProperty.
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_owner ⇒ Boolean, 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_owner ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |