{-# 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.CodeGuruProfiler.Types.ProfilingGroupDescription where
import Amazonka.CodeGuruProfiler.Types.AgentOrchestrationConfig
import Amazonka.CodeGuruProfiler.Types.ComputePlatform
import Amazonka.CodeGuruProfiler.Types.ProfilingStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data ProfilingGroupDescription = ProfilingGroupDescription'
{
ProfilingGroupDescription -> Maybe AgentOrchestrationConfig
agentOrchestrationConfig :: Prelude.Maybe AgentOrchestrationConfig,
ProfilingGroupDescription -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ProfilingGroupDescription -> Maybe ComputePlatform
computePlatform :: Prelude.Maybe ComputePlatform,
ProfilingGroupDescription -> Maybe ISO8601
createdAt :: Prelude.Maybe Data.ISO8601,
ProfilingGroupDescription -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ProfilingGroupDescription -> Maybe ProfilingStatus
profilingStatus :: Prelude.Maybe ProfilingStatus,
ProfilingGroupDescription -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ProfilingGroupDescription -> Maybe ISO8601
updatedAt :: Prelude.Maybe Data.ISO8601
}
deriving (ProfilingGroupDescription -> ProfilingGroupDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProfilingGroupDescription -> ProfilingGroupDescription -> Bool
$c/= :: ProfilingGroupDescription -> ProfilingGroupDescription -> Bool
== :: ProfilingGroupDescription -> ProfilingGroupDescription -> Bool
$c== :: ProfilingGroupDescription -> ProfilingGroupDescription -> Bool
Prelude.Eq, ReadPrec [ProfilingGroupDescription]
ReadPrec ProfilingGroupDescription
Int -> ReadS ProfilingGroupDescription
ReadS [ProfilingGroupDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProfilingGroupDescription]
$creadListPrec :: ReadPrec [ProfilingGroupDescription]
readPrec :: ReadPrec ProfilingGroupDescription
$creadPrec :: ReadPrec ProfilingGroupDescription
readList :: ReadS [ProfilingGroupDescription]
$creadList :: ReadS [ProfilingGroupDescription]
readsPrec :: Int -> ReadS ProfilingGroupDescription
$creadsPrec :: Int -> ReadS ProfilingGroupDescription
Prelude.Read, Int -> ProfilingGroupDescription -> ShowS
[ProfilingGroupDescription] -> ShowS
ProfilingGroupDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProfilingGroupDescription] -> ShowS
$cshowList :: [ProfilingGroupDescription] -> ShowS
show :: ProfilingGroupDescription -> String
$cshow :: ProfilingGroupDescription -> String
showsPrec :: Int -> ProfilingGroupDescription -> ShowS
$cshowsPrec :: Int -> ProfilingGroupDescription -> ShowS
Prelude.Show, forall x.
Rep ProfilingGroupDescription x -> ProfilingGroupDescription
forall x.
ProfilingGroupDescription -> Rep ProfilingGroupDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProfilingGroupDescription x -> ProfilingGroupDescription
$cfrom :: forall x.
ProfilingGroupDescription -> Rep ProfilingGroupDescription x
Prelude.Generic)
newProfilingGroupDescription ::
ProfilingGroupDescription
newProfilingGroupDescription :: ProfilingGroupDescription
newProfilingGroupDescription =
ProfilingGroupDescription'
{ $sel:agentOrchestrationConfig:ProfilingGroupDescription' :: Maybe AgentOrchestrationConfig
agentOrchestrationConfig =
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ProfilingGroupDescription' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:computePlatform:ProfilingGroupDescription' :: Maybe ComputePlatform
computePlatform = forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:ProfilingGroupDescription' :: Maybe ISO8601
createdAt = forall a. Maybe a
Prelude.Nothing,
$sel:name:ProfilingGroupDescription' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:profilingStatus:ProfilingGroupDescription' :: Maybe ProfilingStatus
profilingStatus = forall a. Maybe a
Prelude.Nothing,
$sel:tags:ProfilingGroupDescription' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:ProfilingGroupDescription' :: Maybe ISO8601
updatedAt = forall a. Maybe a
Prelude.Nothing
}
profilingGroupDescription_agentOrchestrationConfig :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe AgentOrchestrationConfig)
profilingGroupDescription_agentOrchestrationConfig :: Lens' ProfilingGroupDescription (Maybe AgentOrchestrationConfig)
profilingGroupDescription_agentOrchestrationConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe AgentOrchestrationConfig
agentOrchestrationConfig :: Maybe AgentOrchestrationConfig
$sel:agentOrchestrationConfig:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe AgentOrchestrationConfig
agentOrchestrationConfig} -> Maybe AgentOrchestrationConfig
agentOrchestrationConfig) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe AgentOrchestrationConfig
a -> ProfilingGroupDescription
s {$sel:agentOrchestrationConfig:ProfilingGroupDescription' :: Maybe AgentOrchestrationConfig
agentOrchestrationConfig = Maybe AgentOrchestrationConfig
a} :: ProfilingGroupDescription)
profilingGroupDescription_arn :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe Prelude.Text)
profilingGroupDescription_arn :: Lens' ProfilingGroupDescription (Maybe Text)
profilingGroupDescription_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe Text
arn :: Maybe Text
$sel:arn:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe Text
a -> ProfilingGroupDescription
s {$sel:arn:ProfilingGroupDescription' :: Maybe Text
arn = Maybe Text
a} :: ProfilingGroupDescription)
profilingGroupDescription_computePlatform :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe ComputePlatform)
profilingGroupDescription_computePlatform :: Lens' ProfilingGroupDescription (Maybe ComputePlatform)
profilingGroupDescription_computePlatform = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe ComputePlatform
computePlatform :: Maybe ComputePlatform
$sel:computePlatform:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ComputePlatform
computePlatform} -> Maybe ComputePlatform
computePlatform) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe ComputePlatform
a -> ProfilingGroupDescription
s {$sel:computePlatform:ProfilingGroupDescription' :: Maybe ComputePlatform
computePlatform = Maybe ComputePlatform
a} :: ProfilingGroupDescription)
profilingGroupDescription_createdAt :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe Prelude.UTCTime)
profilingGroupDescription_createdAt :: Lens' ProfilingGroupDescription (Maybe UTCTime)
profilingGroupDescription_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe ISO8601
createdAt :: Maybe ISO8601
$sel:createdAt:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ISO8601
createdAt} -> Maybe ISO8601
createdAt) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe ISO8601
a -> ProfilingGroupDescription
s {$sel:createdAt:ProfilingGroupDescription' :: Maybe ISO8601
createdAt = Maybe ISO8601
a} :: ProfilingGroupDescription) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
profilingGroupDescription_name :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe Prelude.Text)
profilingGroupDescription_name :: Lens' ProfilingGroupDescription (Maybe Text)
profilingGroupDescription_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe Text
name :: Maybe Text
$sel:name:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe Text
name} -> Maybe Text
name) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe Text
a -> ProfilingGroupDescription
s {$sel:name:ProfilingGroupDescription' :: Maybe Text
name = Maybe Text
a} :: ProfilingGroupDescription)
profilingGroupDescription_profilingStatus :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe ProfilingStatus)
profilingGroupDescription_profilingStatus :: Lens' ProfilingGroupDescription (Maybe ProfilingStatus)
profilingGroupDescription_profilingStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe ProfilingStatus
profilingStatus :: Maybe ProfilingStatus
$sel:profilingStatus:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ProfilingStatus
profilingStatus} -> Maybe ProfilingStatus
profilingStatus) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe ProfilingStatus
a -> ProfilingGroupDescription
s {$sel:profilingStatus:ProfilingGroupDescription' :: Maybe ProfilingStatus
profilingStatus = Maybe ProfilingStatus
a} :: ProfilingGroupDescription)
profilingGroupDescription_tags :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
profilingGroupDescription_tags :: Lens' ProfilingGroupDescription (Maybe (HashMap Text Text))
profilingGroupDescription_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe (HashMap Text Text)
a -> ProfilingGroupDescription
s {$sel:tags:ProfilingGroupDescription' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ProfilingGroupDescription) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
profilingGroupDescription_updatedAt :: Lens.Lens' ProfilingGroupDescription (Prelude.Maybe Prelude.UTCTime)
profilingGroupDescription_updatedAt :: Lens' ProfilingGroupDescription (Maybe UTCTime)
profilingGroupDescription_updatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfilingGroupDescription' {Maybe ISO8601
updatedAt :: Maybe ISO8601
$sel:updatedAt:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ISO8601
updatedAt} -> Maybe ISO8601
updatedAt) (\s :: ProfilingGroupDescription
s@ProfilingGroupDescription' {} Maybe ISO8601
a -> ProfilingGroupDescription
s {$sel:updatedAt:ProfilingGroupDescription' :: Maybe ISO8601
updatedAt = Maybe ISO8601
a} :: ProfilingGroupDescription) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON ProfilingGroupDescription where
parseJSON :: Value -> Parser ProfilingGroupDescription
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ProfilingGroupDescription"
( \Object
x ->
Maybe AgentOrchestrationConfig
-> Maybe Text
-> Maybe ComputePlatform
-> Maybe ISO8601
-> Maybe Text
-> Maybe ProfilingStatus
-> Maybe (HashMap Text Text)
-> Maybe ISO8601
-> ProfilingGroupDescription
ProfilingGroupDescription'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"agentOrchestrationConfig")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"computePlatform")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createdAt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"profilingStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"updatedAt")
)
instance Prelude.Hashable ProfilingGroupDescription where
hashWithSalt :: Int -> ProfilingGroupDescription -> Int
hashWithSalt Int
_salt ProfilingGroupDescription' {Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe AgentOrchestrationConfig
Maybe ComputePlatform
Maybe ProfilingStatus
updatedAt :: Maybe ISO8601
tags :: Maybe (HashMap Text Text)
profilingStatus :: Maybe ProfilingStatus
name :: Maybe Text
createdAt :: Maybe ISO8601
computePlatform :: Maybe ComputePlatform
arn :: Maybe Text
agentOrchestrationConfig :: Maybe AgentOrchestrationConfig
$sel:updatedAt:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ISO8601
$sel:tags:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe (HashMap Text Text)
$sel:profilingStatus:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ProfilingStatus
$sel:name:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe Text
$sel:createdAt:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ISO8601
$sel:computePlatform:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ComputePlatform
$sel:arn:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe Text
$sel:agentOrchestrationConfig:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe AgentOrchestrationConfig
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AgentOrchestrationConfig
agentOrchestrationConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ComputePlatform
computePlatform
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
createdAt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProfilingStatus
profilingStatus
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
updatedAt
instance Prelude.NFData ProfilingGroupDescription where
rnf :: ProfilingGroupDescription -> ()
rnf ProfilingGroupDescription' {Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe AgentOrchestrationConfig
Maybe ComputePlatform
Maybe ProfilingStatus
updatedAt :: Maybe ISO8601
tags :: Maybe (HashMap Text Text)
profilingStatus :: Maybe ProfilingStatus
name :: Maybe Text
createdAt :: Maybe ISO8601
computePlatform :: Maybe ComputePlatform
arn :: Maybe Text
agentOrchestrationConfig :: Maybe AgentOrchestrationConfig
$sel:updatedAt:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ISO8601
$sel:tags:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe (HashMap Text Text)
$sel:profilingStatus:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ProfilingStatus
$sel:name:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe Text
$sel:createdAt:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ISO8601
$sel:computePlatform:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe ComputePlatform
$sel:arn:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe Text
$sel:agentOrchestrationConfig:ProfilingGroupDescription' :: ProfilingGroupDescription -> Maybe AgentOrchestrationConfig
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AgentOrchestrationConfig
agentOrchestrationConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ComputePlatform
computePlatform
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
createdAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProfilingStatus
profilingStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
updatedAt