Class CfnMonitor.Builder
java.lang.Object
software.amazon.awscdk.services.networkmonitor.CfnMonitor.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitor>
- Enclosing class:
CfnMonitor
@Stability(Stable)
public static final class CfnMonitor.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitor>
A fluent builder for
CfnMonitor.-
Method Summary
Modifier and TypeMethodDescriptionaggregationPeriod(Number aggregationPeriod) The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.build()static CfnMonitor.BuildermonitorName(String monitorName) The name identifying the monitor.The tags for the monitor.
-
Method Details
-
create
@Stability(Stable) public static CfnMonitor.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnMonitor.Builder.
-
monitorName
The name identifying the monitor.It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
- Parameters:
monitorName- The name identifying the monitor. This parameter is required.- Returns:
this- See Also:
-
aggregationPeriod
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.Valid values are either 30 or 60.
- Parameters:
aggregationPeriod- The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. This parameter is required.- Returns:
this- See Also:
-
tags
The tags for the monitor.- Parameters:
tags- The tags for the monitor. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMonitor>- Returns:
- a newly built instance of
CfnMonitor.
-