Class: AWSCDK::IoTWireless::CfnTaskDefinitionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTWireless::CfnTaskDefinitionProps
- Defined in:
- io_t_wireless/cfn_task_definition_props.rb
Overview
Properties for defining a CfnTaskDefinition.
Instance Attribute Summary collapse
-
#auto_create_tasks ⇒ Boolean, AWSCDK::IResolvable
readonly
Whether to automatically create tasks using this task definition for all gateways with the specified current version.
-
#lo_ra_wan_update_gateway_task_entry ⇒ AWSCDK::IResolvable, ...
readonly
LoRaWANUpdateGatewayTaskEntry object.
-
#name ⇒ String?
readonly
The name of the new resource.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags are an array of key-value pairs to attach to the specified resource.
-
#task_definition_type ⇒ String?
readonly
A filter to list only the wireless gateway task definitions that use this task definition type.
-
#update ⇒ AWSCDK::IResolvable, ...
readonly
Information about the gateways to update.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_create_tasks:, lo_ra_wan_update_gateway_task_entry: nil, name: nil, tags: nil, task_definition_type: nil, update: nil) ⇒ CfnTaskDefinitionProps
constructor
A new instance of CfnTaskDefinitionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_create_tasks:, lo_ra_wan_update_gateway_task_entry: nil, name: nil, tags: nil, task_definition_type: nil, update: nil) ⇒ CfnTaskDefinitionProps
Returns a new instance of CfnTaskDefinitionProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 15 def initialize(auto_create_tasks:, lo_ra_wan_update_gateway_task_entry: nil, name: nil, tags: nil, task_definition_type: nil, update: nil) @auto_create_tasks = auto_create_tasks Jsii::Type.check_type(@auto_create_tasks, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoCreateTasks") @lo_ra_wan_update_gateway_task_entry = lo_ra_wan_update_gateway_task_entry.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnTaskDefinition::LoRaWANUpdateGatewayTaskEntryProperty.new(**lo_ra_wan_update_gateway_task_entry.transform_keys(&:to_sym)) : lo_ra_wan_update_gateway_task_entry Jsii::Type.check_type(@lo_ra_wan_update_gateway_task_entry, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5UYXNrRGVmaW5pdGlvbi5Mb1JhV0FOVXBkYXRlR2F0ZXdheVRhc2tFbnRyeVByb3BlcnR5In1dfX0=")), "loRaWanUpdateGatewayTaskEntry") unless @lo_ra_wan_update_gateway_task_entry.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @task_definition_type = task_definition_type Jsii::Type.check_type(@task_definition_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "taskDefinitionType") unless @task_definition_type.nil? @update = update.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnTaskDefinition::UpdateWirelessGatewayTaskCreateProperty.new(**update.transform_keys(&:to_sym)) : update Jsii::Type.check_type(@update, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5UYXNrRGVmaW5pdGlvbi5VcGRhdGVXaXJlbGVzc0dhdGV3YXlUYXNrQ3JlYXRlUHJvcGVydHkifV19fQ==")), "update") unless @update.nil? end |
Instance Attribute Details
#auto_create_tasks ⇒ Boolean, AWSCDK::IResolvable (readonly)
Whether to automatically create tasks using this task definition for all gateways with the specified current version.
If false , the task must be created by calling CreateWirelessGatewayTask .
36 37 38 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 36 def auto_create_tasks @auto_create_tasks end |
#lo_ra_wan_update_gateway_task_entry ⇒ AWSCDK::IResolvable, ... (readonly)
LoRaWANUpdateGatewayTaskEntry object.
41 42 43 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 41 def lo_ra_wan_update_gateway_task_entry @lo_ra_wan_update_gateway_task_entry end |
#name ⇒ String? (readonly)
The name of the new resource.
46 47 48 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 46 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags are an array of key-value pairs to attach to the specified resource.
Tags can have a minimum of 0 and a maximum of 50 items.
53 54 55 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 53 def @tags end |
#task_definition_type ⇒ String? (readonly)
A filter to list only the wireless gateway task definitions that use this task definition type.
58 59 60 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 58 def task_definition_type @task_definition_type end |
#update ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the gateways to update.
63 64 65 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 63 def update @update end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 65 def self.jsii_properties { :auto_create_tasks => "autoCreateTasks", :lo_ra_wan_update_gateway_task_entry => "loRaWanUpdateGatewayTaskEntry", :name => "name", :tags => "tags", :task_definition_type => "taskDefinitionType", :update => "update", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'io_t_wireless/cfn_task_definition_props.rb', line 76 def to_jsii result = {} result.merge!({ "autoCreateTasks" => @auto_create_tasks, "loRaWanUpdateGatewayTaskEntry" => @lo_ra_wan_update_gateway_task_entry, "name" => @name, "tags" => @tags, "taskDefinitionType" => @task_definition_type, "update" => @update, }) result.compact end |