Skip to content
v2.277.0

ContributionAnalysisDefaultProperty Struct ​

The contribution analysis visual display for a line, pie, or bar chart.

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 contributionAnalysisDefaultProperty: quicksight.CfnAnalysis.ContributionAnalysisDefaultProperty = {
  contributorDimensions: [{
    columnName: 'columnName',

    // the properties below are optional
    dataSetIdentifier: 'dataSetIdentifier',
    topicIdentifier: 'topicIdentifier',
  }],
  measureFieldId: 'measureFieldId',
};
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

contribution_analysis_default_property = quicksight.CfnAnalysis.ContributionAnalysisDefaultProperty(
    contributor_dimensions=[quicksight.CfnAnalysis.ColumnIdentifierProperty(
        column_name="columnName",

        # the properties below are optional
        data_set_identifier="dataSetIdentifier",
        topic_identifier="topicIdentifier"
    )],
    measure_field_id="measureFieldId"
)
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.*;

ContributionAnalysisDefaultProperty contributionAnalysisDefaultProperty = ContributionAnalysisDefaultProperty.builder()
        .contributorDimensions(List.of(ColumnIdentifierProperty.builder()
                .columnName("columnName")

                // the properties below are optional
                .dataSetIdentifier("dataSetIdentifier")
                .topicIdentifier("topicIdentifier")
                .build()))
        .measureFieldId("measureFieldId")
        .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 contributionAnalysisDefaultProperty = new ContributionAnalysisDefaultProperty {
    ContributorDimensions = new [] { new ColumnIdentifierProperty {
        ColumnName = "columnName",

        // the properties below are optional
        DataSetIdentifier = "dataSetIdentifier",
        TopicIdentifier = "topicIdentifier"
    } },
    MeasureFieldId = "measureFieldId"
};
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"

contributionAnalysisDefaultProperty := &ContributionAnalysisDefaultProperty{
	ContributorDimensions: []interface{}{
		&ColumnIdentifierProperty{
			ColumnName: jsii.String("columnName"),

			// the properties below are optional
			DataSetIdentifier: jsii.String("dataSetIdentifier"),
			TopicIdentifier: jsii.String("topicIdentifier"),
		},
	},
	MeasureFieldId: jsii.String("measureFieldId"),
}

Properties ​

contributorDimensionsIResolvable | IResolvable | CfnAnalysis.ColumnIdentifierProperty[]contributor_dimensionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ColumnIdentifierProperty]]]contributorDimensionsIResolvableContributorDimensionsIResolvableContributorDimensionsinterface{}required#
The dimensions columns that are used in the contribution analysis, usually a list of `ColumnIdentifiers` .
measureFieldIdstringmeasure_field_idstrmeasureFieldIdStringMeasureFieldIdstringMeasureFieldId*stringrequired#
The measure field that is used in the contribution analysis.