Class CfnForm
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.amplifyuibuilder.CfnForm
- All Implemented Interfaces:
IInspectable,IFormRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:13.099Z")
@Stability(Stable)
public class CfnForm
extends CfnResource
implements IInspectable, IFormRef, ITaggable
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.services.amplifyuibuilder.*;
FormInputValuePropertyProperty formInputValuePropertyProperty_;
CfnForm cfnForm = CfnForm.Builder.create(this, "MyCfnForm")
.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()
.type("type")
// the properties below are optional
.defaultChecked(false)
.defaultCountryCode("defaultCountryCode")
.defaultValue("defaultValue")
.descriptiveText("descriptiveText")
.fileUploaderConfig(FileUploaderFieldConfigProperty.builder()
.acceptedFileTypes(List.of("acceptedFileTypes"))
.accessLevel("accessLevel")
// the properties below are optional
.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)
.value("value")
.valueMappings(ValueMappingsProperty.builder()
.values(List.of(ValueMappingProperty.builder()
.value(FormInputValuePropertyProperty.builder()
.bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.concat(List.of(formInputValuePropertyProperty_))
.value("value")
.build())
// the properties below are optional
.displayValue(FormInputValuePropertyProperty.builder()
.bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.concat(List.of(formInputValuePropertyProperty_))
.value("value")
.build())
.build()))
// the properties below are optional
.bindingProperties(Map.of(
"bindingPropertiesKey", FormInputBindingPropertiesValueProperty.builder()
.bindingProperties(FormInputBindingPropertiesValuePropertiesProperty.builder()
.model("model")
.build())
.type("type")
.build()))
.build())
.build())
.label("label")
.position(FieldPositionProperty.builder()
.below("below")
.fixed("fixed")
.rightOf("rightOf")
.build())
.validations(List.of(FieldValidationConfigurationProperty.builder()
.type("type")
// the properties below are optional
.numValues(List.of(123))
.strValues(List.of("strValues"))
.validationMessage("validationMessage")
.build()))
.build()))
.formActionType("formActionType")
.labelDecorator("labelDecorator")
.name("name")
.schemaVersion("schemaVersion")
.sectionalElements(Map.of(
"sectionalElementsKey", SectionalElementProperty.builder()
.type("type")
// the properties below are optional
.excluded(false)
.level(123)
.orientation("orientation")
.position(FieldPositionProperty.builder()
.below("below")
.fixed("fixed")
.rightOf("rightOf")
.build())
.text("text")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnForm.static interfaceTheFieldConfigproperty specifies the configuration information for a field in a table.static interfaceTheFieldInputConfigproperty specifies the configuration for the default input values to display for a field.static interfaceTheFieldPositionproperty specifies the field position.static interfaceTheFieldValidationConfigurationproperty specifies the validation configuration for a field.static interfaceDescribes the configuration for the file uploader field.static interfaceTheFormButtonproperty specifies the configuration for a button UI element that is a part of a form.static interfaceTheFormCTAproperty specifies the call to action button configuration for the form.static interfaceTheFormDataTypeConfigproperty specifies the data type configuration for the data source associated with a form.static interfaceRepresents the data binding configuration for a specific property using data stored in AWS .static interfaceRepresents the data binding configuration for a form's input fields at runtime.You can useFormInputBindingPropertiesValueto add exposed properties to a form to allow different values to be entered when a form is reused in different places in an app.static interfaceAssociates a form property to a binding property.static interfaceTheFormInputValuePropertyproperty specifies the configuration for an input field on a form.static interfaceTheFormStyleConfigproperty specifies the configuration settings for the form's style properties.static interfaceTheFormStyleproperty specifies the configuration for the form's style.static interfaceTheSectionalElementproperty specifies the configuration information for a visual helper element for a form.static interfaceTheValueMappingproperty specifies the association between a complex object and a display value.static interfaceTheValueMappingsproperty specifies the data binding configuration for a value map.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.amplifyuibuilder.IFormRef
IFormRef.Jsii$Default, IFormRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnForm(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnForm(software.amazon.jsii.JsiiObjectRef objRef) Create a newAWS::AmplifyUIBuilder::Form.CfnForm(software.constructs.Construct scope, String id, CfnFormProps props) Create a newAWS::AmplifyUIBuilder::Form. -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()The unique ID of the Amplify app associated with the form.The ID for the form.getCta()TheFormCTAobject that stores the call to action configuration for the form.The type of data source to use to create the form.The name of the backend environment that is a part of the Amplify app.The configuration information for the form's fields.Specifies whether to perform a create or update action on the form.A reference to a Form resource.Specifies an icon or decoration to display on the form.getName()The name of the form.The schema version of the form.The configuration information for the visual helper elements for the form.getStyle()The configuration for the form's style.getTags()Tag Manager which manages the tags for this resource.One or more key-value pairs to use when tagging the form data.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnForm.renderProperties(Map<String, Object> props) voidThe unique ID of the Amplify app associated with the form.voidsetCta(IResolvable value) TheFormCTAobject that stores the call to action configuration for the form.voidsetCta(CfnForm.FormCTAProperty value) TheFormCTAobject that stores the call to action configuration for the form.voidsetDataType(IResolvable value) The type of data source to use to create the form.voidThe type of data source to use to create the form.voidsetEnvironmentName(String value) The name of the backend environment that is a part of the Amplify app.voidThe configuration information for the form's fields.voidsetFields(IResolvable value) The configuration information for the form's fields.voidsetFormActionType(String value) Specifies whether to perform a create or update action on the form.voidsetLabelDecorator(String value) Specifies an icon or decoration to display on the form.voidThe name of the form.voidsetSchemaVersion(String value) The schema version of the form.voidsetSectionalElements(Map<String, Object> value) The configuration information for the visual helper elements for the form.voidsetSectionalElements(IResolvable value) The configuration information for the visual helper elements for the form.voidsetStyle(IResolvable value) The configuration for the form's style.voidThe configuration for the form's style.voidsetTagsRaw(Map<String, String> value) One or more key-value pairs to use when tagging the form data.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnForm
protected CfnForm(software.amazon.jsii.JsiiObjectRef objRef) -
CfnForm
protected CfnForm(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnForm
@Stability(Stable) public CfnForm(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnFormProps props) Create a newAWS::AmplifyUIBuilder::Form.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnForm
Create a newAWS::AmplifyUIBuilder::Form.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
isCfnForm
Checks whether the given object is a CfnForm.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
The ID for the form. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFormRef
A reference to a Form resource.- Specified by:
getFormRefin interfaceIFormRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAppId
The unique ID of the Amplify app associated with the form. -
setAppId
The unique ID of the Amplify app associated with the form. -
getCta
TheFormCTAobject that stores the call to action configuration for the form.Returns union: either
IResolvableorCfnForm.FormCTAProperty -
setCta
TheFormCTAobject that stores the call to action configuration for the form. -
setCta
TheFormCTAobject that stores the call to action configuration for the form. -
getDataType
The type of data source to use to create the form.Returns union: either
IResolvableorCfnForm.FormDataTypeConfigProperty -
setDataType
The type of data source to use to create the form. -
setDataType
The type of data source to use to create the form. -
getEnvironmentName
The name of the backend environment that is a part of the Amplify app. -
setEnvironmentName
The name of the backend environment that is a part of the Amplify app. -
getFields
The configuration information for the form's fields.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnForm.FieldConfigProperty> -
setFields
The configuration information for the form's fields. -
setFields
The configuration information for the form's fields. -
getFormActionType
Specifies whether to perform a create or update action on the form. -
setFormActionType
Specifies whether to perform a create or update action on the form. -
getLabelDecorator
Specifies an icon or decoration to display on the form. -
setLabelDecorator
Specifies an icon or decoration to display on the form. -
getName
The name of the form. -
setName
The name of the form. -
getSchemaVersion
The schema version of the form. -
setSchemaVersion
The schema version of the form. -
getSectionalElements
The configuration information for the visual helper elements for the form.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnForm.SectionalElementProperty> -
setSectionalElements
The configuration information for the visual helper elements for the form. -
setSectionalElements
The configuration information for the visual helper elements for the form. -
getStyle
The configuration for the form's style.Returns union: either
IResolvableorCfnForm.FormStyleProperty -
setStyle
The configuration for the form's style. -
setStyle
The configuration for the form's style. -
getTagsRaw
One or more key-value pairs to use when tagging the form data. -
setTagsRaw
One or more key-value pairs to use when tagging the form data.
-