Skip to content
v2.278.0

KPIOptionsProperty ​

Struct External

The options that determine the presentation of a KPI visual.

Example ​

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 kPIOptionsProperty: quicksight.CfnAnalysis.KPIOptionsProperty = {
  comparison: {
    comparisonFormat: {
      numberDisplayFormatConfiguration: {
        decimalPlacesConfiguration: {
          decimalPlaces: 123,
        },
        negativeValueConfiguration: {
          displayMode: 'displayMode',
        },
        nullValueFormatConfiguration: {
          nullString: 'nullString',
        },
        numberScale: 'numberScale',
        prefix: 'prefix',
        separatorConfiguration: {
          decimalSeparator: 'decimalSeparator',
          thousandsSeparator: {
            groupingStyle: 'groupingStyle',
            symbol: 'symbol',
            visibility: 'visibility',
          },
        },
        suffix: 'suffix',
      },
      percentageDisplayFormatConfiguration: {
        decimalPlacesConfiguration: {
          decimalPlaces: 123,
        },
        negativeValueConfiguration: {
          displayMode: 'displayMode',
        },
        nullValueFormatConfiguration: {
          nullString: 'nullString',
        },
        prefix: 'prefix',
        separatorConfiguration: {
          decimalSeparator: 'decimalSeparator',
          thousandsSeparator: {
            groupingStyle: 'groupingStyle',
            symbol: 'symbol',
            visibility: 'visibility',
          },
        },
        suffix: 'suffix',
      },
    },
    comparisonMethod: 'comparisonMethod',
  },
  primaryValueDisplayType: 'primaryValueDisplayType',
  primaryValueFontConfiguration: {
    fontColor: 'fontColor',
    fontDecoration: 'fontDecoration',
    fontFamily: 'fontFamily',
    fontSize: {
      absolute: 'absolute',
      relative: 'relative',
    },
    fontStyle: 'fontStyle',
    fontWeight: {
      name: 'name',
    },
  },
  progressBar: {
    visibility: 'visibility',
  },
  secondaryValue: {
    visibility: 'visibility',
  },
  secondaryValueFontConfiguration: {
    fontColor: 'fontColor',
    fontDecoration: 'fontDecoration',
    fontFamily: 'fontFamily',
    fontSize: {
      absolute: 'absolute',
      relative: 'relative',
    },
    fontStyle: 'fontStyle',
    fontWeight: {
      name: 'name',
    },
  },
  sparkline: {
    type: 'type',

    // the properties below are optional
    color: 'color',
    tooltipVisibility: 'tooltipVisibility',
    visibility: 'visibility',
  },
  trendArrows: {
    visibility: 'visibility',
  },
  visualLayoutOptions: {
    standardLayout: {
      type: 'type',
    },
  },
};
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

