{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMaker.Types.ProfilerRuleEvaluationStatus where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.RuleEvaluationStatus
data ProfilerRuleEvaluationStatus = ProfilerRuleEvaluationStatus'
{
ProfilerRuleEvaluationStatus -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
ProfilerRuleEvaluationStatus -> Maybe Text
statusDetails :: Prelude.Maybe Prelude.Text,
ProfilerRuleEvaluationStatus -> Maybe RuleEvaluationStatus
ruleEvaluationStatus :: Prelude.Maybe RuleEvaluationStatus,
ProfilerRuleEvaluationStatus -> Maybe Text
ruleEvaluationJobArn :: Prelude.Maybe Prelude.Text,
ProfilerRuleEvaluationStatus -> Maybe Text
ruleConfigurationName :: Prelude.Maybe Prelude.Text
}
deriving (ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool
(ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool)
-> (ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool)
-> Eq ProfilerRuleEvaluationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool
$c/= :: ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool
== :: ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool
$c== :: ProfilerRuleEvaluationStatus
-> ProfilerRuleEvaluationStatus -> Bool
Prelude.Eq, ReadPrec [ProfilerRuleEvaluationStatus]
ReadPrec ProfilerRuleEvaluationStatus
Int -> ReadS ProfilerRuleEvaluationStatus
ReadS [ProfilerRuleEvaluationStatus]
(Int -> ReadS ProfilerRuleEvaluationStatus)
-> ReadS [ProfilerRuleEvaluationStatus]
-> ReadPrec ProfilerRuleEvaluationStatus
-> ReadPrec [ProfilerRuleEvaluationStatus]
-> Read ProfilerRuleEvaluationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProfilerRuleEvaluationStatus]
$creadListPrec :: ReadPrec [ProfilerRuleEvaluationStatus]
readPrec :: ReadPrec ProfilerRuleEvaluationStatus
$creadPrec :: ReadPrec ProfilerRuleEvaluationStatus
readList :: ReadS [ProfilerRuleEvaluationStatus]
$creadList :: ReadS [ProfilerRuleEvaluationStatus]
readsPrec :: Int -> ReadS ProfilerRuleEvaluationStatus
$creadsPrec :: Int -> ReadS ProfilerRuleEvaluationStatus
Prelude.Read, Int -> ProfilerRuleEvaluationStatus -> ShowS
[ProfilerRuleEvaluationStatus] -> ShowS
ProfilerRuleEvaluationStatus -> String
(Int -> ProfilerRuleEvaluationStatus -> ShowS)
-> (ProfilerRuleEvaluationStatus -> String)
-> ([ProfilerRuleEvaluationStatus] -> ShowS)
-> Show ProfilerRuleEvaluationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProfilerRuleEvaluationStatus] -> ShowS
$cshowList :: [ProfilerRuleEvaluationStatus] -> ShowS
show :: ProfilerRuleEvaluationStatus -> String
$cshow :: ProfilerRuleEvaluationStatus -> String
showsPrec :: Int -> ProfilerRuleEvaluationStatus -> ShowS
$cshowsPrec :: Int -> ProfilerRuleEvaluationStatus -> ShowS
Prelude.Show, (forall x.
ProfilerRuleEvaluationStatus -> Rep ProfilerRuleEvaluationStatus x)
-> (forall x.
Rep ProfilerRuleEvaluationStatus x -> ProfilerRuleEvaluationStatus)
-> Generic ProfilerRuleEvaluationStatus
forall x.
Rep ProfilerRuleEvaluationStatus x -> ProfilerRuleEvaluationStatus
forall x.
ProfilerRuleEvaluationStatus -> Rep ProfilerRuleEvaluationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProfilerRuleEvaluationStatus x -> ProfilerRuleEvaluationStatus
$cfrom :: forall x.
ProfilerRuleEvaluationStatus -> Rep ProfilerRuleEvaluationStatus x
Prelude.Generic)
newProfilerRuleEvaluationStatus ::
ProfilerRuleEvaluationStatus
newProfilerRuleEvaluationStatus :: ProfilerRuleEvaluationStatus
newProfilerRuleEvaluationStatus =
ProfilerRuleEvaluationStatus' :: Maybe POSIX
-> Maybe Text
-> Maybe RuleEvaluationStatus
-> Maybe Text
-> Maybe Text
-> ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus'
{ $sel:lastModifiedTime:ProfilerRuleEvaluationStatus' :: Maybe POSIX
lastModifiedTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:statusDetails:ProfilerRuleEvaluationStatus' :: Maybe Text
statusDetails = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ruleEvaluationStatus:ProfilerRuleEvaluationStatus' :: Maybe RuleEvaluationStatus
ruleEvaluationStatus = Maybe RuleEvaluationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:ruleEvaluationJobArn:ProfilerRuleEvaluationStatus' :: Maybe Text
ruleEvaluationJobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ruleConfigurationName:ProfilerRuleEvaluationStatus' :: Maybe Text
ruleConfigurationName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
profilerRuleEvaluationStatus_lastModifiedTime :: Lens.Lens' ProfilerRuleEvaluationStatus (Prelude.Maybe Prelude.UTCTime)
profilerRuleEvaluationStatus_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ProfilerRuleEvaluationStatus -> f ProfilerRuleEvaluationStatus
profilerRuleEvaluationStatus_lastModifiedTime = (ProfilerRuleEvaluationStatus -> Maybe POSIX)
-> (ProfilerRuleEvaluationStatus
-> Maybe POSIX -> ProfilerRuleEvaluationStatus)
-> Lens
ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilerRuleEvaluationStatus' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:ProfilerRuleEvaluationStatus' :: ProfilerRuleEvaluationStatus -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: ProfilerRuleEvaluationStatus
s@ProfilerRuleEvaluationStatus' {} Maybe POSIX
a -> ProfilerRuleEvaluationStatus
s {$sel:lastModifiedTime:ProfilerRuleEvaluationStatus' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: ProfilerRuleEvaluationStatus) ((Maybe POSIX -> f (Maybe POSIX))
-> ProfilerRuleEvaluationStatus -> f ProfilerRuleEvaluationStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ProfilerRuleEvaluationStatus
-> f ProfilerRuleEvaluationStatus
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
profilerRuleEvaluationStatus_statusDetails :: Lens.Lens' ProfilerRuleEvaluationStatus (Prelude.Maybe Prelude.Text)
profilerRuleEvaluationStatus_statusDetails :: (Maybe Text -> f (Maybe Text))
-> ProfilerRuleEvaluationStatus -> f ProfilerRuleEvaluationStatus
profilerRuleEvaluationStatus_statusDetails = (ProfilerRuleEvaluationStatus -> Maybe Text)
-> (ProfilerRuleEvaluationStatus
-> Maybe Text -> ProfilerRuleEvaluationStatus)
-> Lens
ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilerRuleEvaluationStatus' {Maybe Text
statusDetails :: Maybe Text
$sel:statusDetails:ProfilerRuleEvaluationStatus' :: ProfilerRuleEvaluationStatus -> Maybe Text
statusDetails} -> Maybe Text
statusDetails) (\s :: ProfilerRuleEvaluationStatus
s@ProfilerRuleEvaluationStatus' {} Maybe Text
a -> ProfilerRuleEvaluationStatus
s {$sel:statusDetails:ProfilerRuleEvaluationStatus' :: Maybe Text
statusDetails = Maybe Text
a} :: ProfilerRuleEvaluationStatus)
profilerRuleEvaluationStatus_ruleEvaluationStatus :: Lens.Lens' ProfilerRuleEvaluationStatus (Prelude.Maybe RuleEvaluationStatus)
profilerRuleEvaluationStatus_ruleEvaluationStatus :: (Maybe RuleEvaluationStatus -> f (Maybe RuleEvaluationStatus))
-> ProfilerRuleEvaluationStatus -> f ProfilerRuleEvaluationStatus
profilerRuleEvaluationStatus_ruleEvaluationStatus = (ProfilerRuleEvaluationStatus -> Maybe RuleEvaluationStatus)
-> (ProfilerRuleEvaluationStatus
-> Maybe RuleEvaluationStatus -> ProfilerRuleEvaluationStatus)
-> Lens
ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus
(Maybe RuleEvaluationStatus)
(Maybe RuleEvaluationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilerRuleEvaluationStatus' {Maybe RuleEvaluationStatus
ruleEvaluationStatus :: Maybe RuleEvaluationStatus
$sel:ruleEvaluationStatus:ProfilerRuleEvaluationStatus' :: ProfilerRuleEvaluationStatus -> Maybe RuleEvaluationStatus
ruleEvaluationStatus} -> Maybe RuleEvaluationStatus
ruleEvaluationStatus) (\s :: ProfilerRuleEvaluationStatus
s@ProfilerRuleEvaluationStatus' {} Maybe RuleEvaluationStatus
a -> ProfilerRuleEvaluationStatus
s {$sel:ruleEvaluationStatus:ProfilerRuleEvaluationStatus' :: Maybe RuleEvaluationStatus
ruleEvaluationStatus = Maybe RuleEvaluationStatus
a} :: ProfilerRuleEvaluationStatus)
profilerRuleEvaluationStatus_ruleEvaluationJobArn :: Lens.Lens' ProfilerRuleEvaluationStatus (Prelude.Maybe Prelude.Text)
profilerRuleEvaluationStatus_ruleEvaluationJobArn :: (Maybe Text -> f (Maybe Text))
-> ProfilerRuleEvaluationStatus -> f ProfilerRuleEvaluationStatus
profilerRuleEvaluationStatus_ruleEvaluationJobArn = (ProfilerRuleEvaluationStatus -> Maybe Text)
-> (ProfilerRuleEvaluationStatus
-> Maybe Text -> ProfilerRuleEvaluationStatus)
-> Lens
ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilerRuleEvaluationStatus' {Maybe Text
ruleEvaluationJobArn :: Maybe Text
$sel:ruleEvaluationJobArn:ProfilerRuleEvaluationStatus' :: ProfilerRuleEvaluationStatus -> Maybe Text
ruleEvaluationJobArn} -> Maybe Text
ruleEvaluationJobArn) (\s :: ProfilerRuleEvaluationStatus
s@ProfilerRuleEvaluationStatus' {} Maybe Text
a -> ProfilerRuleEvaluationStatus
s {$sel:ruleEvaluationJobArn:ProfilerRuleEvaluationStatus' :: Maybe Text
ruleEvaluationJobArn = Maybe Text
a} :: ProfilerRuleEvaluationStatus)
profilerRuleEvaluationStatus_ruleConfigurationName :: Lens.Lens' ProfilerRuleEvaluationStatus (Prelude.Maybe Prelude.Text)
profilerRuleEvaluationStatus_ruleConfigurationName :: (Maybe Text -> f (Maybe Text))
-> ProfilerRuleEvaluationStatus -> f ProfilerRuleEvaluationStatus
profilerRuleEvaluationStatus_ruleConfigurationName = (ProfilerRuleEvaluationStatus -> Maybe Text)
-> (ProfilerRuleEvaluationStatus
-> Maybe Text -> ProfilerRuleEvaluationStatus)
-> Lens
ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilerRuleEvaluationStatus' {Maybe Text
ruleConfigurationName :: Maybe Text
$sel:ruleConfigurationName:ProfilerRuleEvaluationStatus' :: ProfilerRuleEvaluationStatus -> Maybe Text
ruleConfigurationName} -> Maybe Text
ruleConfigurationName) (\s :: ProfilerRuleEvaluationStatus
s@ProfilerRuleEvaluationStatus' {} Maybe Text
a -> ProfilerRuleEvaluationStatus
s {$sel:ruleConfigurationName:ProfilerRuleEvaluationStatus' :: Maybe Text
ruleConfigurationName = Maybe Text
a} :: ProfilerRuleEvaluationStatus)
instance Core.FromJSON ProfilerRuleEvaluationStatus where
parseJSON :: Value -> Parser ProfilerRuleEvaluationStatus
parseJSON =
String
-> (Object -> Parser ProfilerRuleEvaluationStatus)
-> Value
-> Parser ProfilerRuleEvaluationStatus
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ProfilerRuleEvaluationStatus"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe RuleEvaluationStatus
-> Maybe Text
-> Maybe Text
-> ProfilerRuleEvaluationStatus
ProfilerRuleEvaluationStatus'
(Maybe POSIX
-> Maybe Text
-> Maybe RuleEvaluationStatus
-> Maybe Text
-> Maybe Text
-> ProfilerRuleEvaluationStatus)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe RuleEvaluationStatus
-> Maybe Text
-> Maybe Text
-> ProfilerRuleEvaluationStatus)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModifiedTime")
Parser
(Maybe Text
-> Maybe RuleEvaluationStatus
-> Maybe Text
-> Maybe Text
-> ProfilerRuleEvaluationStatus)
-> Parser (Maybe Text)
-> Parser
(Maybe RuleEvaluationStatus
-> Maybe Text -> Maybe Text -> ProfilerRuleEvaluationStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StatusDetails")
Parser
(Maybe RuleEvaluationStatus
-> Maybe Text -> Maybe Text -> ProfilerRuleEvaluationStatus)
-> Parser (Maybe RuleEvaluationStatus)
-> Parser
(Maybe Text -> Maybe Text -> ProfilerRuleEvaluationStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RuleEvaluationStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RuleEvaluationStatus")
Parser (Maybe Text -> Maybe Text -> ProfilerRuleEvaluationStatus)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> ProfilerRuleEvaluationStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RuleEvaluationJobArn")
Parser (Maybe Text -> ProfilerRuleEvaluationStatus)
-> Parser (Maybe Text) -> Parser ProfilerRuleEvaluationStatus
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RuleConfigurationName")
)
instance
Prelude.Hashable
ProfilerRuleEvaluationStatus
instance Prelude.NFData ProfilerRuleEvaluationStatus