Class: AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANUpdateGatewayTaskEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANUpdateGatewayTaskEntryProperty
- Defined in:
- io_t_wireless/cfn_task_definition.rb
Overview
LoRaWANUpdateGatewayTaskEntry object.
Instance Attribute Summary collapse
-
#current_version ⇒ AWSCDK::IResolvable, ...
readonly
The version of the gateways that should receive the update.
-
#update_version ⇒ AWSCDK::IResolvable, ...
readonly
The firmware version to update the gateway to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(current_version: nil, update_version: nil) ⇒ LoRaWANUpdateGatewayTaskEntryProperty
constructor
A new instance of LoRaWANUpdateGatewayTaskEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(current_version: nil, update_version: nil) ⇒ LoRaWANUpdateGatewayTaskEntryProperty
Returns a new instance of LoRaWANUpdateGatewayTaskEntryProperty.
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_version ⇒ AWSCDK::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_version ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |