Skip to content
v2.277.0

DataPathColorProperty Struct ​

The color map that determines the color options for a particular element.

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 dataPathColorProperty: quicksight.CfnAnalysis.DataPathColorProperty = {
  color: 'color',
  element: {
    dataPathType: {
      pivotTableDataPathType: 'pivotTableDataPathType',
    },
    fieldId: 'fieldId',
    fieldValue: 'fieldValue',
  },

  // the properties below are optional
  timeGranularity: 'timeGranularity',
};
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

data_path_color_property = quicksight.CfnAnalysis.DataPathColorProperty(
    color="color",
    element=quicksight.CfnAnalysis.DataPathValueProperty(
        data_path_type=quicksight.CfnAnalysis.DataPathTypeProperty(
            pivot_table_data_path_type="pivotTableDataPathType"
        ),
        field_id="fieldId",
        field_value="fieldValue"
    ),

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

DataPathColorProperty dataPathColorProperty = DataPathColorProperty.builder()
        .color("color")
        .element(DataPathValueProperty.builder()
                .dataPathType(DataPathTypeProperty.builder()
                        .pivotTableDataPathType("pivotTableDataPathType")
                        .build())
                .fieldId("fieldId")
                .fieldValue("fieldValue")
                .build())

        // the properties below are optional
        .timeGranularity("timeGranularity")
        .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 dataPathColorProperty = new DataPathColorProperty {
    Color = "color",
    Element = new DataPathValueProperty {
        DataPathType = new DataPathTypeProperty {
            PivotTableDataPathType = "pivotTableDataPathType"
        },
        FieldId = "fieldId",
        FieldValue = "fieldValue"
    },

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

dataPathColorProperty := &DataPathColorProperty{
	Color: jsii.String("color"),
	Element: &DataPathValueProperty{
		DataPathType: &DataPathTypeProperty{
			PivotTableDataPathType: jsii.String("pivotTableDataPathType"),
		},
		FieldId: jsii.String("fieldId"),
		FieldValue: jsii.String("fieldValue"),
	},

	// the properties below are optional
	TimeGranularity: jsii.String("timeGranularity"),
}

Properties ​

colorstringcolorstrcolorStringColorstringColor*stringrequired#
The color that needs to be applied to the element.
elementIResolvable | CfnAnalysis.DataPathValuePropertyelementtyping.Union[IResolvable, DataPathValueProperty]elementIResolvableElementIResolvableElementinterface{}required#
The element that the color needs to be applied to.
timeGranularityoptionalstringtime_granularityoptionalstrtimeGranularityoptionalStringTimeGranularityoptionalstringTimeGranularityoptional*string#
The time granularity of the field that the color needs to be applied to.