CfnDeviceDefinitionProps
- class aws_cdk.aws_greengrass.CfnDeviceDefinitionProps(*, name, initial_version=None, tags=None)
Bases:
object
Properties for defining a
CfnDeviceDefinition
.- Parameters:
name (
str
) – The name of the device definition.initial_version (
Union
[IResolvable
,DeviceDefinitionVersionProperty
,Dict
[str
,Any
],None
]) – The device definition version to include when the device definition is created. A device definition version contains a list of`device
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-devicedefinition-device.html>`_ property types. .. epigraph:: To associate a device definition version after the device definition is created, create an`AWS::Greengrass::DeviceDefinitionVersion
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-devicedefinitionversion.html>`_ resource and specify the ID of this device definition.tags (
Optional
[Any
]) – Application-specific metadata to attach to the device definition. 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 . ThisJson
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates:: “Tags”: { “KeyName0”: “value”, “KeyName1”: “value”, “KeyName2”: “value” }
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_greengrass as greengrass # tags: Any cfn_device_definition_props = greengrass.CfnDeviceDefinitionProps( name="name", # the properties below are optional initial_version=greengrass.CfnDeviceDefinition.DeviceDefinitionVersionProperty( devices=[greengrass.CfnDeviceDefinition.DeviceProperty( certificate_arn="certificateArn", id="id", thing_arn="thingArn", # the properties below are optional sync_shadow=False )] ), tags=tags )
Attributes
- initial_version
The device definition version to include when the device definition is created.
A device definition version contains a list of
`device
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-devicedefinition-device.html>`_ property types. .. epigraph:To associate a device definition version after the device definition is created, create an ```AWS::Greengrass::DeviceDefinitionVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-devicedefinitionversion.html>`_ resource and specify the ID of this device definition.
- name
The name of the device definition.
- tags
Application-specific metadata to attach to the device definition.
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 mostTags
implementations in AWS CloudFormation templates:"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }