DeviceProperty Struct
A device is an AWS 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 AWS IoT Greengrass ? in the Developer Guide .
In an CloudFormation template, the Devices property of the AWS::Greengrass::DeviceDefinitionVersion resource contains a list of Device property types.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const deviceProperty: greengrass.CfnDeviceDefinitionVersion.DeviceProperty = {
certificateArn: 'certificateArn',
id: 'id',
thingArn: 'thingArn',
// the properties below are optional
syncShadow: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass
device_property = greengrass.CfnDeviceDefinitionVersion.DeviceProperty(
certificate_arn="certificateArn",
id="id",
thing_arn="thingArn",
# the properties below are optional
sync_shadow=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
DeviceProperty deviceProperty = DeviceProperty.builder()
.certificateArn("certificateArn")
.id("id")
.thingArn("thingArn")
// the properties below are optional
.syncShadow(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
deviceProperty := &DeviceProperty{
CertificateArn: jsii.String("certificateArn"),
Id: jsii.String("id"),
ThingArn: jsii.String("thingArn"),
// the properties below are optional
SyncShadow: jsii.Boolean(false),
}
Properties
certificateArnstringcertificate_arnstrcertificateArnStringCertificateArnstringCertificateArn*string required #The ARN of the device certificate for the device.
This X.509 certificate is used to authenticate the device with AWS IoT and AWS IoT Greengrass services.
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:_-]+ .
syncShadowoptionalboolean | IResolvablesync_shadowoptionaltyping.Union[bool, IResolvable]syncShadowoptionalBooleanSyncShadowoptionalboolSyncShadowoptionalinterface{} #Indicates whether the device's local shadow is synced with the cloud automatically.
The Amazon Resource Name (ARN) of the device, which is an AWS IoT device (thing).