Class CfnAnomalySubscription.Builder

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

@Stability(Stable) public static final class CfnAnomalySubscription.Builder extends Object implements software.amazon.jsii.Builder<CfnAnomalySubscription>
A fluent builder for CfnAnomalySubscription.
  • Method Details

    • create

      @Stability(Stable) public static CfnAnomalySubscription.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAnomalySubscription.Builder.
    • frequency

      @Stability(Stable) public CfnAnomalySubscription.Builder frequency(String frequency)
      The frequency that anomaly notifications are sent.

      Notifications are sent either over email (for DAILY and WEEKLY frequencies) or SNS (for IMMEDIATE frequency). For more information, see Creating an Amazon SNS topic for anomaly notifications .

      Parameters:
      frequency - The frequency that anomaly notifications are sent. This parameter is required.
      Returns:
      this
    • monitorArnList

      @Stability(Stable) public CfnAnomalySubscription.Builder monitorArnList(List<String> monitorArnList)
      A list of cost anomaly monitors.

      Parameters:
      monitorArnList - A list of cost anomaly monitors. This parameter is required.
      Returns:
      this
    • subscribers

      @Stability(Stable) public CfnAnomalySubscription.Builder subscribers(IResolvable subscribers)
      A list of subscribers to notify.

      Parameters:
      subscribers - A list of subscribers to notify. This parameter is required.
      Returns:
      this
    • subscribers

      @Stability(Stable) public CfnAnomalySubscription.Builder subscribers(List<? extends Object> subscribers)
      A list of subscribers to notify.

      Parameters:
      subscribers - A list of subscribers to notify. This parameter is required.
      Returns:
      this
    • subscriptionName

      @Stability(Stable) public CfnAnomalySubscription.Builder subscriptionName(String subscriptionName)
      The name for the subscription.

      Parameters:
      subscriptionName - The name for the subscription. This parameter is required.
      Returns:
      this
    • resourceTags

      @Stability(Stable) public CfnAnomalySubscription.Builder resourceTags(IResolvable resourceTags)
      AWS::CE::AnomalySubscription.ResourceTags.

      Parameters:
      resourceTags - AWS::CE::AnomalySubscription.ResourceTags. This parameter is required.
      Returns:
      this
    • resourceTags

      @Stability(Stable) public CfnAnomalySubscription.Builder resourceTags(List<? extends Object> resourceTags)
      AWS::CE::AnomalySubscription.ResourceTags.

      Parameters:
      resourceTags - AWS::CE::AnomalySubscription.ResourceTags. This parameter is required.
      Returns:
      this
    • threshold

      @Stability(Stable) public CfnAnomalySubscription.Builder threshold(Number threshold)
      (deprecated).

      An absolute dollar value that must be exceeded by the anomaly's total impact (see Impact for more details) for an anomaly notification to be generated.

      This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

      One of Threshold or ThresholdExpression is required for AWS::CE::AnomalySubscription . You cannot specify both.

      Parameters:
      threshold - (deprecated). This parameter is required.
      Returns:
      this
    • thresholdExpression

      @Stability(Stable) public CfnAnomalySubscription.Builder thresholdExpression(String thresholdExpression)
      An Expression object in JSON string format used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE , corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR . The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

      One of Threshold or ThresholdExpression is required for AWS::CE::AnomalySubscription . You cannot specify both.

      For further information, see the Examples section of this page.

      Parameters:
      thresholdExpression - An Expression object in JSON string format used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE , corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR . The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAnomalySubscription build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAnomalySubscription>
      Returns:
      a newly built instance of CfnAnomalySubscription.