@Stability(value=Stable)
public static interface CfnDeviceDefinition.DeviceProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDeviceDefinition.DeviceProperty.Builder
A builder for
CfnDeviceDefinition.DeviceProperty |
static class |
CfnDeviceDefinition.DeviceProperty.Jsii$Proxy
An implementation for
CfnDeviceDefinition.DeviceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDeviceDefinition.DeviceProperty.Builder |
builder() |
String |
getCertificateArn()
The Amazon Resource Name (ARN) of the device certificate for the device.
|
String |
getId()
A descriptive or arbitrary ID for the device.
|
default Object |
getSyncShadow()
Indicates whether the device's local shadow is synced with the cloud automatically.
|
String |
getThingArn()
The ARN of the device, which is an AWS IoT device (thing).
|
@Stability(value=Stable) @NotNull String getCertificateArn()
This X.509 certificate is used to authenticate the device with AWS IoT and AWS IoT Greengrass services.
@Stability(value=Stable) @NotNull String getId()
This value must be unique within the device definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .
@Stability(value=Stable) @NotNull String getThingArn()
@Stability(value=Stable) @Nullable default Object getSyncShadow()
@Stability(value=Stable) static CfnDeviceDefinition.DeviceProperty.Builder builder()
Copyright © 2022. All rights reserved.