aws-cdk-lib.aws_quicksight.CfnAnalysis.KPIPrimaryValueConditionalFormattingProperty

interface KPIPrimaryValueConditionalFormattingProperty

LanguageType name
.NETAmazon.CDK.AWS.QuickSight.CfnAnalysis.KPIPrimaryValueConditionalFormattingProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnAnalysis_KPIPrimaryValueConditionalFormattingProperty
Javasoftware.amazon.awscdk.services.quicksight.CfnAnalysis.KPIPrimaryValueConditionalFormattingProperty
Pythonaws_cdk.aws_quicksight.CfnAnalysis.KPIPrimaryValueConditionalFormattingProperty
TypeScript aws-cdk-lib » aws_quicksight » CfnAnalysis » KPIPrimaryValueConditionalFormattingProperty

The conditional formatting for the primary value of a KPI visual.

Example

// 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 kPIPrimaryValueConditionalFormattingProperty: quicksight.CfnAnalysis.KPIPrimaryValueConditionalFormattingProperty = {
  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',
    },
  },
};

Properties

NameTypeDescription
icon?IResolvable | ConditionalFormattingIconPropertyThe conditional formatting of the primary value's icon.
textColor?IResolvable | ConditionalFormattingColorPropertyThe conditional formatting of the primary value's text color.

icon?

Type: IResolvable | ConditionalFormattingIconProperty (optional)

The conditional formatting of the primary value's icon.


textColor?

Type: IResolvable | ConditionalFormattingColorProperty (optional)

The conditional formatting of the primary value's text color.