{-# 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.Proton.Types.EnvironmentTemplateVersionSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types.TemplateVersionStatus
data EnvironmentTemplateVersionSummary = EnvironmentTemplateVersionSummary'
{
EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text)
statusMessage :: Prelude.Maybe (Core.Sensitive Prelude.Text),
EnvironmentTemplateVersionSummary -> Maybe Text
recommendedMinorVersion :: Prelude.Maybe Prelude.Text,
EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
EnvironmentTemplateVersionSummary -> Text
arn :: Prelude.Text,
EnvironmentTemplateVersionSummary -> POSIX
createdAt :: Core.POSIX,
EnvironmentTemplateVersionSummary -> POSIX
lastModifiedAt :: Core.POSIX,
EnvironmentTemplateVersionSummary -> Text
majorVersion :: Prelude.Text,
EnvironmentTemplateVersionSummary -> Text
minorVersion :: Prelude.Text,
EnvironmentTemplateVersionSummary -> TemplateVersionStatus
status :: TemplateVersionStatus,
EnvironmentTemplateVersionSummary -> Text
templateName :: Prelude.Text
}
deriving (EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool
(EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool)
-> (EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool)
-> Eq EnvironmentTemplateVersionSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool
$c/= :: EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool
== :: EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool
$c== :: EnvironmentTemplateVersionSummary
-> EnvironmentTemplateVersionSummary -> Bool
Prelude.Eq, Int -> EnvironmentTemplateVersionSummary -> ShowS
[EnvironmentTemplateVersionSummary] -> ShowS
EnvironmentTemplateVersionSummary -> String
(Int -> EnvironmentTemplateVersionSummary -> ShowS)
-> (EnvironmentTemplateVersionSummary -> String)
-> ([EnvironmentTemplateVersionSummary] -> ShowS)
-> Show EnvironmentTemplateVersionSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EnvironmentTemplateVersionSummary] -> ShowS
$cshowList :: [EnvironmentTemplateVersionSummary] -> ShowS
show :: EnvironmentTemplateVersionSummary -> String
$cshow :: EnvironmentTemplateVersionSummary -> String
showsPrec :: Int -> EnvironmentTemplateVersionSummary -> ShowS
$cshowsPrec :: Int -> EnvironmentTemplateVersionSummary -> ShowS
Prelude.Show, (forall x.
EnvironmentTemplateVersionSummary
-> Rep EnvironmentTemplateVersionSummary x)
-> (forall x.
Rep EnvironmentTemplateVersionSummary x
-> EnvironmentTemplateVersionSummary)
-> Generic EnvironmentTemplateVersionSummary
forall x.
Rep EnvironmentTemplateVersionSummary x
-> EnvironmentTemplateVersionSummary
forall x.
EnvironmentTemplateVersionSummary
-> Rep EnvironmentTemplateVersionSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EnvironmentTemplateVersionSummary x
-> EnvironmentTemplateVersionSummary
$cfrom :: forall x.
EnvironmentTemplateVersionSummary
-> Rep EnvironmentTemplateVersionSummary x
Prelude.Generic)
newEnvironmentTemplateVersionSummary ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
TemplateVersionStatus ->
Prelude.Text ->
EnvironmentTemplateVersionSummary
newEnvironmentTemplateVersionSummary :: Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary
newEnvironmentTemplateVersionSummary
Text
pArn_
UTCTime
pCreatedAt_
UTCTime
pLastModifiedAt_
Text
pMajorVersion_
Text
pMinorVersion_
TemplateVersionStatus
pStatus_
Text
pTemplateName_ =
EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary'
{ $sel:statusMessage:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
statusMessage =
Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:recommendedMinorVersion:EnvironmentTemplateVersionSummary' :: Maybe Text
recommendedMinorVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:arn:EnvironmentTemplateVersionSummary' :: Text
arn = Text
pArn_,
$sel:createdAt:EnvironmentTemplateVersionSummary' :: POSIX
createdAt =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:lastModifiedAt:EnvironmentTemplateVersionSummary' :: POSIX
lastModifiedAt =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedAt_,
$sel:majorVersion:EnvironmentTemplateVersionSummary' :: Text
majorVersion = Text
pMajorVersion_,
$sel:minorVersion:EnvironmentTemplateVersionSummary' :: Text
minorVersion = Text
pMinorVersion_,
$sel:status:EnvironmentTemplateVersionSummary' :: TemplateVersionStatus
status = TemplateVersionStatus
pStatus_,
$sel:templateName:EnvironmentTemplateVersionSummary' :: Text
templateName = Text
pTemplateName_
}
environmentTemplateVersionSummary_statusMessage :: Lens.Lens' EnvironmentTemplateVersionSummary (Prelude.Maybe Prelude.Text)
environmentTemplateVersionSummary_statusMessage :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_statusMessage = (EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text))
-> (EnvironmentTemplateVersionSummary
-> Maybe (Sensitive Text) -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Maybe (Sensitive Text)
statusMessage :: Maybe (Sensitive Text)
$sel:statusMessage:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text)
statusMessage} -> Maybe (Sensitive Text)
statusMessage) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateVersionSummary
s {$sel:statusMessage:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
statusMessage = Maybe (Sensitive Text)
a} :: EnvironmentTemplateVersionSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
environmentTemplateVersionSummary_recommendedMinorVersion :: Lens.Lens' EnvironmentTemplateVersionSummary (Prelude.Maybe Prelude.Text)
environmentTemplateVersionSummary_recommendedMinorVersion :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_recommendedMinorVersion = (EnvironmentTemplateVersionSummary -> Maybe Text)
-> (EnvironmentTemplateVersionSummary
-> Maybe Text -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Maybe Text
recommendedMinorVersion :: Maybe Text
$sel:recommendedMinorVersion:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Maybe Text
recommendedMinorVersion} -> Maybe Text
recommendedMinorVersion) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Maybe Text
a -> EnvironmentTemplateVersionSummary
s {$sel:recommendedMinorVersion:EnvironmentTemplateVersionSummary' :: Maybe Text
recommendedMinorVersion = Maybe Text
a} :: EnvironmentTemplateVersionSummary)
environmentTemplateVersionSummary_description :: Lens.Lens' EnvironmentTemplateVersionSummary (Prelude.Maybe Prelude.Text)
environmentTemplateVersionSummary_description :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_description = (EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text))
-> (EnvironmentTemplateVersionSummary
-> Maybe (Sensitive Text) -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateVersionSummary
s {$sel:description:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: EnvironmentTemplateVersionSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
environmentTemplateVersionSummary_arn :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.Text
environmentTemplateVersionSummary_arn :: (Text -> f Text)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_arn = (EnvironmentTemplateVersionSummary -> Text)
-> (EnvironmentTemplateVersionSummary
-> Text -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Text
arn :: Text
$sel:arn:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Text
arn} -> Text
arn) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Text
a -> EnvironmentTemplateVersionSummary
s {$sel:arn:EnvironmentTemplateVersionSummary' :: Text
arn = Text
a} :: EnvironmentTemplateVersionSummary)
environmentTemplateVersionSummary_createdAt :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.UTCTime
environmentTemplateVersionSummary_createdAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_createdAt = (EnvironmentTemplateVersionSummary -> POSIX)
-> (EnvironmentTemplateVersionSummary
-> POSIX -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} POSIX
a -> EnvironmentTemplateVersionSummary
s {$sel:createdAt:EnvironmentTemplateVersionSummary' :: POSIX
createdAt = POSIX
a} :: EnvironmentTemplateVersionSummary) ((POSIX -> f POSIX)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
environmentTemplateVersionSummary_lastModifiedAt :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.UTCTime
environmentTemplateVersionSummary_lastModifiedAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_lastModifiedAt = (EnvironmentTemplateVersionSummary -> POSIX)
-> (EnvironmentTemplateVersionSummary
-> POSIX -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} POSIX
a -> EnvironmentTemplateVersionSummary
s {$sel:lastModifiedAt:EnvironmentTemplateVersionSummary' :: POSIX
lastModifiedAt = POSIX
a} :: EnvironmentTemplateVersionSummary) ((POSIX -> f POSIX)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
environmentTemplateVersionSummary_majorVersion :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.Text
environmentTemplateVersionSummary_majorVersion :: (Text -> f Text)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_majorVersion = (EnvironmentTemplateVersionSummary -> Text)
-> (EnvironmentTemplateVersionSummary
-> Text -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Text
majorVersion :: Text
$sel:majorVersion:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Text
majorVersion} -> Text
majorVersion) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Text
a -> EnvironmentTemplateVersionSummary
s {$sel:majorVersion:EnvironmentTemplateVersionSummary' :: Text
majorVersion = Text
a} :: EnvironmentTemplateVersionSummary)
environmentTemplateVersionSummary_minorVersion :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.Text
environmentTemplateVersionSummary_minorVersion :: (Text -> f Text)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_minorVersion = (EnvironmentTemplateVersionSummary -> Text)
-> (EnvironmentTemplateVersionSummary
-> Text -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Text
minorVersion :: Text
$sel:minorVersion:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Text
minorVersion} -> Text
minorVersion) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Text
a -> EnvironmentTemplateVersionSummary
s {$sel:minorVersion:EnvironmentTemplateVersionSummary' :: Text
minorVersion = Text
a} :: EnvironmentTemplateVersionSummary)
environmentTemplateVersionSummary_status :: Lens.Lens' EnvironmentTemplateVersionSummary TemplateVersionStatus
environmentTemplateVersionSummary_status :: (TemplateVersionStatus -> f TemplateVersionStatus)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_status = (EnvironmentTemplateVersionSummary -> TemplateVersionStatus)
-> (EnvironmentTemplateVersionSummary
-> TemplateVersionStatus -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
TemplateVersionStatus
TemplateVersionStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {TemplateVersionStatus
status :: TemplateVersionStatus
$sel:status:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> TemplateVersionStatus
status} -> TemplateVersionStatus
status) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} TemplateVersionStatus
a -> EnvironmentTemplateVersionSummary
s {$sel:status:EnvironmentTemplateVersionSummary' :: TemplateVersionStatus
status = TemplateVersionStatus
a} :: EnvironmentTemplateVersionSummary)
environmentTemplateVersionSummary_templateName :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.Text
environmentTemplateVersionSummary_templateName :: (Text -> f Text)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_templateName = (EnvironmentTemplateVersionSummary -> Text)
-> (EnvironmentTemplateVersionSummary
-> Text -> EnvironmentTemplateVersionSummary)
-> Lens
EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Text
templateName :: Text
$sel:templateName:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Text
templateName} -> Text
templateName) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Text
a -> EnvironmentTemplateVersionSummary
s {$sel:templateName:EnvironmentTemplateVersionSummary' :: Text
templateName = Text
a} :: EnvironmentTemplateVersionSummary)
instance
Core.FromJSON
EnvironmentTemplateVersionSummary
where
parseJSON :: Value -> Parser EnvironmentTemplateVersionSummary
parseJSON =
String
-> (Object -> Parser EnvironmentTemplateVersionSummary)
-> Value
-> Parser EnvironmentTemplateVersionSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"EnvironmentTemplateVersionSummary"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary'
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"statusMessage")
Parser
(Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
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
"recommendedMinorVersion")
Parser
(Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"description")
Parser
(Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser Text
-> Parser
(POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"arn")
Parser
(POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser POSIX
-> Parser
(POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"createdAt")
Parser
(POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser POSIX
-> Parser
(Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"lastModifiedAt")
Parser
(Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser Text
-> Parser
(Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"majorVersion")
Parser
(Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary)
-> Parser Text
-> Parser
(TemplateVersionStatus
-> Text -> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"minorVersion")
Parser
(TemplateVersionStatus
-> Text -> EnvironmentTemplateVersionSummary)
-> Parser TemplateVersionStatus
-> Parser (Text -> EnvironmentTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser TemplateVersionStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"status")
Parser (Text -> EnvironmentTemplateVersionSummary)
-> Parser Text -> Parser EnvironmentTemplateVersionSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"templateName")
)
instance
Prelude.Hashable
EnvironmentTemplateVersionSummary
instance
Prelude.NFData
EnvironmentTemplateVersionSummary