aws-cdk-lib.aws_greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty

interface LocalDeviceResourceDataProperty

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinition_LocalDeviceResourceDataProperty
Javasoftware.amazon.awscdk.services.greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty
Pythonaws_cdk.aws_greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty
TypeScript aws-cdk-lib » aws_greengrass » CfnResourceDefinition » LocalDeviceResourceDataProperty

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 AWS CloudFormation template, LocalDeviceResourceData can be used in the ResourceDataContainer property type.

Example

// 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.CfnResourceDefinition.LocalDeviceResourceDataProperty = {
  sourcePath: 'sourcePath',

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

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

Properties

NameTypeDescription
sourcePathstringThe local absolute path of the device resource.
groupOwnerSetting?IResolvable | GroupOwnerSettingPropertySettings that define additional Linux OS group permissions to give to the Lambda function process.

sourcePath

Type: string

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 .


groupOwnerSetting?

Type: IResolvable | GroupOwnerSettingProperty (optional)

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