AWS::Greengrass::ResourceDefinition ResourceInstance
A local resource, machine learning resource, or secret resource. For more information, see Access Local Resources with Lambda Functions, Perform Machine Learning Inference, and Deploy Secrets to the Amazon IoT Greengrass Core in the Amazon IoT Greengrass Version 1 Developer Guide .
In an
Amazon CloudFormation template, the Resources
property of the AWS::Greengrass::ResourceDefinition
resource contains a list of ResourceInstance
property types.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Id" :
String
, "Name" :String
, "ResourceDataContainer" :ResourceDataContainer
}
YAML
Id:
String
Name:String
ResourceDataContainer:ResourceDataContainer
Properties
Id
-
A descriptive or arbitrary ID for the resource. This value must be unique within the resource definition version. Maximum length is 128 characters with pattern
[a-zA-Z0-9:_-]+
.Required: Yes
Type: String
Update requires: Replacement
Name
-
The descriptive resource name, which is displayed on the Amazon IoT Greengrass console. Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.
Required: Yes
Type: String
Update requires: Replacement
ResourceDataContainer
-
A container for resource data. The container takes only one of the following supported resource data types:
LocalDeviceResourceData
,LocalVolumeResourceData
,SageMakerMachineLearningModelResourceData
,S3MachineLearningModelResourceData
, orSecretsManagerSecretResourceData
.Note
Only one resource type can be defined for a
ResourceDataContainer
instance.Required: Yes
Type: ResourceDataContainer
Update requires: Replacement
See also
-
Resource in the Amazon IoT Greengrass Version 1 API Reference