# TableSummaryColumn

Standard table summary columns.

- Source: [`aws-cloudwatch/lib/graph.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts#L566)
- Type last changed: v2.128.0 · 14 Feb 2024

## Example

TypeScript:

```ts
declare const dashboard: cloudwatch.Dashboard;

dashboard.addWidgets(new cloudwatch.TableWidget({
  // ...

  summary: {
    columns: [cloudwatch.TableSummaryColumn.AVERAGE],
    hideNonSummaryColumns: true,
    sticky: true,
  },
}));
```

Python:

```python
# dashboard: cloudwatch.Dashboard

dashboard.add_widgets(cloudwatch.TableWidget(
    # ...

    summary=cloudwatch.TableSummaryProps(
        columns=[cloudwatch.TableSummaryColumn.AVERAGE],
        hide_non_summary_columns=True,
        sticky=True
    )
))
```

Java:

```java
Dashboard dashboard;

dashboard.addWidgets(TableWidget.Builder.create()
        // ...

        .summary(TableSummaryProps.builder()
                .columns(List.of(TableSummaryColumn.AVERAGE))
                .hideNonSummaryColumns(true)
                .sticky(true)
                .build())
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
Dashboard dashboard;

dashboard.AddWidgets(new TableWidget(new TableWidgetProps {
    // ...

    Summary = new TableSummaryProps {
        Columns = new [] { TableSummaryColumn.AVERAGE },
        HideNonSummaryColumns = true,
        Sticky = true
    }
}));
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var dashboard Dashboard

dashboard.AddWidgets(cloudwatch.NewTableWidget(&TableWidgetProps{
	// ...

	Summary: &TableSummaryProps{
		Columns: []TableSummaryColumn{
			cloudwatch.TableSummaryColumn_AVERAGE,
		},
		HideNonSummaryColumns: jsii.Boolean(true),
		Sticky: jsii.Boolean(true),
	},
}))
```

## Members

| Member | Description |
| --- | --- |
| `MINIMUM` | Minimum of all data points. |
| `MAXIMUM` | Maximum of all data points. |
| `SUM` | Sum of all data points. |
| `AVERAGE` | Average of all data points. |

## Referenced by

- [`TableSummaryProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.TableSummaryProps.html).columns
