Class CfnDeviceDefinition.DeviceProperty
A device is an AWS IoT device (thing) that's added to a Greengrass group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class DeviceProperty : Object, CfnDeviceDefinition.IDeviceProperty
Syntax (vb)
Public Class DeviceProperty
Inherits Object
Implements CfnDeviceDefinition.IDeviceProperty
Remarks
Greengrass devices can communicate with the Greengrass core in the same group. For more information, see What Is AWS IoT Greengrass ? in the Developer Guide .
In an AWS CloudFormation template, the Devices
property of the DeviceDefinitionVersion
property type contains a list of Device
property types.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var deviceProperty = new DeviceProperty {
CertificateArn = "certificateArn",
Id = "id",
ThingArn = "thingArn",
// the properties below are optional
SyncShadow = false
};
Synopsis
Constructors
DeviceProperty() |
Properties
CertificateArn | The Amazon Resource Name (ARN) of the device certificate for the device. |
Id | A descriptive or arbitrary ID for the device. |
SyncShadow | Indicates whether the device's local shadow is synced with the cloud automatically. |
ThingArn | The ARN of the device, which is an AWS IoT device (thing). |
Constructors
DeviceProperty()
public DeviceProperty()
Properties
CertificateArn
The Amazon Resource Name (ARN) of the device certificate for the device.
public string CertificateArn { get; set; }
Property Value
System.String
Remarks
This X.509 certificate is used to authenticate the device with AWS IoT and AWS IoT Greengrass services.
Id
A descriptive or arbitrary ID for the device.
public string Id { get; set; }
Property Value
System.String
Remarks
This value must be unique within the device definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+
.
SyncShadow
Indicates whether the device's local shadow is synced with the cloud automatically.
public object SyncShadow { get; set; }
Property Value
System.Object
Remarks
ThingArn
The ARN of the device, which is an AWS IoT device (thing).
public string ThingArn { get; set; }
Property Value
System.String