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) AWS::CE::AnomalyMonitor.ResourceTags
.resourceTags
(IResolvable resourceTags) AWS::CE::AnomalyMonitor.ResourceTags
.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
monitorType
The possible type values.- Parameters:
monitorType
- The possible type values. This parameter is required.- Returns:
this
-
monitorDimension
The dimensions to evaluate.- Parameters:
monitorDimension
- The dimensions to evaluate. This parameter is required.- Returns:
this
-
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
-
resourceTags
AWS::CE::AnomalyMonitor.ResourceTags
.- Parameters:
resourceTags
-AWS::CE::AnomalyMonitor.ResourceTags
. This parameter is required.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnAnomalyMonitor.Builder resourceTags(List<? extends Object> resourceTags) AWS::CE::AnomalyMonitor.ResourceTags
.- Parameters:
resourceTags
-AWS::CE::AnomalyMonitor.ResourceTags
. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyMonitor>
- Returns:
- a newly built instance of
CfnAnomalyMonitor
.
-