libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Read DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Show DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Generic DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Associated Types

type Rep DeleteCustomMetric :: Type -> Type #

NFData DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Methods

rnf :: DeleteCustomMetric -> () #

Hashable DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

AWSRequest DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Associated Types

type AWSResponse DeleteCustomMetric #

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

type Rep DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

type Rep DeleteCustomMetric = D1 ('MetaData "DeleteCustomMetric" "Amazonka.IoT.DeleteCustomMetric" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DeleteCustomMetric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

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:

$sel:metricName: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
Eq DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Read DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Show DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Generic DeleteCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCustomMetric

Associated Types

type Rep DeleteCustomMetricResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotZSamazonka-iot" '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