# CfnMonitorProps

Properties for defining a `CfnMonitor`.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmonitor as networkmonitor } from 'aws-cdk-lib';
const cfnMonitorProps: networkmonitor.CfnMonitorProps = {
  monitorName: 'monitorName',

  // the properties below are optional
  aggregationPeriod: 123,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `aggregationPeriod`: number — The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.

  Valid values are either 30 or 60.

- `monitorName`: string (required) — The name identifying the monitor.

  It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the monitor.

## Used as props by

- [`CfnMonitor`](/v2/docs/aws-cdk-lib.aws_networkmonitor.CfnMonitor)