k_pi_options_property = quicksight.CfnAnalysis.KPIOptionsProperty(
    comparison=quicksight.CfnAnalysis.ComparisonConfigurationProperty(
        comparison_format=quicksight.CfnAnalysis.ComparisonFormatConfigurationProperty(
            number_display_format_configuration=quicksight.CfnAnalysis.NumberDisplayFormatConfigurationProperty(
                decimal_places_configuration=quicksight.CfnAnalysis.DecimalPlacesConfigurationProperty(
                    decimal_places=123
                ),
                negative_value_configuration=quicksight.CfnAnalysis.NegativeValueConfigurationProperty(
                    display_mode="displayMode"
                ),
                null_value_format_configuration=quicksight.CfnAnalysis.NullValueFormatConfigurationProperty(
                    null_string="nullString"
                ),
                number_scale="numberScale",
                prefix="prefix",
                separator_configuration=quicksight.CfnAnalysis.NumericSeparatorConfigurationProperty(
                    decimal_separator="decimalSeparator",
                    thousands_separator=quicksight.CfnAnalysis.ThousandSeparatorOptionsProperty(
                        grouping_style="groupingStyle",
                        symbol="symbol",
                        visibility="visibility"
                    )
                ),
                suffix="suffix"
            ),
            percentage_display_format_configuration=quicksight.CfnAnalysis.PercentageDisplayFormatConfigurationProperty(
                decimal_places_configuration=quicksight.CfnAnalysis.DecimalPlacesConfigurationProperty(
                    decimal_places=123
                ),
                negative_value_configuration=quicksight.CfnAnalysis.NegativeValueConfigurationProperty(
                    display_mode="displayMode"
                ),
                null_value_format_configuration=quicksight.CfnAnalysis.NullValueFormatConfigurationProperty(
                    null_string="nullString"
                ),
                prefix="prefix",
                separator_configuration=quicksight.CfnAnalysis.NumericSeparatorConfigurationProperty(
                    decimal_separator="decimalSeparator",
                    thousands_separator=quicksight.CfnAnalysis.ThousandSeparatorOptionsProperty(
                        grouping_style="groupingStyle",
                        symbol="symbol",
                        visibility="visibility"
                    )
                ),
                suffix="suffix"
            )
        ),
        comparison_method="comparisonMethod"
    ),
    primary_value_display_type="primaryValueDisplayType",
    primary_value_font_configuration=quicksight.CfnAnalysis.FontConfigurationProperty(
        font_color="fontColor",
        font_decoration="fontDecoration",
        font_family="fontFamily",
        font_size=quicksight.CfnAnalysis.FontSizeProperty(
            absolute="absolute",
            relative="relative"
        ),
        font_style="fontStyle",
        font_weight=quicksight.CfnAnalysis.FontWeightProperty(
            name="name"
        )
    ),
    progress_bar=quicksight.CfnAnalysis.ProgressBarOptionsProperty(
        visibility="visibility"
    ),
    secondary_value=quicksight.CfnAnalysis.SecondaryValueOptionsProperty(
        visibility="visibility"
    ),
    secondary_value_font_configuration=quicksight.CfnAnalysis.FontConfigurationProperty(
        font_color="fontColor",
        font_decoration="fontDecoration",
        font_family="fontFamily",
        font_size=quicksight.CfnAnalysis.FontSizeProperty(
            absolute="absolute",
            relative="relative"
        ),
        font_style="fontStyle",
        font_weight=quicksight.CfnAnalysis.FontWeightProperty(
            name="name"
        )
    ),
    sparkline=quicksight.CfnAnalysis.KPISparklineOptionsProperty(
        type="type",

        # the properties below are optional
        color="color",
        tooltip_visibility="tooltipVisibility",
        visibility="visibility"
    ),
    trend_arrows=quicksight.CfnAnalysis.TrendArrowOptionsProperty(
        visibility="visibility"
    ),
    visual_layout_options=quicksight.CfnAnalysis.KPIVisualLayoutOptionsProperty(
        standard_layout=quicksight.CfnAnalysis.KPIVisualStandardLayoutProperty(
            type="type"
        )
    )
)
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.*;

