{-# 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.CloudWatchEvents.Types.SageMakerPipelineParameters where
import Amazonka.CloudWatchEvents.Types.SageMakerPipelineParameter
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 SageMakerPipelineParameters = SageMakerPipelineParameters'
{
SageMakerPipelineParameters -> Maybe [SageMakerPipelineParameter]
pipelineParameterList :: Prelude.Maybe [SageMakerPipelineParameter]
}
deriving (SageMakerPipelineParameters -> SageMakerPipelineParameters -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SageMakerPipelineParameters -> SageMakerPipelineParameters -> Bool
$c/= :: SageMakerPipelineParameters -> SageMakerPipelineParameters -> Bool
== :: SageMakerPipelineParameters -> SageMakerPipelineParameters -> Bool
$c== :: SageMakerPipelineParameters -> SageMakerPipelineParameters -> Bool
Prelude.Eq, ReadPrec [SageMakerPipelineParameters]
ReadPrec SageMakerPipelineParameters
Int -> ReadS SageMakerPipelineParameters
ReadS [SageMakerPipelineParameters]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SageMakerPipelineParameters]
$creadListPrec :: ReadPrec [SageMakerPipelineParameters]
readPrec :: ReadPrec SageMakerPipelineParameters
$creadPrec :: ReadPrec SageMakerPipelineParameters
readList :: ReadS [SageMakerPipelineParameters]
$creadList :: ReadS [SageMakerPipelineParameters]
readsPrec :: Int -> ReadS SageMakerPipelineParameters
$creadsPrec :: Int -> ReadS SageMakerPipelineParameters
Prelude.Read, Int -> SageMakerPipelineParameters -> ShowS
[SageMakerPipelineParameters] -> ShowS
SageMakerPipelineParameters -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SageMakerPipelineParameters] -> ShowS
$cshowList :: [SageMakerPipelineParameters] -> ShowS
show :: SageMakerPipelineParameters -> String
$cshow :: SageMakerPipelineParameters -> String
showsPrec :: Int -> SageMakerPipelineParameters -> ShowS
$cshowsPrec :: Int -> SageMakerPipelineParameters -> ShowS
Prelude.Show, forall x.
Rep SageMakerPipelineParameters x -> SageMakerPipelineParameters
forall x.
SageMakerPipelineParameters -> Rep SageMakerPipelineParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SageMakerPipelineParameters x -> SageMakerPipelineParameters
$cfrom :: forall x.
SageMakerPipelineParameters -> Rep SageMakerPipelineParameters x
Prelude.Generic)
newSageMakerPipelineParameters ::
SageMakerPipelineParameters
newSageMakerPipelineParameters :: SageMakerPipelineParameters
newSageMakerPipelineParameters =
SageMakerPipelineParameters'
{ $sel:pipelineParameterList:SageMakerPipelineParameters' :: Maybe [SageMakerPipelineParameter]
pipelineParameterList =
forall a. Maybe a
Prelude.Nothing
}
sageMakerPipelineParameters_pipelineParameterList :: Lens.Lens' SageMakerPipelineParameters (Prelude.Maybe [SageMakerPipelineParameter])
sageMakerPipelineParameters_pipelineParameterList :: Lens'
SageMakerPipelineParameters (Maybe [SageMakerPipelineParameter])
sageMakerPipelineParameters_pipelineParameterList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SageMakerPipelineParameters' {Maybe [SageMakerPipelineParameter]
pipelineParameterList :: Maybe [SageMakerPipelineParameter]
$sel:pipelineParameterList:SageMakerPipelineParameters' :: SageMakerPipelineParameters -> Maybe [SageMakerPipelineParameter]
pipelineParameterList} -> Maybe [SageMakerPipelineParameter]
pipelineParameterList) (\s :: SageMakerPipelineParameters
s@SageMakerPipelineParameters' {} Maybe [SageMakerPipelineParameter]
a -> SageMakerPipelineParameters
s {$sel:pipelineParameterList:SageMakerPipelineParameters' :: Maybe [SageMakerPipelineParameter]
pipelineParameterList = Maybe [SageMakerPipelineParameter]
a} :: SageMakerPipelineParameters) 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
instance Data.FromJSON SageMakerPipelineParameters where
parseJSON :: Value -> Parser SageMakerPipelineParameters
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SageMakerPipelineParameters"
( \Object
x ->
Maybe [SageMakerPipelineParameter] -> SageMakerPipelineParameters
SageMakerPipelineParameters'
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
"PipelineParameterList"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable SageMakerPipelineParameters where
hashWithSalt :: Int -> SageMakerPipelineParameters -> Int
hashWithSalt Int
_salt SageMakerPipelineParameters' {Maybe [SageMakerPipelineParameter]
pipelineParameterList :: Maybe [SageMakerPipelineParameter]
$sel:pipelineParameterList:SageMakerPipelineParameters' :: SageMakerPipelineParameters -> Maybe [SageMakerPipelineParameter]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SageMakerPipelineParameter]
pipelineParameterList
instance Prelude.NFData SageMakerPipelineParameters where
rnf :: SageMakerPipelineParameters -> ()
rnf SageMakerPipelineParameters' {Maybe [SageMakerPipelineParameter]
pipelineParameterList :: Maybe [SageMakerPipelineParameter]
$sel:pipelineParameterList:SageMakerPipelineParameters' :: SageMakerPipelineParameters -> Maybe [SageMakerPipelineParameter]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [SageMakerPipelineParameter]
pipelineParameterList
instance Data.ToJSON SageMakerPipelineParameters where
toJSON :: SageMakerPipelineParameters -> Value
toJSON SageMakerPipelineParameters' {Maybe [SageMakerPipelineParameter]
pipelineParameterList :: Maybe [SageMakerPipelineParameter]
$sel:pipelineParameterList:SageMakerPipelineParameters' :: SageMakerPipelineParameters -> Maybe [SageMakerPipelineParameter]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"PipelineParameterList" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SageMakerPipelineParameter]
pipelineParameterList
]
)