

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::QuickSight::Dashboard PivotTableFieldCollapseStateOption
<a name="aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption"></a>

The collapse state options for the pivot table field options.

## Syntax
<a name="aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption-syntax.json"></a>

```
{
  "[State](#cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-state)" : String,
  "[Target](#cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-target)" : PivotTableFieldCollapseStateTarget
}
```

### YAML
<a name="aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption-syntax.yaml"></a>

```
  [State](#cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-state): String
  [Target](#cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-target): 
    PivotTableFieldCollapseStateTarget
```

## Properties
<a name="aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption-properties"></a>

`State`  <a name="cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-state"></a>
The state of the field target of a pivot table. Choose one of the following options:  
+  `COLLAPSED` 
+  `EXPANDED` 
*Required*: No  
*Type*: String  
*Allowed values*: `COLLAPSED | EXPANDED`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Target`  <a name="cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-target"></a>
A tagged-union object that sets the collapse state.  
*Required*: Yes  
*Type*: [PivotTableFieldCollapseStateTarget](aws-properties-quicksight-dashboard-pivottablefieldcollapsestatetarget.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)