

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::CoreDefinition CoreDefinitionVersion
<a name="aws-properties-greengrass-coredefinition-coredefinitionversion"></a>

<a name="aws-properties-greengrass-coredefinition-coredefinitionversion-description"></a> A core definition version contains a Greengrass [core](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-coredefinition-core.html).

**Note**  
After you create a core definition version that contains the core 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-coredefinition-coredefinitionversion-inheritance"></a> In an Amazon CloudFormation template, `CoreDefinitionVersion` is the property type of the `InitialVersion` property in the [https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-coredefinition.html](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-coredefinition.html) resource.

## Syntax
<a name="aws-properties-greengrass-coredefinition-coredefinitionversion-syntax"></a>

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

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

```
{
  "[Cores](#cfn-greengrass-coredefinition-coredefinitionversion-cores)" : [ Core, ... ]
}
```

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

```
  [Cores](#cfn-greengrass-coredefinition-coredefinitionversion-cores): 
    - Core
```

## Properties
<a name="aws-properties-greengrass-coredefinition-coredefinitionversion-properties"></a>

`Cores`  <a name="cfn-greengrass-coredefinition-coredefinitionversion-cores"></a>
The Greengrass core in this version. Currently, the `Cores` property for a core definition version can contain only one core.  
*Required*: Yes  
*Type*: Array of [Core](aws-properties-greengrass-coredefinition-core.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-coredefinition-coredefinitionversion--seealso"></a>
+ [CoreDefinitionVersion](https://docs.amazonaws.cn/greengrass/v1/apireference/definitions-coredefinitionversion.html) in the * Amazon IoT Greengrass Version 1 API Reference *
+  [Amazon IoT Greengrass Version 1 Developer Guide](https://docs.amazonaws.cn/greengrass/v1/developerguide/) 