{-# 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.QuickSight.Types.TemplateVersion where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types.DataSetConfiguration
import Amazonka.QuickSight.Types.ResourceStatus
import Amazonka.QuickSight.Types.Sheet
import Amazonka.QuickSight.Types.TemplateError
data TemplateVersion = TemplateVersion'
{
TemplateVersion -> Maybe ResourceStatus
status :: Prelude.Maybe ResourceStatus,
TemplateVersion -> Maybe Text
themeArn :: Prelude.Maybe Prelude.Text,
TemplateVersion -> Maybe [Sheet]
sheets :: Prelude.Maybe [Sheet],
TemplateVersion -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
TemplateVersion -> Maybe Text
sourceEntityArn :: Prelude.Maybe Prelude.Text,
TemplateVersion -> Maybe [DataSetConfiguration]
dataSetConfigurations :: Prelude.Maybe [DataSetConfiguration],
TemplateVersion -> Maybe Natural
versionNumber :: Prelude.Maybe Prelude.Natural,
TemplateVersion -> Maybe (NonEmpty TemplateError)
errors :: Prelude.Maybe (Prelude.NonEmpty TemplateError),
TemplateVersion -> Maybe Text
description :: Prelude.Maybe Prelude.Text
}
deriving (TemplateVersion -> TemplateVersion -> Bool
(TemplateVersion -> TemplateVersion -> Bool)
-> (TemplateVersion -> TemplateVersion -> Bool)
-> Eq TemplateVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TemplateVersion -> TemplateVersion -> Bool
$c/= :: TemplateVersion -> TemplateVersion -> Bool
== :: TemplateVersion -> TemplateVersion -> Bool
$c== :: TemplateVersion -> TemplateVersion -> Bool
Prelude.Eq, ReadPrec [TemplateVersion]
ReadPrec TemplateVersion
Int -> ReadS TemplateVersion
ReadS [TemplateVersion]
(Int -> ReadS TemplateVersion)
-> ReadS [TemplateVersion]
-> ReadPrec TemplateVersion
-> ReadPrec [TemplateVersion]
-> Read TemplateVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TemplateVersion]
$creadListPrec :: ReadPrec [TemplateVersion]
readPrec :: ReadPrec TemplateVersion
$creadPrec :: ReadPrec TemplateVersion
readList :: ReadS [TemplateVersion]
$creadList :: ReadS [TemplateVersion]
readsPrec :: Int -> ReadS TemplateVersion
$creadsPrec :: Int -> ReadS TemplateVersion
Prelude.Read, Int -> TemplateVersion -> ShowS
[TemplateVersion] -> ShowS
TemplateVersion -> String
(Int -> TemplateVersion -> ShowS)
-> (TemplateVersion -> String)
-> ([TemplateVersion] -> ShowS)
-> Show TemplateVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TemplateVersion] -> ShowS
$cshowList :: [TemplateVersion] -> ShowS
show :: TemplateVersion -> String
$cshow :: TemplateVersion -> String
showsPrec :: Int -> TemplateVersion -> ShowS
$cshowsPrec :: Int -> TemplateVersion -> ShowS
Prelude.Show, (forall x. TemplateVersion -> Rep TemplateVersion x)
-> (forall x. Rep TemplateVersion x -> TemplateVersion)
-> Generic TemplateVersion
forall x. Rep TemplateVersion x -> TemplateVersion
forall x. TemplateVersion -> Rep TemplateVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TemplateVersion x -> TemplateVersion
$cfrom :: forall x. TemplateVersion -> Rep TemplateVersion x
Prelude.Generic)
newTemplateVersion ::
TemplateVersion
newTemplateVersion :: TemplateVersion
newTemplateVersion =
TemplateVersion' :: Maybe ResourceStatus
-> Maybe Text
-> Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion
TemplateVersion'
{ $sel:status:TemplateVersion' :: Maybe ResourceStatus
status = Maybe ResourceStatus
forall a. Maybe a
Prelude.Nothing,
$sel:themeArn:TemplateVersion' :: Maybe Text
themeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sheets:TemplateVersion' :: Maybe [Sheet]
sheets = Maybe [Sheet]
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:TemplateVersion' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sourceEntityArn:TemplateVersion' :: Maybe Text
sourceEntityArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataSetConfigurations:TemplateVersion' :: Maybe [DataSetConfiguration]
dataSetConfigurations = Maybe [DataSetConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:versionNumber:TemplateVersion' :: Maybe Natural
versionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:errors:TemplateVersion' :: Maybe (NonEmpty TemplateError)
errors = Maybe (NonEmpty TemplateError)
forall a. Maybe a
Prelude.Nothing,
$sel:description:TemplateVersion' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
templateVersion_status :: Lens.Lens' TemplateVersion (Prelude.Maybe ResourceStatus)
templateVersion_status :: (Maybe ResourceStatus -> f (Maybe ResourceStatus))
-> TemplateVersion -> f TemplateVersion
templateVersion_status = (TemplateVersion -> Maybe ResourceStatus)
-> (TemplateVersion -> Maybe ResourceStatus -> TemplateVersion)
-> Lens
TemplateVersion
TemplateVersion
(Maybe ResourceStatus)
(Maybe ResourceStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe ResourceStatus
status :: Maybe ResourceStatus
$sel:status:TemplateVersion' :: TemplateVersion -> Maybe ResourceStatus
status} -> Maybe ResourceStatus
status) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe ResourceStatus
a -> TemplateVersion
s {$sel:status:TemplateVersion' :: Maybe ResourceStatus
status = Maybe ResourceStatus
a} :: TemplateVersion)
templateVersion_themeArn :: Lens.Lens' TemplateVersion (Prelude.Maybe Prelude.Text)
templateVersion_themeArn :: (Maybe Text -> f (Maybe Text))
-> TemplateVersion -> f TemplateVersion
templateVersion_themeArn = (TemplateVersion -> Maybe Text)
-> (TemplateVersion -> Maybe Text -> TemplateVersion)
-> Lens TemplateVersion TemplateVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe Text
themeArn :: Maybe Text
$sel:themeArn:TemplateVersion' :: TemplateVersion -> Maybe Text
themeArn} -> Maybe Text
themeArn) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe Text
a -> TemplateVersion
s {$sel:themeArn:TemplateVersion' :: Maybe Text
themeArn = Maybe Text
a} :: TemplateVersion)
templateVersion_sheets :: Lens.Lens' TemplateVersion (Prelude.Maybe [Sheet])
templateVersion_sheets :: (Maybe [Sheet] -> f (Maybe [Sheet]))
-> TemplateVersion -> f TemplateVersion
templateVersion_sheets = (TemplateVersion -> Maybe [Sheet])
-> (TemplateVersion -> Maybe [Sheet] -> TemplateVersion)
-> Lens
TemplateVersion TemplateVersion (Maybe [Sheet]) (Maybe [Sheet])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe [Sheet]
sheets :: Maybe [Sheet]
$sel:sheets:TemplateVersion' :: TemplateVersion -> Maybe [Sheet]
sheets} -> Maybe [Sheet]
sheets) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe [Sheet]
a -> TemplateVersion
s {$sel:sheets:TemplateVersion' :: Maybe [Sheet]
sheets = Maybe [Sheet]
a} :: TemplateVersion) ((Maybe [Sheet] -> f (Maybe [Sheet]))
-> TemplateVersion -> f TemplateVersion)
-> ((Maybe [Sheet] -> f (Maybe [Sheet]))
-> Maybe [Sheet] -> f (Maybe [Sheet]))
-> (Maybe [Sheet] -> f (Maybe [Sheet]))
-> TemplateVersion
-> f TemplateVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Sheet] [Sheet] [Sheet] [Sheet]
-> Iso
(Maybe [Sheet]) (Maybe [Sheet]) (Maybe [Sheet]) (Maybe [Sheet])
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 [Sheet] [Sheet] [Sheet] [Sheet]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
templateVersion_createdTime :: Lens.Lens' TemplateVersion (Prelude.Maybe Prelude.UTCTime)
templateVersion_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TemplateVersion -> f TemplateVersion
templateVersion_createdTime = (TemplateVersion -> Maybe POSIX)
-> (TemplateVersion -> Maybe POSIX -> TemplateVersion)
-> Lens TemplateVersion TemplateVersion (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:TemplateVersion' :: TemplateVersion -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe POSIX
a -> TemplateVersion
s {$sel:createdTime:TemplateVersion' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: TemplateVersion) ((Maybe POSIX -> f (Maybe POSIX))
-> TemplateVersion -> f TemplateVersion)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TemplateVersion
-> f TemplateVersion
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
templateVersion_sourceEntityArn :: Lens.Lens' TemplateVersion (Prelude.Maybe Prelude.Text)
templateVersion_sourceEntityArn :: (Maybe Text -> f (Maybe Text))
-> TemplateVersion -> f TemplateVersion
templateVersion_sourceEntityArn = (TemplateVersion -> Maybe Text)
-> (TemplateVersion -> Maybe Text -> TemplateVersion)
-> Lens TemplateVersion TemplateVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe Text
sourceEntityArn :: Maybe Text
$sel:sourceEntityArn:TemplateVersion' :: TemplateVersion -> Maybe Text
sourceEntityArn} -> Maybe Text
sourceEntityArn) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe Text
a -> TemplateVersion
s {$sel:sourceEntityArn:TemplateVersion' :: Maybe Text
sourceEntityArn = Maybe Text
a} :: TemplateVersion)
templateVersion_dataSetConfigurations :: Lens.Lens' TemplateVersion (Prelude.Maybe [DataSetConfiguration])
templateVersion_dataSetConfigurations :: (Maybe [DataSetConfiguration] -> f (Maybe [DataSetConfiguration]))
-> TemplateVersion -> f TemplateVersion
templateVersion_dataSetConfigurations = (TemplateVersion -> Maybe [DataSetConfiguration])
-> (TemplateVersion
-> Maybe [DataSetConfiguration] -> TemplateVersion)
-> Lens
TemplateVersion
TemplateVersion
(Maybe [DataSetConfiguration])
(Maybe [DataSetConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe [DataSetConfiguration]
dataSetConfigurations :: Maybe [DataSetConfiguration]
$sel:dataSetConfigurations:TemplateVersion' :: TemplateVersion -> Maybe [DataSetConfiguration]
dataSetConfigurations} -> Maybe [DataSetConfiguration]
dataSetConfigurations) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe [DataSetConfiguration]
a -> TemplateVersion
s {$sel:dataSetConfigurations:TemplateVersion' :: Maybe [DataSetConfiguration]
dataSetConfigurations = Maybe [DataSetConfiguration]
a} :: TemplateVersion) ((Maybe [DataSetConfiguration] -> f (Maybe [DataSetConfiguration]))
-> TemplateVersion -> f TemplateVersion)
-> ((Maybe [DataSetConfiguration]
-> f (Maybe [DataSetConfiguration]))
-> Maybe [DataSetConfiguration]
-> f (Maybe [DataSetConfiguration]))
-> (Maybe [DataSetConfiguration]
-> f (Maybe [DataSetConfiguration]))
-> TemplateVersion
-> f TemplateVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DataSetConfiguration]
[DataSetConfiguration]
[DataSetConfiguration]
[DataSetConfiguration]
-> Iso
(Maybe [DataSetConfiguration])
(Maybe [DataSetConfiguration])
(Maybe [DataSetConfiguration])
(Maybe [DataSetConfiguration])
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
[DataSetConfiguration]
[DataSetConfiguration]
[DataSetConfiguration]
[DataSetConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
templateVersion_versionNumber :: Lens.Lens' TemplateVersion (Prelude.Maybe Prelude.Natural)
templateVersion_versionNumber :: (Maybe Natural -> f (Maybe Natural))
-> TemplateVersion -> f TemplateVersion
templateVersion_versionNumber = (TemplateVersion -> Maybe Natural)
-> (TemplateVersion -> Maybe Natural -> TemplateVersion)
-> Lens
TemplateVersion TemplateVersion (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe Natural
versionNumber :: Maybe Natural
$sel:versionNumber:TemplateVersion' :: TemplateVersion -> Maybe Natural
versionNumber} -> Maybe Natural
versionNumber) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe Natural
a -> TemplateVersion
s {$sel:versionNumber:TemplateVersion' :: Maybe Natural
versionNumber = Maybe Natural
a} :: TemplateVersion)
templateVersion_errors :: Lens.Lens' TemplateVersion (Prelude.Maybe (Prelude.NonEmpty TemplateError))
templateVersion_errors :: (Maybe (NonEmpty TemplateError)
-> f (Maybe (NonEmpty TemplateError)))
-> TemplateVersion -> f TemplateVersion
templateVersion_errors = (TemplateVersion -> Maybe (NonEmpty TemplateError))
-> (TemplateVersion
-> Maybe (NonEmpty TemplateError) -> TemplateVersion)
-> Lens
TemplateVersion
TemplateVersion
(Maybe (NonEmpty TemplateError))
(Maybe (NonEmpty TemplateError))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe (NonEmpty TemplateError)
errors :: Maybe (NonEmpty TemplateError)
$sel:errors:TemplateVersion' :: TemplateVersion -> Maybe (NonEmpty TemplateError)
errors} -> Maybe (NonEmpty TemplateError)
errors) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe (NonEmpty TemplateError)
a -> TemplateVersion
s {$sel:errors:TemplateVersion' :: Maybe (NonEmpty TemplateError)
errors = Maybe (NonEmpty TemplateError)
a} :: TemplateVersion) ((Maybe (NonEmpty TemplateError)
-> f (Maybe (NonEmpty TemplateError)))
-> TemplateVersion -> f TemplateVersion)
-> ((Maybe (NonEmpty TemplateError)
-> f (Maybe (NonEmpty TemplateError)))
-> Maybe (NonEmpty TemplateError)
-> f (Maybe (NonEmpty TemplateError)))
-> (Maybe (NonEmpty TemplateError)
-> f (Maybe (NonEmpty TemplateError)))
-> TemplateVersion
-> f TemplateVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty TemplateError)
(NonEmpty TemplateError)
(NonEmpty TemplateError)
(NonEmpty TemplateError)
-> Iso
(Maybe (NonEmpty TemplateError))
(Maybe (NonEmpty TemplateError))
(Maybe (NonEmpty TemplateError))
(Maybe (NonEmpty TemplateError))
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
(NonEmpty TemplateError)
(NonEmpty TemplateError)
(NonEmpty TemplateError)
(NonEmpty TemplateError)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
templateVersion_description :: Lens.Lens' TemplateVersion (Prelude.Maybe Prelude.Text)
templateVersion_description :: (Maybe Text -> f (Maybe Text))
-> TemplateVersion -> f TemplateVersion
templateVersion_description = (TemplateVersion -> Maybe Text)
-> (TemplateVersion -> Maybe Text -> TemplateVersion)
-> Lens TemplateVersion TemplateVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TemplateVersion' {Maybe Text
description :: Maybe Text
$sel:description:TemplateVersion' :: TemplateVersion -> Maybe Text
description} -> Maybe Text
description) (\s :: TemplateVersion
s@TemplateVersion' {} Maybe Text
a -> TemplateVersion
s {$sel:description:TemplateVersion' :: Maybe Text
description = Maybe Text
a} :: TemplateVersion)
instance Core.FromJSON TemplateVersion where
parseJSON :: Value -> Parser TemplateVersion
parseJSON =
String
-> (Object -> Parser TemplateVersion)
-> Value
-> Parser TemplateVersion
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"TemplateVersion"
( \Object
x ->
Maybe ResourceStatus
-> Maybe Text
-> Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion
TemplateVersion'
(Maybe ResourceStatus
-> Maybe Text
-> Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
-> Parser (Maybe ResourceStatus)
-> Parser
(Maybe Text
-> Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ResourceStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
-> Parser (Maybe Text)
-> Parser
(Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
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
"ThemeArn")
Parser
(Maybe [Sheet]
-> Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
-> Parser (Maybe [Sheet])
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Sheet]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Sheets" Parser (Maybe (Maybe [Sheet]))
-> Maybe [Sheet] -> Parser (Maybe [Sheet])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Sheet]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
forall (f :: * -> *) a b. Applicative f => 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
"CreatedTime")
Parser
(Maybe Text
-> Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
-> Parser (Maybe Text)
-> Parser
(Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
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
"SourceEntityArn")
Parser
(Maybe [DataSetConfiguration]
-> Maybe Natural
-> Maybe (NonEmpty TemplateError)
-> Maybe Text
-> TemplateVersion)
-> Parser (Maybe [DataSetConfiguration])
-> Parser
(Maybe Natural
-> Maybe (NonEmpty TemplateError) -> Maybe Text -> TemplateVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [DataSetConfiguration]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataSetConfigurations"
Parser (Maybe (Maybe [DataSetConfiguration]))
-> Maybe [DataSetConfiguration]
-> Parser (Maybe [DataSetConfiguration])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [DataSetConfiguration]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Natural
-> Maybe (NonEmpty TemplateError) -> Maybe Text -> TemplateVersion)
-> Parser (Maybe Natural)
-> Parser
(Maybe (NonEmpty TemplateError) -> Maybe Text -> TemplateVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VersionNumber")
Parser
(Maybe (NonEmpty TemplateError) -> Maybe Text -> TemplateVersion)
-> Parser (Maybe (NonEmpty TemplateError))
-> Parser (Maybe Text -> TemplateVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty TemplateError))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Errors")
Parser (Maybe Text -> TemplateVersion)
-> Parser (Maybe Text) -> Parser TemplateVersion
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
"Description")
)
instance Prelude.Hashable TemplateVersion
instance Prelude.NFData TemplateVersion