Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleProperty
- Defined in:
- amplify_ui_builder/cfn_form.rb
Overview
The FormStyle property specifies the configuration for the form's style.
Instance Attribute Summary collapse
-
#horizontal_gap ⇒ AWSCDK::IResolvable, ...
readonly
The spacing for the horizontal gap.
-
#outer_padding ⇒ AWSCDK::IResolvable, ...
readonly
The size of the outer padding for the form.
-
#vertical_gap ⇒ AWSCDK::IResolvable, ...
readonly
The spacing for the vertical gap.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(horizontal_gap: nil, outer_padding: nil, vertical_gap: nil) ⇒ FormStyleProperty
constructor
A new instance of FormStyleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(horizontal_gap: nil, outer_padding: nil, vertical_gap: nil) ⇒ FormStyleProperty
Returns a new instance of FormStyleProperty.
1508 1509 1510 1511 1512 1513 1514 1515 |
# File 'amplify_ui_builder/cfn_form.rb', line 1508 def initialize(horizontal_gap: nil, outer_padding: nil, vertical_gap: nil) @horizontal_gap = horizontal_gap.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleConfigProperty.new(**horizontal_gap.transform_keys(&:to_sym)) : horizontal_gap Jsii::Type.check_type(@horizontal_gap, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkZvcm0uRm9ybVN0eWxlQ29uZmlnUHJvcGVydHkifV19fQ==")), "horizontalGap") unless @horizontal_gap.nil? @outer_padding = outer_padding.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleConfigProperty.new(**outer_padding.transform_keys(&:to_sym)) : outer_padding Jsii::Type.check_type(@outer_padding, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkZvcm0uRm9ybVN0eWxlQ29uZmlnUHJvcGVydHkifV19fQ==")), "outerPadding") unless @outer_padding.nil? @vertical_gap = vertical_gap.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnForm::FormStyleConfigProperty.new(**vertical_gap.transform_keys(&:to_sym)) : vertical_gap Jsii::Type.check_type(@vertical_gap, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkZvcm0uRm9ybVN0eWxlQ29uZmlnUHJvcGVydHkifV19fQ==")), "verticalGap") unless @vertical_gap.nil? end |
Instance Attribute Details
#horizontal_gap ⇒ AWSCDK::IResolvable, ... (readonly)
The spacing for the horizontal gap.
1521 1522 1523 |
# File 'amplify_ui_builder/cfn_form.rb', line 1521 def horizontal_gap @horizontal_gap end |
#outer_padding ⇒ AWSCDK::IResolvable, ... (readonly)
The size of the outer padding for the form.
1526 1527 1528 |
# File 'amplify_ui_builder/cfn_form.rb', line 1526 def outer_padding @outer_padding end |
#vertical_gap ⇒ AWSCDK::IResolvable, ... (readonly)
The spacing for the vertical gap.
1531 1532 1533 |
# File 'amplify_ui_builder/cfn_form.rb', line 1531 def vertical_gap @vertical_gap end |
Class Method Details
.jsii_properties ⇒ Object
1533 1534 1535 1536 1537 1538 1539 |
# File 'amplify_ui_builder/cfn_form.rb', line 1533 def self.jsii_properties { :horizontal_gap => "horizontalGap", :outer_padding => "outerPadding", :vertical_gap => "verticalGap", } end |
Instance Method Details
#to_jsii ⇒ Object
1541 1542 1543 1544 1545 1546 1547 1548 1549 |
# File 'amplify_ui_builder/cfn_form.rb', line 1541 def to_jsii result = {} result.merge!({ "horizontalGap" => @horizontal_gap, "outerPadding" => @outer_padding, "verticalGap" => @vertical_gap, }) result.compact end |