Skip to content
v2.274.0

CfnDeviceDefinitionProps Struct ​

Properties for defining a CfnDeviceDefinition.

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';

declare const tags: any;
const cfnDeviceDefinitionProps: greengrass.CfnDeviceDefinitionProps = {
  name: 'name',

  // the properties below are optional
  initialVersion: {
    devices: [{
      certificateArn: 'certificateArn',
      id: 'id',
      thingArn: 'thingArn',

      // the properties below are optional
      syncShadow: false,
    }],
  },
  tags: tags,
};

Properties ​

initialVersionoptionalIResolvable | CfnDeviceDefinition.DeviceDefinitionVersionPropertyinitial_versionoptionaltyping.Union[IResolvable, DeviceDefinitionVersionProperty]initialVersionoptionalIResolvableInitialVersionoptionalIResolvableInitialVersionoptionalinterface{}#
The device definition version to include when the device definition is created.
notes

A device definition version contains a list of device property types.

To associate a device definition version after the device definition is created, create an AWS::Greengrass::DeviceDefinitionVersion resource and specify the ID of this device definition.

namestringnamestrnameStringNamestringName*stringrequired#
The name of the device definition.
tagsoptionalanytagsoptionalAnytagsoptionalObjectTagsoptionalobjectTagsoptionalinterface{}#
Application-specific metadata to attach to the device definition.
notes

You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .

This Json property type is processed as a map of key-value pairs. It uses the following format, which is different from most Tags implementations in CloudFormation templates.

json
"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}