Class: AWSCDK::Apptest::CfnTestCase::M2ManagedApplicationActionProperty

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

Overview

Specifies the Mainframe Modernization managed application action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_type:, resource:, properties: nil) ⇒ M2ManagedApplicationActionProperty

Returns a new instance of M2ManagedApplicationActionProperty.

Parameters:



1058
1059
1060
1061
1062
1063
1064
1065
# File 'apptest/cfn_test_case.rb', line 1058

def initialize(action_type:, resource:, properties: nil)
  @action_type = action_type
  Jsii::Type.check_type(@action_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionType")
  @resource = resource
  Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resource")
  @properties = properties.is_a?(Hash) ? ::AWSCDK::Apptest::CfnTestCase::M2ManagedActionPropertiesProperty.new(**properties.transform_keys(&:to_sym)) : properties
  Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHB0ZXN0LkNmblRlc3RDYXNlLk0yTWFuYWdlZEFjdGlvblByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "properties") unless @properties.nil?
end

Instance Attribute Details

#action_typeString (readonly)

The action type of the Mainframe Modernization managed application action.



1071
1072
1073
# File 'apptest/cfn_test_case.rb', line 1071

def action_type
  @action_type
end

#propertiesAWSCDK::IResolvable, ... (readonly)

The properties of the Mainframe Modernization managed application action.



1081
1082
1083
# File 'apptest/cfn_test_case.rb', line 1081

def properties
  @properties
end

#resourceString (readonly)

The resource of the Mainframe Modernization managed application action.



1076
1077
1078
# File 'apptest/cfn_test_case.rb', line 1076

def resource
  @resource
end

Class Method Details

.jsii_propertiesObject



1083
1084
1085
1086
1087
1088
1089
# File 'apptest/cfn_test_case.rb', line 1083

def self.jsii_properties
  {
    :action_type => "actionType",
    :resource => "resource",
    :properties => "properties",
  }
end

Instance Method Details

#to_jsiiObject



1091
1092
1093
1094
1095
1096
1097
1098
1099
# File 'apptest/cfn_test_case.rb', line 1091

def to_jsii
  result = {}
  result.merge!({
    "actionType" => @action_type,
    "resource" => @resource,
    "properties" => @properties,
  })
  result.compact
end