Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleConfigProperty
- Defined in:
- amplify_ui_builder/cfn_form.rb
Overview
The FormStyleConfig property specifies the configuration settings for the form's style properties.
Instance Attribute Summary collapse
-
#token_reference ⇒ String?
readonly
A reference to a design token to use to bind the form's style properties to an existing theme.
-
#value ⇒ String?
readonly
The value of the style setting.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(token_reference: nil, value: nil) ⇒ FormStyleConfigProperty
constructor
A new instance of FormStyleConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(token_reference: nil, value: nil) ⇒ FormStyleConfigProperty
Returns a new instance of FormStyleConfigProperty.
1464 1465 1466 1467 1468 1469 |
# File 'amplify_ui_builder/cfn_form.rb', line 1464 def initialize(token_reference: nil, value: nil) @token_reference = token_reference Jsii::Type.check_type(@token_reference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenReference") unless @token_reference.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#token_reference ⇒ String? (readonly)
A reference to a design token to use to bind the form's style properties to an existing theme.
1475 1476 1477 |
# File 'amplify_ui_builder/cfn_form.rb', line 1475 def token_reference @token_reference end |
#value ⇒ String? (readonly)
The value of the style setting.
1480 1481 1482 |
# File 'amplify_ui_builder/cfn_form.rb', line 1480 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1482 1483 1484 1485 1486 1487 |
# File 'amplify_ui_builder/cfn_form.rb', line 1482 def self.jsii_properties { :token_reference => "tokenReference", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'amplify_ui_builder/cfn_form.rb', line 1489 def to_jsii result = {} result.merge!({ "tokenReference" => @token_reference, "value" => @value, }) result.compact end |