{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CodeStar.DescribeProject
(
DescribeProject (..),
newDescribeProject,
describeProject_id,
DescribeProjectResponse (..),
newDescribeProjectResponse,
describeProjectResponse_status,
describeProjectResponse_arn,
describeProjectResponse_projectTemplateId,
describeProjectResponse_name,
describeProjectResponse_id,
describeProjectResponse_stackId,
describeProjectResponse_clientRequestToken,
describeProjectResponse_createdTimeStamp,
describeProjectResponse_description,
describeProjectResponse_httpStatus,
)
where
import Amazonka.CodeStar.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeProject = DescribeProject'
{
DescribeProject -> Text
id :: Prelude.Text
}
deriving (DescribeProject -> DescribeProject -> Bool
(DescribeProject -> DescribeProject -> Bool)
-> (DescribeProject -> DescribeProject -> Bool)
-> Eq DescribeProject
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProject -> DescribeProject -> Bool
$c/= :: DescribeProject -> DescribeProject -> Bool
== :: DescribeProject -> DescribeProject -> Bool
$c== :: DescribeProject -> DescribeProject -> Bool
Prelude.Eq, ReadPrec [DescribeProject]
ReadPrec DescribeProject
Int -> ReadS DescribeProject
ReadS [DescribeProject]
(Int -> ReadS DescribeProject)
-> ReadS [DescribeProject]
-> ReadPrec DescribeProject
-> ReadPrec [DescribeProject]
-> Read DescribeProject
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProject]
$creadListPrec :: ReadPrec [DescribeProject]
readPrec :: ReadPrec DescribeProject
$creadPrec :: ReadPrec DescribeProject
readList :: ReadS [DescribeProject]
$creadList :: ReadS [DescribeProject]
readsPrec :: Int -> ReadS DescribeProject
$creadsPrec :: Int -> ReadS DescribeProject
Prelude.Read, Int -> DescribeProject -> ShowS
[DescribeProject] -> ShowS
DescribeProject -> String
(Int -> DescribeProject -> ShowS)
-> (DescribeProject -> String)
-> ([DescribeProject] -> ShowS)
-> Show DescribeProject
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProject] -> ShowS
$cshowList :: [DescribeProject] -> ShowS
show :: DescribeProject -> String
$cshow :: DescribeProject -> String
showsPrec :: Int -> DescribeProject -> ShowS
$cshowsPrec :: Int -> DescribeProject -> ShowS
Prelude.Show, (forall x. DescribeProject -> Rep DescribeProject x)
-> (forall x. Rep DescribeProject x -> DescribeProject)
-> Generic DescribeProject
forall x. Rep DescribeProject x -> DescribeProject
forall x. DescribeProject -> Rep DescribeProject x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeProject x -> DescribeProject
$cfrom :: forall x. DescribeProject -> Rep DescribeProject x
Prelude.Generic)
newDescribeProject ::
Prelude.Text ->
DescribeProject
newDescribeProject :: Text -> DescribeProject
newDescribeProject Text
pId_ = DescribeProject' :: Text -> DescribeProject
DescribeProject' {$sel:id:DescribeProject' :: Text
id = Text
pId_}
describeProject_id :: Lens.Lens' DescribeProject Prelude.Text
describeProject_id :: (Text -> f Text) -> DescribeProject -> f DescribeProject
describeProject_id = (DescribeProject -> Text)
-> (DescribeProject -> Text -> DescribeProject)
-> Lens DescribeProject DescribeProject Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProject' {Text
id :: Text
$sel:id:DescribeProject' :: DescribeProject -> Text
id} -> Text
id) (\s :: DescribeProject
s@DescribeProject' {} Text
a -> DescribeProject
s {$sel:id:DescribeProject' :: Text
id = Text
a} :: DescribeProject)
instance Core.AWSRequest DescribeProject where
type
AWSResponse DescribeProject =
DescribeProjectResponse
request :: DescribeProject -> Request DescribeProject
request = Service -> DescribeProject -> Request DescribeProject
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeProject
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeProject)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeProject))
-> Logger
-> Service
-> Proxy DescribeProject
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeProject)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ProjectStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse
DescribeProjectResponse'
(Maybe ProjectStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe ProjectStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ProjectStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"projectTemplateId")
Either
String
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"id")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"stackId")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe (Sensitive Text) -> Int -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clientRequestToken")
Either
String
(Maybe POSIX
-> Maybe (Sensitive Text) -> Int -> DescribeProjectResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe (Sensitive Text) -> Int -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdTimeStamp")
Either
String (Maybe (Sensitive Text) -> Int -> DescribeProjectResponse)
-> Either String (Maybe (Sensitive Text))
-> Either String (Int -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"description")
Either String (Int -> DescribeProjectResponse)
-> Either String Int -> Either String DescribeProjectResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeProject
instance Prelude.NFData DescribeProject
instance Core.ToHeaders DescribeProject where
toHeaders :: DescribeProject -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeProject -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"CodeStar_20170419.DescribeProject" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeProject where
toJSON :: DescribeProject -> Value
toJSON DescribeProject' {Text
id :: Text
$sel:id:DescribeProject' :: DescribeProject -> Text
..} =
[Pair] -> Value
Core.object
([Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"id" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
id)])
instance Core.ToPath DescribeProject where
toPath :: DescribeProject -> ByteString
toPath = ByteString -> DescribeProject -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeProject where
toQuery :: DescribeProject -> QueryString
toQuery = QueryString -> DescribeProject -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeProjectResponse = DescribeProjectResponse'
{
DescribeProjectResponse -> Maybe ProjectStatus
status :: Prelude.Maybe ProjectStatus,
DescribeProjectResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeProjectResponse -> Maybe Text
projectTemplateId :: Prelude.Maybe Prelude.Text,
DescribeProjectResponse -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DescribeProjectResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
DescribeProjectResponse -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
DescribeProjectResponse -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
DescribeProjectResponse -> Maybe POSIX
createdTimeStamp :: Prelude.Maybe Core.POSIX,
DescribeProjectResponse -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DescribeProjectResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeProjectResponse -> DescribeProjectResponse -> Bool
(DescribeProjectResponse -> DescribeProjectResponse -> Bool)
-> (DescribeProjectResponse -> DescribeProjectResponse -> Bool)
-> Eq DescribeProjectResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProjectResponse -> DescribeProjectResponse -> Bool
$c/= :: DescribeProjectResponse -> DescribeProjectResponse -> Bool
== :: DescribeProjectResponse -> DescribeProjectResponse -> Bool
$c== :: DescribeProjectResponse -> DescribeProjectResponse -> Bool
Prelude.Eq, Int -> DescribeProjectResponse -> ShowS
[DescribeProjectResponse] -> ShowS
DescribeProjectResponse -> String
(Int -> DescribeProjectResponse -> ShowS)
-> (DescribeProjectResponse -> String)
-> ([DescribeProjectResponse] -> ShowS)
-> Show DescribeProjectResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProjectResponse] -> ShowS
$cshowList :: [DescribeProjectResponse] -> ShowS
show :: DescribeProjectResponse -> String
$cshow :: DescribeProjectResponse -> String
showsPrec :: Int -> DescribeProjectResponse -> ShowS
$cshowsPrec :: Int -> DescribeProjectResponse -> ShowS
Prelude.Show, (forall x.
DescribeProjectResponse -> Rep DescribeProjectResponse x)
-> (forall x.
Rep DescribeProjectResponse x -> DescribeProjectResponse)
-> Generic DescribeProjectResponse
forall x. Rep DescribeProjectResponse x -> DescribeProjectResponse
forall x. DescribeProjectResponse -> Rep DescribeProjectResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeProjectResponse x -> DescribeProjectResponse
$cfrom :: forall x. DescribeProjectResponse -> Rep DescribeProjectResponse x
Prelude.Generic)
newDescribeProjectResponse ::
Prelude.Int ->
DescribeProjectResponse
newDescribeProjectResponse :: Int -> DescribeProjectResponse
newDescribeProjectResponse Int
pHttpStatus_ =
DescribeProjectResponse' :: Maybe ProjectStatus
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Int
-> DescribeProjectResponse
DescribeProjectResponse'
{ $sel:status:DescribeProjectResponse' :: Maybe ProjectStatus
status = Maybe ProjectStatus
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeProjectResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:projectTemplateId:DescribeProjectResponse' :: Maybe Text
projectTemplateId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeProjectResponse' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:id:DescribeProjectResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackId:DescribeProjectResponse' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:DescribeProjectResponse' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTimeStamp:DescribeProjectResponse' :: Maybe POSIX
createdTimeStamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeProjectResponse' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeProjectResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeProjectResponse_status :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe ProjectStatus)
describeProjectResponse_status :: (Maybe ProjectStatus -> f (Maybe ProjectStatus))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_status = (DescribeProjectResponse -> Maybe ProjectStatus)
-> (DescribeProjectResponse
-> Maybe ProjectStatus -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe ProjectStatus)
(Maybe ProjectStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe ProjectStatus
status :: Maybe ProjectStatus
$sel:status:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe ProjectStatus
status} -> Maybe ProjectStatus
status) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe ProjectStatus
a -> DescribeProjectResponse
s {$sel:status:DescribeProjectResponse' :: Maybe ProjectStatus
status = Maybe ProjectStatus
a} :: DescribeProjectResponse)
describeProjectResponse_arn :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_arn = (DescribeProjectResponse -> Maybe Text)
-> (DescribeProjectResponse
-> Maybe Text -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:arn:DescribeProjectResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeProjectResponse)
describeProjectResponse_projectTemplateId :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_projectTemplateId :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectTemplateId = (DescribeProjectResponse -> Maybe Text)
-> (DescribeProjectResponse
-> Maybe Text -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe Text
projectTemplateId :: Maybe Text
$sel:projectTemplateId:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
projectTemplateId} -> Maybe Text
projectTemplateId) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:projectTemplateId:DescribeProjectResponse' :: Maybe Text
projectTemplateId = Maybe Text
a} :: DescribeProjectResponse)
describeProjectResponse_name :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_name = (DescribeProjectResponse -> Maybe (Sensitive Text))
-> (DescribeProjectResponse
-> Maybe (Sensitive Text) -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe (Sensitive Text)
a -> DescribeProjectResponse
s {$sel:name:DescribeProjectResponse' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: DescribeProjectResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DescribeProjectResponse -> f DescribeProjectResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse
-> f DescribeProjectResponse
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
describeProjectResponse_id :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_id :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_id = (DescribeProjectResponse -> Maybe Text)
-> (DescribeProjectResponse
-> Maybe Text -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:id:DescribeProjectResponse' :: Maybe Text
id = Maybe Text
a} :: DescribeProjectResponse)
describeProjectResponse_stackId :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_stackId :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_stackId = (DescribeProjectResponse -> Maybe Text)
-> (DescribeProjectResponse
-> Maybe Text -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe Text
stackId :: Maybe Text
$sel:stackId:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:stackId:DescribeProjectResponse' :: Maybe Text
stackId = Maybe Text
a} :: DescribeProjectResponse)
describeProjectResponse_clientRequestToken :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_clientRequestToken = (DescribeProjectResponse -> Maybe Text)
-> (DescribeProjectResponse
-> Maybe Text -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:clientRequestToken:DescribeProjectResponse' :: Maybe Text
clientRequestToken = Maybe Text
a} :: DescribeProjectResponse)
describeProjectResponse_createdTimeStamp :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.UTCTime)
describeProjectResponse_createdTimeStamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_createdTimeStamp = (DescribeProjectResponse -> Maybe POSIX)
-> (DescribeProjectResponse
-> Maybe POSIX -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe POSIX
createdTimeStamp :: Maybe POSIX
$sel:createdTimeStamp:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe POSIX
createdTimeStamp} -> Maybe POSIX
createdTimeStamp) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe POSIX
a -> DescribeProjectResponse
s {$sel:createdTimeStamp:DescribeProjectResponse' :: Maybe POSIX
createdTimeStamp = Maybe POSIX
a} :: DescribeProjectResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeProjectResponse -> f DescribeProjectResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeProjectResponse
-> f DescribeProjectResponse
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
describeProjectResponse_description :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_description = (DescribeProjectResponse -> Maybe (Sensitive Text))
-> (DescribeProjectResponse
-> Maybe (Sensitive Text) -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe (Sensitive Text)
a -> DescribeProjectResponse
s {$sel:description:DescribeProjectResponse' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: DescribeProjectResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DescribeProjectResponse -> f DescribeProjectResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse
-> f DescribeProjectResponse
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
describeProjectResponse_httpStatus :: Lens.Lens' DescribeProjectResponse Prelude.Int
describeProjectResponse_httpStatus :: (Int -> f Int)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_httpStatus = (DescribeProjectResponse -> Int)
-> (DescribeProjectResponse -> Int -> DescribeProjectResponse)
-> Lens DescribeProjectResponse DescribeProjectResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeProjectResponse' :: DescribeProjectResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Int
a -> DescribeProjectResponse
s {$sel:httpStatus:DescribeProjectResponse' :: Int
httpStatus = Int
a} :: DescribeProjectResponse)
instance Prelude.NFData DescribeProjectResponse