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
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:52.307Z")
@Stability(Stable)
public class CfnForm
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnForm
.static interface
TheFieldConfig
property specifies the configuration information for a field in a table.static interface
TheFieldInputConfig
property specifies the configuration for the default input values to display for a field.static interface
TheFieldPosition
property specifies the field position.static interface
TheFieldValidationConfiguration
property specifies the validation configuration for a field.static interface
Describes the configuration for the file uploader field.static interface
TheFormButton
property specifies the configuration for a button UI element that is a part of a form.static interface
TheFormCTA
property specifies the call to action button configuration for the form.static interface
TheFormDataTypeConfig
property specifies the data type configuration for the data source associated with a form.static interface
Represents the data binding configuration for a specific property using data stored in AWS .static interface
Represents the data binding configuration for a form's input fields at runtime.You can useFormInputBindingPropertiesValue
to 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 interface
Associates a form property to a binding property.static interface
TheFormInputValueProperty
property specifies the configuration for an input field on a form.static interface
TheFormStyleConfig
property specifies the configuration settings for the form's style properties.static interface
TheFormStyle
property specifies the configuration for the form's style.static interface
TheSectionalElement
property specifies the configuration information for a visual helper element for a form.static interface
TheValueMapping
property specifies the association between a complex object and a display value.static interface
TheValueMappings
property specifies the data binding configuration for a value map.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnForm
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnForm
(software.amazon.jsii.JsiiObjectRef objRef) CfnForm
(software.constructs.Construct scope, String id, CfnFormProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()
The unique ID of the Amplify app associated with the form.The ID for the form.getCta()
TheFormCTA
object 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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The unique ID of the Amplify app associated with the form.void
setCta
(IResolvable value) TheFormCTA
object that stores the call to action configuration for the form.void
setCta
(CfnForm.FormCTAProperty value) TheFormCTA
object that stores the call to action configuration for the form.void
setDataType
(IResolvable value) The type of data source to use to create the form.void
The type of data source to use to create the form.void
setEnvironmentName
(String value) The name of the backend environment that is a part of the Amplify app.void
The configuration information for the form's fields.void
setFields
(IResolvable value) The configuration information for the form's fields.void
setFormActionType
(String value) Specifies whether to perform a create or update action on the form.void
setLabelDecorator
(String value) Specifies an icon or decoration to display on the form.void
The name of the form.void
setSchemaVersion
(String value) The schema version of the form.void
setSectionalElements
(Map<String, Object> value) The configuration information for the visual helper elements for the form.void
setSectionalElements
(IResolvable value) The configuration information for the visual helper elements for the form.void
setStyle
(IResolvable value) The configuration for the form's style.void
The configuration for the form's style.void
setTagsRaw
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
- 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
The ID for the form. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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
TheFormCTA
object that stores the call to action configuration for the form. -
setCta
TheFormCTA
object that stores the call to action configuration for the form. -
setCta
TheFormCTA
object that stores the call to action configuration for the form. -
getDataType
The type of data source to use to create the form. -
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. -
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. -
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. -
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.
-