java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.amplifyuibuilder.CfnFormPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:55.410Z") @Stability(Stable) public class CfnFormPropsMixin extends Mixin implements software.constructs.IMixin
The AWS::AmplifyUIBuilder::Form resource specifies all of the information that is required to create a form.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.amplifyuibuilder.*;
 import software.amazon.awscdk.*;
 FormInputValuePropertyProperty formInputValuePropertyProperty_;
 IMergeStrategy mergeStrategy;
 CfnFormPropsMixin cfnFormPropsMixin = CfnFormPropsMixin.Builder.create(CfnFormMixinProps.builder()
         .appId("appId")
         .cta(FormCTAProperty.builder()
                 .cancel(FormButtonProperty.builder()
                         .children("children")
                         .excluded(false)
                         .position(FieldPositionProperty.builder()
                                 .below("below")
                                 .fixed("fixed")
                                 .rightOf("rightOf")
                                 .build())
                         .build())
                 .clear(FormButtonProperty.builder()
                         .children("children")
                         .excluded(false)
                         .position(FieldPositionProperty.builder()
                                 .below("below")
                                 .fixed("fixed")
                                 .rightOf("rightOf")
                                 .build())
                         .build())
                 .position("position")
                 .submit(FormButtonProperty.builder()
                         .children("children")
                         .excluded(false)
                         .position(FieldPositionProperty.builder()
                                 .below("below")
                                 .fixed("fixed")
                                 .rightOf("rightOf")
                                 .build())
                         .build())
                 .build())
         .dataType(FormDataTypeConfigProperty.builder()
                 .dataSourceType("dataSourceType")
                 .dataTypeName("dataTypeName")
                 .build())
         .environmentName("environmentName")
         .fields(Map.of(
                 "fieldsKey", FieldConfigProperty.builder()
                         .excluded(false)
                         .inputType(FieldInputConfigProperty.builder()
                                 .defaultChecked(false)
                                 .defaultCountryCode("defaultCountryCode")
                                 .defaultValue("defaultValue")
                                 .descriptiveText("descriptiveText")
                                 .fileUploaderConfig(FileUploaderFieldConfigProperty.builder()
                                         .acceptedFileTypes(List.of("acceptedFileTypes"))
                                         .accessLevel("accessLevel")
                                         .isResumable(false)
                                         .maxFileCount(123)
                                         .maxSize(123)
                                         .showThumbnails(false)
                                         .build())
                                 .isArray(false)
                                 .maxValue(123)
                                 .minValue(123)
                                 .name("name")
                                 .placeholder("placeholder")
                                 .readOnly(false)
                                 .required(false)
                                 .step(123)
                                 .type("type")
                                 .value("value")
                                 .valueMappings(ValueMappingsProperty.builder()
                                         .bindingProperties(Map.of(
                                                 "bindingPropertiesKey", FormInputBindingPropertiesValueProperty.builder()
                                                         .bindingProperties(FormInputBindingPropertiesValuePropertiesProperty.builder()
                                                                 .model("model")
                                                                 .build())
                                                         .type("type")
                                                         .build()))
                                         .values(List.of(ValueMappingProperty.builder()
                                                 .displayValue(FormInputValuePropertyProperty.builder()
                                                         .bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
                                                                 .field("field")
                                                                 .property("property")
                                                                 .build())
                                                         .concat(List.of(formInputValuePropertyProperty_))
                                                         .value("value")
                                                         .build())
                                                 .value(FormInputValuePropertyProperty.builder()
                                                         .bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
                                                                 .field("field")
                                                                 .property("property")
                                                                 .build())
                                                         .concat(List.of(formInputValuePropertyProperty_))
                                                         .value("value")
                                                         .build())
                                                 .build()))
                                         .build())
                                 .build())
                         .label("label")
                         .position(FieldPositionProperty.builder()
                                 .below("below")
                                 .fixed("fixed")
                                 .rightOf("rightOf")
                                 .build())
                         .validations(List.of(FieldValidationConfigurationProperty.builder()
                                 .numValues(List.of(123))
                                 .strValues(List.of("strValues"))
                                 .type("type")
                                 .validationMessage("validationMessage")
                                 .build()))
                         .build()))
         .formActionType("formActionType")
         .labelDecorator("labelDecorator")
         .name("name")
         .schemaVersion("schemaVersion")
         .sectionalElements(Map.of(
                 "sectionalElementsKey", SectionalElementProperty.builder()
                         .excluded(false)
                         .level(123)
                         .orientation("orientation")
                         .position(FieldPositionProperty.builder()
                                 .below("below")
                                 .fixed("fixed")
                                 .rightOf("rightOf")
                                 .build())
                         .text("text")
                         .type("type")
                         .build()))
         .style(FormStyleProperty.builder()
                 .horizontalGap(FormStyleConfigProperty.builder()
                         .tokenReference("tokenReference")
                         .value("value")
                         .build())
                 .outerPadding(FormStyleConfigProperty.builder()
                         .tokenReference("tokenReference")
                         .value("value")
                         .build())
                 .verticalGap(FormStyleConfigProperty.builder()
                         .tokenReference("tokenReference")
                         .value("value")
                         .build())
                 .build())
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnFormPropsMixin

      protected CfnFormPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnFormPropsMixin

      protected CfnFormPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnFormPropsMixin

      @Stability(Stable) public CfnFormPropsMixin(@NotNull CfnFormMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::AmplifyUIBuilder::Form.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnFormPropsMixin

      @Stability(Stable) public CfnFormPropsMixin(@NotNull CfnFormMixinProps props)
      Create a mixin to apply properties to AWS::AmplifyUIBuilder::Form.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnFormMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()