Class: AWSCDK::IoTWireless::CfnTaskDefinitionProps

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

Overview

Properties for defining a CfnTaskDefinition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  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_tasksBoolean, 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_entryAWSCDK::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

#nameString? (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

#tagsArray<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
  @tags
end

#task_definition_typeString? (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

#updateAWSCDK::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_propertiesObject



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_jsiiObject



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