interface LocalDeviceResourceDataProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinition_LocalDeviceResourceDataProperty |
Java | software.amazon.awscdk.services.greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
source | string | The local absolute path of the device resource. |
group | IResolvable | Group | Settings 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
|
Group
(optional)
Settings that define additional Linux OS group permissions to give to the Lambda function process.