| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data DeleteCustomMetric = DeleteCustomMetric' {
- metricName :: Text
- newDeleteCustomMetric :: Text -> DeleteCustomMetric
- deleteCustomMetric_metricName :: Lens' DeleteCustomMetric Text
- data DeleteCustomMetricResponse = DeleteCustomMetricResponse' {
- httpStatus :: Int
- newDeleteCustomMetricResponse :: Int -> DeleteCustomMetricResponse
- deleteCustomMetricResponse_httpStatus :: Lens' DeleteCustomMetricResponse Int
Creating a Request
data DeleteCustomMetric Source #
See: newDeleteCustomMetric smart constructor.
Constructors
| DeleteCustomMetric' | |
Fields
| |
Instances
newDeleteCustomMetric Source #
Arguments
| :: Text | |
| -> DeleteCustomMetric |
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
deleteCustomMetric_metricName :: Lens' DeleteCustomMetric Text Source #
The name of the custom metric.
Destructuring the Response
data DeleteCustomMetricResponse Source #
See: newDeleteCustomMetricResponse smart constructor.
Constructors
| DeleteCustomMetricResponse' | |
Fields
| |
Instances
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
deleteCustomMetricResponse_httpStatus :: Lens' DeleteCustomMetricResponse Int Source #
The response's http status code.