Skip to content
v2.275.0

LocalDeviceResourceDataProperty Struct ​

Settings for a local device resource, which represents a file under /dev .

For more information, see Access Local Resources with Lambda Functions in the Developer Guide .

In an CloudFormation template, LocalDeviceResourceData can be used in the ResourceDataContainer property type.

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 localDeviceResourceDataProperty: greengrass.CfnResourceDefinitionVersion.LocalDeviceResourceDataProperty = {
  sourcePath: 'sourcePath',

  // the properties below are optional
  groupOwnerSetting: {
    autoAddGroupOwner: false,

    // the properties below are optional
    groupOwner: 'groupOwner',
  },
};

Properties ​

groupOwnerSettingoptionalIResolvable | CfnResourceDefinitionVersion.GroupOwnerSettingPropertygroup_owner_settingoptionaltyping.Union[IResolvable, GroupOwnerSettingProperty]groupOwnerSettingoptionalIResolvableGroupOwnerSettingoptionalIResolvableGroupOwnerSettingoptionalinterface{}#
Settings that define additional Linux OS group permissions to give to the Lambda function process.
sourcePathstringsource_pathstrsourcePathStringSourcePathstringSourcePath*stringrequired#
The local absolute path of the device resource.

The source path for a device resource can refer only to a character device or block device under /dev .