Class: AWSCDK::Apptest::CfnTestCase::CloudFormationActionProperty

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

Overview

Specifies the CloudFormation action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource:, action_type: nil) ⇒ CloudFormationActionProperty

Returns a new instance of CloudFormationActionProperty.

Parameters:

  • resource (String)

    The resource of the CloudFormation action.

  • action_type (String, nil) (defaults to: nil)

    The action type of the CloudFormation action.



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_typeString? (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

#resourceString (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_propertiesObject



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_jsiiObject



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