amazonka-iot-2.0: Amazon IoT 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.IoT.DeleteCustomMetric

Description

Deletes a Device Defender detect custom metric.

Requires permission to access the DeleteCustomMetric action.

Before you can delete a custom metric, you must first remove the custom metric from all security profiles it's a part of. The security profile associated with the custom metric can be found using the ListSecurityProfiles API with metricName set to your custom metric name.

Synopsis

Creating a Request

data DeleteCustomMetric Source #

See: newDeleteCustomMetric smart constructor.

Constructors

DeleteCustomMetric' 

Fields

Instances

Instances details
ToHeaders DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

ToPath DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

ToQuery DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

AWSRequest DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Associated Types

type AWSResponse DeleteCustomMetric #

Generic DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Associated Types

type Rep DeleteCustomMetric :: Type -> Type #

Read DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Show DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

NFData DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Methods

rnf :: DeleteCustomMetric -> () #

Eq DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Hashable DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

type AWSResponse DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

type Rep DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

type Rep DeleteCustomMetric = D1 ('MetaData "DeleteCustomMetric" "Amazonka.IoT.DeleteCustomMetric" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DeleteCustomMetric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteCustomMetric Source #

Create a value of DeleteCustomMetric 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:

DeleteCustomMetric, deleteCustomMetric_metricName - The name of the custom metric.

Request Lenses

Destructuring the Response

data DeleteCustomMetricResponse Source #

See: newDeleteCustomMetricResponse smart constructor.

Constructors

DeleteCustomMetricResponse' 

Fields

Instances

Instances details
Generic DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Associated Types

type Rep DeleteCustomMetricResponse :: Type -> Type #

Read DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Show DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

NFData DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Eq DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

type Rep DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

type Rep DeleteCustomMetricResponse = D1 ('MetaData "DeleteCustomMetricResponse" "Amazonka.IoT.DeleteCustomMetric" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DeleteCustomMetricResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteCustomMetricResponse Source #

Create a value of DeleteCustomMetricResponse 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:DeleteCustomMetricResponse', deleteCustomMetricResponse_httpStatus - The response's http status code.

Response Lenses