Class CfnAnomalyMonitorProps.Builder

java.lang.Object
software.amazon.awscdk.services.ce.CfnAnomalyMonitorProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyMonitorProps>
Enclosing interface:
CfnAnomalyMonitorProps

@Stability(Stable) public static final class CfnAnomalyMonitorProps.Builder extends Object implements software.amazon.jsii.Builder<CfnAnomalyMonitorProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • monitorName

      @Stability(Stable) public CfnAnomalyMonitorProps.Builder monitorName(String monitorName)
      Parameters:
      monitorName - The name of the monitor. This parameter is required.
      Returns:
      this
    • monitorType

      @Stability(Stable) public CfnAnomalyMonitorProps.Builder monitorType(String monitorType)
      Parameters:
      monitorType - The type of the monitor. This parameter is required. Set this to DIMENSIONAL for 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 CUSTOM for 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 .

      Returns:
      this
    • monitorDimension

      @Stability(Stable) public CfnAnomalyMonitorProps.Builder monitorDimension(String monitorDimension)
      Parameters:
      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 TAG and COST_CATEGORY dimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.
      Returns:
      this
    • monitorSpecification

      @Stability(Stable) public CfnAnomalyMonitorProps.Builder monitorSpecification(String monitorSpecification)
      Parameters:
      monitorSpecification - The array of MonitorSpecification 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.
      Returns:
      this
    • resourceTags

      @Stability(Stable) public CfnAnomalyMonitorProps.Builder resourceTags(List<? extends CfnAnomalyMonitor.ResourceTagProperty> resourceTags)
      Parameters:
      resourceTags - Tags to assign to monitor.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAnomalyMonitorProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAnomalyMonitorProps>
      Returns:
      a new instance of CfnAnomalyMonitorProps
      Throws:
      NullPointerException - if any required attribute was not provided