Class: AWSCDK::AmplifyUIBuilder::CfnComponent::MutationActionSetStateParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify_ui_builder/cfn_component.rb

Overview

Represents the state configuration when an action modifies a property of another element within the same component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_name:, property:, set:) ⇒ MutationActionSetStateParameterProperty

Returns a new instance of MutationActionSetStateParameterProperty.

Parameters:



1605
1606
1607
1608
1609
1610
1611
1612
# File 'amplify_ui_builder/cfn_component.rb', line 1605

def initialize(component_name:, property:, set:)
  @component_name = component_name
  Jsii::Type.check_type(@component_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentName")
  @property = property
  Jsii::Type.check_type(@property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "property")
  @set = set.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyProperty.new(**set.transform_keys(&:to_sym)) : set
  Jsii::Type.check_type(@set, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkNvbXBvbmVudC5Db21wb25lbnRQcm9wZXJ0eVByb3BlcnR5In1dfX0=")), "set")
end

Instance Attribute Details

#component_nameString (readonly)

The name of the component that is being modified.



1618
1619
1620
# File 'amplify_ui_builder/cfn_component.rb', line 1618

def component_name
  @component_name
end

#propertyString (readonly)

The name of the component property to apply the state configuration to.



1623
1624
1625
# File 'amplify_ui_builder/cfn_component.rb', line 1623

def property
  @property
end

Class Method Details

.jsii_propertiesObject



1630
1631
1632
1633
1634
1635
1636
# File 'amplify_ui_builder/cfn_component.rb', line 1630

def self.jsii_properties
  {
    :component_name => "componentName",
    :property => "property",
    :set => "set",
  }
end

Instance Method Details

#to_jsiiObject



1638
1639
1640
1641
1642
1643
1644
1645
1646
# File 'amplify_ui_builder/cfn_component.rb', line 1638

def to_jsii
  result = {}
  result.merge!({
    "componentName" => @component_name,
    "property" => @property,
    "set" => @set,
  })
  result.compact
end