Class CfnAnomalyMonitor.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyMonitor>
- Enclosing class:
CfnAnomalyMonitor
CfnAnomalyMonitor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnAnomalyMonitor.BuildermonitorDimension(String monitorDimension) For customer managed monitors, do not specify this field.monitorName(String monitorName) The name of the monitor.monitorSpecification(String monitorSpecification) The array ofMonitorSpecificationin JSON array format.monitorType(String monitorType) The type of the monitor.resourceTags(List<? extends CfnAnomalyMonitor.ResourceTagProperty> 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 type of the monitor.Set this to
DIMENSIONALfor an AWS managed monitor. AWS managed monitors automatically track up to the top 5,000 values by cost within a dimension of your choosing. Each dimension value is evaluated independently. If you start incurring cost in a new value of your chosen dimension, it will automatically be analyzed by an AWS managed monitor.Set this to
CUSTOMfor a customer managed monitor. Customer managed monitors let you select specific dimension values that get monitored in aggregate.For more information about monitor types, see Monitor types in the Billing and Cost Management User Guide .
- Parameters:
monitorType- The type of the monitor. This parameter is required.- Returns:
this- See Also:
-
monitorDimension
For customer managed monitors, do not specify this field.For AWS managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For
TAGandCOST_CATEGORYdimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.- Parameters:
monitorDimension- For customer managed monitors, do not specify this field. This parameter is required.- Returns:
this- See Also:
-
monitorSpecification
@Stability(Stable) public CfnAnomalyMonitor.Builder monitorSpecification(String monitorSpecification) The array ofMonitorSpecificationin JSON array format.For instance, you can use
MonitorSpecificationto 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 ofMonitorSpecificationin JSON array format. This parameter is required.- Returns:
this- See Also:
-
resourceTags
@Stability(Stable) public CfnAnomalyMonitor.Builder resourceTags(List<? extends CfnAnomalyMonitor.ResourceTagProperty> resourceTags) Tags to assign to monitor.- Parameters:
resourceTags- Tags to assign to monitor. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyMonitor>- Returns:
- a newly built instance of
CfnAnomalyMonitor.
-