Class: AWSCDK::Sagemaker::CfnDevice::DeviceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_device.rb

Overview

Information of a particular device.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_name:, description: nil, iot_thing_name: nil) ⇒ DeviceProperty

Returns a new instance of DeviceProperty.

Parameters:

  • device_name (String)

    The name of the device.

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

    Description of the device.

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

    AWS Internet of Things (IoT) object name.



533
534
535
536
537
538
539
540
# File 'sagemaker/cfn_device.rb', line 533

def initialize(device_name:, description: nil, iot_thing_name: nil)
  @device_name = device_name
  Jsii::Type.check_type(@device_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deviceName")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @iot_thing_name = iot_thing_name
  Jsii::Type.check_type(@iot_thing_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "iotThingName") unless @iot_thing_name.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

Description of the device.



551
552
553
# File 'sagemaker/cfn_device.rb', line 551

def description
  @description
end

#device_nameString (readonly)

The name of the device.



546
547
548
# File 'sagemaker/cfn_device.rb', line 546

def device_name
  @device_name
end

#iot_thing_nameString? (readonly)

AWS Internet of Things (IoT) object name.



556
557
558
# File 'sagemaker/cfn_device.rb', line 556

def iot_thing_name
  @iot_thing_name
end

Class Method Details

.jsii_propertiesObject



558
559
560
561
562
563
564
# File 'sagemaker/cfn_device.rb', line 558

def self.jsii_properties
  {
    :device_name => "deviceName",
    :description => "description",
    :iot_thing_name => "iotThingName",
  }
end

Instance Method Details

#to_jsiiObject



566
567
568
569
570
571
572
573
574
# File 'sagemaker/cfn_device.rb', line 566

def to_jsii
  result = {}
  result.merge!({
    "deviceName" => @device_name,
    "description" => @description,
    "iotThingName" => @iot_thing_name,
  })
  result.compact
end