# DefaultFormattingProperty

A structure that represents a default formatting definition.

- 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 defaultFormattingProperty: quicksight.CfnTopic.DefaultFormattingProperty = {
  displayFormat: 'displayFormat',
  displayFormatOptions: {
    blankCellFormat: 'blankCellFormat',
    currencySymbol: 'currencySymbol',
    dateFormat: 'dateFormat',
    decimalSeparator: 'decimalSeparator',
    fractionDigits: 123,
    groupingSeparator: 'groupingSeparator',
    negativeFormat: {
      prefix: 'prefix',
      suffix: 'suffix',
    },
    prefix: 'prefix',
    suffix: 'suffix',
    unitScaler: 'unitScaler',
    useBlankCellFormat: false,
    useGrouping: false,
  },
};
```

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

default_formatting_property = quicksight.CfnTopic.DefaultFormattingProperty(
    display_format="displayFormat",
    display_format_options=quicksight.CfnTopic.DisplayFormatOptionsProperty(
        blank_cell_format="blankCellFormat",
        currency_symbol="currencySymbol",
        date_format="dateFormat",
        decimal_separator="decimalSeparator",
        fraction_digits=123,
        grouping_separator="groupingSeparator",
        negative_format=quicksight.CfnTopic.NegativeFormatProperty(
            prefix="prefix",
            suffix="suffix"
        ),
        prefix="prefix",
        suffix="suffix",
        unit_scaler="unitScaler",
        use_blank_cell_format=False,
        use_grouping=False
    )
)
```

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

DefaultFormattingProperty defaultFormattingProperty = DefaultFormattingProperty.builder()
        .displayFormat("displayFormat")
        .displayFormatOptions(DisplayFormatOptionsProperty.builder()
                .blankCellFormat("blankCellFormat")
                .currencySymbol("currencySymbol")
                .dateFormat("dateFormat")
                .decimalSeparator("decimalSeparator")
                .fractionDigits(123)
                .groupingSeparator("groupingSeparator")
                .negativeFormat(NegativeFormatProperty.builder()
                        .prefix("prefix")
                        .suffix("suffix")
                        .build())
                .prefix("prefix")
                .suffix("suffix")
                .unitScaler("unitScaler")
                .useBlankCellFormat(false)
                .useGrouping(false)
                .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.QuickSight;

var defaultFormattingProperty = new DefaultFormattingProperty {
    DisplayFormat = "displayFormat",
    DisplayFormatOptions = new DisplayFormatOptionsProperty {
        BlankCellFormat = "blankCellFormat",
        CurrencySymbol = "currencySymbol",
        DateFormat = "dateFormat",
        DecimalSeparator = "decimalSeparator",
        FractionDigits = 123,
        GroupingSeparator = "groupingSeparator",
        NegativeFormat = new NegativeFormatProperty {
            Prefix = "prefix",
            Suffix = "suffix"
        },
        Prefix = "prefix",
        Suffix = "suffix",
        UnitScaler = "unitScaler",
        UseBlankCellFormat = false,
        UseGrouping = false
    }
};
```

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"

defaultFormattingProperty := &DefaultFormattingProperty{
	DisplayFormat: jsii.String("displayFormat"),
	DisplayFormatOptions: &DisplayFormatOptionsProperty{
		BlankCellFormat: jsii.String("blankCellFormat"),
		CurrencySymbol: jsii.String("currencySymbol"),
		DateFormat: jsii.String("dateFormat"),
		DecimalSeparator: jsii.String("decimalSeparator"),
		FractionDigits: jsii.Number(123),
		GroupingSeparator: jsii.String("groupingSeparator"),
		NegativeFormat: &NegativeFormatProperty{
			Prefix: jsii.String("prefix"),
			Suffix: jsii.String("suffix"),
		},
		Prefix: jsii.String("prefix"),
		Suffix: jsii.String("suffix"),
		UnitScaler: jsii.String("unitScaler"),
		UseBlankCellFormat: jsii.Boolean(false),
		UseGrouping: jsii.Boolean(false),
	},
}
```

## Properties

- `displayFormat`: string — The display format.

  Valid values for this structure are `AUTO` , `PERCENT` , `CURRENCY` , `NUMBER` , `DATE` , and `STRING` .

- `displayFormatOptions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopic.DisplayFormatOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopic.DisplayFormatOptionsProperty.html) — The additional options for display formatting.
