Class CfnAnomalyMonitor

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:27.302Z") @Stability(Stable) public class CfnAnomalyMonitor extends CfnResource implements IInspectable
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();
 

See Also:
  • 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnAnomalyMonitorProps props)
      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.
      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.
    • setMonitorSpecification

      @Stability(Stable) public void setMonitorSpecification(@Nullable String value)
      The array of MonitorSpecification in JSON array format.
    • getResourceTags

      @Stability(Stable) @Nullable public Object getResourceTags()
      Tags to assign to monitor.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable IResolvable value)
      Tags to assign to monitor.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable List<Object> value)
      Tags to assign to monitor.