# FreeFormLayoutElementProperty

An element within a free-form layout.

- 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_quicksight as quicksight } from 'aws-cdk-lib';
const freeFormLayoutElementProperty: quicksight.CfnTemplate.FreeFormLayoutElementProperty = {
  elementId: 'elementId',
  elementType: 'elementType',
  height: 'height',
  width: 'width',
  xAxisLocation: 'xAxisLocation',
  yAxisLocation: 'yAxisLocation',

  // the properties below are optional
  backgroundStyle: {
    color: 'color',
    visibility: 'visibility',
  },
  borderStyle: {
    color: 'color',
    visibility: 'visibility',
  },
  loadingAnimation: {
    visibility: 'visibility',
  },
  renderingRules: [{
    configurationOverrides: {
      visibility: 'visibility',
    },
    expression: 'expression',
  }],
  selectedBorderStyle: {
    color: 'color',
    visibility: 'visibility',
  },
  visibility: 'visibility',
};
```

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_quicksight as quicksight

free_form_layout_element_property = quicksight.CfnTemplate.FreeFormLayoutElementProperty(
    element_id="elementId",
    element_type="elementType",
    height="height",
    width="width",
    x_axis_location="xAxisLocation",
    y_axis_location="yAxisLocation",

    # the properties below are optional
    background_style=quicksight.CfnTemplate.FreeFormLayoutElementBackgroundStyleProperty(
        color="color",
        visibility="visibility"
    ),
    border_style=quicksight.CfnTemplate.FreeFormLayoutElementBorderStyleProperty(
        color="color",
        visibility="visibility"
    ),
    loading_animation=quicksight.CfnTemplate.LoadingAnimationProperty(
        visibility="visibility"
    ),
    rendering_rules=[quicksight.CfnTemplate.SheetElementRenderingRuleProperty(
        configuration_overrides=quicksight.CfnTemplate.SheetElementConfigurationOverridesProperty(
            visibility="visibility"
        ),
        expression="expression"
    )],
    selected_border_style=quicksight.CfnTemplate.FreeFormLayoutElementBorderStyleProperty(
        color="color",
        visibility="visibility"
    ),
    visibility="visibility"
)
```

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

FreeFormLayoutElementProperty freeFormLayoutElementProperty = FreeFormLayoutElementProperty.builder()
        .elementId("elementId")
        .elementType("elementType")
        .height("height")
        .width("width")
        .xAxisLocation("xAxisLocation")
        .yAxisLocation("yAxisLocation")

        // the properties below are optional
        .backgroundStyle(FreeFormLayoutElementBackgroundStyleProperty.builder()
                .color("color")
                .visibility("visibility")
                .build())
        .borderStyle(FreeFormLayoutElementBorderStyleProperty.builder()
                .color("color")
                .visibility("visibility")
                .build())
        .loadingAnimation(LoadingAnimationProperty.builder()
                .visibility("visibility")
                .build())
        .renderingRules(List.of(SheetElementRenderingRuleProperty.builder()
                .configurationOverrides(SheetElementConfigurationOverridesProperty.builder()
                        .visibility("visibility")
                        .build())
                .expression("expression")
                .build()))
        .selectedBorderStyle(FreeFormLayoutElementBorderStyleProperty.builder()
                .color("color")
                .visibility("visibility")
                .build())
        .visibility("visibility")
        .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.QuickSight;

var freeFormLayoutElementProperty = new FreeFormLayoutElementProperty {
    ElementId = "elementId",
    ElementType = "elementType",
    Height = "height",
    Width = "width",
    XAxisLocation = "xAxisLocation",
    YAxisLocation = "yAxisLocation",

    // the properties below are optional
    BackgroundStyle = new FreeFormLayoutElementBackgroundStyleProperty {
        Color = "color",
        Visibility = "visibility"
    },
    BorderStyle = new FreeFormLayoutElementBorderStyleProperty {
        Color = "color",
        Visibility = "visibility"
    },
    LoadingAnimation = new LoadingAnimationProperty {
        Visibility = "visibility"
    },
    RenderingRules = new [] { new SheetElementRenderingRuleProperty {
        ConfigurationOverrides = new SheetElementConfigurationOverridesProperty {
            Visibility = "visibility"
        },
        Expression = "expression"
    } },
    SelectedBorderStyle = new FreeFormLayoutElementBorderStyleProperty {
        Color = "color",
        Visibility = "visibility"
    },
    Visibility = "visibility"
};
```

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"

freeFormLayoutElementProperty := &FreeFormLayoutElementProperty{
	ElementId: jsii.String("elementId"),
	ElementType: jsii.String("elementType"),
	Height: jsii.String("height"),
	Width: jsii.String("width"),
	XAxisLocation: jsii.String("xAxisLocation"),
	YAxisLocation: jsii.String("yAxisLocation"),

	// the properties below are optional
	BackgroundStyle: &FreeFormLayoutElementBackgroundStyleProperty{
		Color: jsii.String("color"),
		Visibility: jsii.String("visibility"),
	},
	BorderStyle: &FreeFormLayoutElementBorderStyleProperty{
		Color: jsii.String("color"),
		Visibility: jsii.String("visibility"),
	},
	LoadingAnimation: &LoadingAnimationProperty{
		Visibility: jsii.String("visibility"),
	},
	RenderingRules: []interface{}{
		&SheetElementRenderingRuleProperty{
			ConfigurationOverrides: &SheetElementConfigurationOverridesProperty{
				Visibility: jsii.String("visibility"),
			},
			Expression: jsii.String("expression"),
		},
	},
	SelectedBorderStyle: &FreeFormLayoutElementBorderStyleProperty{
		Color: jsii.String("color"),
		Visibility: jsii.String("visibility"),
	},
	Visibility: jsii.String("visibility"),
}
```

## Properties

- `backgroundStyle`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.FreeFormLayoutElementBackgroundStyleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.FreeFormLayoutElementBackgroundStyleProperty.html) — The background style configuration of a free-form layout element.

- `borderStyle`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.FreeFormLayoutElementBorderStyleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.FreeFormLayoutElementBorderStyleProperty.html) — The border style configuration of a free-form layout element.

- `elementId`: string (required) — A unique identifier for an element within a free-form layout.

- `elementType`: string (required) — The type of element.

- `height`: string (required) — The height of an element within a free-form layout.

- `loadingAnimation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.LoadingAnimationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.LoadingAnimationProperty.html) — The loading animation configuration of a free-form layout element.

- `renderingRules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.SheetElementRenderingRuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.SheetElementRenderingRuleProperty.html)[] — The rendering rules that determine when an element should be displayed within a free-form layout.

- `selectedBorderStyle`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.FreeFormLayoutElementBorderStyleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.FreeFormLayoutElementBorderStyleProperty.html) — The border style configuration of a free-form layout element.

  This border style is used when the element is selected.

- `visibility`: string — The visibility of an element within a free-form layout.

- `width`: string (required) — The width of an element within a free-form layout.

- `xAxisLocation`: string (required) — The x-axis coordinate of the element.

- `yAxisLocation`: string (required) — The y-axis coordinate of the element.
