Class: AWSCDK::AmplifyUIBuilder::CfnComponent::FormBindingElementProperty

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

Overview

Describes how to bind a component property to form data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element:, property:) ⇒ FormBindingElementProperty

Returns a new instance of FormBindingElementProperty.

Parameters:

  • element (String)

    The name of the component to retrieve a value from.

  • property (String)

    The property to retrieve a value from.



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

#elementString (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

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



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_jsiiObject



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