AWS::Greengrass::ResourceDefinition LocalDeviceResourceData
本地卷资源的设置,表示位于根文件系统上的文件或目录。有关更多信息,请参阅 AWS IoT Greengrass 开发人员指南 中的使用 Lambda 函数访问本地资源。
在 AWS CloudFormation 模板中,LocalVolumeResourceData
可在 ResourceDataContainer
属性类型中使用。
语法
要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:
JSON
{ "DestinationPath" :
String
, "GroupOwnerSetting" :GroupOwnerSetting
, "SourcePath" :String
}
YAML
DestinationPath:
String
GroupOwnerSetting:GroupOwnerSetting
SourcePath:String
属性
DestinationPath
-
Lambda 环境中资源的本地绝对路径。
必需:是
类型:字符串
Update requires: Replacement
GroupOwnerSetting
-
定义要授予 Lambda 函数进程的其他 Linux OS 组权限的设置。
必需:否
Update requires: Replacement
SourcePath
-
主机上的卷资源的本地绝对路径。卷资源类型的源路径不能以
/sys
开头。必需:是
类型:字符串
Update requires: Replacement
另请参阅
-
AWS IoT Greengrass API 参考 中的 LocalVolumeResourceData