Class: AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyBindingPropertiesProperty

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

Overview

The ComponentPropertyBindingProperties property specifies a component property to associate with a binding property.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ComponentPropertyBindingPropertiesProperty.

Parameters:

  • property (String)

    The component property to bind to the data field.

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

    The data field to bind the property to.



1294
1295
1296
1297
1298
1299
# File 'amplify_ui_builder/cfn_component.rb', line 1294

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.



1310
1311
1312
# File 'amplify_ui_builder/cfn_component.rb', line 1310

def field
  @field
end

#propertyString (readonly)

The component property to bind to the data field.



1305
1306
1307
# File 'amplify_ui_builder/cfn_component.rb', line 1305

def property
  @property
end

Class Method Details

.jsii_propertiesObject



1312
1313
1314
1315
1316
1317
# File 'amplify_ui_builder/cfn_component.rb', line 1312

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

Instance Method Details

#to_jsiiObject



1319
1320
1321
1322
1323
1324
1325
1326
# File 'amplify_ui_builder/cfn_component.rb', line 1319

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