aws-cdk-lib.aws_quicksight.CfnDashboard.TableConditionalFormattingOptionProperty

interface TableConditionalFormattingOptionProperty

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

Conditional formatting options for a PivotTableVisual .

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 tableConditionalFormattingOptionProperty: quicksight.CfnDashboard.TableConditionalFormattingOptionProperty = {
  cell: {
    fieldId: 'fieldId',

    // the properties below are optional
    textFormat: {
      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',
        },
      },
    },
  },
  row: {
    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',
      },
    },
    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
cell?IResolvable | TableCellConditionalFormattingPropertyThe cell conditional formatting option for a table.
row?IResolvable | TableRowConditionalFormattingPropertyThe row conditional formatting option for a table.

cell?

Type: IResolvable | TableCellConditionalFormattingProperty (optional)

The cell conditional formatting option for a table.


row?

Type: IResolvable | TableRowConditionalFormattingProperty (optional)

The row conditional formatting option for a table.