aws-cdk-lib.aws_quicksight.CfnTemplate.FilterControlProperty

interface FilterControlProperty

LanguageType name
.NETAmazon.CDK.AWS.QuickSight.CfnTemplate.FilterControlProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnTemplate_FilterControlProperty
Javasoftware.amazon.awscdk.services.quicksight.CfnTemplate.FilterControlProperty
Pythonaws_cdk.aws_quicksight.CfnTemplate.FilterControlProperty
TypeScript aws-cdk-lib » aws_quicksight » CfnTemplate » FilterControlProperty

The control of a filter that is used to interact with a dashboard or an analysis.

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

Example

// 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 filterControlProperty: quicksight.CfnTemplate.FilterControlProperty = {
  dateTimePicker: {
    filterControlId: 'filterControlId',
    sourceFilterId: 'sourceFilterId',
    title: 'title',

    // the properties below are optional
    displayOptions: {
      dateTimeFormat: 'dateTimeFormat',
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
    type: 'type',
  },
  dropdown: {
    filterControlId: 'filterControlId',
    sourceFilterId: 'sourceFilterId',
    title: 'title',

    // the properties below are optional
    cascadingControlConfiguration: {
      sourceControls: [{
        columnToMatch: {
          columnName: 'columnName',
          dataSetIdentifier: 'dataSetIdentifier',
        },
        sourceSheetControlId: 'sourceSheetControlId',
      }],
    },
    displayOptions: {
      selectAllOptions: {
        visibility: 'visibility',
      },
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
    selectableValues: {
      values: ['values'],
    },
    type: 'type',
  },
  list: {
    filterControlId: 'filterControlId',
    sourceFilterId: 'sourceFilterId',
    title: 'title',

    // the properties below are optional
    cascadingControlConfiguration: {
      sourceControls: [{
        columnToMatch: {
          columnName: 'columnName',
          dataSetIdentifier: 'dataSetIdentifier',
        },
        sourceSheetControlId: 'sourceSheetControlId',
      }],
    },
    displayOptions: {
      searchOptions: {
        visibility: 'visibility',
      },
      selectAllOptions: {
        visibility: 'visibility',
      },
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
    selectableValues: {
      values: ['values'],
    },
    type: 'type',
  },
  relativeDateTime: {
    filterControlId: 'filterControlId',
    sourceFilterId: 'sourceFilterId',
    title: 'title',

    // the properties below are optional
    displayOptions: {
      dateTimeFormat: 'dateTimeFormat',
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
  },
  slider: {
    filterControlId: 'filterControlId',
    maximumValue: 123,
    minimumValue: 123,
    sourceFilterId: 'sourceFilterId',
    stepSize: 123,
    title: 'title',

    // the properties below are optional
    displayOptions: {
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
    type: 'type',
  },
  textArea: {
    filterControlId: 'filterControlId',
    sourceFilterId: 'sourceFilterId',
    title: 'title',

    // the properties below are optional
    delimiter: 'delimiter',
    displayOptions: {
      placeholderOptions: {
        visibility: 'visibility',
      },
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
  },
  textField: {
    filterControlId: 'filterControlId',
    sourceFilterId: 'sourceFilterId',
    title: 'title',

    // the properties below are optional
    displayOptions: {
      placeholderOptions: {
        visibility: 'visibility',
      },
      titleOptions: {
        customLabel: 'customLabel',
        fontConfiguration: {
          fontColor: 'fontColor',
          fontDecoration: 'fontDecoration',
          fontSize: {
            relative: 'relative',
          },
          fontStyle: 'fontStyle',
          fontWeight: {
            name: 'name',
          },
        },
        visibility: 'visibility',
      },
    },
  },
};

Properties

NameTypeDescription
dateTimePicker?IResolvable | FilterDateTimePickerControlPropertyA control from a date filter that is used to specify date and time.
dropdown?IResolvable | FilterDropDownControlPropertyA control to display a dropdown list with buttons that are used to select a single value.
list?IResolvable | FilterListControlPropertyA control to display a list of buttons or boxes.
relativeDateTime?IResolvable | FilterRelativeDateTimeControlPropertyA control from a date filter that is used to specify the relative date.
slider?IResolvable | FilterSliderControlPropertyA control to display a horizontal toggle bar.
textArea?IResolvable | FilterTextAreaControlPropertyA control to display a text box that is used to enter multiple entries.
textField?IResolvable | FilterTextFieldControlPropertyA control to display a text box that is used to enter a single entry.

dateTimePicker?

Type: IResolvable | FilterDateTimePickerControlProperty (optional)

A control from a date filter that is used to specify date and time.


dropdown?

Type: IResolvable | FilterDropDownControlProperty (optional)

A control to display a dropdown list with buttons that are used to select a single value.


list?

Type: IResolvable | FilterListControlProperty (optional)

A control to display a list of buttons or boxes.

This is used to select either a single value or multiple values.


relativeDateTime?

Type: IResolvable | FilterRelativeDateTimeControlProperty (optional)

A control from a date filter that is used to specify the relative date.


slider?

Type: IResolvable | FilterSliderControlProperty (optional)

A control to display a horizontal toggle bar.

This is used to change a value by sliding the toggle.


textArea?

Type: IResolvable | FilterTextAreaControlProperty (optional)

A control to display a text box that is used to enter multiple entries.


textField?

Type: IResolvable | FilterTextFieldControlProperty (optional)

A control to display a text box that is used to enter a single entry.