CfnFormProps

class aws_cdk.aws_amplifyuibuilder.CfnFormProps(*, app_id=None, cta=None, data_type=None, environment_name=None, fields=None, form_action_type=None, label_decorator=None, name=None, schema_version=None, sectional_elements=None, style=None, tags=None)

Bases: object

Properties for defining a CfnForm.

Parameters:
  • app_id (Optional[str]) – The unique ID of the Amplify app associated with the form.

  • cta (Union[IResolvable, FormCTAProperty, Dict[str, Any], None]) – The FormCTA object that stores the call to action configuration for the form.

  • data_type (Union[IResolvable, FormDataTypeConfigProperty, Dict[str, Any], None]) – The type of data source to use to create the form.

  • environment_name (Optional[str]) – The name of the backend environment that is a part of the Amplify app.

  • fields (Union[IResolvable, Mapping[str, Union[IResolvable, FieldConfigProperty, Dict[str, Any]]], None]) – The configuration information for the form’s fields.

  • form_action_type (Optional[str]) – Specifies whether to perform a create or update action on the form.

  • label_decorator (Optional[str]) – Specifies an icon or decoration to display on the form.

  • name (Optional[str]) – The name of the form.

  • schema_version (Optional[str]) – The schema version of the form.

  • sectional_elements (Union[IResolvable, Mapping[str, Union[IResolvable, SectionalElementProperty, Dict[str, Any]]], None]) – The configuration information for the visual helper elements for the form. These elements are not associated with any data.

  • style (Union[IResolvable, FormStyleProperty, Dict[str, Any], None]) – The configuration for the form’s style.

  • tags (Optional[Mapping[str, str]]) – One or more key-value pairs to use when tagging the form data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_amplifyuibuilder as amplifyuibuilder

# form_input_value_property_property_: amplifyuibuilder.CfnForm.FormInputValuePropertyProperty

cfn_form_props = amplifyuibuilder.CfnFormProps(
    app_id="appId",
    cta=amplifyuibuilder.CfnForm.FormCTAProperty(
        cancel=amplifyuibuilder.CfnForm.FormButtonProperty(
            children="children",
            excluded=False,
            position=amplifyuibuilder.CfnForm.FieldPositionProperty(
                below="below",
                fixed="fixed",
                right_of="rightOf"
            )
        ),
        clear=amplifyuibuilder.CfnForm.FormButtonProperty(
            children="children",
            excluded=False,
            position=amplifyuibuilder.CfnForm.FieldPositionProperty(
                below="below",
                fixed="fixed",
                right_of="rightOf"
            )
        ),
        position="position",
        submit=amplifyuibuilder.CfnForm.FormButtonProperty(
            children="children",
            excluded=False,
            position=amplifyuibuilder.CfnForm.FieldPositionProperty(
                below="below",
                fixed="fixed",
                right_of="rightOf"
            )
        )
    ),
    data_type=amplifyuibuilder.CfnForm.FormDataTypeConfigProperty(
        data_source_type="dataSourceType",
        data_type_name="dataTypeName"
    ),
    environment_name="environmentName",
    fields={
        "fields_key": amplifyuibuilder.CfnForm.FieldConfigProperty(
            excluded=False,
            input_type=amplifyuibuilder.CfnForm.FieldInputConfigProperty(
                type="type",

                # the properties below are optional
                default_checked=False,
                default_country_code="defaultCountryCode",
                default_value="defaultValue",
                descriptive_text="descriptiveText",
                file_uploader_config=amplifyuibuilder.CfnForm.FileUploaderFieldConfigProperty(
                    accepted_file_types=["acceptedFileTypes"],
                    access_level="accessLevel",

                    # the properties below are optional
                    is_resumable=False,
                    max_file_count=123,
                    max_size=123,
                    show_thumbnails=False
                ),
                is_array=False,
                max_value=123,
                min_value=123,
                name="name",
                placeholder="placeholder",
                read_only=False,
                required=False,
                step=123,
                value="value",
                value_mappings=amplifyuibuilder.CfnForm.ValueMappingsProperty(
                    values=[amplifyuibuilder.CfnForm.ValueMappingProperty(
                        value=amplifyuibuilder.CfnForm.FormInputValuePropertyProperty(
                            binding_properties=amplifyuibuilder.CfnForm.FormInputValuePropertyBindingPropertiesProperty(
                                property="property",

                                # the properties below are optional
                                field="field"
                            ),
                            concat=[form_input_value_property_property_],
                            value="value"
                        ),

                        # the properties below are optional
                        display_value=amplifyuibuilder.CfnForm.FormInputValuePropertyProperty(
                            binding_properties=amplifyuibuilder.CfnForm.FormInputValuePropertyBindingPropertiesProperty(
                                property="property",

                                # the properties below are optional
                                field="field"
                            ),
                            concat=[form_input_value_property_property_],
                            value="value"
                        )
                    )],

                    # the properties below are optional
                    binding_properties={
                        "binding_properties_key": amplifyuibuilder.CfnForm.FormInputBindingPropertiesValueProperty(
                            binding_properties=amplifyuibuilder.CfnForm.FormInputBindingPropertiesValuePropertiesProperty(
                                model="model"
                            ),
                            type="type"
                        )
                    }
                )
            ),
            label="label",
            position=amplifyuibuilder.CfnForm.FieldPositionProperty(
                below="below",
                fixed="fixed",
                right_of="rightOf"
            ),
            validations=[amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty(
                type="type",

                # the properties below are optional
                num_values=[123],
                str_values=["strValues"],
                validation_message="validationMessage"
            )]
        )
    },
    form_action_type="formActionType",
    label_decorator="labelDecorator",
    name="name",
    schema_version="schemaVersion",
    sectional_elements={
        "sectional_elements_key": amplifyuibuilder.CfnForm.SectionalElementProperty(
            type="type",

            # the properties below are optional
            excluded=False,
            level=123,
            orientation="orientation",
            position=amplifyuibuilder.CfnForm.FieldPositionProperty(
                below="below",
                fixed="fixed",
                right_of="rightOf"
            ),
            text="text"
        )
    },
    style=amplifyuibuilder.CfnForm.FormStyleProperty(
        horizontal_gap=amplifyuibuilder.CfnForm.FormStyleConfigProperty(
            token_reference="tokenReference",
            value="value"
        ),
        outer_padding=amplifyuibuilder.CfnForm.FormStyleConfigProperty(
            token_reference="tokenReference",
            value="value"
        ),
        vertical_gap=amplifyuibuilder.CfnForm.FormStyleConfigProperty(
            token_reference="tokenReference",
            value="value"
        )
    ),
    tags={
        "tags_key": "tags"
    }
)

Attributes

app_id

The unique ID of the Amplify app associated with the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-appid

cta

The FormCTA object that stores the call to action configuration for the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-cta

data_type

The type of data source to use to create the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-datatype

environment_name

The name of the backend environment that is a part of the Amplify app.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-environmentname

fields

The configuration information for the form’s fields.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-fields

form_action_type

Specifies whether to perform a create or update action on the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-formactiontype

label_decorator

Specifies an icon or decoration to display on the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-labeldecorator

name

The name of the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-name

schema_version

The schema version of the form.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-schemaversion

sectional_elements

The configuration information for the visual helper elements for the form.

These elements are not associated with any data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-sectionalelements

style

The configuration for the form’s style.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-style

tags

One or more key-value pairs to use when tagging the form data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-form.html#cfn-amplifyuibuilder-form-tags