Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormButtonProperty

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

Overview

The FormButton property specifies the configuration for a button UI element that is a part of a form.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(children: nil, excluded: nil, position: nil) ⇒ FormButtonProperty

Returns a new instance of FormButtonProperty.

Parameters:



1128
1129
1130
1131
1132
1133
1134
1135
# File 'amplify_ui_builder/cfn_form.rb', line 1128

def initialize(children: nil, excluded: nil, position: nil)
  @children = children
  Jsii::Type.check_type(@children, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "children") unless @children.nil?
  @excluded = excluded
  Jsii::Type.check_type(@excluded, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "excluded") unless @excluded.nil?
  @position = position.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnForm::FieldPositionProperty.new(**position.transform_keys(&:to_sym)) : position
  Jsii::Type.check_type(@position, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmbkZvcm0uRmllbGRQb3NpdGlvblByb3BlcnR5In1dfX0=")), "position") unless @position.nil?
end

Instance Attribute Details

#childrenString? (readonly)

Describes the button's properties.



1141
1142
1143
# File 'amplify_ui_builder/cfn_form.rb', line 1141

def children
  @children
end

#excludedBoolean, ... (readonly)

Specifies whether the button is visible on the form.



1146
1147
1148
# File 'amplify_ui_builder/cfn_form.rb', line 1146

def excluded
  @excluded
end

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

The position of the button.



1151
1152
1153
# File 'amplify_ui_builder/cfn_form.rb', line 1151

def position
  @position
end

Class Method Details

.jsii_propertiesObject



1153
1154
1155
1156
1157
1158
1159
# File 'amplify_ui_builder/cfn_form.rb', line 1153

def self.jsii_properties
  {
    :children => "children",
    :excluded => "excluded",
    :position => "position",
  }
end

Instance Method Details

#to_jsiiObject



1161
1162
1163
1164
1165
1166
1167
1168
1169
# File 'amplify_ui_builder/cfn_form.rb', line 1161

def to_jsii
  result = {}
  result.merge!({
    "children" => @children,
    "excluded" => @excluded,
    "position" => @position,
  })
  result.compact
end