Class: AWSCDK::IoTWireless::CfnDeviceProfileProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTWireless::CfnDeviceProfileProps
- Defined in:
- io_t_wireless/cfn_device_profile_props.rb
Overview
Properties for defining a CfnDeviceProfile.
Instance Attribute Summary collapse
-
#lo_ra_wan ⇒ AWSCDK::IResolvable, ...
readonly
LoRaWAN device profile 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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lo_ra_wan: nil, name: nil, tags: nil) ⇒ CfnDeviceProfileProps
constructor
A new instance of CfnDeviceProfileProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lo_ra_wan: nil, name: nil, tags: nil) ⇒ CfnDeviceProfileProps
Returns a new instance of CfnDeviceProfileProps.
12 13 14 15 16 17 18 19 |
# File 'io_t_wireless/cfn_device_profile_props.rb', line 12 def initialize(lo_ra_wan: nil, name: nil, tags: nil) @lo_ra_wan = lo_ra_wan.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnDeviceProfile::LoRaWANDeviceProfileProperty.new(**lo_ra_wan.transform_keys(&:to_sym)) : lo_ra_wan Jsii::Type.check_type(@lo_ra_wan, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5EZXZpY2VQcm9maWxlLkxvUmFXQU5EZXZpY2VQcm9maWxlUHJvcGVydHkifV19fQ==")), "loRaWan") unless @lo_ra_wan.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? end |
Instance Attribute Details
#lo_ra_wan ⇒ AWSCDK::IResolvable, ... (readonly)
LoRaWAN device profile object.
25 26 27 |
# File 'io_t_wireless/cfn_device_profile_props.rb', line 25 def lo_ra_wan @lo_ra_wan end |
#name ⇒ String? (readonly)
The name of the new resource.
30 31 32 |
# File 'io_t_wireless/cfn_device_profile_props.rb', line 30 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.
37 38 39 |
# File 'io_t_wireless/cfn_device_profile_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'io_t_wireless/cfn_device_profile_props.rb', line 39 def self.jsii_properties { :lo_ra_wan => "loRaWan", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'io_t_wireless/cfn_device_profile_props.rb', line 47 def to_jsii result = {} result.merge!({ "loRaWan" => @lo_ra_wan, "name" => @name, "tags" => @tags, }) result.compact end |