Class CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty
Settings for a local volume resource, which represents a file or directory on the root file system.
Inheritance
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LocalVolumeResourceDataProperty : Object, CfnResourceDefinitionVersion.ILocalVolumeResourceDataProperty
Syntax (vb)
Public Class LocalVolumeResourceDataProperty
Inherits Object
Implements CfnResourceDefinitionVersion.ILocalVolumeResourceDataProperty
Remarks
For more information, see Access Local Resources with Lambda Functions in the Developer Guide .
In an AWS CloudFormation template, LocalVolumeResourceData
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 localVolumeResourceDataProperty = new LocalVolumeResourceDataProperty {
DestinationPath = "destinationPath",
SourcePath = "sourcePath",
// the properties below are optional
GroupOwnerSetting = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
}
};
Synopsis
Constructors
LocalVolumeResourceDataProperty() |
Properties
DestinationPath | The absolute local path of the resource in the Lambda environment. |
GroupOwnerSetting | Settings that define additional Linux OS group permissions to give to the Lambda function process. |
SourcePath | The local absolute path of the volume resource on the host. |
Constructors
LocalVolumeResourceDataProperty()
public LocalVolumeResourceDataProperty()
Properties
DestinationPath
The absolute local path of the resource in the Lambda environment.
public string DestinationPath { get; set; }
Property Value
System.String
Remarks
GroupOwnerSetting
Settings that define additional Linux OS group permissions to give to the Lambda function process.
public object GroupOwnerSetting { get; set; }
Property Value
System.Object
Remarks
SourcePath
The local absolute path of the volume resource on the host.
public string SourcePath { get; set; }
Property Value
System.String
Remarks
The source path for a volume resource type cannot start with /sys
.