Skip to content
v2.278.0

CfnDeviceDefinitionVersionProps Struct ​

Properties for defining a CfnDeviceDefinitionVersion.

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 cfnDeviceDefinitionVersionProps: greengrass.CfnDeviceDefinitionVersionProps = {
  deviceDefinitionId: 'deviceDefinitionId',
  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

cfn_device_definition_version_props = greengrass.CfnDeviceDefinitionVersionProps(
    device_definition_id="deviceDefinitionId",
    devices=[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.*;

CfnDeviceDefinitionVersionProps cfnDeviceDefinitionVersionProps = CfnDeviceDefinitionVersionProps.builder()
        .deviceDefinitionId("deviceDefinitionId")
        .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 cfnDeviceDefinitionVersionProps = new CfnDeviceDefinitionVersionProps {
    DeviceDefinitionId = "deviceDefinitionId",
    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"

cfnDeviceDefinitionVersionProps := &CfnDeviceDefinitionVersionProps{
	DeviceDefinitionId: jsii.String("deviceDefinitionId"),
	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 ​

deviceDefinitionIdstringdevice_definition_idstrdeviceDefinitionIdStringDeviceDefinitionIdstringDeviceDefinitionId*string required #
The ID of the device definition associated with this version.

This value is a GUID.

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