Class: AWSCDK::IoTWireless::CfnWirelessDevice::OtaaV11Property

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

Overview

OTAA device object for v1.1 for create APIs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_key:, join_eui:, nwk_key:) ⇒ OtaaV11Property

Returns a new instance of OtaaV11Property.

Parameters:

  • app_key (String)

    The AppKey is a secret key, which you should handle in a similar way as you would an application password.

  • join_eui (String)

    The JoinEUI value.

  • nwk_key (String)

    The NwkKey is a secret key, which you should handle in a similar way as you would an application password.



988
989
990
991
992
993
994
995
# File 'io_t_wireless/cfn_wireless_device.rb', line 988

def initialize(app_key:, join_eui:, nwk_key:)
  @app_key = app_key
  Jsii::Type.check_type(@app_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appKey")
  @join_eui = join_eui
  Jsii::Type.check_type(@join_eui, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "joinEui")
  @nwk_key = nwk_key
  Jsii::Type.check_type(@nwk_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nwkKey")
end

Instance Attribute Details

#app_keyString (readonly)

The AppKey is a secret key, which you should handle in a similar way as you would an application password.

You can protect the AppKey value by storing it in the AWS Secrets Manager and use the secretsmanager to reference this value.



1003
1004
1005
# File 'io_t_wireless/cfn_wireless_device.rb', line 1003

def app_key
  @app_key
end

#join_euiString (readonly)

The JoinEUI value.



1008
1009
1010
# File 'io_t_wireless/cfn_wireless_device.rb', line 1008

def join_eui
  @join_eui
end

#nwk_keyString (readonly)

The NwkKey is a secret key, which you should handle in a similar way as you would an application password.

You can protect the NwkKey value by storing it in the AWS Secrets Manager and use the secretsmanager to reference this value.



1015
1016
1017
# File 'io_t_wireless/cfn_wireless_device.rb', line 1015

def nwk_key
  @nwk_key
end

Class Method Details

.jsii_propertiesObject



1017
1018
1019
1020
1021
1022
1023
# File 'io_t_wireless/cfn_wireless_device.rb', line 1017

def self.jsii_properties
  {
    :app_key => "appKey",
    :join_eui => "joinEui",
    :nwk_key => "nwkKey",
  }
end

Instance Method Details

#to_jsiiObject



1025
1026
1027
1028
1029
1030
1031
1032
1033
# File 'io_t_wireless/cfn_wireless_device.rb', line 1025

def to_jsii
  result = {}
  result.merge!({
    "appKey" => @app_key,
    "joinEui" => @join_eui,
    "nwkKey" => @nwk_key,
  })
  result.compact
end