Class: AWSCDK::IoTTwinMaker::CfnEntity::StatusProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_twin_maker/cfn_entity.rb

Overview

The current status of the entity.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error: nil, state: nil) ⇒ StatusProperty

Returns a new instance of StatusProperty.

Parameters:

  • error (Object, nil) (defaults to: nil)

    The error message.

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

    The current state of the entity, component, component type, or workspace.



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

#errorObject? (readonly)

The error message.



1389
1390
1391
# File 'io_t_twin_maker/cfn_entity.rb', line 1389

def error
  @error
end

#stateString? (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_propertiesObject



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_jsiiObject



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