Class: AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyProperty

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

Overview

The ComponentProperty property specifies the configuration for all of a component's properties.

Use ComponentProperty to specify the values to render or bind by default.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(binding_properties: nil, bindings: nil, collection_binding_properties: nil, component_name: nil, concat: nil, condition: nil, configured: nil, default_value: nil, event: nil, imported_value: nil, model: nil, property: nil, type: nil, user_attribute: nil, value: nil) ⇒ ComponentPropertyProperty

Returns a new instance of ComponentPropertyProperty.

Parameters:



1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
# File 'amplify_ui_builder/cfn_component.rb', line 1352

def initialize(binding_properties: nil, bindings: nil, collection_binding_properties: nil, component_name: nil, concat: nil, condition: nil, configured: nil, default_value: nil, event: nil, imported_value: nil, model: nil, property: nil, type: nil, user_attribute: nil, value: nil)
  @binding_properties = binding_properties.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyBindingPropertiesProperty.new(**binding_properties.transform_keys(&:to_sym)) : binding_properties
  Jsii::Type.check_type(@binding_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkNvbXBvbmVudC5Db21wb25lbnRQcm9wZXJ0eUJpbmRpbmdQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "bindingProperties") unless @binding_properties.nil?
  @bindings = bindings
  Jsii::Type.check_type(@bindings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYW1wbGlmeXVpYnVpbGRlci5DZm5Db21wb25lbnQuRm9ybUJpbmRpbmdFbGVtZW50UHJvcGVydHkifV19fSwia2luZCI6Im1hcCJ9fV19fQ==")), "bindings") unless @bindings.nil?
  @collection_binding_properties = collection_binding_properties.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentPropertyBindingPropertiesProperty.new(**collection_binding_properties.transform_keys(&:to_sym)) : collection_binding_properties
  Jsii::Type.check_type(@collection_binding_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkNvbXBvbmVudC5Db21wb25lbnRQcm9wZXJ0eUJpbmRpbmdQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "collectionBindingProperties") unless @collection_binding_properties.nil?
  @component_name = component_name
  Jsii::Type.check_type(@component_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentName") unless @component_name.nil?
  @concat = concat
  Jsii::Type.check_type(@concat, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYW1wbGlmeXVpYnVpbGRlci5DZm5Db21wb25lbnQuQ29tcG9uZW50UHJvcGVydHlQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "concat") unless @concat.nil?
  @condition = condition.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentConditionPropertyProperty.new(**condition.transform_keys(&:to_sym)) : condition
  Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkNvbXBvbmVudC5Db21wb25lbnRDb25kaXRpb25Qcm9wZXJ0eVByb3BlcnR5In1dfX0=")), "condition") unless @condition.nil?
  @configured = configured
  Jsii::Type.check_type(@configured, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "configured") unless @configured.nil?
  @default_value = default_value
  Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") unless @default_value.nil?
  @event = event
  Jsii::Type.check_type(@event, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "event") unless @event.nil?
  @imported_value = imported_value
  Jsii::Type.check_type(@imported_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "importedValue") unless @imported_value.nil?
  @model = model
  Jsii::Type.check_type(@model, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "model") unless @model.nil?
  @property = property
  Jsii::Type.check_type(@property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "property") unless @property.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @user_attribute = user_attribute
  Jsii::Type.check_type(@user_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userAttribute") unless @user_attribute.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

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

The information to bind the component property to data at runtime.



1389
1390
1391
# File 'amplify_ui_builder/cfn_component.rb', line 1389

def binding_properties
  @binding_properties
end

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

The information to bind the component property to form data.



1394
1395
1396
# File 'amplify_ui_builder/cfn_component.rb', line 1394

def bindings
  @bindings
end

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

The information to bind the component property to data at runtime.

Use this for collection components.



1401
1402
1403
# File 'amplify_ui_builder/cfn_component.rb', line 1401

def collection_binding_properties
  @collection_binding_properties
end

#component_nameString? (readonly)

The name of the component that is affected by an event.



1406
1407
1408
# File 'amplify_ui_builder/cfn_component.rb', line 1406

def component_name
  @component_name
end

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

A list of component properties to concatenate to create the value to assign to this component property.



1411
1412
1413
# File 'amplify_ui_builder/cfn_component.rb', line 1411

def concat
  @concat
end

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

The conditional expression to use to assign a value to the component property.



1416
1417
1418
# File 'amplify_ui_builder/cfn_component.rb', line 1416

def condition
  @condition
end

#configuredBoolean, ... (readonly)

Specifies whether the user configured the property in Amplify Studio after importing it.



1421
1422
1423
# File 'amplify_ui_builder/cfn_component.rb', line 1421

def configured
  @configured
end

#default_valueString? (readonly)

The default value to assign to the component property.



1426
1427
1428
# File 'amplify_ui_builder/cfn_component.rb', line 1426

def default_value
  @default_value
end

#eventString? (readonly)

An event that occurs in your app.

Use this for workflow data binding.



1433
1434
1435
# File 'amplify_ui_builder/cfn_component.rb', line 1433

def event
  @event
end

#imported_valueString? (readonly)

The default value assigned to the property when the component is imported into an app.



1438
1439
1440
# File 'amplify_ui_builder/cfn_component.rb', line 1438

def imported_value
  @imported_value
end

#modelString? (readonly)

The data model to use to assign a value to the component property.



1443
1444
1445
# File 'amplify_ui_builder/cfn_component.rb', line 1443

def model
  @model
end

#propertyString? (readonly)

The name of the component's property that is affected by an event.



1448
1449
1450
# File 'amplify_ui_builder/cfn_component.rb', line 1448

def property
  @property
end

#typeString? (readonly)

The component type.



1453
1454
1455
# File 'amplify_ui_builder/cfn_component.rb', line 1453

def type
  @type
end

#user_attributeString? (readonly)

An authenticated user attribute to use to assign a value to the component property.



1458
1459
1460
# File 'amplify_ui_builder/cfn_component.rb', line 1458

def user_attribute
  @user_attribute
end

#valueString? (readonly)

The value to assign to the component property.



1463
1464
1465
# File 'amplify_ui_builder/cfn_component.rb', line 1463

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
# File 'amplify_ui_builder/cfn_component.rb', line 1465

def self.jsii_properties
  {
    :binding_properties => "bindingProperties",
    :bindings => "bindings",
    :collection_binding_properties => "collectionBindingProperties",
    :component_name => "componentName",
    :concat => "concat",
    :condition => "condition",
    :configured => "configured",
    :default_value => "defaultValue",
    :event => "event",
    :imported_value => "importedValue",
    :model => "model",
    :property => "property",
    :type => "type",
    :user_attribute => "userAttribute",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'amplify_ui_builder/cfn_component.rb', line 1485

def to_jsii
  result = {}
  result.merge!({
    "bindingProperties" => @binding_properties,
    "bindings" => @bindings,
    "collectionBindingProperties" => @collection_binding_properties,
    "componentName" => @component_name,
    "concat" => @concat,
    "condition" => @condition,
    "configured" => @configured,
    "defaultValue" => @default_value,
    "event" => @event,
    "importedValue" => @imported_value,
    "model" => @model,
    "property" => @property,
    "type" => @type,
    "userAttribute" => @user_attribute,
    "value" => @value,
  })
  result.compact
end