Skip to content
v2.277.0

PivotTableFieldCollapseStateTargetProperty Struct ​

The target of a pivot table field collapse state.

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 pivotTableFieldCollapseStateTargetProperty: quicksight.CfnAnalysis.PivotTableFieldCollapseStateTargetProperty = {
  fieldDataPathValues: [{
    dataPathType: {
      pivotTableDataPathType: 'pivotTableDataPathType',
    },
    fieldId: 'fieldId',
    fieldValue: 'fieldValue',
  }],
  fieldId: 'fieldId',
};
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

pivot_table_field_collapse_state_target_property = quicksight.CfnAnalysis.PivotTableFieldCollapseStateTargetProperty(
    field_data_path_values=[quicksight.CfnAnalysis.DataPathValueProperty(
        data_path_type=quicksight.CfnAnalysis.DataPathTypeProperty(
            pivot_table_data_path_type="pivotTableDataPathType"
        ),
        field_id="fieldId",
        field_value="fieldValue"
    )],
    field_id="fieldId"
)
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.*;

PivotTableFieldCollapseStateTargetProperty pivotTableFieldCollapseStateTargetProperty = PivotTableFieldCollapseStateTargetProperty.builder()
        .fieldDataPathValues(List.of(DataPathValueProperty.builder()
                .dataPathType(DataPathTypeProperty.builder()
                        .pivotTableDataPathType("pivotTableDataPathType")
                        .build())
                .fieldId("fieldId")
                .fieldValue("fieldValue")
                .build()))
        .fieldId("fieldId")
        .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 pivotTableFieldCollapseStateTargetProperty = new PivotTableFieldCollapseStateTargetProperty {
    FieldDataPathValues = new [] { new DataPathValueProperty {
        DataPathType = new DataPathTypeProperty {
            PivotTableDataPathType = "pivotTableDataPathType"
        },
        FieldId = "fieldId",
        FieldValue = "fieldValue"
    } },
    FieldId = "fieldId"
};
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"

pivotTableFieldCollapseStateTargetProperty := &PivotTableFieldCollapseStateTargetProperty{
	FieldDataPathValues: []interface{}{
		&DataPathValueProperty{
			DataPathType: &DataPathTypeProperty{
				PivotTableDataPathType: jsii.String("pivotTableDataPathType"),
			},
			FieldId: jsii.String("fieldId"),
			FieldValue: jsii.String("fieldValue"),
		},
	},
	FieldId: jsii.String("fieldId"),
}

Properties ​

fieldDataPathValuesoptionalIResolvable | IResolvable | CfnAnalysis.DataPathValueProperty[]field_data_path_valuesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataPathValueProperty]]]fieldDataPathValuesoptionalIResolvableFieldDataPathValuesoptionalIResolvableFieldDataPathValuesoptionalinterface{}#
The data path of the pivot table's header.

Used to set the collapse state.

fieldIdoptionalstringfield_idoptionalstrfieldIdoptionalStringFieldIdoptionalstringFieldIdoptional*string#
The field ID of the pivot table that the collapse state needs to be set to.