Class: AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentBindingPropertiesValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentBindingPropertiesValueProperty
- Defined in:
- amplify_ui_builder/cfn_component.rb
Overview
The ComponentBindingPropertiesValue property specifies the data binding configuration for a component at runtime.
You can use ComponentBindingPropertiesValue to add exposed properties to a component to allow different values to be entered when a component is reused in different places in an app.
Instance Attribute Summary collapse
-
#binding_properties ⇒ AWSCDK::IResolvable, ...
readonly
Describes the properties to customize with data at runtime.
-
#default_value ⇒ String?
readonly
The default value of the property.
-
#type ⇒ String?
readonly
The property type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(binding_properties: nil, default_value: nil, type: nil) ⇒ ComponentBindingPropertiesValueProperty
constructor
A new instance of ComponentBindingPropertiesValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(binding_properties: nil, default_value: nil, type: nil) ⇒ ComponentBindingPropertiesValueProperty
Returns a new instance of ComponentBindingPropertiesValueProperty.
932 933 934 935 936 937 938 939 |
# File 'amplify_ui_builder/cfn_component.rb', line 932 def initialize(binding_properties: nil, default_value: nil, type: nil) @binding_properties = binding_properties.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentBindingPropertiesValuePropertiesProperty.new(**binding_properties.transform_keys(&:to_sym)) : binding_properties Jsii::Type.check_type(@binding_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkNvbXBvbmVudC5Db21wb25lbnRCaW5kaW5nUHJvcGVydGllc1ZhbHVlUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "bindingProperties") unless @binding_properties.nil? @default_value = default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") unless @default_value.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#binding_properties ⇒ AWSCDK::IResolvable, ... (readonly)
Describes the properties to customize with data at runtime.
945 946 947 |
# File 'amplify_ui_builder/cfn_component.rb', line 945 def binding_properties @binding_properties end |
#default_value ⇒ String? (readonly)
The default value of the property.
950 951 952 |
# File 'amplify_ui_builder/cfn_component.rb', line 950 def default_value @default_value end |
#type ⇒ String? (readonly)
The property type.
955 956 957 |
# File 'amplify_ui_builder/cfn_component.rb', line 955 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
957 958 959 960 961 962 963 |
# File 'amplify_ui_builder/cfn_component.rb', line 957 def self.jsii_properties { :binding_properties => "bindingProperties", :default_value => "defaultValue", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
965 966 967 968 969 970 971 972 973 |
# File 'amplify_ui_builder/cfn_component.rb', line 965 def to_jsii result = {} result.merge!({ "bindingProperties" => @binding_properties, "defaultValue" => @default_value, "type" => @type, }) result.compact end |