Class: AWSCDK::Apptest::CfnTestCase::MainframeActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Apptest::CfnTestCase::MainframeActionProperty
- Defined in:
- apptest/cfn_test_case.rb
Overview
Specifies the mainframe action.
Instance Attribute Summary collapse
-
#action_type ⇒ AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::MainframeActionTypeProperty
readonly
The action type of the mainframe action.
-
#properties ⇒ AWSCDK::IResolvable, ...
readonly
The properties of the mainframe action.
-
#resource ⇒ String
readonly
The resource of the mainframe action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_type:, resource:, properties: nil) ⇒ MainframeActionProperty
constructor
A new instance of MainframeActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_type:, resource:, properties: nil) ⇒ MainframeActionProperty
Returns a new instance of MainframeActionProperty.
1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'apptest/cfn_test_case.rb', line 1187 def initialize(action_type:, resource:, properties: nil) @action_type = action_type.is_a?(Hash) ? ::AWSCDK::Apptest::CfnTestCase::MainframeActionTypeProperty.new(**action_type.transform_keys(&:to_sym)) : action_type Jsii::Type.check_type(@action_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHB0ZXN0LkNmblRlc3RDYXNlLk1haW5mcmFtZUFjdGlvblR5cGVQcm9wZXJ0eSJ9XX19")), "actionType") @resource = resource Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resource") @properties = properties.is_a?(Hash) ? ::AWSCDK::Apptest::CfnTestCase::MainframeActionPropertiesProperty.new(**properties.transform_keys(&:to_sym)) : properties Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHB0ZXN0LkNmblRlc3RDYXNlLk1haW5mcmFtZUFjdGlvblByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "properties") unless @properties.nil? end |
Instance Attribute Details
#action_type ⇒ AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::MainframeActionTypeProperty (readonly)
The action type of the mainframe action.
1200 1201 1202 |
# File 'apptest/cfn_test_case.rb', line 1200 def action_type @action_type end |
#properties ⇒ AWSCDK::IResolvable, ... (readonly)
The properties of the mainframe action.
1210 1211 1212 |
# File 'apptest/cfn_test_case.rb', line 1210 def properties @properties end |
#resource ⇒ String (readonly)
The resource of the mainframe action.
1205 1206 1207 |
# File 'apptest/cfn_test_case.rb', line 1205 def resource @resource end |
Class Method Details
.jsii_properties ⇒ Object
1212 1213 1214 1215 1216 1217 1218 |
# File 'apptest/cfn_test_case.rb', line 1212 def self.jsii_properties { :action_type => "actionType", :resource => "resource", :properties => "properties", } end |
Instance Method Details
#to_jsii ⇒ Object
1220 1221 1222 1223 1224 1225 1226 1227 1228 |
# File 'apptest/cfn_test_case.rb', line 1220 def to_jsii result = {} result.merge!({ "actionType" => @action_type, "resource" => @resource, "properties" => @properties, }) result.compact end |