Skip to content
v2.277.0

TableRowConditionalFormattingProperty Struct ​

The conditional formatting of a table row.

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 tableRowConditionalFormattingProperty: quicksight.CfnDashboard.TableRowConditionalFormattingProperty = {
  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',
    },
  },
};
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

table_row_conditional_formatting_property = quicksight.CfnDashboard.TableRowConditionalFormattingProperty(
    background_color=quicksight.CfnDashboard.ConditionalFormattingColorProperty(
        gradient=quicksight.CfnDashboard.ConditionalFormattingGradientColorProperty(
            color=quicksight.CfnDashboard.GradientColorProperty(
                stops=[quicksight.CfnDashboard.GradientStopProperty(
                    gradient_offset=123,

                    # the properties below are optional
                    color="color",
                    data_value=123
                )]
            ),
            expression="expression"
        ),
        solid=quicksight.CfnDashboard.ConditionalFormattingSolidColorProperty(
            expression="expression",

            # the properties below are optional
            color="color"
        )
    ),
    text_color=quicksight.CfnDashboard.ConditionalFormattingColorProperty(
        gradient=quicksight.CfnDashboard.ConditionalFormattingGradientColorProperty(
            color=quicksight.CfnDashboard.GradientColorProperty(
                stops=[quicksight.CfnDashboard.GradientStopProperty(
                    gradient_offset=123,

                    # the properties below are optional
                    color="color",
                    data_value=123
                )]
            ),
            expression="expression"
        ),
        solid=quicksight.CfnDashboard.ConditionalFormattingSolidColorProperty(
            expression="expression",

            # the properties below are optional
            color="color"
        )
    )
)
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.*;

TableRowConditionalFormattingProperty tableRowConditionalFormattingProperty = TableRowConditionalFormattingProperty.builder()
        .backgroundColor(ConditionalFormattingColorProperty.builder()
                .gradient(ConditionalFormattingGradientColorProperty.builder()
                        .color(GradientColorProperty.builder()
                                .stops(List.of(GradientStopProperty.builder()
                                        .gradientOffset(123)

                                        // the properties below are optional
                                        .color("color")
                                        .dataValue(123)
                                        .build()))
                                .build())
                        .expression("expression")
                        .build())
                .solid(ConditionalFormattingSolidColorProperty.builder()
                        .expression("expression")

                        // the properties below are optional
                        .color("color")
                        .build())
                .build())
        .textColor(ConditionalFormattingColorProperty.builder()
                .gradient(ConditionalFormattingGradientColorProperty.builder()
                        .color(GradientColorProperty.builder()
                                .stops(List.of(GradientStopProperty.builder()
                                        .gradientOffset(123)

                                        // the properties below are optional
                                        .color("color")
                                        .dataValue(123)
                                        .build()))
                                .build())
                        .expression("expression")
                        .build())
                .solid(ConditionalFormattingSolidColorProperty.builder()
                        .expression("expression")

                        // the properties below are optional
                        .color("color")
                        .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 tableRowConditionalFormattingProperty = new TableRowConditionalFormattingProperty {
    BackgroundColor = new ConditionalFormattingColorProperty {
        Gradient = new ConditionalFormattingGradientColorProperty {
            Color = new GradientColorProperty {
                Stops = new [] { new GradientStopProperty {
                    GradientOffset = 123,

                    // the properties below are optional
                    Color = "color",
                    DataValue = 123
                } }
            },
            Expression = "expression"
        },
        Solid = new ConditionalFormattingSolidColorProperty {
            Expression = "expression",

            // the properties below are optional
            Color = "color"
        }
    },
    TextColor = new ConditionalFormattingColorProperty {
        Gradient = new ConditionalFormattingGradientColorProperty {
            Color = new GradientColorProperty {
                Stops = new [] { new GradientStopProperty {
                    GradientOffset = 123,

                    // the properties below are optional
                    Color = "color",
                    DataValue = 123
                } }
            },
            Expression = "expression"
        },
        Solid = new ConditionalFormattingSolidColorProperty {
            Expression = "expression",

            // the properties below are optional
            Color = "color"
        }
    }
};
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"

tableRowConditionalFormattingProperty := &TableRowConditionalFormattingProperty{
	BackgroundColor: &ConditionalFormattingColorProperty{
		Gradient: &ConditionalFormattingGradientColorProperty{
			Color: &GradientColorProperty{
				Stops: []interface{}{
					&GradientStopProperty{
						GradientOffset: jsii.Number(123),

						// the properties below are optional
						Color: jsii.String("color"),
						DataValue: jsii.Number(123),
					},
				},
			},
			Expression: jsii.String("expression"),
		},
		Solid: &ConditionalFormattingSolidColorProperty{
			Expression: jsii.String("expression"),

			// the properties below are optional
			Color: jsii.String("color"),
		},
	},
	TextColor: &ConditionalFormattingColorProperty{
		Gradient: &ConditionalFormattingGradientColorProperty{
			Color: &GradientColorProperty{
				Stops: []interface{}{
					&GradientStopProperty{
						GradientOffset: jsii.Number(123),

						// the properties below are optional
						Color: jsii.String("color"),
						DataValue: jsii.Number(123),
					},
				},
			},
			Expression: jsii.String("expression"),
		},
		Solid: &ConditionalFormattingSolidColorProperty{
			Expression: jsii.String("expression"),

			// the properties below are optional
			Color: jsii.String("color"),
		},
	},
}

Properties ​

backgroundColoroptionalIResolvable | CfnDashboard.ConditionalFormattingColorPropertybackground_coloroptionaltyping.Union[IResolvable, ConditionalFormattingColorProperty]backgroundColoroptionalIResolvableBackgroundColoroptionalIResolvableBackgroundColoroptionalinterface{}#
The conditional formatting color (solid, gradient) of the background for a table row.
textColoroptionalIResolvable | CfnDashboard.ConditionalFormattingColorPropertytext_coloroptionaltyping.Union[IResolvable, ConditionalFormattingColorProperty]textColoroptionalIResolvableTextColoroptionalIResolvableTextColoroptionalinterface{}#
The conditional formatting color (solid, gradient) of the text for a table row.