{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoT.DescribeCustomMetric
(
DescribeCustomMetric (..),
newDescribeCustomMetric,
describeCustomMetric_metricName,
DescribeCustomMetricResponse (..),
newDescribeCustomMetricResponse,
describeCustomMetricResponse_metricType,
describeCustomMetricResponse_lastModifiedDate,
describeCustomMetricResponse_metricName,
describeCustomMetricResponse_displayName,
describeCustomMetricResponse_creationDate,
describeCustomMetricResponse_metricArn,
describeCustomMetricResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeCustomMetric = DescribeCustomMetric'
{
DescribeCustomMetric -> Text
metricName :: Prelude.Text
}
deriving (DescribeCustomMetric -> DescribeCustomMetric -> Bool
(DescribeCustomMetric -> DescribeCustomMetric -> Bool)
-> (DescribeCustomMetric -> DescribeCustomMetric -> Bool)
-> Eq DescribeCustomMetric
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomMetric -> DescribeCustomMetric -> Bool
$c/= :: DescribeCustomMetric -> DescribeCustomMetric -> Bool
== :: DescribeCustomMetric -> DescribeCustomMetric -> Bool
$c== :: DescribeCustomMetric -> DescribeCustomMetric -> Bool
Prelude.Eq, ReadPrec [DescribeCustomMetric]
ReadPrec DescribeCustomMetric
Int -> ReadS DescribeCustomMetric
ReadS [DescribeCustomMetric]
(Int -> ReadS DescribeCustomMetric)
-> ReadS [DescribeCustomMetric]
-> ReadPrec DescribeCustomMetric
-> ReadPrec [DescribeCustomMetric]
-> Read DescribeCustomMetric
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomMetric]
$creadListPrec :: ReadPrec [DescribeCustomMetric]
readPrec :: ReadPrec DescribeCustomMetric
$creadPrec :: ReadPrec DescribeCustomMetric
readList :: ReadS [DescribeCustomMetric]
$creadList :: ReadS [DescribeCustomMetric]
readsPrec :: Int -> ReadS DescribeCustomMetric
$creadsPrec :: Int -> ReadS DescribeCustomMetric
Prelude.Read, Int -> DescribeCustomMetric -> ShowS
[DescribeCustomMetric] -> ShowS
DescribeCustomMetric -> String
(Int -> DescribeCustomMetric -> ShowS)
-> (DescribeCustomMetric -> String)
-> ([DescribeCustomMetric] -> ShowS)
-> Show DescribeCustomMetric
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomMetric] -> ShowS
$cshowList :: [DescribeCustomMetric] -> ShowS
show :: DescribeCustomMetric -> String
$cshow :: DescribeCustomMetric -> String
showsPrec :: Int -> DescribeCustomMetric -> ShowS
$cshowsPrec :: Int -> DescribeCustomMetric -> ShowS
Prelude.Show, (forall x. DescribeCustomMetric -> Rep DescribeCustomMetric x)
-> (forall x. Rep DescribeCustomMetric x -> DescribeCustomMetric)
-> Generic DescribeCustomMetric
forall x. Rep DescribeCustomMetric x -> DescribeCustomMetric
forall x. DescribeCustomMetric -> Rep DescribeCustomMetric x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeCustomMetric x -> DescribeCustomMetric
$cfrom :: forall x. DescribeCustomMetric -> Rep DescribeCustomMetric x
Prelude.Generic)
newDescribeCustomMetric ::
Prelude.Text ->
DescribeCustomMetric
newDescribeCustomMetric :: Text -> DescribeCustomMetric
newDescribeCustomMetric Text
pMetricName_ =
DescribeCustomMetric' :: Text -> DescribeCustomMetric
DescribeCustomMetric' {$sel:metricName:DescribeCustomMetric' :: Text
metricName = Text
pMetricName_}
describeCustomMetric_metricName :: Lens.Lens' DescribeCustomMetric Prelude.Text
describeCustomMetric_metricName :: (Text -> f Text) -> DescribeCustomMetric -> f DescribeCustomMetric
describeCustomMetric_metricName = (DescribeCustomMetric -> Text)
-> (DescribeCustomMetric -> Text -> DescribeCustomMetric)
-> Lens DescribeCustomMetric DescribeCustomMetric Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetric' {Text
metricName :: Text
$sel:metricName:DescribeCustomMetric' :: DescribeCustomMetric -> Text
metricName} -> Text
metricName) (\s :: DescribeCustomMetric
s@DescribeCustomMetric' {} Text
a -> DescribeCustomMetric
s {$sel:metricName:DescribeCustomMetric' :: Text
metricName = Text
a} :: DescribeCustomMetric)
instance Core.AWSRequest DescribeCustomMetric where
type
AWSResponse DescribeCustomMetric =
DescribeCustomMetricResponse
request :: DescribeCustomMetric -> Request DescribeCustomMetric
request = Service -> DescribeCustomMetric -> Request DescribeCustomMetric
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeCustomMetric
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeCustomMetric)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeCustomMetric))
-> Logger
-> Service
-> Proxy DescribeCustomMetric
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeCustomMetric)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe CustomMetricType
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse
DescribeCustomMetricResponse'
(Maybe CustomMetricType
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
-> Either String (Maybe CustomMetricType)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe CustomMetricType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"metricType")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastModifiedDate")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"metricName")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX -> Maybe Text -> Int -> DescribeCustomMetricResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"displayName")
Either
String
(Maybe POSIX -> Maybe Text -> Int -> DescribeCustomMetricResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe Text -> Int -> DescribeCustomMetricResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"creationDate")
Either String (Maybe Text -> Int -> DescribeCustomMetricResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeCustomMetricResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"metricArn")
Either String (Int -> DescribeCustomMetricResponse)
-> Either String Int -> Either String DescribeCustomMetricResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeCustomMetric
instance Prelude.NFData DescribeCustomMetric
instance Core.ToHeaders DescribeCustomMetric where
toHeaders :: DescribeCustomMetric -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeCustomMetric -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeCustomMetric where
toPath :: DescribeCustomMetric -> ByteString
toPath DescribeCustomMetric' {Text
metricName :: Text
$sel:metricName:DescribeCustomMetric' :: DescribeCustomMetric -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/custom-metric/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
metricName]
instance Core.ToQuery DescribeCustomMetric where
toQuery :: DescribeCustomMetric -> QueryString
toQuery = QueryString -> DescribeCustomMetric -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeCustomMetricResponse = DescribeCustomMetricResponse'
{
DescribeCustomMetricResponse -> Maybe CustomMetricType
metricType :: Prelude.Maybe CustomMetricType,
DescribeCustomMetricResponse -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Core.POSIX,
DescribeCustomMetricResponse -> Maybe Text
metricName :: Prelude.Maybe Prelude.Text,
DescribeCustomMetricResponse -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
DescribeCustomMetricResponse -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
DescribeCustomMetricResponse -> Maybe Text
metricArn :: Prelude.Maybe Prelude.Text,
DescribeCustomMetricResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool
(DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool)
-> (DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool)
-> Eq DescribeCustomMetricResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool
$c/= :: DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool
== :: DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool
$c== :: DescribeCustomMetricResponse
-> DescribeCustomMetricResponse -> Bool
Prelude.Eq, ReadPrec [DescribeCustomMetricResponse]
ReadPrec DescribeCustomMetricResponse
Int -> ReadS DescribeCustomMetricResponse
ReadS [DescribeCustomMetricResponse]
(Int -> ReadS DescribeCustomMetricResponse)
-> ReadS [DescribeCustomMetricResponse]
-> ReadPrec DescribeCustomMetricResponse
-> ReadPrec [DescribeCustomMetricResponse]
-> Read DescribeCustomMetricResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomMetricResponse]
$creadListPrec :: ReadPrec [DescribeCustomMetricResponse]
readPrec :: ReadPrec DescribeCustomMetricResponse
$creadPrec :: ReadPrec DescribeCustomMetricResponse
readList :: ReadS [DescribeCustomMetricResponse]
$creadList :: ReadS [DescribeCustomMetricResponse]
readsPrec :: Int -> ReadS DescribeCustomMetricResponse
$creadsPrec :: Int -> ReadS DescribeCustomMetricResponse
Prelude.Read, Int -> DescribeCustomMetricResponse -> ShowS
[DescribeCustomMetricResponse] -> ShowS
DescribeCustomMetricResponse -> String
(Int -> DescribeCustomMetricResponse -> ShowS)
-> (DescribeCustomMetricResponse -> String)
-> ([DescribeCustomMetricResponse] -> ShowS)
-> Show DescribeCustomMetricResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomMetricResponse] -> ShowS
$cshowList :: [DescribeCustomMetricResponse] -> ShowS
show :: DescribeCustomMetricResponse -> String
$cshow :: DescribeCustomMetricResponse -> String
showsPrec :: Int -> DescribeCustomMetricResponse -> ShowS
$cshowsPrec :: Int -> DescribeCustomMetricResponse -> ShowS
Prelude.Show, (forall x.
DescribeCustomMetricResponse -> Rep DescribeCustomMetricResponse x)
-> (forall x.
Rep DescribeCustomMetricResponse x -> DescribeCustomMetricResponse)
-> Generic DescribeCustomMetricResponse
forall x.
Rep DescribeCustomMetricResponse x -> DescribeCustomMetricResponse
forall x.
DescribeCustomMetricResponse -> Rep DescribeCustomMetricResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCustomMetricResponse x -> DescribeCustomMetricResponse
$cfrom :: forall x.
DescribeCustomMetricResponse -> Rep DescribeCustomMetricResponse x
Prelude.Generic)
newDescribeCustomMetricResponse ::
Prelude.Int ->
DescribeCustomMetricResponse
newDescribeCustomMetricResponse :: Int -> DescribeCustomMetricResponse
newDescribeCustomMetricResponse Int
pHttpStatus_ =
DescribeCustomMetricResponse' :: Maybe CustomMetricType
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeCustomMetricResponse
DescribeCustomMetricResponse'
{ $sel:metricType:DescribeCustomMetricResponse' :: Maybe CustomMetricType
metricType =
Maybe CustomMetricType
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedDate:DescribeCustomMetricResponse' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:metricName:DescribeCustomMetricResponse' :: Maybe Text
metricName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:DescribeCustomMetricResponse' :: Maybe Text
displayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:DescribeCustomMetricResponse' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:metricArn:DescribeCustomMetricResponse' :: Maybe Text
metricArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeCustomMetricResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeCustomMetricResponse_metricType :: Lens.Lens' DescribeCustomMetricResponse (Prelude.Maybe CustomMetricType)
describeCustomMetricResponse_metricType :: (Maybe CustomMetricType -> f (Maybe CustomMetricType))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_metricType = (DescribeCustomMetricResponse -> Maybe CustomMetricType)
-> (DescribeCustomMetricResponse
-> Maybe CustomMetricType -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse
DescribeCustomMetricResponse
(Maybe CustomMetricType)
(Maybe CustomMetricType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Maybe CustomMetricType
metricType :: Maybe CustomMetricType
$sel:metricType:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Maybe CustomMetricType
metricType} -> Maybe CustomMetricType
metricType) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Maybe CustomMetricType
a -> DescribeCustomMetricResponse
s {$sel:metricType:DescribeCustomMetricResponse' :: Maybe CustomMetricType
metricType = Maybe CustomMetricType
a} :: DescribeCustomMetricResponse)
describeCustomMetricResponse_lastModifiedDate :: Lens.Lens' DescribeCustomMetricResponse (Prelude.Maybe Prelude.UTCTime)
describeCustomMetricResponse_lastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_lastModifiedDate = (DescribeCustomMetricResponse -> Maybe POSIX)
-> (DescribeCustomMetricResponse
-> Maybe POSIX -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse
DescribeCustomMetricResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Maybe POSIX
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Maybe POSIX
a -> DescribeCustomMetricResponse
s {$sel:lastModifiedDate:DescribeCustomMetricResponse' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
a} :: DescribeCustomMetricResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeCustomMetricResponse
-> f DescribeCustomMetricResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeCustomMetricResponse_metricName :: Lens.Lens' DescribeCustomMetricResponse (Prelude.Maybe Prelude.Text)
describeCustomMetricResponse_metricName :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_metricName = (DescribeCustomMetricResponse -> Maybe Text)
-> (DescribeCustomMetricResponse
-> Maybe Text -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse
DescribeCustomMetricResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Maybe Text
metricName :: Maybe Text
$sel:metricName:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Maybe Text
metricName} -> Maybe Text
metricName) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Maybe Text
a -> DescribeCustomMetricResponse
s {$sel:metricName:DescribeCustomMetricResponse' :: Maybe Text
metricName = Maybe Text
a} :: DescribeCustomMetricResponse)
describeCustomMetricResponse_displayName :: Lens.Lens' DescribeCustomMetricResponse (Prelude.Maybe Prelude.Text)
describeCustomMetricResponse_displayName :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_displayName = (DescribeCustomMetricResponse -> Maybe Text)
-> (DescribeCustomMetricResponse
-> Maybe Text -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse
DescribeCustomMetricResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Maybe Text
displayName :: Maybe Text
$sel:displayName:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Maybe Text
a -> DescribeCustomMetricResponse
s {$sel:displayName:DescribeCustomMetricResponse' :: Maybe Text
displayName = Maybe Text
a} :: DescribeCustomMetricResponse)
describeCustomMetricResponse_creationDate :: Lens.Lens' DescribeCustomMetricResponse (Prelude.Maybe Prelude.UTCTime)
describeCustomMetricResponse_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_creationDate = (DescribeCustomMetricResponse -> Maybe POSIX)
-> (DescribeCustomMetricResponse
-> Maybe POSIX -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse
DescribeCustomMetricResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Maybe POSIX
a -> DescribeCustomMetricResponse
s {$sel:creationDate:DescribeCustomMetricResponse' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: DescribeCustomMetricResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeCustomMetricResponse
-> f DescribeCustomMetricResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeCustomMetricResponse_metricArn :: Lens.Lens' DescribeCustomMetricResponse (Prelude.Maybe Prelude.Text)
describeCustomMetricResponse_metricArn :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_metricArn = (DescribeCustomMetricResponse -> Maybe Text)
-> (DescribeCustomMetricResponse
-> Maybe Text -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse
DescribeCustomMetricResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Maybe Text
metricArn :: Maybe Text
$sel:metricArn:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Maybe Text
metricArn} -> Maybe Text
metricArn) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Maybe Text
a -> DescribeCustomMetricResponse
s {$sel:metricArn:DescribeCustomMetricResponse' :: Maybe Text
metricArn = Maybe Text
a} :: DescribeCustomMetricResponse)
describeCustomMetricResponse_httpStatus :: Lens.Lens' DescribeCustomMetricResponse Prelude.Int
describeCustomMetricResponse_httpStatus :: (Int -> f Int)
-> DescribeCustomMetricResponse -> f DescribeCustomMetricResponse
describeCustomMetricResponse_httpStatus = (DescribeCustomMetricResponse -> Int)
-> (DescribeCustomMetricResponse
-> Int -> DescribeCustomMetricResponse)
-> Lens
DescribeCustomMetricResponse DescribeCustomMetricResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomMetricResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeCustomMetricResponse' :: DescribeCustomMetricResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeCustomMetricResponse
s@DescribeCustomMetricResponse' {} Int
a -> DescribeCustomMetricResponse
s {$sel:httpStatus:DescribeCustomMetricResponse' :: Int
httpStatus = Int
a} :: DescribeCustomMetricResponse)
instance Prelude.NFData DescribeCustomMetricResponse