Class: AWSCDK::Apptest::CfnTestCase::StepProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Apptest::CfnTestCase::StepProperty
- Defined in:
- apptest/cfn_test_case.rb
Overview
Defines a step.
Instance Attribute Summary collapse
-
#action ⇒ AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::StepActionProperty
readonly
The action of the step.
-
#description ⇒ String?
readonly
The description of the step.
-
#name ⇒ String
readonly
The name of the step.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, name:, description: nil) ⇒ StepProperty
constructor
A new instance of StepProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, name:, description: nil) ⇒ StepProperty
Returns a new instance of StepProperty.
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
#action ⇒ AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::StepActionProperty (readonly)
The action of the step.
1554 1555 1556 |
# File 'apptest/cfn_test_case.rb', line 1554 def action @action end |
#description ⇒ String? (readonly)
The description of the step.
1564 1565 1566 |
# File 'apptest/cfn_test_case.rb', line 1564 def description @description end |
#name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |