

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Greengrass::ResourceDefinition ResourceDefinitionVersion
<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion"></a>

<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion-description"></a>A resource definition version contains a list of resources. (In Amazon CloudFormation, resources are named *resource instances*.)

**Note**  
After you create a resource definition version that contains the resources you want to deploy, you must add it to your group version. For more information, see [https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-group.html](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-group.html).

<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion-inheritance"></a> In an Amazon CloudFormation template, `ResourceDefinitionVersion` is the property type of the `InitialVersion` property in the [https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinition.html](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinition.html) resource.

## Syntax
<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion-syntax.json"></a>

```
{
  "[Resources](#cfn-greengrass-resourcedefinition-resourcedefinitionversion-resources)" : [ ResourceInstance, ... ]
}
```

### YAML
<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion-syntax.yaml"></a>

```
  [Resources](#cfn-greengrass-resourcedefinition-resourcedefinitionversion-resources): 
    - ResourceInstance
```

## Properties
<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion-properties"></a>

`Resources`  <a name="cfn-greengrass-resourcedefinition-resourcedefinitionversion-resources"></a>
The resources in this version.  
*Required*: Yes  
*Type*: Array of [ResourceInstance](aws-properties-greengrass-resourcedefinition-resourceinstance.md)  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

## See also
<a name="aws-properties-greengrass-resourcedefinition-resourcedefinitionversion--seealso"></a>
+ [ResourceDefinitionVersion](https://docs.amazonaws.cn/greengrass/v1/apireference/definitions-resourcedefinitionversion.html) in the * Amazon IoT Greengrass Version 1 API Reference *
+  [Amazon IoT Greengrass Version 1 Developer Guide](https://docs.amazonaws.cn/greengrass/v1/developerguide/) 