Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
DeleteCustomMetric' | |
|
Instances
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
deleteCustomMetric_metricName :: Lens' DeleteCustomMetric Text Source #
The name of the custom metric.
Destructuring the Response
data DeleteCustomMetricResponse Source #
See: newDeleteCustomMetricResponse
smart constructor.
DeleteCustomMetricResponse' | |
|
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.