Class: AWSCDK::IoTTwinMaker::CfnEntity::StatusProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnEntity::StatusProperty
- Defined in:
- io_t_twin_maker/cfn_entity.rb
Overview
The current status of the entity.
Instance Attribute Summary collapse
-
#error ⇒ Object?
readonly
The error message.
-
#state ⇒ String?
readonly
The current state of the entity, component, component type, or workspace.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error: nil, state: nil) ⇒ StatusProperty
constructor
A new instance of StatusProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(error: nil, state: nil) ⇒ StatusProperty
Returns a new instance of StatusProperty.
1378 1379 1380 1381 1382 1383 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1378 def initialize(error: nil, state: nil) @error = error Jsii::Type.check_type(@error, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "error") unless @error.nil? @state = state Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil? end |
Instance Attribute Details
#error ⇒ Object? (readonly)
The error message.
1389 1390 1391 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1389 def error @error end |
#state ⇒ String? (readonly)
The current state of the entity, component, component type, or workspace.
Valid Values: CREATING | UPDATING | DELETING | ACTIVE | ERROR
1396 1397 1398 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1396 def state @state end |
Class Method Details
.jsii_properties ⇒ Object
1398 1399 1400 1401 1402 1403 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1398 def self.jsii_properties { :error => "error", :state => "state", } end |
Instance Method Details
#to_jsii ⇒ Object
1405 1406 1407 1408 1409 1410 1411 1412 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1405 def to_jsii result = {} result.merge!({ "error" => @error, "state" => @state, }) result.compact end |