Skip to content
v2.278.0

DeviceDefinitionVersionProperty Struct ​

A device definition version contains a list of devices .

After you create a device definition version that contains the devices you want to deploy, you must add it to your group version. For more information, see AWS::Greengrass::Group .

In an CloudFormation template, DeviceDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::DeviceDefinition resource.

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 deviceDefinitionVersionProperty: greengrass.CfnDeviceDefinition.DeviceDefinitionVersionProperty = {
  devices: [{
    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_definition_version_property = greengrass.CfnDeviceDefinition.DeviceDefinitionVersionProperty(
    devices=[greengrass.CfnDeviceDefinition.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.*;

DeviceDefinitionVersionProperty deviceDefinitionVersionProperty = DeviceDefinitionVersionProperty.builder()
        .devices(List.of(DeviceProperty.builder()
                .certificateArn("certificateArn")
                .id("id")
                .thingArn("thingArn")

                // the properties below are optional
                .syncShadow(false)
                .build()))
        .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 deviceDefinitionVersionProperty = new DeviceDefinitionVersionProperty {
    Devices = new [] { 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"

deviceDefinitionVersionProperty := &DeviceDefinitionVersionProperty{
	Devices: []interface{}{
		&DeviceProperty{
			CertificateArn: jsii.String("certificateArn"),
			Id: jsii.String("id"),
			ThingArn: jsii.String("thingArn"),

			// the properties below are optional
			SyncShadow: jsii.Boolean(false),
		},
	},
}

Properties ​

devicesIResolvable | IResolvable | CfnDeviceDefinition.DeviceProperty[]devicestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DeviceProperty]]]devicesIResolvableDevicesIResolvableDevicesinterface{} required #
The devices in this version.