Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormInputValuePropertyBindingPropertiesProperty

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

Overview

Associates a form property to a binding property.

This enables exposed properties on the top level form to propagate data to the form's property values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property:, field: nil) ⇒ FormInputValuePropertyBindingPropertiesProperty

Returns a new instance of FormInputValuePropertyBindingPropertiesProperty.

Parameters:

  • property (String)

    The form property to bind to the data field.

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

    The data field to bind the property to.



1366
1367
1368
1369
1370
1371
# File 'amplify_ui_builder/cfn_form.rb', line 1366

def initialize(property:, field: nil)
  @property = property
  Jsii::Type.check_type(@property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "property")
  @field = field
  Jsii::Type.check_type(@field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "field") unless @field.nil?
end

Instance Attribute Details

#fieldString? (readonly)

The data field to bind the property to.



1382
1383
1384
# File 'amplify_ui_builder/cfn_form.rb', line 1382

def field
  @field
end

#propertyString (readonly)

The form property to bind to the data field.



1377
1378
1379
# File 'amplify_ui_builder/cfn_form.rb', line 1377

def property
  @property
end

Class Method Details

.jsii_propertiesObject



1384
1385
1386
1387
1388
1389
# File 'amplify_ui_builder/cfn_form.rb', line 1384

def self.jsii_properties
  {
    :property => "property",
    :field => "field",
  }
end

Instance Method Details

#to_jsiiObject



1391
1392
1393
1394
1395
1396
1397
1398
# File 'amplify_ui_builder/cfn_form.rb', line 1391

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