amazonka-cloudwatch-2.0: Amazon CloudWatch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatch.DeleteAnomalyDetector

Description

Deletes the specified anomaly detection model from your account. For more information about how to delete an anomaly detection model, see Deleting an anomaly detection model in the CloudWatch User Guide.

Synopsis

Creating a Request

data DeleteAnomalyDetector Source #

See: newDeleteAnomalyDetector smart constructor.

Constructors

DeleteAnomalyDetector' 

Fields

  • dimensions :: Maybe [Dimension]

    The metric dimensions associated with the anomaly detection model to delete.

  • metricMathAnomalyDetector :: Maybe MetricMathAnomalyDetector

    The metric math anomaly detector to be deleted.

    When using MetricMathAnomalyDetector, you cannot include following parameters in the same operation:

    • Dimensions,
    • MetricName
    • Namespace
    • Stat
    • the SingleMetricAnomalyDetector parameters of DeleteAnomalyDetectorInput

    Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.

  • metricName :: Maybe Text

    The metric name associated with the anomaly detection model to delete.

  • namespace :: Maybe Text

    The namespace associated with the anomaly detection model to delete.

  • singleMetricAnomalyDetector :: Maybe SingleMetricAnomalyDetector

    A single metric anomaly detector to be deleted.

    When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:

    • Dimensions,
    • MetricName
    • Namespace
    • Stat
    • the MetricMathAnomalyDetector parameters of DeleteAnomalyDetectorInput

    Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.

  • stat :: Maybe Text

    The statistic associated with the anomaly detection model to delete.

Instances

Instances details
ToHeaders DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

ToPath DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

ToQuery DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

AWSRequest DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Associated Types

type AWSResponse DeleteAnomalyDetector #

Generic DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Associated Types

type Rep DeleteAnomalyDetector :: Type -> Type #

Read DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Show DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

NFData DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Methods

rnf :: DeleteAnomalyDetector -> () #

Eq DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Hashable DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

type AWSResponse DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

type Rep DeleteAnomalyDetector Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

type Rep DeleteAnomalyDetector = D1 ('MetaData "DeleteAnomalyDetector" "Amazonka.CloudWatch.DeleteAnomalyDetector" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DeleteAnomalyDetector'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])) :*: (S1 ('MetaSel ('Just "metricMathAnomalyDetector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MetricMathAnomalyDetector)) :*: S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "singleMetricAnomalyDetector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SingleMetricAnomalyDetector)) :*: S1 ('MetaSel ('Just "stat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDeleteAnomalyDetector :: DeleteAnomalyDetector Source #

Create a value of DeleteAnomalyDetector with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteAnomalyDetector, deleteAnomalyDetector_dimensions - The metric dimensions associated with the anomaly detection model to delete.

DeleteAnomalyDetector, deleteAnomalyDetector_metricMathAnomalyDetector - The metric math anomaly detector to be deleted.

When using MetricMathAnomalyDetector, you cannot include following parameters in the same operation:

  • Dimensions,
  • MetricName
  • Namespace
  • Stat
  • the SingleMetricAnomalyDetector parameters of DeleteAnomalyDetectorInput

Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.

DeleteAnomalyDetector, deleteAnomalyDetector_metricName - The metric name associated with the anomaly detection model to delete.

DeleteAnomalyDetector, deleteAnomalyDetector_namespace - The namespace associated with the anomaly detection model to delete.

DeleteAnomalyDetector, deleteAnomalyDetector_singleMetricAnomalyDetector - A single metric anomaly detector to be deleted.

When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:

  • Dimensions,
  • MetricName
  • Namespace
  • Stat
  • the MetricMathAnomalyDetector parameters of DeleteAnomalyDetectorInput

Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.

DeleteAnomalyDetector, deleteAnomalyDetector_stat - The statistic associated with the anomaly detection model to delete.

Request Lenses

deleteAnomalyDetector_dimensions :: Lens' DeleteAnomalyDetector (Maybe [Dimension]) Source #

The metric dimensions associated with the anomaly detection model to delete.

deleteAnomalyDetector_metricMathAnomalyDetector :: Lens' DeleteAnomalyDetector (Maybe MetricMathAnomalyDetector) Source #

The metric math anomaly detector to be deleted.

When using MetricMathAnomalyDetector, you cannot include following parameters in the same operation:

  • Dimensions,
  • MetricName
  • Namespace
  • Stat
  • the SingleMetricAnomalyDetector parameters of DeleteAnomalyDetectorInput

Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.

deleteAnomalyDetector_metricName :: Lens' DeleteAnomalyDetector (Maybe Text) Source #

The metric name associated with the anomaly detection model to delete.

deleteAnomalyDetector_namespace :: Lens' DeleteAnomalyDetector (Maybe Text) Source #

The namespace associated with the anomaly detection model to delete.

deleteAnomalyDetector_singleMetricAnomalyDetector :: Lens' DeleteAnomalyDetector (Maybe SingleMetricAnomalyDetector) Source #

A single metric anomaly detector to be deleted.

When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:

  • Dimensions,
  • MetricName
  • Namespace
  • Stat
  • the MetricMathAnomalyDetector parameters of DeleteAnomalyDetectorInput

Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.

deleteAnomalyDetector_stat :: Lens' DeleteAnomalyDetector (Maybe Text) Source #

The statistic associated with the anomaly detection model to delete.

Destructuring the Response

data DeleteAnomalyDetectorResponse Source #

See: newDeleteAnomalyDetectorResponse smart constructor.

Constructors

DeleteAnomalyDetectorResponse' 

Fields

Instances

Instances details
Generic DeleteAnomalyDetectorResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Associated Types

type Rep DeleteAnomalyDetectorResponse :: Type -> Type #

Read DeleteAnomalyDetectorResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Show DeleteAnomalyDetectorResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

NFData DeleteAnomalyDetectorResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

Eq DeleteAnomalyDetectorResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

type Rep DeleteAnomalyDetectorResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAnomalyDetector

type Rep DeleteAnomalyDetectorResponse = D1 ('MetaData "DeleteAnomalyDetectorResponse" "Amazonka.CloudWatch.DeleteAnomalyDetector" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DeleteAnomalyDetectorResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteAnomalyDetectorResponse Source #

Create a value of DeleteAnomalyDetectorResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:DeleteAnomalyDetectorResponse', deleteAnomalyDetectorResponse_httpStatus - The response's http status code.

Response Lenses