Class: AWSCDK::IoTWireless::CfnWirelessGatewayProps

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

Overview

Properties for defining a CfnWirelessGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lo_ra_wan:, description: nil, last_uplink_received_at: nil, name: nil, tags: nil, thing_arn: nil, thing_name: nil) ⇒ CfnWirelessGatewayProps

Returns a new instance of CfnWirelessGatewayProps.

Parameters:

  • lo_ra_wan (AWSCDK::IResolvable, AWSCDK::IoTWireless::CfnWirelessGateway::LoRaWANGatewayProperty)

    The gateway configuration information to use to create the wireless gateway.

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

    The description of the new resource.

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

    The date and time when the most recent uplink was received.

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

    The name of the new resource.

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

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

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

    The ARN of the thing to associate with the wireless gateway.

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

    The name of the thing associated with the wireless gateway.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'io_t_wireless/cfn_wireless_gateway_props.rb', line 16

def initialize(lo_ra_wan:, description: nil, last_uplink_received_at: nil, name: nil, tags: nil, thing_arn: nil, thing_name: nil)
  @lo_ra_wan = lo_ra_wan.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnWirelessGateway::LoRaWANGatewayProperty.new(**lo_ra_wan.transform_keys(&:to_sym)) : lo_ra_wan
  Jsii::Type.check_type(@lo_ra_wan, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5XaXJlbGVzc0dhdGV3YXkuTG9SYVdBTkdhdGV3YXlQcm9wZXJ0eSJ9XX19")), "loRaWan")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @last_uplink_received_at = last_uplink_received_at
  Jsii::Type.check_type(@last_uplink_received_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUplinkReceivedAt") unless @last_uplink_received_at.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?
  @thing_arn = thing_arn
  Jsii::Type.check_type(@thing_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "thingArn") unless @thing_arn.nil?
  @thing_name = thing_name
  Jsii::Type.check_type(@thing_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "thingName") unless @thing_name.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the new resource.

The maximum length is 2048 characters.



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

def description
  @description
end

The date and time when the most recent uplink was received.



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

def last_uplink_received_at
  @last_uplink_received_at
end

#lo_ra_wanAWSCDK::IResolvable, AWSCDK::IoTWireless::CfnWirelessGateway::LoRaWANGatewayProperty (readonly)

The gateway configuration information to use to create the wireless gateway.



37
38
39
# File 'io_t_wireless/cfn_wireless_gateway_props.rb', line 37

def lo_ra_wan
  @lo_ra_wan
end

#nameString? (readonly)

The name of the new resource.



54
55
56
# File 'io_t_wireless/cfn_wireless_gateway_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_wireless_gateway_props.rb', line 61

def tags
  @tags
end

#thing_arnString? (readonly)

The ARN of the thing to associate with the wireless gateway.



66
67
68
# File 'io_t_wireless/cfn_wireless_gateway_props.rb', line 66

def thing_arn
  @thing_arn
end

#thing_nameString? (readonly)

The name of the thing associated with the wireless gateway.

The value is empty if a thing isn't associated with the gateway.



73
74
75
# File 'io_t_wireless/cfn_wireless_gateway_props.rb', line 73

def thing_name
  @thing_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :lo_ra_wan => "loRaWan",
    :description => "description",
    :last_uplink_received_at => "lastUplinkReceivedAt",
    :name => "name",
    :tags => "tags",
    :thing_arn => "thingArn",
    :thing_name => "thingName",
  }
end

Instance Method Details

#to_jsiiObject



87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'io_t_wireless/cfn_wireless_gateway_props.rb', line 87

def to_jsii
  result = {}
  result.merge!({
    "loRaWan" => @lo_ra_wan,
    "description" => @description,
    "lastUplinkReceivedAt" => @last_uplink_received_at,
    "name" => @name,
    "tags" => @tags,
    "thingArn" => @thing_arn,
    "thingName" => @thing_name,
  })
  result.compact
end