Skip to content
v2.275.0

KPIConditionalFormattingOptionProperty Struct ​

The conditional formatting options 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 kPIConditionalFormattingOptionProperty: quicksight.CfnDashboard.KPIConditionalFormattingOptionProperty = {
  actualValue: {
    icon: {
      customCondition: {
        expression: 'expression',
        iconOptions: {
          icon: 'icon',
          unicodeIcon: 'unicodeIcon',
        },

        // the properties below are optional
        color: 'color',
        displayConfiguration: {
          iconDisplayOption: 'iconDisplayOption',
        },
      },
      iconSet: {
        expression: 'expression',

        // the properties below are optional
        iconSetType: 'iconSetType',
      },
    },
    textColor: {
      gradient: {
        color: {
          stops: [{
            gradientOffset: 123,

            // the properties below are optional
            color: 'color',
            dataValue: 123,
          }],
        },
        expression: 'expression',
      },
      solid: {
        expression: 'expression',

        // the properties below are optional
        color: 'color',
      },
    },
  },
  comparisonValue: {
    icon: {
      customCondition: {
        expression: 'expression',
        iconOptions: {
          icon: 'icon',
          unicodeIcon: 'unicodeIcon',
        },

        // the properties below are optional
        color: 'color',
        displayConfiguration: {
          iconDisplayOption: 'iconDisplayOption',
        },
      },
      iconSet: {
        expression: 'expression',

        // the properties below are optional
        iconSetType: 'iconSetType',
      },
    },
    textColor: {
      gradient: {
        color: {
          stops: [{
            gradientOffset: 123,

            // the properties below are optional
            color: 'color',
            dataValue: 123,
          }],
        },
        expression: 'expression',
      },
      solid: {
        expression: 'expression',

        // the properties below are optional
        color: 'color',
      },
    },
  },
  primaryValue: {
    icon: {
      customCondition: {
        expression: 'expression',
        iconOptions: {
          icon: 'icon',
          unicodeIcon: 'unicodeIcon',
        },

        // the properties below are optional
        color: 'color',
        displayConfiguration: {
          iconDisplayOption: 'iconDisplayOption',
        },
      },
      iconSet: {
        expression: 'expression',

        // the properties below are optional
        iconSetType: 'iconSetType',
      },
    },
    textColor: {
      gradient: {
        color: {
          stops: [{
            gradientOffset: 123,

            // the properties below are optional
            color: 'color',
            dataValue: 123,
          }],
        },
        expression: 'expression',
      },
      solid: {
        expression: 'expression',

        // the properties below are optional
        color: 'color',
      },
    },
  },
  progressBar: {
    foregroundColor: {
      gradient: {
        color: {
          stops: [{
            gradientOffset: 123,

            // the properties below are optional
            color: 'color',
            dataValue: 123,
          }],
        },
        expression: 'expression',
      },
      solid: {
        expression: 'expression',

        // the properties below are optional
        color: 'color',
      },
    },
  },
};

Properties ​

actualValueoptionalIResolvable | CfnDashboard.KPIActualValueConditionalFormattingPropertyactual_valueoptionaltyping.Union[IResolvable, KPIActualValueConditionalFormattingProperty]actualValueoptionalIResolvableActualValueoptionalIResolvableActualValueoptionalinterface{}#
The conditional formatting for the actual value of a KPI visual.
comparisonValueoptionalIResolvable | CfnDashboard.KPIComparisonValueConditionalFormattingPropertycomparison_valueoptionaltyping.Union[IResolvable, KPIComparisonValueConditionalFormattingProperty]comparisonValueoptionalIResolvableComparisonValueoptionalIResolvableComparisonValueoptionalinterface{}#
The conditional formatting for the comparison value of a KPI visual.
primaryValueoptionalIResolvable | CfnDashboard.KPIPrimaryValueConditionalFormattingPropertyprimary_valueoptionaltyping.Union[IResolvable, KPIPrimaryValueConditionalFormattingProperty]primaryValueoptionalIResolvablePrimaryValueoptionalIResolvablePrimaryValueoptionalinterface{}#
The conditional formatting for the primary value of a KPI visual.
progressBaroptionalIResolvable | CfnDashboard.KPIProgressBarConditionalFormattingPropertyprogress_baroptionaltyping.Union[IResolvable, KPIProgressBarConditionalFormattingProperty]progressBaroptionalIResolvableProgressBaroptionalIResolvableProgressBaroptionalinterface{}#
The conditional formatting for the progress bar of a KPI visual.