Class: AWSCDK::IoTWireless::CfnMulticastGroupProps

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

Overview

Properties for defining a CfnMulticastGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lo_ra_wan:, associate_wireless_device: nil, description: nil, disassociate_wireless_device: nil, name: nil, tags: nil) ⇒ CfnMulticastGroupProps

Returns a new instance of CfnMulticastGroupProps.

Parameters:

  • lo_ra_wan (AWSCDK::IResolvable, AWSCDK::IoTWireless::CfnMulticastGroup::LoRaWANProperty)

    The LoRaWAN information that is to be used with the multicast group.

  • associate_wireless_device (String, nil) (defaults to: nil)

    The ID of the wireless device to associate with a multicast group.

  • description (String, nil) (defaults to: nil)

    The description of the multicast group.

  • disassociate_wireless_device (String, nil) (defaults to: nil)

    The ID of the wireless device to disassociate from a multicast group.

  • name (String, nil) (defaults to: nil)

    The name of the multicast group.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags are an array of key-value pairs to attach to the specified resource.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 15

def initialize(lo_ra_wan:, associate_wireless_device: nil, description: nil, disassociate_wireless_device: nil, name: nil, tags: nil)
  @lo_ra_wan = lo_ra_wan.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnMulticastGroup::LoRaWANProperty.new(**lo_ra_wan.transform_keys(&:to_sym)) : lo_ra_wan
  Jsii::Type.check_type(@lo_ra_wan, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5NdWx0aWNhc3RHcm91cC5Mb1JhV0FOUHJvcGVydHkifV19fQ==")), "loRaWan")
  @associate_wireless_device = associate_wireless_device
  Jsii::Type.check_type(@associate_wireless_device, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "associateWirelessDevice") unless @associate_wireless_device.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @disassociate_wireless_device = disassociate_wireless_device
  Jsii::Type.check_type(@disassociate_wireless_device, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "disassociateWirelessDevice") unless @disassociate_wireless_device.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?
end

Instance Attribute Details

#associate_wireless_deviceString? (readonly)

The ID of the wireless device to associate with a multicast group.



39
40
41
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 39

def associate_wireless_device
  @associate_wireless_device
end

#descriptionString? (readonly)

The description of the multicast group.



44
45
46
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 44

def description
  @description
end

#disassociate_wireless_deviceString? (readonly)

The ID of the wireless device to disassociate from a multicast group.



49
50
51
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 49

def disassociate_wireless_device
  @disassociate_wireless_device
end

#lo_ra_wanAWSCDK::IResolvable, AWSCDK::IoTWireless::CfnMulticastGroup::LoRaWANProperty (readonly)

The LoRaWAN information that is to be used with the multicast group.



34
35
36
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 34

def lo_ra_wan
  @lo_ra_wan
end

#nameString? (readonly)

The name of the multicast group.



54
55
56
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 54

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.



61
62
63
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 61

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



63
64
65
66
67
68
69
70
71
72
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 63

def self.jsii_properties
  {
    :lo_ra_wan => "loRaWan",
    :associate_wireless_device => "associateWirelessDevice",
    :description => "description",
    :disassociate_wireless_device => "disassociateWirelessDevice",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



74
75
76
77
78
79
80
81
82
83
84
85
# File 'io_t_wireless/cfn_multicast_group_props.rb', line 74

def to_jsii
  result = {}
  result.merge!({
    "loRaWan" => @lo_ra_wan,
    "associateWirelessDevice" => @associate_wireless_device,
    "description" => @description,
    "disassociateWirelessDevice" => @disassociate_wireless_device,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end