Class: AWSCDK::Apptest::CfnTestCaseProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Apptest::CfnTestCaseProps
- Defined in:
- apptest/cfn_test_case_props.rb
Overview
Properties for defining a CfnTestCase.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the test case.
-
#name ⇒ String
readonly
The name of the test case.
-
#steps ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::StepProperty>
readonly
The steps in the test case.
-
#tags ⇒ Hash{String => String}?
readonly
The specified tags of the test case.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, steps:, description: nil, tags: nil) ⇒ CfnTestCaseProps
constructor
A new instance of CfnTestCaseProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, steps:, description: nil, tags: nil) ⇒ CfnTestCaseProps
Returns a new instance of CfnTestCaseProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'apptest/cfn_test_case_props.rb', line 13 def initialize(name:, steps:, description: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @steps = steps Jsii::Type.check_type(@steps, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwdGVzdC5DZm5UZXN0Q2FzZS5TdGVwUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "steps") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the test case.
38 39 40 |
# File 'apptest/cfn_test_case_props.rb', line 38 def description @description end |
#name ⇒ String (readonly)
The name of the test case.
28 29 30 |
# File 'apptest/cfn_test_case_props.rb', line 28 def name @name end |
#steps ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::StepProperty> (readonly)
The steps in the test case.
33 34 35 |
# File 'apptest/cfn_test_case_props.rb', line 33 def steps @steps end |
#tags ⇒ Hash{String => String}? (readonly)
The specified tags of the test case.
43 44 45 |
# File 'apptest/cfn_test_case_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'apptest/cfn_test_case_props.rb', line 45 def self.jsii_properties { :name => "name", :steps => "steps", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'apptest/cfn_test_case_props.rb', line 54 def to_jsii result = {} result.merge!({ "name" => @name, "steps" => @steps, "description" => @description, "tags" => @tags, }) result.compact end |