# LocalVolumeResourceDataProperty

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](https://docs.aws.amazon.com/greengrass/v1/developerguide/access-local-resources.html) in the *Developer Guide* .

In an CloudFormation template, `LocalVolumeResourceData` can be used in the [`ResourceDataContainer`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html) property type.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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',
  },
};
```

## Properties

- `destinationPath`: string (required) — The absolute local path of the resource in the Lambda environment.

- `groupOwnerSetting`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceDefinitionVersion.GroupOwnerSettingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty.html) — Settings that define additional Linux OS group permissions to give to the Lambda function process.

- `sourcePath`: 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` .
