Skip to content
v2.278.0

LocalVolumeResourceDataProperty Struct ​

Settings for a local volume resource, which represents a file or directory on the root file system.

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

In an CloudFormation template, LocalVolumeResourceData 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 localVolumeResourceDataProperty: greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty = {
  destinationPath: 'destinationPath',
  sourcePath: 'sourcePath',

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

    // the properties below are optional
    groupOwner: 'groupOwner',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass

local_volume_resource_data_property = greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty(
    destination_path="destinationPath",
    source_path="sourcePath",

    # the properties below are optional
    group_owner_setting=greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty(
        auto_add_group_owner=False,

        # the properties below are optional
        group_owner="groupOwner"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;

LocalVolumeResourceDataProperty localVolumeResourceDataProperty = LocalVolumeResourceDataProperty.builder()
        .destinationPath("destinationPath")
        .sourcePath("sourcePath")

        // the properties below are optional
        .groupOwnerSetting(GroupOwnerSettingProperty.builder()
                .autoAddGroupOwner(false)

                // the properties below are optional
                .groupOwner("groupOwner")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

localVolumeResourceDataProperty := &LocalVolumeResourceDataProperty{
	DestinationPath: jsii.String("destinationPath"),
	SourcePath: jsii.String("sourcePath"),

	// the properties below are optional
	GroupOwnerSetting: &GroupOwnerSettingProperty{
		AutoAddGroupOwner: jsii.Boolean(false),

		// the properties below are optional
		GroupOwner: jsii.String("groupOwner"),
	},
}

Properties ​

destinationPathstringdestination_pathstrdestinationPathStringDestinationPathstringDestinationPath*string required #
The absolute local path of the resource in the Lambda environment.
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*string required #
The local absolute path of the volume resource on the host.

The source path for a volume resource type cannot start with /sys .