Class: AWSCDK::Greengrass::CfnDeviceDefinition::DeviceDefinitionVersionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnDeviceDefinition::DeviceDefinitionVersionProperty
- Defined in:
- greengrass/cfn_device_definition.rb
Overview
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.
Instance Attribute Summary collapse
-
#devices ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnDeviceDefinition::DeviceProperty>
readonly
The devices in this version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(devices:) ⇒ DeviceDefinitionVersionProperty
constructor
A new instance of DeviceDefinitionVersionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(devices:) ⇒ DeviceDefinitionVersionProperty
Returns a new instance of DeviceDefinitionVersionProperty.
605 606 607 608 |
# File 'greengrass/cfn_device_definition.rb', line 605 def initialize(devices:) @devices = devices Jsii::Type.check_type(@devices, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzcy5DZm5EZXZpY2VEZWZpbml0aW9uLkRldmljZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "devices") end |
Instance Attribute Details
#devices ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnDeviceDefinition::DeviceProperty> (readonly)
The devices in this version.
614 615 616 |
# File 'greengrass/cfn_device_definition.rb', line 614 def devices @devices end |
Class Method Details
.jsii_properties ⇒ Object
616 617 618 619 620 |
# File 'greengrass/cfn_device_definition.rb', line 616 def self.jsii_properties { :devices => "devices", } end |
Instance Method Details
#to_jsii ⇒ Object
622 623 624 625 626 627 628 |
# File 'greengrass/cfn_device_definition.rb', line 622 def to_jsii result = {} result.merge!({ "devices" => @devices, }) result.compact end |