aws-cdk-lib.aws_quicksight.CfnDashboard.TextConditionalFormatProperty

interface TextConditionalFormatProperty

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

The conditional formatting for the text.

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 textConditionalFormatProperty: quicksight.CfnDashboard.TextConditionalFormatProperty = {
  backgroundColor: {
    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',
    },
  },
  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
backgroundColor?IResolvable | ConditionalFormattingColorPropertyThe conditional formatting for the text background color.
icon?IResolvable | ConditionalFormattingIconPropertyThe conditional formatting for the icon.
textColor?IResolvable | ConditionalFormattingColorPropertyThe conditional formatting for the text color.

backgroundColor?

Type: IResolvable | ConditionalFormattingColorProperty (optional)

The conditional formatting for the text background color.


icon?

Type: IResolvable | ConditionalFormattingIconProperty (optional)

The conditional formatting for the icon.


textColor?

Type: IResolvable | ConditionalFormattingColorProperty (optional)

The conditional formatting for the text color.