KPIOptionsProperty kPIOptionsProperty = KPIOptionsProperty.builder()
        .comparison(ComparisonConfigurationProperty.builder()
                .comparisonFormat(ComparisonFormatConfigurationProperty.builder()
                        .numberDisplayFormatConfiguration(NumberDisplayFormatConfigurationProperty.builder()
                                .decimalPlacesConfiguration(DecimalPlacesConfigurationProperty.builder()
                                        .decimalPlaces(123)
                                        .build())
                                .negativeValueConfiguration(NegativeValueConfigurationProperty.builder()
                                        .displayMode("displayMode")
                                        .build())
                                .nullValueFormatConfiguration(NullValueFormatConfigurationProperty.builder()
                                        .nullString("nullString")
                                        .build())
                                .numberScale("numberScale")
                                .prefix("prefix")
                                .separatorConfiguration(NumericSeparatorConfigurationProperty.builder()
                                        .decimalSeparator("decimalSeparator")
                                        .thousandsSeparator(ThousandSeparatorOptionsProperty.builder()
                                                .groupingStyle("groupingStyle")
                                                .symbol("symbol")
                                                .visibility("visibility")
                                                .build())
                                        .build())
                                .suffix("suffix")
                                .build())
                        .percentageDisplayFormatConfiguration(PercentageDisplayFormatConfigurationProperty.builder()
                                .decimalPlacesConfiguration(DecimalPlacesConfigurationProperty.builder()
                                        .decimalPlaces(123)
                                        .build())
                                .negativeValueConfiguration(NegativeValueConfigurationProperty.builder()
                                        .displayMode("displayMode")
                                        .build())
                                .nullValueFormatConfiguration(NullValueFormatConfigurationProperty.builder()
                                        .nullString("nullString")
                                        .build())
                                .prefix("prefix")
                                .separatorConfiguration(NumericSeparatorConfigurationProperty.builder()
                                        .decimalSeparator("decimalSeparator")
                                        .thousandsSeparator(ThousandSeparatorOptionsProperty.builder()
                                                .groupingStyle("groupingStyle")
                                                .symbol("symbol")
                                                .visibility("visibility")
                                                .build())
                                        .build())
                                .suffix("suffix")
                                .build())
                        .build())
                .comparisonMethod("comparisonMethod")
                .build())
        .primaryValueDisplayType("primaryValueDisplayType")
        .primaryValueFontConfiguration(FontConfigurationProperty.builder()
                .fontColor("fontColor")
                .fontDecoration("fontDecoration")
                .fontFamily("fontFamily")
                .fontSize(FontSizeProperty.builder()
                        .absolute("absolute")
                        .relative("relative")
                        .build())
                .fontStyle("fontStyle")
                .fontWeight(FontWeightProperty.builder()
                        .name("name")
                        .build())
                .build())
        .progressBar(ProgressBarOptionsProperty.builder()
                .visibility("visibility")
                .build())
        .secondaryValue(SecondaryValueOptionsProperty.builder()
                .visibility("visibility")
                .build())
        .secondaryValueFontConfiguration(FontConfigurationProperty.builder()
                .fontColor("fontColor")
                .fontDecoration("fontDecoration")
                .fontFamily("fontFamily")
                .fontSize(FontSizeProperty.builder()
                        .absolute("absolute")
                        .relative("relative")
                        .build())
                .fontStyle("fontStyle")
                .fontWeight(FontWeightProperty.builder()
                        .name("name")
                        .build())
                .build())
        .sparkline(KPISparklineOptionsProperty.builder()
                .type("type")

                // the properties below are optional
                .color("color")
                .tooltipVisibility("tooltipVisibility")
                .visibility("visibility")
                .build())
        .trendArrows(TrendArrowOptionsProperty.builder()
                .visibility("visibility")
                .build())
        .visualLayoutOptions(KPIVisualLayoutOptionsProperty.builder()
                .standardLayout(KPIVisualStandardLayoutProperty.builder()
                        .type("type")
                        .build())
                .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.QuickSight;

var kPIOptionsProperty = new KPIOptionsProperty {
    Comparison = new ComparisonConfigurationProperty {
        ComparisonFormat = new ComparisonFormatConfigurationProperty {
            NumberDisplayFormatConfiguration = new NumberDisplayFormatConfigurationProperty {
                DecimalPlacesConfiguration = new DecimalPlacesConfigurationProperty {
                    DecimalPlaces = 123
                },
                NegativeValueConfiguration = new NegativeValueConfigurationProperty {
                    DisplayMode = "displayMode"
                },
                NullValueFormatConfiguration = new NullValueFormatConfigurationProperty {
                    NullString = "nullString"
                },
                NumberScale = "numberScale",
                Prefix = "prefix",
                SeparatorConfiguration = new NumericSeparatorConfigurationProperty {
                    DecimalSeparator = "decimalSeparator",
                    ThousandsSeparator = new ThousandSeparatorOptionsProperty {
                        GroupingStyle = "groupingStyle",
                        Symbol = "symbol",
                        Visibility = "visibility"
                    }
                },
                Suffix = "suffix"
            },
            PercentageDisplayFormatConfiguration = new PercentageDisplayFormatConfigurationProperty {
                DecimalPlacesConfiguration = new DecimalPlacesConfigurationProperty {
                    DecimalPlaces = 123
                },
                NegativeValueConfiguration = new NegativeValueConfigurationProperty {
                    DisplayMode = "displayMode"
                },
                NullValueFormatConfiguration = new NullValueFormatConfigurationProperty {
                    NullString = "nullString"
                },
                Prefix = "prefix",
                SeparatorConfiguration = new NumericSeparatorConfigurationProperty {
                    DecimalSeparator = "decimalSeparator",
                    ThousandsSeparator = new ThousandSeparatorOptionsProperty {
                        GroupingStyle = "groupingStyle",
                        Symbol = "symbol",
                        Visibility = "visibility"
                    }
                },
                Suffix = "suffix"
            }
        },
        ComparisonMethod = "comparisonMethod"
    },
    PrimaryValueDisplayType = "primaryValueDisplayType",
    PrimaryValueFontConfiguration = new FontConfigurationProperty {
        FontColor = "fontColor",
        FontDecoration = "fontDecoration",
        FontFamily = "fontFamily",
        FontSize = new FontSizeProperty {
            Absolute = "absolute",
            Relative = "relative"
        },
        FontStyle = "fontStyle",
        FontWeight = new FontWeightProperty {
            Name = "name"
        }
    },
    ProgressBar = new ProgressBarOptionsProperty {
        Visibility = "visibility"
    },
    SecondaryValue = new SecondaryValueOptionsProperty {
        Visibility = "visibility"
    },
    SecondaryValueFontConfiguration = new FontConfigurationProperty {
        FontColor = "fontColor",
        FontDecoration = "fontDecoration",
        FontFamily = "fontFamily",
        FontSize = new FontSizeProperty {
            Absolute = "absolute",
            Relative = "relative"
        },
        FontStyle = "fontStyle",
        FontWeight = new FontWeightProperty {
            Name = "name"
        }
    },
    Sparkline = new KPISparklineOptionsProperty {
        Type = "type",

        // the properties below are optional
        Color = "color",
        TooltipVisibility = "tooltipVisibility",
        Visibility = "visibility"
    },
    TrendArrows = new TrendArrowOptionsProperty {
        Visibility = "visibility"
    },
    VisualLayoutOptions = new KPIVisualLayoutOptionsProperty {
        StandardLayout = new KPIVisualStandardLayoutProperty {
            Type = "type"
        }
    }
};
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"

kPIOptionsProperty := &KPIOptionsProperty{
	Comparison: &ComparisonConfigurationProperty{
		ComparisonFormat: &ComparisonFormatConfigurationProperty{
			NumberDisplayFormatConfiguration: &NumberDisplayFormatConfigurationProperty{
				DecimalPlacesConfiguration: &DecimalPlacesConfigurationProperty{
					DecimalPlaces: jsii.Number(123),
				},
				NegativeValueConfiguration: &NegativeValueConfigurationProperty{
					DisplayMode: jsii.String("displayMode"),
				},
				NullValueFormatConfiguration: &NullValueFormatConfigurationProperty{
					NullString: jsii.String("nullString"),
				},
				NumberScale: jsii.String("numberScale"),
				Prefix: jsii.String("prefix"),
				SeparatorConfiguration: &NumericSeparatorConfigurationProperty{
					DecimalSeparator: jsii.String("decimalSeparator"),
					ThousandsSeparator: &ThousandSeparatorOptionsProperty{
						GroupingStyle: jsii.String("groupingStyle"),
						Symbol: jsii.String("symbol"),
						Visibility: jsii.String("visibility"),
					},
				},
				Suffix: jsii.String("suffix"),
			},
			PercentageDisplayFormatConfiguration: &PercentageDisplayFormatConfigurationProperty{
				DecimalPlacesConfiguration: &DecimalPlacesConfigurationProperty{
					DecimalPlaces: jsii.Number(123),
				},
				NegativeValueConfiguration: &NegativeValueConfigurationProperty{
					DisplayMode: jsii.String("displayMode"),
				},
				NullValueFormatConfiguration: &NullValueFormatConfigurationProperty{
					NullString: jsii.String("nullString"),
				},
				Prefix: jsii.String("prefix"),
				SeparatorConfiguration: &NumericSeparatorConfigurationProperty{
					DecimalSeparator: jsii.String("decimalSeparator"),
					ThousandsSeparator: &ThousandSeparatorOptionsProperty{
						GroupingStyle: jsii.String("groupingStyle"),
						Symbol: jsii.String("symbol"),
						Visibility: jsii.String("visibility"),
					},
				},
				Suffix: jsii.String("suffix"),
			},
		},
		ComparisonMethod: jsii.String("comparisonMethod"),
	},
	PrimaryValueDisplayType: jsii.String("primaryValueDisplayType"),
	PrimaryValueFontConfiguration: &FontConfigurationProperty{
		FontColor: jsii.String("fontColor"),
		FontDecoration: jsii.String("fontDecoration"),
		FontFamily: jsii.String("fontFamily"),
		FontSize: &FontSizeProperty{
			Absolute: jsii.String("absolute"),
			Relative: jsii.String("relative"),
		},
		FontStyle: jsii.String("fontStyle"),
		FontWeight: &FontWeightProperty{
			Name: jsii.String("name"),
		},
	},
	ProgressBar: &ProgressBarOptionsProperty{
		Visibility: jsii.String("visibility"),
	},
	SecondaryValue: &SecondaryValueOptionsProperty{
		Visibility: jsii.String("visibility"),
	},
	SecondaryValueFontConfiguration: &FontConfigurationProperty{
		FontColor: jsii.String("fontColor"),
		FontDecoration: jsii.String("fontDecoration"),
		FontFamily: jsii.String("fontFamily"),
		FontSize: &FontSizeProperty{
			Absolute: jsii.String("absolute"),
			Relative: jsii.String("relative"),
		},
		FontStyle: jsii.String("fontStyle"),
		FontWeight: &FontWeightProperty{
			Name: jsii.String("name"),
		},
	},
	Sparkline: &KPISparklineOptionsProperty{
		Type: jsii.String("type"),

		// the properties below are optional
		Color: jsii.String("color"),
		TooltipVisibility: jsii.String("tooltipVisibility"),
		Visibility: jsii.String("visibility"),
	},
	TrendArrows: &TrendArrowOptionsProperty{
		Visibility: jsii.String("visibility"),
	},
	VisualLayoutOptions: &KPIVisualLayoutOptionsProperty{
		StandardLayout: &KPIVisualStandardLayoutProperty{
			Type: jsii.String("type"),
		},
	},
}

Properties ​

comparisonoptionalIResolvable | CfnAnalysis.ComparisonConfigurationPropertycomparisonoptionaltyping.Union[IResolvable, ComparisonConfigurationProperty]comparisonoptionalIResolvableComparisonoptionalIResolvableComparisonoptionalinterface{} #
The comparison configuration of a KPI visual.
primaryValueDisplayTypeoptionalstringprimary_value_display_typeoptionalstrprimaryValueDisplayTypeoptionalStringPrimaryValueDisplayTypeoptionalstringPrimaryValueDisplayTypeoptional*string #
The options that determine the primary value display type.
primaryValueFontConfigurationoptionalIResolvable | CfnAnalysis.FontConfigurationPropertyprimary_value_font_configurationoptionaltyping.Union[IResolvable, FontConfigurationProperty]primaryValueFontConfigurationoptionalIResolvablePrimaryValueFontConfigurationoptionalIResolvablePrimaryValueFontConfigurationoptionalinterface{} #
The options that determine the primary value font configuration.
progressBaroptionalIResolvable | CfnAnalysis.ProgressBarOptionsPropertyprogress_baroptionaltyping.Union[IResolvable, ProgressBarOptionsProperty]progressBaroptionalIResolvableProgressBaroptionalIResolvableProgressBaroptionalinterface{} #
The options that determine the presentation of the progress bar of a KPI visual.
secondaryValueoptionalIResolvable | CfnAnalysis.SecondaryValueOptionsPropertysecondary_valueoptionaltyping.Union[IResolvable, SecondaryValueOptionsProperty]secondaryValueoptionalIResolvableSecondaryValueoptionalIResolvableSecondaryValueoptionalinterface{} #
The options that determine the presentation of the secondary value of a KPI visual.
secondaryValueFontConfigurationoptionalIResolvable | CfnAnalysis.FontConfigurationPropertysecondary_value_font_configurationoptionaltyping.Union[IResolvable, FontConfigurationProperty]secondaryValueFontConfigurationoptionalIResolvableSecondaryValueFontConfigurationoptionalIResolvableSecondaryValueFontConfigurationoptionalinterface{} #
The options that determine the secondary value font configuration.
sparklineoptionalIResolvable | CfnAnalysis.KPISparklineOptionsPropertysparklineoptionaltyping.Union[IResolvable, KPISparklineOptionsProperty]sparklineoptionalIResolvableSparklineoptionalIResolvableSparklineoptionalinterface{} #
The options that determine the visibility, color, type, and tooltip visibility of the sparkline of a KPI visual.
trendArrowsoptionalIResolvable | CfnAnalysis.TrendArrowOptionsPropertytrend_arrowsoptionaltyping.Union[IResolvable, TrendArrowOptionsProperty]trendArrowsoptionalIResolvableTrendArrowsoptionalIResolvableTrendArrowsoptionalinterface{} #
The options that determine the presentation of trend arrows in a KPI visual.
visualLayoutOptionsoptionalIResolvable | CfnAnalysis.KPIVisualLayoutOptionsPropertyvisual_layout_optionsoptionaltyping.Union[IResolvable, KPIVisualLayoutOptionsProperty]visualLayoutOptionsoptionalIResolvableVisualLayoutOptionsoptionalIResolvableVisualLayoutOptionsoptionalinterface{} #
The options that determine the layout a KPI visual.