Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormInputBindingPropertiesValueProperty

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

Overview

Represents the data binding configuration for a form's input fields at runtime.You can use FormInputBindingPropertiesValue to add exposed properties to a form to allow different values to be entered when a form is reused in different places in an app.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(binding_properties: nil, type: nil) ⇒ FormInputBindingPropertiesValueProperty

Returns a new instance of FormInputBindingPropertiesValueProperty.

Parameters:



1321
1322
1323
1324
1325
1326
# File 'amplify_ui_builder/cfn_form.rb', line 1321

def initialize(binding_properties: nil, type: nil)
  @binding_properties = binding_properties.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnForm::FormInputBindingPropertiesValuePropertiesProperty.new(**binding_properties.transform_keys(&:to_sym)) : binding_properties
  Jsii::Type.check_type(@binding_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkZvcm0uRm9ybUlucHV0QmluZGluZ1Byb3BlcnRpZXNWYWx1ZVByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "bindingProperties") unless @binding_properties.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#binding_propertiesAWSCDK::IResolvable, ... (readonly)

Describes the properties to customize with data at runtime.



1332
1333
1334
# File 'amplify_ui_builder/cfn_form.rb', line 1332

def binding_properties
  @binding_properties
end

#typeString? (readonly)

The property type.



1337
1338
1339
# File 'amplify_ui_builder/cfn_form.rb', line 1337

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1339
1340
1341
1342
1343
1344
# File 'amplify_ui_builder/cfn_form.rb', line 1339

def self.jsii_properties
  {
    :binding_properties => "bindingProperties",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1346
1347
1348
1349
1350
1351
1352
1353
# File 'amplify_ui_builder/cfn_form.rb', line 1346

def to_jsii
  result = {}
  result.merge!({
    "bindingProperties" => @binding_properties,
    "type" => @type,
  })
  result.compact
end