Class: AWSCDK::AmplifyUIBuilder::CfnComponent::MutationActionSetStateParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnComponent::MutationActionSetStateParameterProperty
- 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
-
#component_name ⇒ String
readonly
The name of the component that is being modified.
-
#property ⇒ String
readonly
The name of the component property to apply the state configuration to.
-
#set ⇒ AWSCDK::IResolvable, AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyProperty
readonly
The state configuration to assign to the property.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(component_name:, property:, set:) ⇒ MutationActionSetStateParameterProperty
constructor
A new instance of MutationActionSetStateParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(component_name:, property:, set:) ⇒ MutationActionSetStateParameterProperty
Returns a new instance of MutationActionSetStateParameterProperty.
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_name ⇒ String (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 |
#property ⇒ String (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 |
#set ⇒ AWSCDK::IResolvable, AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyProperty (readonly)
The state configuration to assign to the property.
1628 1629 1630 |
# File 'amplify_ui_builder/cfn_component.rb', line 1628 def set @set end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |