Skip to content
v2.273.0

CfnMonitorProps Struct ​

Properties for defining a CfnMonitor.

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 ​

aggregationPeriodnumberaggregation_periodint | floataggregationPeriodNumberAggregationPerioddoubleAggregationPeriod*float64#
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.

Valid values are either 30 or 60.

monitorNamestringmonitor_namestrmonitorNameStringMonitorNamestringMonitorName*stringrequired#
The name identifying the monitor.

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

tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags for the monitor.

Used as props by ​