Skip to content
v2.277.0

PivotTableFieldCollapseStateOptionProperty Struct ​

The collapse state options for the pivot table field options.

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

  // the properties below are optional
  state: 'state',
};
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_option_property = quicksight.CfnAnalysis.PivotTableFieldCollapseStateOptionProperty(
    target=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"
    ),

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

PivotTableFieldCollapseStateOptionProperty pivotTableFieldCollapseStateOptionProperty = PivotTableFieldCollapseStateOptionProperty.builder()
        .target(PivotTableFieldCollapseStateTargetProperty.builder()
                .fieldDataPathValues(List.of(DataPathValueProperty.builder()
                        .dataPathType(DataPathTypeProperty.builder()
                                .pivotTableDataPathType("pivotTableDataPathType")
                                .build())
                        .fieldId("fieldId")
                        .fieldValue("fieldValue")
                        .build()))
                .fieldId("fieldId")
                .build())

        // the properties below are optional
        .state("state")
        .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 pivotTableFieldCollapseStateOptionProperty = new PivotTableFieldCollapseStateOptionProperty {
    Target = new PivotTableFieldCollapseStateTargetProperty {
        FieldDataPathValues = new [] { new DataPathValueProperty {
            DataPathType = new DataPathTypeProperty {
                PivotTableDataPathType = "pivotTableDataPathType"
            },
            FieldId = "fieldId",
            FieldValue = "fieldValue"
        } },
        FieldId = "fieldId"
    },

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

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

	// the properties below are optional
	State: jsii.String("state"),
}

Properties ​

stateoptionalstringstateoptionalstrstateoptionalStringStateoptionalstringStateoptional*string#
The state of the field target of a pivot table. Choose one of the following options:.
  • COLLAPSED
  • EXPANDED
A tagged-union object that sets the collapse state.