Class CfnAnomalyMonitor.Builder
java.lang.Object
software.amazon.awscdk.services.ce.CfnAnomalyMonitor.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyMonitor>
- Enclosing class:
CfnAnomalyMonitor
@Stability(Stable)
public static final class CfnAnomalyMonitor.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyMonitor>
A fluent builder for
CfnAnomalyMonitor
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnAnomalyMonitor.Builder
monitorDimension
(String monitorDimension) The dimensions to evaluate.monitorName
(String monitorName) The name of the monitor.monitorSpecification
(String monitorSpecification) The array ofMonitorSpecification
in JSON array format.monitorType
(String monitorType) The possible type values.resourceTags
(List<? extends Object> resourceTags) Tags to assign to monitor.resourceTags
(IResolvable resourceTags) Tags to assign to monitor.
-
Method Details
-
create
@Stability(Stable) public static CfnAnomalyMonitor.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
CfnAnomalyMonitor.Builder
.
-
monitorName
The name of the monitor.- Parameters:
monitorName
- The name of the monitor. This parameter is required.- Returns:
this
- See Also:
-
monitorType
The possible type values.- Parameters:
monitorType
- The possible type values. This parameter is required.- Returns:
this
- See Also:
-
monitorDimension
The dimensions to evaluate.- Parameters:
monitorDimension
- The dimensions to evaluate. This parameter is required.- Returns:
this
- See Also:
-
monitorSpecification
@Stability(Stable) public CfnAnomalyMonitor.Builder monitorSpecification(String monitorSpecification) The array ofMonitorSpecification
in JSON array format.For instance, you can use
MonitorSpecification
to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the Examples section of this page.- Parameters:
monitorSpecification
- The array ofMonitorSpecification
in JSON array format. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
Tags to assign to monitor.- Parameters:
resourceTags
- Tags to assign to monitor. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
@Stability(Stable) public CfnAnomalyMonitor.Builder resourceTags(List<? extends Object> resourceTags) Tags to assign to monitor.- Parameters:
resourceTags
- Tags to assign to monitor. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyMonitor>
- Returns:
- a newly built instance of
CfnAnomalyMonitor
.
-