Skip to content
v2.274.0

SubtotalOptionsProperty Struct ​

The subtotal 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 subtotalOptionsProperty: quicksight.CfnAnalysis.SubtotalOptionsProperty = {
  customLabel: 'customLabel',
  fieldLevel: 'fieldLevel',
  fieldLevelOptions: [{
    fieldId: 'fieldId',
  }],
  metricHeaderCellStyle: {
    backgroundColor: 'backgroundColor',
    border: {
      sideSpecificBorder: {
        bottom: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerHorizontal: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerVertical: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        left: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        right: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        top: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
      },
      uniformBorder: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
    },
    fontConfiguration: {
      fontColor: 'fontColor',
      fontDecoration: 'fontDecoration',
      fontFamily: 'fontFamily',
      fontSize: {
        absolute: 'absolute',
        relative: 'relative',
      },
      fontStyle: 'fontStyle',
      fontWeight: {
        name: 'name',
      },
    },
    height: 123,
    horizontalTextAlignment: 'horizontalTextAlignment',
    textWrap: 'textWrap',
    verticalTextAlignment: 'verticalTextAlignment',
    visibility: 'visibility',
  },
  styleTargets: [{
    cellType: 'cellType',
  }],
  totalCellStyle: {
    backgroundColor: 'backgroundColor',
    border: {
      sideSpecificBorder: {
        bottom: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerHorizontal: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerVertical: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        left: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        right: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        top: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
      },
      uniformBorder: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
    },
    fontConfiguration: {
      fontColor: 'fontColor',
      fontDecoration: 'fontDecoration',
      fontFamily: 'fontFamily',
      fontSize: {
        absolute: 'absolute',
        relative: 'relative',
      },
      fontStyle: 'fontStyle',
      fontWeight: {
        name: 'name',
      },
    },
    height: 123,
    horizontalTextAlignment: 'horizontalTextAlignment',
    textWrap: 'textWrap',
    verticalTextAlignment: 'verticalTextAlignment',
    visibility: 'visibility',
  },
  totalsVisibility: 'totalsVisibility',
  valueCellStyle: {
    backgroundColor: 'backgroundColor',
    border: {
      sideSpecificBorder: {
        bottom: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerHorizontal: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerVertical: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        left: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        right: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        top: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
      },
      uniformBorder: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
    },
    fontConfiguration: {
      fontColor: 'fontColor',
      fontDecoration: 'fontDecoration',
      fontFamily: 'fontFamily',
      fontSize: {
        absolute: 'absolute',
        relative: 'relative',
      },
      fontStyle: 'fontStyle',
      fontWeight: {
        name: 'name',
      },
    },
    height: 123,
    horizontalTextAlignment: 'horizontalTextAlignment',
    textWrap: 'textWrap',
    verticalTextAlignment: 'verticalTextAlignment',
    visibility: 'visibility',
  },
};

Properties ​

customLabeloptionalstringcustom_labeloptionalstrcustomLabeloptionalStringCustomLabeloptionalstringCustomLabeloptional*string#
The custom label string for the subtotal cells.
fieldLeveloptionalstringfield_leveloptionalstrfieldLeveloptionalStringFieldLeveloptionalstringFieldLeveloptional*string#
The field level (all, custom, last) for the subtotal cells.
fieldLevelOptionsoptionalIResolvable | IResolvable | CfnAnalysis.PivotTableFieldSubtotalOptionsProperty[]field_level_optionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PivotTableFieldSubtotalOptionsProperty]]]fieldLevelOptionsoptionalIResolvableFieldLevelOptionsoptionalIResolvableFieldLevelOptionsoptionalinterface{}#
The optional configuration of subtotal cells.
metricHeaderCellStyleoptionalIResolvable | CfnAnalysis.TableCellStylePropertymetric_header_cell_styleoptionaltyping.Union[IResolvable, TableCellStyleProperty]metricHeaderCellStyleoptionalIResolvableMetricHeaderCellStyleoptionalIResolvableMetricHeaderCellStyleoptionalinterface{}#
The cell styling options for the subtotals of header cells.
styleTargetsoptionalIResolvable | IResolvable | CfnAnalysis.TableStyleTargetProperty[]style_targetsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TableStyleTargetProperty]]]styleTargetsoptionalIResolvableStyleTargetsoptionalIResolvableStyleTargetsoptionalinterface{}#
The style targets options for subtotals.
totalCellStyleoptionalIResolvable | CfnAnalysis.TableCellStylePropertytotal_cell_styleoptionaltyping.Union[IResolvable, TableCellStyleProperty]totalCellStyleoptionalIResolvableTotalCellStyleoptionalIResolvableTotalCellStyleoptionalinterface{}#
The cell styling options for the subtotal cells.
totalsVisibilityoptionalstringtotals_visibilityoptionalstrtotalsVisibilityoptionalStringTotalsVisibilityoptionalstringTotalsVisibilityoptional*string#
The visibility configuration for the subtotal cells.
valueCellStyleoptionalIResolvable | CfnAnalysis.TableCellStylePropertyvalue_cell_styleoptionaltyping.Union[IResolvable, TableCellStyleProperty]valueCellStyleoptionalIResolvableValueCellStyleoptionalIResolvableValueCellStyleoptionalinterface{}#
The cell styling options for the subtotals of value cells.