interface LocalVolumeResourceDataProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Greengrass.Mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgreengrass/mixins#CfnResourceDefinitionVersionPropsMixin_LocalVolumeResourceDataProperty |
Java | software.amazon.awscdk.mixins.preview.services.greengrass.mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty |
Python | aws_cdk.mixins_preview.aws_greengrass.mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty |
TypeScript | @aws-cdk/mixins-preview » aws_greengrass » mixins » CfnResourceDefinitionVersionPropsMixin » 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 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 { mixins as greengrass_mixins } from '@aws-cdk/mixins-preview/aws-greengrass';
const localVolumeResourceDataProperty: greengrass_mixins.CfnResourceDefinitionVersionPropsMixin.LocalVolumeResourceDataProperty = {
destinationPath: 'destinationPath',
groupOwnerSetting: {
autoAddGroupOwner: false,
groupOwner: 'groupOwner',
},
sourcePath: 'sourcePath',
};
Properties
| Name | Type | Description |
|---|---|---|
| destination | string | The absolute local path of the resource in the Lambda environment. |
| group | IResolvable | Group | Settings that define additional Linux OS group permissions to give to the Lambda function process. |
| source | string | The local absolute path of the volume resource on the host. |
destinationPath?
Type:
string
(optional)
The absolute local path of the resource in the Lambda environment.
groupOwnerSetting?
Type:
IResolvable | Group
(optional)
Settings that define additional Linux OS group permissions to give to the Lambda function process.
sourcePath?
Type:
string
(optional)
The local absolute path of the volume resource on the host.
The source path for a volume resource type cannot start with /sys .

.NET
Go
Java
Python
TypeScript