Class: AWSCDK::Sagemaker::CfnDevice::DeviceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnDevice::DeviceProperty
- Defined in:
- sagemaker/cfn_device.rb
Overview
Information of a particular device.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
Description of the device.
-
#device_name ⇒ String
readonly
The name of the device.
-
#iot_thing_name ⇒ String?
readonly
AWS Internet of Things (IoT) object name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(device_name:, description: nil, iot_thing_name: nil) ⇒ DeviceProperty
constructor
A new instance of DeviceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(device_name:, description: nil, iot_thing_name: nil) ⇒ DeviceProperty
Returns a new instance of DeviceProperty.
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
#description ⇒ String? (readonly)
Description of the device.
551 552 553 |
# File 'sagemaker/cfn_device.rb', line 551 def description @description end |
#device_name ⇒ String (readonly)
The name of the device.
546 547 548 |
# File 'sagemaker/cfn_device.rb', line 546 def device_name @device_name end |
#iot_thing_name ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |