Skip to content
v2.277.0

FormButtonProperty Struct ​

The FormButton property specifies the configuration for a button UI element that is a part of a form.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';
const formButtonProperty: amplifyuibuilder.CfnForm.FormButtonProperty = {
  children: 'children',
  excluded: false,
  position: {
    below: 'below',
    fixed: 'fixed',
    rightOf: 'rightOf',
  },
};
python
# 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_button_property = amplifyuibuilder.CfnForm.FormButtonProperty(
    children="children",
    excluded=False,
    position=amplifyuibuilder.CfnForm.FieldPositionProperty(
        below="below",
        fixed="fixed",
        right_of="rightOf"
    )
)
java
// 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.*;

FormButtonProperty formButtonProperty = FormButtonProperty.builder()
        .children("children")
        .excluded(false)
        .position(FieldPositionProperty.builder()
                .below("below")
                .fixed("fixed")
                .rightOf("rightOf")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;

var formButtonProperty = new FormButtonProperty {
    Children = "children",
    Excluded = false,
    Position = new FieldPositionProperty {
        Below = "below",
        Fixed = "fixed",
        RightOf = "rightOf"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

formButtonProperty := &FormButtonProperty{
	Children: jsii.String("children"),
	Excluded: jsii.Boolean(false),
	Position: &FieldPositionProperty{
		Below: jsii.String("below"),
		Fixed: jsii.String("fixed"),
		RightOf: jsii.String("rightOf"),
	},
}

Properties ​

childrenoptionalstringchildrenoptionalstrchildrenoptionalStringChildrenoptionalstringChildrenoptional*string#
Describes the button's properties.
excludedoptionalboolean | IResolvableexcludedoptionaltyping.Union[bool, IResolvable]excludedoptionalBooleanExcludedoptionalboolExcludedoptionalinterface{}#
Specifies whether the button is visible on the form.
positionoptionalIResolvable | CfnForm.FieldPositionPropertypositionoptionaltyping.Union[IResolvable, FieldPositionProperty]positionoptionalIResolvablePositionoptionalIResolvablePositionoptionalinterface{}#
The position of the button.