Class CfnAnomalyMonitor

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.881Z") @Stability(Stable) public class CfnAnomalyMonitor extends CfnResource implements IInspectable
A CloudFormation AWS::CE::AnomalyMonitor.

The AWS::CE::AnomalyMonitor resource is a Cost Explorer resource type that continuously inspects your account's cost data for anomalies, based on MonitorType and MonitorSpecification . The content consists of detailed metadata and the current status of the monitor object.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ce.*;
 CfnAnomalyMonitor cfnAnomalyMonitor = CfnAnomalyMonitor.Builder.create(this, "MyCfnAnomalyMonitor")
         .monitorName("monitorName")
         .monitorType("monitorType")
         // the properties below are optional
         .monitorDimension("monitorDimension")
         .monitorSpecification("monitorSpecification")
         .resourceTags(List.of(ResourceTagProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnAnomalyMonitor

      protected CfnAnomalyMonitor(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAnomalyMonitor

      protected CfnAnomalyMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAnomalyMonitor

      @Stability(Stable) public CfnAnomalyMonitor(@NotNull Construct scope, @NotNull String id, @NotNull CfnAnomalyMonitorProps props)
      Create a new AWS::CE::AnomalyMonitor.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreationDate

      @Stability(Stable) @NotNull public String getAttrCreationDate()
      The date when the monitor was created.
    • getAttrDimensionalValueCount

      @Stability(Stable) @NotNull public Number getAttrDimensionalValueCount()
      The value for evaluated dimensions.
    • getAttrLastEvaluatedDate

      @Stability(Stable) @NotNull public String getAttrLastEvaluatedDate()
      The date when the monitor last evaluated for anomalies.
    • getAttrLastUpdatedDate

      @Stability(Stable) @NotNull public String getAttrLastUpdatedDate()
      The date when the monitor was last updated.
    • getAttrMonitorArn

      @Stability(Stable) @NotNull public String getAttrMonitorArn()
      The Amazon Resource Name (ARN) value for the monitor.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getMonitorName

      @Stability(Stable) @NotNull public String getMonitorName()
      The name of the monitor.
    • setMonitorName

      @Stability(Stable) public void setMonitorName(@NotNull String value)
      The name of the monitor.
    • getMonitorType

      @Stability(Stable) @NotNull public String getMonitorType()
      The possible type values.
    • setMonitorType

      @Stability(Stable) public void setMonitorType(@NotNull String value)
      The possible type values.
    • getMonitorDimension

      @Stability(Stable) @Nullable public String getMonitorDimension()
      The dimensions to evaluate.
    • setMonitorDimension

      @Stability(Stable) public void setMonitorDimension(@Nullable String value)
      The dimensions to evaluate.
    • getMonitorSpecification

      @Stability(Stable) @Nullable public String getMonitorSpecification()
      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.

    • setMonitorSpecification

      @Stability(Stable) public void setMonitorSpecification(@Nullable String value)
      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.

    • getResourceTags

      @Stability(Stable) @Nullable public Object getResourceTags()
      AWS::CE::AnomalyMonitor.ResourceTags.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable IResolvable value)
      AWS::CE::AnomalyMonitor.ResourceTags.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable List<Object> value)
      AWS::CE::AnomalyMonitor.ResourceTags.