Class: AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANUpdateGatewayTaskEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_wireless/cfn_task_definition.rb

Overview

LoRaWANUpdateGatewayTaskEntry object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_version: nil, update_version: nil) ⇒ LoRaWANUpdateGatewayTaskEntryProperty

Returns a new instance of LoRaWANUpdateGatewayTaskEntryProperty.

Parameters:



709
710
711
712
713
714
# File 'io_t_wireless/cfn_task_definition.rb', line 709

def initialize(current_version: nil, update_version: nil)
  @current_version = current_version.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANGatewayVersionProperty.new(**current_version.transform_keys(&:to_sym)) : current_version
  Jsii::Type.check_type(@current_version, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5UYXNrRGVmaW5pdGlvbi5Mb1JhV0FOR2F0ZXdheVZlcnNpb25Qcm9wZXJ0eSJ9XX19")), "currentVersion") unless @current_version.nil?
  @update_version = update_version.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANGatewayVersionProperty.new(**update_version.transform_keys(&:to_sym)) : update_version
  Jsii::Type.check_type(@update_version, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5UYXNrRGVmaW5pdGlvbi5Mb1JhV0FOR2F0ZXdheVZlcnNpb25Qcm9wZXJ0eSJ9XX19")), "updateVersion") unless @update_version.nil?
end

Instance Attribute Details

#current_versionAWSCDK::IResolvable, ... (readonly)

The version of the gateways that should receive the update.



720
721
722
# File 'io_t_wireless/cfn_task_definition.rb', line 720

def current_version
  @current_version
end

#update_versionAWSCDK::IResolvable, ... (readonly)

The firmware version to update the gateway to.



725
726
727
# File 'io_t_wireless/cfn_task_definition.rb', line 725

def update_version
  @update_version
end

Class Method Details

.jsii_propertiesObject



727
728
729
730
731
732
# File 'io_t_wireless/cfn_task_definition.rb', line 727

def self.jsii_properties
  {
    :current_version => "currentVersion",
    :update_version => "updateVersion",
  }
end

Instance Method Details

#to_jsiiObject



734
735
736
737
738
739
740
741
# File 'io_t_wireless/cfn_task_definition.rb', line 734

def to_jsii
  result = {}
  result.merge!({
    "currentVersion" => @current_version,
    "updateVersion" => @update_version,
  })
  result.compact
end