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 |
Gets information about a Device Defender detect custom metric.
Requires permission to access the DescribeCustomMetric action.
Synopsis
- data DescribeCustomMetric = DescribeCustomMetric' {
- metricName :: Text
- newDescribeCustomMetric :: Text -> DescribeCustomMetric
- describeCustomMetric_metricName :: Lens' DescribeCustomMetric Text
- data DescribeCustomMetricResponse = DescribeCustomMetricResponse' {}
- newDescribeCustomMetricResponse :: Int -> DescribeCustomMetricResponse
- describeCustomMetricResponse_metricType :: Lens' DescribeCustomMetricResponse (Maybe CustomMetricType)
- describeCustomMetricResponse_lastModifiedDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime)
- describeCustomMetricResponse_metricName :: Lens' DescribeCustomMetricResponse (Maybe Text)
- describeCustomMetricResponse_displayName :: Lens' DescribeCustomMetricResponse (Maybe Text)
- describeCustomMetricResponse_creationDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime)
- describeCustomMetricResponse_metricArn :: Lens' DescribeCustomMetricResponse (Maybe Text)
- describeCustomMetricResponse_httpStatus :: Lens' DescribeCustomMetricResponse Int
Creating a Request
data DescribeCustomMetric Source #
See: newDescribeCustomMetric
smart constructor.
DescribeCustomMetric' | |
|
Instances
newDescribeCustomMetric Source #
Create a value of DescribeCustomMetric
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:DescribeCustomMetric'
, describeCustomMetric_metricName
- The name of the custom metric.
Request Lenses
describeCustomMetric_metricName :: Lens' DescribeCustomMetric Text Source #
The name of the custom metric.
Destructuring the Response
data DescribeCustomMetricResponse Source #
See: newDescribeCustomMetricResponse
smart constructor.
DescribeCustomMetricResponse' | |
|
Instances
newDescribeCustomMetricResponse Source #
Create a value of DescribeCustomMetricResponse
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:DescribeCustomMetricResponse'
, describeCustomMetricResponse_metricType
- The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and number
.
$sel:lastModifiedDate:DescribeCustomMetricResponse'
, describeCustomMetricResponse_lastModifiedDate
- The time the custom metric was last modified in milliseconds since
epoch.
$sel:metricName:DescribeCustomMetric'
, describeCustomMetricResponse_metricName
- The name of the custom metric.
$sel:displayName:DescribeCustomMetricResponse'
, describeCustomMetricResponse_displayName
- Field represents a friendly name in the console for the custom metric;
doesn't have to be unique. Don't use this name as the metric
identifier in the device metric report. Can be updated.
$sel:creationDate:DescribeCustomMetricResponse'
, describeCustomMetricResponse_creationDate
- The creation date of the custom metric in milliseconds since epoch.
$sel:metricArn:DescribeCustomMetricResponse'
, describeCustomMetricResponse_metricArn
- The Amazon Resource Number (ARN) of the custom metric.
$sel:httpStatus:DescribeCustomMetricResponse'
, describeCustomMetricResponse_httpStatus
- The response's http status code.
Response Lenses
describeCustomMetricResponse_metricType :: Lens' DescribeCustomMetricResponse (Maybe CustomMetricType) Source #
The type of the custom metric. Types include string-list
,
ip-address-list
, number-list
, and number
.
describeCustomMetricResponse_lastModifiedDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime) Source #
The time the custom metric was last modified in milliseconds since epoch.
describeCustomMetricResponse_metricName :: Lens' DescribeCustomMetricResponse (Maybe Text) Source #
The name of the custom metric.
describeCustomMetricResponse_displayName :: Lens' DescribeCustomMetricResponse (Maybe Text) Source #
Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
describeCustomMetricResponse_creationDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime) Source #
The creation date of the custom metric in milliseconds since epoch.
describeCustomMetricResponse_metricArn :: Lens' DescribeCustomMetricResponse (Maybe Text) Source #
The Amazon Resource Number (ARN) of the custom metric.
describeCustomMetricResponse_httpStatus :: Lens' DescribeCustomMetricResponse Int Source #
The response's http status code.