Class CfnForm
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.amplifyuibuilder.CfnForm
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.423Z")
@Stability(Stable)
public class CfnForm
extends CfnResource
implements IInspectable
A CloudFormation
AWS::AmplifyUIBuilder::Form.
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.*;
CfnForm cfnForm = CfnForm.Builder.create(this, "MyCfnForm")
.dataType(FormDataTypeConfigProperty.builder()
.dataSourceType("dataSourceType")
.dataTypeName("dataTypeName")
.build())
.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()
.value("value")
.build())
// the properties below are optional
.displayValue(FormInputValuePropertyProperty.builder()
.value("value")
.build())
.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")
.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())
// the properties below are optional
.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())
.environmentName("environmentName")
.labelDecorator("labelDecorator")
.tags(Map.of(
"tagsKey", "tags"))
.build();
-
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 interfaceExample: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 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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
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.AWS::AmplifyUIBuilder::Form.LabelDecorator.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()One or more key-value pairs to use when tagging the form data.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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) AWS::AmplifyUIBuilder::Form.LabelDecorator.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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnFormProps props) Create a newAWS::AmplifyUIBuilder::Form.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
One or more key-value pairs to use when tagging the form data. -
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. -
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. -
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.These elements are not associated with any data.
-
setSectionalElements
The configuration information for the visual helper elements for the form.These elements are not associated with any data.
-
setSectionalElements
The configuration information for the visual helper elements for the form.These elements are not associated with any data.
-
getStyle
The configuration for the form's style. -
setStyle
The configuration for the form's style. -
setStyle
The configuration for the form's style. -
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. -
setCta
TheFormCTAobject that stores the call to action configuration for the form. -
setCta
TheFormCTAobject that stores the call to action configuration for 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. -
getLabelDecorator
AWS::AmplifyUIBuilder::Form.LabelDecorator. -
setLabelDecorator
AWS::AmplifyUIBuilder::Form.LabelDecorator.
-