aws-cdk-lib.aws_greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty

interface LocalVolumeResourceDataProperty

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinitionVersion_LocalVolumeResourceDataProperty
Javasoftware.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty
Pythonaws_cdk.aws_greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty
TypeScript aws-cdk-lib » aws_greengrass » CfnResourceDefinitionVersion » 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 in the Developer Guide .

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

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

    // the properties below are optional
    groupOwner: 'groupOwner',
  },
};

Properties

NameTypeDescription
destinationPathstringThe absolute local path of the resource in the Lambda environment.
sourcePathstringThe local absolute path of the volume resource on the host.
groupOwnerSetting?IResolvable | GroupOwnerSettingPropertySettings that define additional Linux OS group permissions to give to the Lambda function process.

destinationPath

Type: string

The absolute local path of the resource in the Lambda environment.


sourcePath

Type: string

The local absolute path of the volume resource on the host.

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


groupOwnerSetting?

Type: IResolvable | GroupOwnerSettingProperty (optional)

Settings that define additional Linux OS group permissions to give to the Lambda function process.