Class: AWSCDK::Greengrass::CfnDeviceDefinition::DeviceDefinitionVersionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(devices:) ⇒ DeviceDefinitionVersionProperty

Returns a new instance of DeviceDefinitionVersionProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



616
617
618
619
620
# File 'greengrass/cfn_device_definition.rb', line 616

def self.jsii_properties
  {
    :devices => "devices",
  }
end

Instance Method Details

#to_jsiiObject



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