Skip to content
v2.278.0

FormStyleProperty Struct ​

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

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

horizontalGapoptionalIResolvable | CfnForm.FormStyleConfigPropertyhorizontal_gapoptionaltyping.Union[IResolvable, FormStyleConfigProperty]horizontalGapoptionalIResolvableHorizontalGapoptionalIResolvableHorizontalGapoptionalinterface{} #
The spacing for the horizontal gap.
outerPaddingoptionalIResolvable | CfnForm.FormStyleConfigPropertyouter_paddingoptionaltyping.Union[IResolvable, FormStyleConfigProperty]outerPaddingoptionalIResolvableOuterPaddingoptionalIResolvableOuterPaddingoptionalinterface{} #
The size of the outer padding for the form.
verticalGapoptionalIResolvable | CfnForm.FormStyleConfigPropertyvertical_gapoptionaltyping.Union[IResolvable, FormStyleConfigProperty]verticalGapoptionalIResolvableVerticalGapoptionalIResolvableVerticalGapoptionalinterface{} #
The spacing for the vertical gap.