Class: AWSCDK::Apptest::CfnTestCase::StepProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
apptest/cfn_test_case.rb

Overview

Defines a step.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, name:, description: nil) ⇒ StepProperty

Returns a new instance of StepProperty.

Parameters:



1541
1542
1543
1544
1545
1546
1547
1548
# File 'apptest/cfn_test_case.rb', line 1541

def initialize(action:, name:, description: nil)
  @action = action.is_a?(Hash) ? ::AWSCDK::Apptest::CfnTestCase::StepActionProperty.new(**action.transform_keys(&:to_sym)) : action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHB0ZXN0LkNmblRlc3RDYXNlLlN0ZXBBY3Rpb25Qcm9wZXJ0eSJ9XX19")), "action")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the step.



1564
1565
1566
# File 'apptest/cfn_test_case.rb', line 1564

def description
  @description
end

#nameString (readonly)

The name of the step.



1559
1560
1561
# File 'apptest/cfn_test_case.rb', line 1559

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1566
1567
1568
1569
1570
1571
1572
# File 'apptest/cfn_test_case.rb', line 1566

def self.jsii_properties
  {
    :action => "action",
    :name => "name",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



1574
1575
1576
1577
1578
1579
1580
1581
1582
# File 'apptest/cfn_test_case.rb', line 1574

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "name" => @name,
    "description" => @description,
  })
  result.compact
end