Interface CfnResourceDefinitionVersion.ILocalDeviceResourceDataProperty
Settings for a local device resource, which represents a file under /dev
.
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILocalDeviceResourceDataProperty
Syntax (vb)
Public Interface ILocalDeviceResourceDataProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// 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 localDeviceResourceDataProperty = new LocalDeviceResourceDataProperty {
SourcePath = "sourcePath",
// the properties below are optional
GroupOwnerSetting = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
}
};
Synopsis
Properties
GroupOwnerSetting | Settings that define additional Linux OS group permissions to give to the Lambda function process. |
SourcePath | The local absolute path of the device resource. |
Properties
GroupOwnerSetting
Settings that define additional Linux OS group permissions to give to the Lambda function process.
virtual object GroupOwnerSetting { get; }
Property Value
System.Object
Remarks
SourcePath
The local absolute path of the device resource.
string SourcePath { get; }
Property Value
System.String
Remarks
The source path for a device resource can refer only to a character device or block device under /dev
.