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 |
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_metricType :: Lens' UpdateCustomMetricResponse (Maybe CustomMetricType)
- updateCustomMetricResponse_lastModifiedDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime)
- updateCustomMetricResponse_metricName :: Lens' UpdateCustomMetricResponse (Maybe Text)
- updateCustomMetricResponse_displayName :: Lens' UpdateCustomMetricResponse (Maybe Text)
- updateCustomMetricResponse_creationDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime)
- updateCustomMetricResponse_metricArn :: Lens' UpdateCustomMetricResponse (Maybe Text)
- updateCustomMetricResponse_httpStatus :: Lens' UpdateCustomMetricResponse Int
Creating a Request
data UpdateCustomMetric Source #
See: newUpdateCustomMetric
smart constructor.
UpdateCustomMetric' | |
|
Instances
newUpdateCustomMetric Source #
:: Text | |
-> Text | |
-> UpdateCustomMetric |
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:
$sel:metricName:UpdateCustomMetric'
, updateCustomMetric_metricName
- The name of the custom metric. Cannot be updated.
$sel:displayName: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:
$sel:metricType:UpdateCustomMetricResponse'
, updateCustomMetricResponse_metricType
- The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and number
.
$sel:lastModifiedDate:UpdateCustomMetricResponse'
, updateCustomMetricResponse_lastModifiedDate
- The time the custom metric was last modified in milliseconds since
epoch.
$sel:metricName:UpdateCustomMetric'
, updateCustomMetricResponse_metricName
- The name of the custom metric.
$sel:displayName:UpdateCustomMetric'
, updateCustomMetricResponse_displayName
- A friendly name in the console for the custom metric
$sel:creationDate:UpdateCustomMetricResponse'
, updateCustomMetricResponse_creationDate
- The creation date of the custom metric in milliseconds since epoch.
$sel:metricArn:UpdateCustomMetricResponse'
, updateCustomMetricResponse_metricArn
- The Amazon Resource Number (ARN) of the custom metric.
$sel:httpStatus:UpdateCustomMetricResponse'
, updateCustomMetricResponse_httpStatus
- The response's http status code.
Response Lenses
updateCustomMetricResponse_metricType :: Lens' UpdateCustomMetricResponse (Maybe CustomMetricType) Source #
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and number
.
updateCustomMetricResponse_lastModifiedDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime) Source #
The time the custom metric was last modified in milliseconds since epoch.
updateCustomMetricResponse_metricName :: Lens' UpdateCustomMetricResponse (Maybe Text) Source #
The name of the custom metric.
updateCustomMetricResponse_displayName :: Lens' UpdateCustomMetricResponse (Maybe Text) Source #
A friendly name in the console for the custom metric
updateCustomMetricResponse_creationDate :: Lens' UpdateCustomMetricResponse (Maybe UTCTime) Source #
The creation date of the custom metric in milliseconds since epoch.
updateCustomMetricResponse_metricArn :: Lens' UpdateCustomMetricResponse (Maybe Text) Source #
The Amazon Resource Number (ARN) of the custom metric.
updateCustomMetricResponse_httpStatus :: Lens' UpdateCustomMetricResponse Int Source #
The response's http status code.