Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_reference: nil, value: nil) ⇒ FormStyleConfigProperty

Returns a new instance of FormStyleConfigProperty.

Parameters:

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

    A reference to a design token to use to bind the form's style properties to an existing theme.

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

    The value of the style setting.



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_referenceString? (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

#valueString? (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_propertiesObject



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_jsiiObject



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