CfnMonitorProps Struct
Properties for defining a CfnMonitor.
| Source | |
|---|---|
| Type last changed |
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',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkmonitor as networkmonitor
cfn_monitor_props = networkmonitor.CfnMonitorProps(
monitor_name="monitorName",
# the properties below are optional
aggregation_period=123,
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkmonitor.*;
CfnMonitorProps cfnMonitorProps = CfnMonitorProps.builder()
.monitorName("monitorName")
// the properties below are optional
.aggregationPeriod(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkMonitor;
var cfnMonitorProps = new CfnMonitorProps {
MonitorName = "monitorName",
// the properties below are optional
AggregationPeriod = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnMonitorProps := &CfnMonitorProps{
MonitorName: jsii.String("monitorName"),
// the properties below are optional
AggregationPeriod: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
aggregationPeriodoptionalnumberaggregation_periodoptionalint | floataggregationPeriodoptionalNumberAggregationPeriodoptionaldoubleAggregationPeriodoptional*float64 #The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.
Valid values are either 30 or 60.
The name identifying the monitor.
It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.