# FilterOperationSelectedFieldsConfigurationProperty

Struct · External

The configuration of selected fields in the `CustomActionFilterOperation` .

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

- 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 filterOperationSelectedFieldsConfigurationProperty: quicksight.CfnAnalysis.FilterOperationSelectedFieldsConfigurationProperty = {
  selectedColumns: [{
    columnName: 'columnName',

    // the properties below are optional
    dataSetIdentifier: 'dataSetIdentifier',
    topicIdentifier: 'topicIdentifier',
  }],
  selectedFieldOptions: 'selectedFieldOptions',
  selectedFields: ['selectedFields'],
};
```

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

filter_operation_selected_fields_configuration_property = quicksight.CfnAnalysis.FilterOperationSelectedFieldsConfigurationProperty(
    selected_columns=[quicksight.CfnAnalysis.ColumnIdentifierProperty(
        column_name="columnName",

        # the properties below are optional
        data_set_identifier="dataSetIdentifier",
        topic_identifier="topicIdentifier"
    )],
    selected_field_options="selectedFieldOptions",
    selected_fields=["selectedFields"]
)
```

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.*;

FilterOperationSelectedFieldsConfigurationProperty filterOperationSelectedFieldsConfigurationProperty = FilterOperationSelectedFieldsConfigurationProperty.builder()
        .selectedColumns(List.of(ColumnIdentifierProperty.builder()
                .columnName("columnName")

                // the properties below are optional
                .dataSetIdentifier("dataSetIdentifier")
                .topicIdentifier("topicIdentifier")
                .build()))
        .selectedFieldOptions("selectedFieldOptions")
        .selectedFields(List.of("selectedFields"))
        .build();
```

C#:

```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 filterOperationSelectedFieldsConfigurationProperty = new FilterOperationSelectedFieldsConfigurationProperty {
    SelectedColumns = new [] { new ColumnIdentifierProperty {
        ColumnName = "columnName",

        // the properties below are optional
        DataSetIdentifier = "dataSetIdentifier",
        TopicIdentifier = "topicIdentifier"
    } },
    SelectedFieldOptions = "selectedFieldOptions",
    SelectedFields = new [] { "selectedFields" }
};
```

Go:

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

filterOperationSelectedFieldsConfigurationProperty := &FilterOperationSelectedFieldsConfigurationProperty{
	SelectedColumns: []interface{}{
		&ColumnIdentifierProperty{
			ColumnName: jsii.String("columnName"),

			// the properties below are optional
			DataSetIdentifier: jsii.String("dataSetIdentifier"),
			TopicIdentifier: jsii.String("topicIdentifier"),
		},
	},
	SelectedFieldOptions: jsii.String("selectedFieldOptions"),
	SelectedFields: []*string{
		jsii.String("selectedFields"),
	},
}
```

## Properties

- `selectedColumns`: [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.ColumnIdentifierProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.ColumnIdentifierProperty.html)[] — The selected columns of a dataset.

- `selectedFieldOptions`: string — A structure that contains the options that choose which fields are filtered in the `CustomActionFilterOperation` .

  Valid values are defined as follows:

  - `ALL_FIELDS` : Applies the filter operation to all fields.

- `selectedFields`: string[] — Chooses the fields that are filtered in `CustomActionFilterOperation` .
