Class: AWSCDK::AmplifyUIBuilder::CfnComponent::FormBindingElementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnComponent::FormBindingElementProperty
- Defined in:
- amplify_ui_builder/cfn_component.rb
Overview
Describes how to bind a component property to form data.
Instance Attribute Summary collapse
-
#element ⇒ String
readonly
The name of the component to retrieve a value from.
-
#property ⇒ String
readonly
The property to retrieve a value from.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element:, property:) ⇒ FormBindingElementProperty
constructor
A new instance of FormBindingElementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(element:, property:) ⇒ FormBindingElementProperty
Returns a new instance of FormBindingElementProperty.
1561 1562 1563 1564 1565 1566 |
# File 'amplify_ui_builder/cfn_component.rb', line 1561 def initialize(element:, property:) @element = element Jsii::Type.check_type(@element, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "element") @property = property Jsii::Type.check_type(@property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "property") end |
Instance Attribute Details
#element ⇒ String (readonly)
The name of the component to retrieve a value from.
1572 1573 1574 |
# File 'amplify_ui_builder/cfn_component.rb', line 1572 def element @element end |
#property ⇒ String (readonly)
The property to retrieve a value from.
1577 1578 1579 |
# File 'amplify_ui_builder/cfn_component.rb', line 1577 def property @property end |
Class Method Details
.jsii_properties ⇒ Object
1579 1580 1581 1582 1583 1584 |
# File 'amplify_ui_builder/cfn_component.rb', line 1579 def self.jsii_properties { :element => "element", :property => "property", } end |
Instance Method Details
#to_jsii ⇒ Object
1586 1587 1588 1589 1590 1591 1592 1593 |
# File 'amplify_ui_builder/cfn_component.rb', line 1586 def to_jsii result = {} result.merge!({ "element" => @element, "property" => @property, }) result.compact end |