# FormCTAProperty

The `FormCTA` property specifies the call to action button configuration for the form.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
        }
    }
};
```

Golang:

```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

- `cancel`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FormButtonProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FormButtonProperty.html) — Displays a cancel button.

- `clear`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FormButtonProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FormButtonProperty.html) — Displays a clear button.

- `position`: string — The position of the button.

- `submit`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FormButtonProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FormButtonProperty.html) — Displays a submit button.
