Class: AWSCDK::Apptest::CfnTestCase::CloudFormationActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Apptest::CfnTestCase::CloudFormationActionProperty
- Defined in:
- apptest/cfn_test_case.rb
Overview
Specifies the CloudFormation action.
Instance Attribute Summary collapse
-
#action_type ⇒ String?
readonly
The action type of the CloudFormation action.
-
#resource ⇒ String
readonly
The resource of the CloudFormation action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource:, action_type: nil) ⇒ CloudFormationActionProperty
constructor
A new instance of CloudFormationActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource:, action_type: nil) ⇒ CloudFormationActionProperty
Returns a new instance of CloudFormationActionProperty.
683 684 685 686 687 688 |
# File 'apptest/cfn_test_case.rb', line 683 def initialize(resource:, action_type: nil) @resource = resource Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resource") @action_type = action_type Jsii::Type.check_type(@action_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionType") unless @action_type.nil? end |
Instance Attribute Details
#action_type ⇒ String? (readonly)
The action type of the CloudFormation action.
699 700 701 |
# File 'apptest/cfn_test_case.rb', line 699 def action_type @action_type end |
#resource ⇒ String (readonly)
The resource of the CloudFormation action.
694 695 696 |
# File 'apptest/cfn_test_case.rb', line 694 def resource @resource end |
Class Method Details
.jsii_properties ⇒ Object
701 702 703 704 705 706 |
# File 'apptest/cfn_test_case.rb', line 701 def self.jsii_properties { :resource => "resource", :action_type => "actionType", } end |
Instance Method Details
#to_jsii ⇒ Object
708 709 710 711 712 713 714 715 |
# File 'apptest/cfn_test_case.rb', line 708 def to_jsii result = {} result.merge!({ "resource" => @resource, "actionType" => @action_type, }) result.compact end |