FormCTAProperty Struct
The FormCTA property specifies the call to action button configuration for the form.
| Source | |
|---|---|
| Type last changed |
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 formCTAProperty: amplifyuibuilder.CfnForm.FormCTAProperty = {
cancel: {
children: 'children',
excluded: false,
position: {
below: 'below',
fixed: 'fixed',
rightOf: 'rightOf',
},
},
clear: {
children: 'children',
excluded: false,
position: {
below: 'below',
fixed: 'fixed',
rightOf: 'rightOf',
},
},
position: 'position',
submit: {
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_cta_property = 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"
)
)
)
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.*;
FormCTAProperty formCTAProperty = 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();
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 formCTAProperty = new FormCTAProperty {
Cancel = new FormButtonProperty {
Children = "children",
Excluded = false,
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
}
},
Clear = new FormButtonProperty {
Children = "children",
Excluded = false,
Position = new FieldPositionProperty {
Below = "below",
Fixed = "fixed",
RightOf = "rightOf"
}
},
Position = "position",
Submit = 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"
formCTAProperty := &FormCTAProperty{
Cancel: &FormButtonProperty{
Children: jsii.String("children"),
Excluded: jsii.Boolean(false),
Position: &FieldPositionProperty{
Below: jsii.String("below"),
Fixed: jsii.String("fixed"),
RightOf: jsii.String("rightOf"),
},
},
Clear: &FormButtonProperty{
Children: jsii.String("children"),
Excluded: jsii.Boolean(false),
Position: &FieldPositionProperty{
Below: jsii.String("below"),
Fixed: jsii.String("fixed"),
RightOf: jsii.String("rightOf"),
},
},
Position: jsii.String("position"),
Submit: &FormButtonProperty{
Children: jsii.String("children"),
Excluded: jsii.Boolean(false),
Position: &FieldPositionProperty{
Below: jsii.String("below"),
Fixed: jsii.String("fixed"),
RightOf: jsii.String("rightOf"),
},
},
}
Properties
canceloptionalIResolvable | CfnForm.FormButtonPropertycanceloptionaltyping.Union[IResolvable, FormButtonProperty]canceloptionalIResolvableCanceloptionalIResolvableCanceloptionalinterface{} #Displays a cancel button.
clearoptionalIResolvable | CfnForm.FormButtonPropertyclearoptionaltyping.Union[IResolvable, FormButtonProperty]clearoptionalIResolvableClearoptionalIResolvableClearoptionalinterface{} #Displays a clear button.
positionoptionalstringpositionoptionalstrpositionoptionalStringPositionoptionalstringPositionoptional*string #The position of the button.
submitoptionalIResolvable | CfnForm.FormButtonPropertysubmitoptionaltyping.Union[IResolvable, FormButtonProperty]submitoptionalIResolvableSubmitoptionalIResolvableSubmitoptionalinterface{} #Displays a submit button.