# CfnDeviceDefinitionVersionProps

Properties for defining a `CfnDeviceDefinitionVersion`.

Used as props by: [CfnDeviceDefinitionVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnDeviceDefinitionVersion.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    } }
};
```

Golang:

```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

- `deviceDefinitionId`: string (required) — The ID of the device definition associated with this version.

  This value is a GUID.

- `devices`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeviceDefinitionVersion.DeviceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnDeviceDefinitionVersion.DeviceProperty.html)[] (required) — The devices in this version.
