{-# 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.SageMaker.DescribeProject
(
DescribeProject (..),
newDescribeProject,
describeProject_projectName,
DescribeProjectResponse (..),
newDescribeProjectResponse,
describeProjectResponse_serviceCatalogProvisionedProductDetails,
describeProjectResponse_createdBy,
describeProjectResponse_projectDescription,
describeProjectResponse_httpStatus,
describeProjectResponse_projectArn,
describeProjectResponse_projectName,
describeProjectResponse_projectId,
describeProjectResponse_serviceCatalogProvisioningDetails,
describeProjectResponse_projectStatus,
describeProjectResponse_creationTime,
)
where
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
import Amazonka.SageMaker.Types
data DescribeProject = DescribeProject'
{
DescribeProject -> Text
projectName :: 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
pProjectName_ =
DescribeProject' :: Text -> DescribeProject
DescribeProject' {$sel:projectName:DescribeProject' :: Text
projectName = Text
pProjectName_}
describeProject_projectName :: Lens.Lens' DescribeProject Prelude.Text
describeProject_projectName :: (Text -> f Text) -> DescribeProject -> f DescribeProject
describeProject_projectName = (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
projectName :: Text
$sel:projectName:DescribeProject' :: DescribeProject -> Text
projectName} -> Text
projectName) (\s :: DescribeProject
s@DescribeProject' {} Text
a -> DescribeProject
s {$sel:projectName:DescribeProject' :: Text
projectName = 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 ServiceCatalogProvisionedProductDetails
-> Maybe UserContext
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse
DescribeProjectResponse'
(Maybe ServiceCatalogProvisionedProductDetails
-> Maybe UserContext
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String (Maybe ServiceCatalogProvisionedProductDetails)
-> Either
String
(Maybe UserContext
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
Object
-> Text
-> Either String (Maybe ServiceCatalogProvisionedProductDetails)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceCatalogProvisionedProductDetails"
)
Either
String
(Maybe UserContext
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String (Maybe UserContext)
-> Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserContext)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedBy")
Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> 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
"ProjectDescription")
Either
String
(Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String Int
-> Either
String
(Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> 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))
Either
String
(Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ProjectArn")
Either
String
(Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String Text
-> Either
String
(Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ProjectName")
Either
String
(Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse)
-> Either String Text
-> Either
String
(ServiceCatalogProvisioningDetails
-> ProjectStatus -> POSIX -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ProjectId")
Either
String
(ServiceCatalogProvisioningDetails
-> ProjectStatus -> POSIX -> DescribeProjectResponse)
-> Either String ServiceCatalogProvisioningDetails
-> Either
String (ProjectStatus -> POSIX -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ServiceCatalogProvisioningDetails
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ServiceCatalogProvisioningDetails")
Either String (ProjectStatus -> POSIX -> DescribeProjectResponse)
-> Either String ProjectStatus
-> Either String (POSIX -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ProjectStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ProjectStatus")
Either String (POSIX -> DescribeProjectResponse)
-> Either String POSIX -> Either String DescribeProjectResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreationTime")
)
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
"SageMaker.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
projectName :: Text
$sel:projectName: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
"ProjectName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
projectName)]
)
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 ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails :: Prelude.Maybe ServiceCatalogProvisionedProductDetails,
DescribeProjectResponse -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
DescribeProjectResponse -> Maybe Text
projectDescription :: Prelude.Maybe Prelude.Text,
DescribeProjectResponse -> Int
httpStatus :: Prelude.Int,
DescribeProjectResponse -> Text
projectArn :: Prelude.Text,
DescribeProjectResponse -> Text
projectName :: Prelude.Text,
DescribeProjectResponse -> Text
projectId :: Prelude.Text,
DescribeProjectResponse -> ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails :: ServiceCatalogProvisioningDetails,
DescribeProjectResponse -> ProjectStatus
projectStatus :: ProjectStatus,
DescribeProjectResponse -> POSIX
creationTime :: Core.POSIX
}
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, ReadPrec [DescribeProjectResponse]
ReadPrec DescribeProjectResponse
Int -> ReadS DescribeProjectResponse
ReadS [DescribeProjectResponse]
(Int -> ReadS DescribeProjectResponse)
-> ReadS [DescribeProjectResponse]
-> ReadPrec DescribeProjectResponse
-> ReadPrec [DescribeProjectResponse]
-> Read DescribeProjectResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProjectResponse]
$creadListPrec :: ReadPrec [DescribeProjectResponse]
readPrec :: ReadPrec DescribeProjectResponse
$creadPrec :: ReadPrec DescribeProjectResponse
readList :: ReadS [DescribeProjectResponse]
$creadList :: ReadS [DescribeProjectResponse]
readsPrec :: Int -> ReadS DescribeProjectResponse
$creadsPrec :: Int -> ReadS DescribeProjectResponse
Prelude.Read, 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 ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ServiceCatalogProvisioningDetails ->
ProjectStatus ->
Prelude.UTCTime ->
DescribeProjectResponse
newDescribeProjectResponse :: Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> UTCTime
-> DescribeProjectResponse
newDescribeProjectResponse
Int
pHttpStatus_
Text
pProjectArn_
Text
pProjectName_
Text
pProjectId_
ServiceCatalogProvisioningDetails
pServiceCatalogProvisioningDetails_
ProjectStatus
pProjectStatus_
UTCTime
pCreationTime_ =
DescribeProjectResponse' :: Maybe ServiceCatalogProvisionedProductDetails
-> Maybe UserContext
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> ServiceCatalogProvisioningDetails
-> ProjectStatus
-> POSIX
-> DescribeProjectResponse
DescribeProjectResponse'
{ $sel:serviceCatalogProvisionedProductDetails:DescribeProjectResponse' :: Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails =
Maybe ServiceCatalogProvisionedProductDetails
forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:DescribeProjectResponse' :: Maybe UserContext
createdBy = Maybe UserContext
forall a. Maybe a
Prelude.Nothing,
$sel:projectDescription:DescribeProjectResponse' :: Maybe Text
projectDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeProjectResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:projectArn:DescribeProjectResponse' :: Text
projectArn = Text
pProjectArn_,
$sel:projectName:DescribeProjectResponse' :: Text
projectName = Text
pProjectName_,
$sel:projectId:DescribeProjectResponse' :: Text
projectId = Text
pProjectId_,
$sel:serviceCatalogProvisioningDetails:DescribeProjectResponse' :: ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails =
ServiceCatalogProvisioningDetails
pServiceCatalogProvisioningDetails_,
$sel:projectStatus:DescribeProjectResponse' :: ProjectStatus
projectStatus = ProjectStatus
pProjectStatus_,
$sel:creationTime:DescribeProjectResponse' :: POSIX
creationTime = 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
pCreationTime_
}
describeProjectResponse_serviceCatalogProvisionedProductDetails :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe ServiceCatalogProvisionedProductDetails)
describeProjectResponse_serviceCatalogProvisionedProductDetails :: (Maybe ServiceCatalogProvisionedProductDetails
-> f (Maybe ServiceCatalogProvisionedProductDetails))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_serviceCatalogProvisionedProductDetails = (DescribeProjectResponse
-> Maybe ServiceCatalogProvisionedProductDetails)
-> (DescribeProjectResponse
-> Maybe ServiceCatalogProvisionedProductDetails
-> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe ServiceCatalogProvisionedProductDetails)
(Maybe ServiceCatalogProvisionedProductDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails :: Maybe ServiceCatalogProvisionedProductDetails
$sel:serviceCatalogProvisionedProductDetails:DescribeProjectResponse' :: DescribeProjectResponse
-> Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails} -> Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe ServiceCatalogProvisionedProductDetails
a -> DescribeProjectResponse
s {$sel:serviceCatalogProvisionedProductDetails:DescribeProjectResponse' :: Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails = Maybe ServiceCatalogProvisionedProductDetails
a} :: DescribeProjectResponse)
describeProjectResponse_createdBy :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe UserContext)
describeProjectResponse_createdBy :: (Maybe UserContext -> f (Maybe UserContext))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_createdBy = (DescribeProjectResponse -> Maybe UserContext)
-> (DescribeProjectResponse
-> Maybe UserContext -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
(Maybe UserContext)
(Maybe UserContext)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe UserContext
createdBy :: Maybe UserContext
$sel:createdBy:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe UserContext
createdBy} -> Maybe UserContext
createdBy) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe UserContext
a -> DescribeProjectResponse
s {$sel:createdBy:DescribeProjectResponse' :: Maybe UserContext
createdBy = Maybe UserContext
a} :: DescribeProjectResponse)
describeProjectResponse_projectDescription :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_projectDescription :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectDescription = (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
projectDescription :: Maybe Text
$sel:projectDescription:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
projectDescription} -> Maybe Text
projectDescription) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:projectDescription:DescribeProjectResponse' :: Maybe Text
projectDescription = Maybe Text
a} :: DescribeProjectResponse)
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)
describeProjectResponse_projectArn :: Lens.Lens' DescribeProjectResponse Prelude.Text
describeProjectResponse_projectArn :: (Text -> f Text)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectArn = (DescribeProjectResponse -> Text)
-> (DescribeProjectResponse -> Text -> DescribeProjectResponse)
-> Lens DescribeProjectResponse DescribeProjectResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Text
projectArn :: Text
$sel:projectArn:DescribeProjectResponse' :: DescribeProjectResponse -> Text
projectArn} -> Text
projectArn) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Text
a -> DescribeProjectResponse
s {$sel:projectArn:DescribeProjectResponse' :: Text
projectArn = Text
a} :: DescribeProjectResponse)
describeProjectResponse_projectName :: Lens.Lens' DescribeProjectResponse Prelude.Text
describeProjectResponse_projectName :: (Text -> f Text)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectName = (DescribeProjectResponse -> Text)
-> (DescribeProjectResponse -> Text -> DescribeProjectResponse)
-> Lens DescribeProjectResponse DescribeProjectResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Text
projectName :: Text
$sel:projectName:DescribeProjectResponse' :: DescribeProjectResponse -> Text
projectName} -> Text
projectName) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Text
a -> DescribeProjectResponse
s {$sel:projectName:DescribeProjectResponse' :: Text
projectName = Text
a} :: DescribeProjectResponse)
describeProjectResponse_projectId :: Lens.Lens' DescribeProjectResponse Prelude.Text
describeProjectResponse_projectId :: (Text -> f Text)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectId = (DescribeProjectResponse -> Text)
-> (DescribeProjectResponse -> Text -> DescribeProjectResponse)
-> Lens DescribeProjectResponse DescribeProjectResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Text
projectId :: Text
$sel:projectId:DescribeProjectResponse' :: DescribeProjectResponse -> Text
projectId} -> Text
projectId) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Text
a -> DescribeProjectResponse
s {$sel:projectId:DescribeProjectResponse' :: Text
projectId = Text
a} :: DescribeProjectResponse)
describeProjectResponse_serviceCatalogProvisioningDetails :: Lens.Lens' DescribeProjectResponse ServiceCatalogProvisioningDetails
describeProjectResponse_serviceCatalogProvisioningDetails :: (ServiceCatalogProvisioningDetails
-> f ServiceCatalogProvisioningDetails)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_serviceCatalogProvisioningDetails = (DescribeProjectResponse -> ServiceCatalogProvisioningDetails)
-> (DescribeProjectResponse
-> ServiceCatalogProvisioningDetails -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
ServiceCatalogProvisioningDetails
ServiceCatalogProvisioningDetails
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails :: ServiceCatalogProvisioningDetails
$sel:serviceCatalogProvisioningDetails:DescribeProjectResponse' :: DescribeProjectResponse -> ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails} -> ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} ServiceCatalogProvisioningDetails
a -> DescribeProjectResponse
s {$sel:serviceCatalogProvisioningDetails:DescribeProjectResponse' :: ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails = ServiceCatalogProvisioningDetails
a} :: DescribeProjectResponse)
describeProjectResponse_projectStatus :: Lens.Lens' DescribeProjectResponse ProjectStatus
describeProjectResponse_projectStatus :: (ProjectStatus -> f ProjectStatus)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectStatus = (DescribeProjectResponse -> ProjectStatus)
-> (DescribeProjectResponse
-> ProjectStatus -> DescribeProjectResponse)
-> Lens
DescribeProjectResponse
DescribeProjectResponse
ProjectStatus
ProjectStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {ProjectStatus
projectStatus :: ProjectStatus
$sel:projectStatus:DescribeProjectResponse' :: DescribeProjectResponse -> ProjectStatus
projectStatus} -> ProjectStatus
projectStatus) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} ProjectStatus
a -> DescribeProjectResponse
s {$sel:projectStatus:DescribeProjectResponse' :: ProjectStatus
projectStatus = ProjectStatus
a} :: DescribeProjectResponse)
describeProjectResponse_creationTime :: Lens.Lens' DescribeProjectResponse Prelude.UTCTime
describeProjectResponse_creationTime :: (UTCTime -> f UTCTime)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_creationTime = (DescribeProjectResponse -> POSIX)
-> (DescribeProjectResponse -> POSIX -> DescribeProjectResponse)
-> Lens DescribeProjectResponse DescribeProjectResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeProjectResponse' :: DescribeProjectResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} POSIX
a -> DescribeProjectResponse
s {$sel:creationTime:DescribeProjectResponse' :: POSIX
creationTime = POSIX
a} :: DescribeProjectResponse) ((POSIX -> f POSIX)
-> DescribeProjectResponse -> f DescribeProjectResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeProjectResponse
-> f DescribeProjectResponse
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
instance Prelude.NFData DescribeProjectResponse