GradientColorProperty Struct
Determines the gradient color settings.
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 gradientColorProperty: quicksight.CfnTemplate.GradientColorProperty = {
stops: [{
gradientOffset: 123,
// the properties below are optional
color: 'color',
dataValue: 123,
}],
};
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
gradient_color_property = quicksight.CfnTemplate.GradientColorProperty(
stops=[quicksight.CfnTemplate.GradientStopProperty(
gradient_offset=123,
# the properties below are optional
color="color",
data_value=123
)]
)
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.*;
GradientColorProperty gradientColorProperty = GradientColorProperty.builder()
.stops(List.of(GradientStopProperty.builder()
.gradientOffset(123)
// the properties below are optional
.color("color")
.dataValue(123)
.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 gradientColorProperty = new GradientColorProperty {
Stops = new [] { new GradientStopProperty {
GradientOffset = 123,
// the properties below are optional
Color = "color",
DataValue = 123
} }
};
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"
gradientColorProperty := &GradientColorProperty{
Stops: []interface{}{
&GradientStopProperty{
GradientOffset: jsii.Number(123),
// the properties below are optional
Color: jsii.String("color"),
DataValue: jsii.Number(123),
},
},
}
Properties
stopsoptionalIResolvable | IResolvable | CfnTemplate.GradientStopProperty[]stopsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, GradientStopProperty]]]stopsoptionalIResolvableStopsoptionalIResolvableStopsoptionalinterface{}#The list of gradient color stops.