Skip to content
v2.273.0

MetricValueProperty Struct ​

The value to be compared with the metric .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const metricValueProperty: iot.CfnSecurityProfile.MetricValueProperty = {
  cidrs: ['cidrs'],
  count: 'count',
  number: 123,
  numbers: [123],
  ports: [123],
  strings: ['strings'],
};

Properties ​

cidrsstring[]cidrstyping.List[str]cidrsList<String>Cidrsstring[]Cidrs*[]*string#
If the `comparisonOperator` calls for a set of CIDRs, use this to specify that set to be compared with the `metric` .
countstringcountstrcountStringCountstringCount*string#
If the `comparisonOperator` calls for a numeric value, use this to specify that numeric value to be compared with the `metric` .
numbernumbernumberint | floatnumberNumberNumberdoubleNumber*float64#
The numeric values of a metric.
numbersnumber[] | IResolvablenumberstyping.Union[typing.List[int | float], IResolvable]numbersList<Number>Numbersdouble[]Numbersinterface{}#
The numeric value of a metric.
portsnumber[] | IResolvableportstyping.Union[typing.List[int | float], IResolvable]portsList<Number>Portsdouble[]Portsinterface{}#
If the `comparisonOperator` calls for a set of ports, use this to specify that set to be compared with the `metric` .
stringsstring[]stringstyping.List[str]stringsList<String>Stringsstring[]Strings*[]*string#
The string values of a metric.