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 |
Updates a Device Defender detect custom metric.
Requires permission to access the UpdateCustomMetric action.
Synopsis
- data UpdateCustomMetric = UpdateCustomMetric' {
- metricName :: Text
- displayName :: Text
- newUpdateCustomMetric :: Text -> Text -> UpdateCustomMetric
- updateCustomMetric_metricName :: Lens' UpdateCustomMetric Text
- updateCustomMetric_displayName :: Lens' UpdateCustomMetric Text
- data UpdateCustomMetricResponse = UpdateCustomMetricResponse' {}
- newUpdateCustomMetricResponse :: Int -> UpdateCustomMetricResponse
- updateCustomMetricResponse_creationDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime)
- updateCustomMetricResponse_displayName :: Lens' UpdateCustomMetricResponse (Maybe Text)
- updateCustomMetricResponse_lastModifiedDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime)
- updateCustomMetricResponse_metricArn :: Lens' UpdateCustomMetricResponse (Maybe Text)
- updateCustomMetricResponse_metricName :: Lens' UpdateCustomMetricResponse (Maybe Text)
- updateCustomMetricResponse_metricType :: Lens' UpdateCustomMetricResponse (Maybe CustomMetricType)
- updateCustomMetricResponse_httpStatus :: Lens' UpdateCustomMetricResponse Int
Creating a Request
data UpdateCustomMetric Source #
See: newUpdateCustomMetric
smart constructor.
UpdateCustomMetric' | |
|
Instances
newUpdateCustomMetric Source #
Create a value of UpdateCustomMetric
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:
UpdateCustomMetric
, updateCustomMetric_metricName
- The name of the custom metric. Cannot be updated.
UpdateCustomMetric
, updateCustomMetric_displayName
- Field represents a friendly name in the console for the custom metric,
it doesn't have to be unique. Don't use this name as the metric
identifier in the device metric report. Can be updated.
Request Lenses
updateCustomMetric_metricName :: Lens' UpdateCustomMetric Text Source #
The name of the custom metric. Cannot be updated.
updateCustomMetric_displayName :: Lens' UpdateCustomMetric Text Source #
Field represents a friendly name in the console for the custom metric, it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
Destructuring the Response
data UpdateCustomMetricResponse Source #
See: newUpdateCustomMetricResponse
smart constructor.
UpdateCustomMetricResponse' | |
|
Instances
newUpdateCustomMetricResponse Source #
Create a value of UpdateCustomMetricResponse
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:
UpdateCustomMetricResponse
, updateCustomMetricResponse_creationDate
- The creation date of the custom metric in milliseconds since epoch.
UpdateCustomMetric
, updateCustomMetricResponse_displayName
- A friendly name in the console for the custom metric
UpdateCustomMetricResponse
, updateCustomMetricResponse_lastModifiedDate
- The time the custom metric was last modified in milliseconds since
epoch.
UpdateCustomMetricResponse
, updateCustomMetricResponse_metricArn
- The Amazon Resource Number (ARN) of the custom metric.
UpdateCustomMetric
, updateCustomMetricResponse_metricName
- The name of the custom metric.
$sel:metricType:UpdateCustomMetricResponse'
, updateCustomMetricResponse_metricType
- The type of the custom metric.
The type number
only takes a single metric value as an input, but
while submitting the metrics value in the DeviceMetrics report, it must
be passed as an array with a single value.
$sel:httpStatus:UpdateCustomMetricResponse'
, updateCustomMetricResponse_httpStatus
- The response's http status code.
Response Lenses
updateCustomMetricResponse_creationDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime) Source #
The creation date of the custom metric in milliseconds since epoch.
updateCustomMetricResponse_displayName :: Lens' UpdateCustomMetricResponse (Maybe Text) Source #
A friendly name in the console for the custom metric
updateCustomMetricResponse_lastModifiedDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime) Source #
The time the custom metric was last modified in milliseconds since epoch.
updateCustomMetricResponse_metricArn :: Lens' UpdateCustomMetricResponse (Maybe Text) Source #
The Amazon Resource Number (ARN) of the custom metric.
updateCustomMetricResponse_metricName :: Lens' UpdateCustomMetricResponse (Maybe Text) Source #
The name of the custom metric.
updateCustomMetricResponse_metricType :: Lens' UpdateCustomMetricResponse (Maybe CustomMetricType) Source #
The type of the custom metric.
The type number
only takes a single metric value as an input, but
while submitting the metrics value in the DeviceMetrics report, it must
be passed as an array with a single value.
updateCustomMetricResponse_httpStatus :: Lens' UpdateCustomMetricResponse Int Source #
The response's http status code.