# FormStyleProperty

The `FormStyle` property specifies the configuration for the form's style.

- 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 formStyleProperty: amplifyuibuilder.CfnForm.FormStyleProperty = {
  horizontalGap: {
    tokenReference: 'tokenReference',
    value: 'value',
  },
  outerPadding: {
    tokenReference: 'tokenReference',
    value: 'value',
  },
  verticalGap: {
    tokenReference: 'tokenReference',
    value: 'value',
  },
};
```

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_style_property = 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"
    )
)
```

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.*;

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

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 formStyleProperty = new FormStyleProperty {
    HorizontalGap = new FormStyleConfigProperty {
        TokenReference = "tokenReference",
        Value = "value"
    },
    OuterPadding = new FormStyleConfigProperty {
        TokenReference = "tokenReference",
        Value = "value"
    },
    VerticalGap = new FormStyleConfigProperty {
        TokenReference = "tokenReference",
        Value = "value"
    }
};
```

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"

formStyleProperty := &FormStyleProperty{
	HorizontalGap: &FormStyleConfigProperty{
		TokenReference: jsii.String("tokenReference"),
		Value: jsii.String("value"),
	},
	OuterPadding: &FormStyleConfigProperty{
		TokenReference: jsii.String("tokenReference"),
		Value: jsii.String("value"),
	},
	VerticalGap: &FormStyleConfigProperty{
		TokenReference: jsii.String("tokenReference"),
		Value: jsii.String("value"),
	},
}
```

## Properties

- `horizontalGap`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FormStyleConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FormStyleConfigProperty.html) — The spacing for the horizontal gap.

- `outerPadding`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FormStyleConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FormStyleConfigProperty.html) — The size of the outer padding for the form.

- `verticalGap`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FormStyleConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FormStyleConfigProperty.html) — The spacing for the vertical gap.
