# PivotTableFieldCollapseStateTargetProperty

The target of a pivot table field collapse state.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `fieldDataPathValues`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DataPathValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DataPathValueProperty.html)[] — The data path of the pivot table's header.

  Used to set the collapse state.

- `fieldId`: string — The field ID of the pivot table that the collapse state needs to be set to.
