Class: AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANUpdateGatewayTaskCreateProperty

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

Overview

The signature used to verify the update firmware.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_version: nil, sig_key_crc: nil, update_signature: nil, update_version: nil) ⇒ LoRaWANUpdateGatewayTaskCreateProperty

Returns a new instance of LoRaWANUpdateGatewayTaskCreateProperty.

Parameters:



648
649
650
651
652
653
654
655
656
657
# File 'io_t_wireless/cfn_task_definition.rb', line 648

def initialize(current_version: nil, sig_key_crc: nil, update_signature: 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?
  @sig_key_crc = sig_key_crc
  Jsii::Type.check_type(@sig_key_crc, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sigKeyCrc") unless @sig_key_crc.nil?
  @update_signature = update_signature
  Jsii::Type.check_type(@update_signature, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updateSignature") unless @update_signature.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.



663
664
665
# File 'io_t_wireless/cfn_task_definition.rb', line 663

def current_version
  @current_version
end

#sig_key_crcNumeric? (readonly)

The CRC of the signature private key to check.



668
669
670
# File 'io_t_wireless/cfn_task_definition.rb', line 668

def sig_key_crc
  @sig_key_crc
end

#update_signatureString? (readonly)

The signature used to verify the update firmware.



673
674
675
# File 'io_t_wireless/cfn_task_definition.rb', line 673

def update_signature
  @update_signature
end

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

The firmware version to update the gateway to.



678
679
680
# File 'io_t_wireless/cfn_task_definition.rb', line 678

def update_version
  @update_version
end

Class Method Details

.jsii_propertiesObject



680
681
682
683
684
685
686
687
# File 'io_t_wireless/cfn_task_definition.rb', line 680

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

Instance Method Details

#to_jsiiObject



689
690
691
692
693
694
695
696
697
698
# File 'io_t_wireless/cfn_task_definition.rb', line 689

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