{-# 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.ServiceTemplateSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types.Provisioning
data ServiceTemplateSummary = ServiceTemplateSummary'
{
ServiceTemplateSummary -> Maybe Text
recommendedVersion :: Prelude.Maybe Prelude.Text,
ServiceTemplateSummary -> Maybe (Sensitive Text)
displayName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ServiceTemplateSummary -> Maybe Provisioning
pipelineProvisioning :: Prelude.Maybe Provisioning,
ServiceTemplateSummary -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ServiceTemplateSummary -> Text
arn :: Prelude.Text,
ServiceTemplateSummary -> POSIX
createdAt :: Core.POSIX,
ServiceTemplateSummary -> POSIX
lastModifiedAt :: Core.POSIX,
ServiceTemplateSummary -> Text
name :: Prelude.Text
}
deriving (ServiceTemplateSummary -> ServiceTemplateSummary -> Bool
(ServiceTemplateSummary -> ServiceTemplateSummary -> Bool)
-> (ServiceTemplateSummary -> ServiceTemplateSummary -> Bool)
-> Eq ServiceTemplateSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceTemplateSummary -> ServiceTemplateSummary -> Bool
$c/= :: ServiceTemplateSummary -> ServiceTemplateSummary -> Bool
== :: ServiceTemplateSummary -> ServiceTemplateSummary -> Bool
$c== :: ServiceTemplateSummary -> ServiceTemplateSummary -> Bool
Prelude.Eq, Int -> ServiceTemplateSummary -> ShowS
[ServiceTemplateSummary] -> ShowS
ServiceTemplateSummary -> String
(Int -> ServiceTemplateSummary -> ShowS)
-> (ServiceTemplateSummary -> String)
-> ([ServiceTemplateSummary] -> ShowS)
-> Show ServiceTemplateSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceTemplateSummary] -> ShowS
$cshowList :: [ServiceTemplateSummary] -> ShowS
show :: ServiceTemplateSummary -> String
$cshow :: ServiceTemplateSummary -> String
showsPrec :: Int -> ServiceTemplateSummary -> ShowS
$cshowsPrec :: Int -> ServiceTemplateSummary -> ShowS
Prelude.Show, (forall x. ServiceTemplateSummary -> Rep ServiceTemplateSummary x)
-> (forall x.
Rep ServiceTemplateSummary x -> ServiceTemplateSummary)
-> Generic ServiceTemplateSummary
forall x. Rep ServiceTemplateSummary x -> ServiceTemplateSummary
forall x. ServiceTemplateSummary -> Rep ServiceTemplateSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServiceTemplateSummary x -> ServiceTemplateSummary
$cfrom :: forall x. ServiceTemplateSummary -> Rep ServiceTemplateSummary x
Prelude.Generic)
newServiceTemplateSummary ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
Prelude.Text ->
ServiceTemplateSummary
newServiceTemplateSummary :: Text -> UTCTime -> UTCTime -> Text -> ServiceTemplateSummary
newServiceTemplateSummary
Text
pArn_
UTCTime
pCreatedAt_
UTCTime
pLastModifiedAt_
Text
pName_ =
ServiceTemplateSummary' :: Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary
ServiceTemplateSummary'
{ $sel:recommendedVersion:ServiceTemplateSummary' :: Maybe Text
recommendedVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:ServiceTemplateSummary' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineProvisioning:ServiceTemplateSummary' :: Maybe Provisioning
pipelineProvisioning = Maybe Provisioning
forall a. Maybe a
Prelude.Nothing,
$sel:description:ServiceTemplateSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ServiceTemplateSummary' :: Text
arn = Text
pArn_,
$sel:createdAt:ServiceTemplateSummary' :: 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:ServiceTemplateSummary' :: 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:name:ServiceTemplateSummary' :: Text
name = Text
pName_
}
serviceTemplateSummary_recommendedVersion :: Lens.Lens' ServiceTemplateSummary (Prelude.Maybe Prelude.Text)
serviceTemplateSummary_recommendedVersion :: (Maybe Text -> f (Maybe Text))
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_recommendedVersion = (ServiceTemplateSummary -> Maybe Text)
-> (ServiceTemplateSummary -> Maybe Text -> ServiceTemplateSummary)
-> Lens
ServiceTemplateSummary
ServiceTemplateSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {Maybe Text
recommendedVersion :: Maybe Text
$sel:recommendedVersion:ServiceTemplateSummary' :: ServiceTemplateSummary -> Maybe Text
recommendedVersion} -> Maybe Text
recommendedVersion) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} Maybe Text
a -> ServiceTemplateSummary
s {$sel:recommendedVersion:ServiceTemplateSummary' :: Maybe Text
recommendedVersion = Maybe Text
a} :: ServiceTemplateSummary)
serviceTemplateSummary_displayName :: Lens.Lens' ServiceTemplateSummary (Prelude.Maybe Prelude.Text)
serviceTemplateSummary_displayName :: (Maybe Text -> f (Maybe Text))
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_displayName = (ServiceTemplateSummary -> Maybe (Sensitive Text))
-> (ServiceTemplateSummary
-> Maybe (Sensitive Text) -> ServiceTemplateSummary)
-> Lens
ServiceTemplateSummary
ServiceTemplateSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {Maybe (Sensitive Text)
displayName :: Maybe (Sensitive Text)
$sel:displayName:ServiceTemplateSummary' :: ServiceTemplateSummary -> Maybe (Sensitive Text)
displayName} -> Maybe (Sensitive Text)
displayName) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} Maybe (Sensitive Text)
a -> ServiceTemplateSummary
s {$sel:displayName:ServiceTemplateSummary' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
a} :: ServiceTemplateSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ServiceTemplateSummary -> f ServiceTemplateSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ServiceTemplateSummary
-> f ServiceTemplateSummary
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
serviceTemplateSummary_pipelineProvisioning :: Lens.Lens' ServiceTemplateSummary (Prelude.Maybe Provisioning)
serviceTemplateSummary_pipelineProvisioning :: (Maybe Provisioning -> f (Maybe Provisioning))
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_pipelineProvisioning = (ServiceTemplateSummary -> Maybe Provisioning)
-> (ServiceTemplateSummary
-> Maybe Provisioning -> ServiceTemplateSummary)
-> Lens
ServiceTemplateSummary
ServiceTemplateSummary
(Maybe Provisioning)
(Maybe Provisioning)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {Maybe Provisioning
pipelineProvisioning :: Maybe Provisioning
$sel:pipelineProvisioning:ServiceTemplateSummary' :: ServiceTemplateSummary -> Maybe Provisioning
pipelineProvisioning} -> Maybe Provisioning
pipelineProvisioning) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} Maybe Provisioning
a -> ServiceTemplateSummary
s {$sel:pipelineProvisioning:ServiceTemplateSummary' :: Maybe Provisioning
pipelineProvisioning = Maybe Provisioning
a} :: ServiceTemplateSummary)
serviceTemplateSummary_description :: Lens.Lens' ServiceTemplateSummary (Prelude.Maybe Prelude.Text)
serviceTemplateSummary_description :: (Maybe Text -> f (Maybe Text))
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_description = (ServiceTemplateSummary -> Maybe (Sensitive Text))
-> (ServiceTemplateSummary
-> Maybe (Sensitive Text) -> ServiceTemplateSummary)
-> Lens
ServiceTemplateSummary
ServiceTemplateSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:ServiceTemplateSummary' :: ServiceTemplateSummary -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} Maybe (Sensitive Text)
a -> ServiceTemplateSummary
s {$sel:description:ServiceTemplateSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: ServiceTemplateSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ServiceTemplateSummary -> f ServiceTemplateSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ServiceTemplateSummary
-> f ServiceTemplateSummary
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
serviceTemplateSummary_arn :: Lens.Lens' ServiceTemplateSummary Prelude.Text
serviceTemplateSummary_arn :: (Text -> f Text)
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_arn = (ServiceTemplateSummary -> Text)
-> (ServiceTemplateSummary -> Text -> ServiceTemplateSummary)
-> Lens ServiceTemplateSummary ServiceTemplateSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {Text
arn :: Text
$sel:arn:ServiceTemplateSummary' :: ServiceTemplateSummary -> Text
arn} -> Text
arn) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} Text
a -> ServiceTemplateSummary
s {$sel:arn:ServiceTemplateSummary' :: Text
arn = Text
a} :: ServiceTemplateSummary)
serviceTemplateSummary_createdAt :: Lens.Lens' ServiceTemplateSummary Prelude.UTCTime
serviceTemplateSummary_createdAt :: (UTCTime -> f UTCTime)
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_createdAt = (ServiceTemplateSummary -> POSIX)
-> (ServiceTemplateSummary -> POSIX -> ServiceTemplateSummary)
-> Lens ServiceTemplateSummary ServiceTemplateSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:ServiceTemplateSummary' :: ServiceTemplateSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} POSIX
a -> ServiceTemplateSummary
s {$sel:createdAt:ServiceTemplateSummary' :: POSIX
createdAt = POSIX
a} :: ServiceTemplateSummary) ((POSIX -> f POSIX)
-> ServiceTemplateSummary -> f ServiceTemplateSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServiceTemplateSummary
-> f ServiceTemplateSummary
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
serviceTemplateSummary_lastModifiedAt :: Lens.Lens' ServiceTemplateSummary Prelude.UTCTime
serviceTemplateSummary_lastModifiedAt :: (UTCTime -> f UTCTime)
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_lastModifiedAt = (ServiceTemplateSummary -> POSIX)
-> (ServiceTemplateSummary -> POSIX -> ServiceTemplateSummary)
-> Lens ServiceTemplateSummary ServiceTemplateSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:ServiceTemplateSummary' :: ServiceTemplateSummary -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} POSIX
a -> ServiceTemplateSummary
s {$sel:lastModifiedAt:ServiceTemplateSummary' :: POSIX
lastModifiedAt = POSIX
a} :: ServiceTemplateSummary) ((POSIX -> f POSIX)
-> ServiceTemplateSummary -> f ServiceTemplateSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServiceTemplateSummary
-> f ServiceTemplateSummary
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
serviceTemplateSummary_name :: Lens.Lens' ServiceTemplateSummary Prelude.Text
serviceTemplateSummary_name :: (Text -> f Text)
-> ServiceTemplateSummary -> f ServiceTemplateSummary
serviceTemplateSummary_name = (ServiceTemplateSummary -> Text)
-> (ServiceTemplateSummary -> Text -> ServiceTemplateSummary)
-> Lens ServiceTemplateSummary ServiceTemplateSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateSummary' {Text
name :: Text
$sel:name:ServiceTemplateSummary' :: ServiceTemplateSummary -> Text
name} -> Text
name) (\s :: ServiceTemplateSummary
s@ServiceTemplateSummary' {} Text
a -> ServiceTemplateSummary
s {$sel:name:ServiceTemplateSummary' :: Text
name = Text
a} :: ServiceTemplateSummary)
instance Core.FromJSON ServiceTemplateSummary where
parseJSON :: Value -> Parser ServiceTemplateSummary
parseJSON =
String
-> (Object -> Parser ServiceTemplateSummary)
-> Value
-> Parser ServiceTemplateSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ServiceTemplateSummary"
( \Object
x ->
Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary
ServiceTemplateSummary'
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe (Sensitive Text)
-> Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary)
forall (f :: * -> *) a b. Functor 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
"recommendedVersion")
Parser
(Maybe (Sensitive Text)
-> Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary)
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
"displayName")
Parser
(Maybe Provisioning
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> ServiceTemplateSummary)
-> Parser (Maybe Provisioning)
-> Parser
(Maybe (Sensitive Text)
-> Text -> POSIX -> POSIX -> Text -> ServiceTemplateSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Provisioning)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"pipelineProvisioning")
Parser
(Maybe (Sensitive Text)
-> Text -> POSIX -> POSIX -> Text -> ServiceTemplateSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Text -> POSIX -> POSIX -> Text -> ServiceTemplateSummary)
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 -> ServiceTemplateSummary)
-> Parser Text
-> Parser (POSIX -> POSIX -> Text -> ServiceTemplateSummary)
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 -> ServiceTemplateSummary)
-> Parser POSIX -> Parser (POSIX -> Text -> ServiceTemplateSummary)
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 -> ServiceTemplateSummary)
-> Parser POSIX -> Parser (Text -> ServiceTemplateSummary)
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 -> ServiceTemplateSummary)
-> Parser Text -> Parser ServiceTemplateSummary
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
"name")
)
instance Prelude.Hashable ServiceTemplateSummary
instance Prelude.NFData ServiceTemplateSummary