

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::DeviceDefinitionVersion Device
<a name="aws-properties-greengrass-devicedefinitionversion-device"></a>

<a name="aws-properties-greengrass-devicedefinitionversion-device-description"></a> A device is an Amazon IoT device (thing) that's added to a Greengrass group. Greengrass devices can communicate with the Greengrass core in the same group. For more information, see [What Is Amazon IoT Greengrass?](https://docs.amazonaws.cn/greengrass/v1/developerguide/what-is-gg.html) in the * Amazon IoT Greengrass Version 1 Developer Guide *.

<a name="aws-properties-greengrass-devicedefinitionversion-device-inheritance"></a> In an Amazon CloudFormation template, the `Devices` property of the [https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-devicedefinitionversion.html](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-devicedefinitionversion.html) resource contains a list of `Device` property types.

## Syntax
<a name="aws-properties-greengrass-devicedefinitionversion-device-syntax"></a>

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

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

```
{
  "[CertificateArn](#cfn-greengrass-devicedefinitionversion-device-certificatearn)" : String,
  "[Id](#cfn-greengrass-devicedefinitionversion-device-id)" : String,
  "[SyncShadow](#cfn-greengrass-devicedefinitionversion-device-syncshadow)" : Boolean,
  "[ThingArn](#cfn-greengrass-devicedefinitionversion-device-thingarn)" : String
}
```

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

```
  [CertificateArn](#cfn-greengrass-devicedefinitionversion-device-certificatearn): String
  [Id](#cfn-greengrass-devicedefinitionversion-device-id): String
  [SyncShadow](#cfn-greengrass-devicedefinitionversion-device-syncshadow): Boolean
  [ThingArn](#cfn-greengrass-devicedefinitionversion-device-thingarn): String
```

## Properties
<a name="aws-properties-greengrass-devicedefinitionversion-device-properties"></a>

`CertificateArn`  <a name="cfn-greengrass-devicedefinitionversion-device-certificatearn"></a>
The ARN of the device certificate for the device. This X.509 certificate is used to authenticate the device with Amazon IoT and Amazon IoT Greengrass services.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Id`  <a name="cfn-greengrass-devicedefinitionversion-device-id"></a>
A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Maximum length is 128 characters with pattern `[a-zA-Z0-9:_-]+`.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SyncShadow`  <a name="cfn-greengrass-devicedefinitionversion-device-syncshadow"></a>
Indicates whether the device's local shadow is synced with the cloud automatically.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ThingArn`  <a name="cfn-greengrass-devicedefinitionversion-device-thingarn"></a>
The Amazon Resource Name (ARN) of the device, which is an Amazon IoT device (thing).  
*Required*: Yes  
*Type*: String  
*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-devicedefinitionversion-device--seealso"></a>
+ [Device](https://docs.amazonaws.cn/greengrass/v1/apireference/definitions-device.html) in the * Amazon IoT Greengrass Version 1 API Reference *
+  [Amazon IoT Greengrass Version 1 Developer Guide](https://docs.amazonaws.cn/greengrass/v1/developerguide/) 