ConditionalFormattingGradientColorProperty Struct
Formatting configuration for gradient color.
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 conditionalFormattingGradientColorProperty: quicksight.CfnTemplate.ConditionalFormattingGradientColorProperty = {
color: {
stops: [{
gradientOffset: 123,
// the properties below are optional
color: 'color',
dataValue: 123,
}],
},
expression: 'expression',
};
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
conditional_formatting_gradient_color_property = quicksight.CfnTemplate.ConditionalFormattingGradientColorProperty(
color=quicksight.CfnTemplate.GradientColorProperty(
stops=[quicksight.CfnTemplate.GradientStopProperty(
gradient_offset=123,
# the properties below are optional
color="color",
data_value=123
)]
),
expression="expression"
)
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.*;
ConditionalFormattingGradientColorProperty conditionalFormattingGradientColorProperty = 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();
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 conditionalFormattingGradientColorProperty = new ConditionalFormattingGradientColorProperty {
Color = new GradientColorProperty {
Stops = new [] { new GradientStopProperty {
GradientOffset = 123,
// the properties below are optional
Color = "color",
DataValue = 123
} }
},
Expression = "expression"
};
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"
conditionalFormattingGradientColorProperty := &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"),
}
Properties
colorIResolvable | CfnTemplate.GradientColorPropertycolortyping.Union[IResolvable, GradientColorProperty]colorIResolvableColorIResolvableColorinterface{}required#Determines the color.
The expression that determines the formatting configuration for gradient color.