GroupOwnerSettingProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const groupOwnerSettingProperty: greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty = {
autoAddGroupOwner: false,
// the properties below are optional
groupOwner: 'groupOwner',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass
group_owner_setting_property = greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty(
auto_add_group_owner=False,
# the properties below are optional
group_owner="groupOwner"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
GroupOwnerSettingProperty groupOwnerSettingProperty = GroupOwnerSettingProperty.builder()
.autoAddGroupOwner(false)
// the properties below are optional
.groupOwner("groupOwner")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var groupOwnerSettingProperty = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
groupOwnerSettingProperty := &GroupOwnerSettingProperty{
AutoAddGroupOwner: jsii.Boolean(false),
// the properties below are optional
GroupOwner: jsii.String("groupOwner"),
}
Properties
autoAddGroupOwnerboolean | IResolvableauto_add_group_ownertyping.Union[bool, IResolvable]autoAddGroupOwnerBooleanAutoAddGroupOwnerboolAutoAddGroupOwnerinterface{} required #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.
groupOwneroptionalstringgroup_owneroptionalstrgroupOwneroptionalStringGroupOwneroptionalstringGroupOwneroptional*string #The name of the Linux group whose privileges you want to add to the Lambda process.
This value is ignored if AutoAddGroupOwner is true.