Class CfnAnomalyMonitorPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyMonitorPropsMixin>
- Enclosing class:
CfnAnomalyMonitorPropsMixin
CfnAnomalyMonitorPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) monitorDimension(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 CfnAnomalyMonitorPropsMixin.ResourceTagProperty> resourceTags) Tags to assign to monitor.
-
Method Details
-
create
@Stability(Stable) public static CfnAnomalyMonitorPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnAnomalyMonitorPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnAnomalyMonitorPropsMixin.Builder.
-
monitorDimension
@Stability(Stable) public CfnAnomalyMonitorPropsMixin.Builder monitorDimension(String 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:
-
monitorName
The name of the monitor.- Parameters:
monitorName- The name of the monitor. This parameter is required.- Returns:
this- See Also:
-
monitorSpecification
@Stability(Stable) public CfnAnomalyMonitorPropsMixin.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:
-
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:
-
resourceTags
@Stability(Stable) public CfnAnomalyMonitorPropsMixin.Builder resourceTags(List<? extends CfnAnomalyMonitorPropsMixin.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<CfnAnomalyMonitorPropsMixin>- Returns:
- a newly built instance of
CfnAnomalyMonitorPropsMixin.
-