{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.DescribeProject
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes the details of a project.
module Amazonka.SageMaker.DescribeProject
  ( -- * Creating a Request
    DescribeProject (..),
    newDescribeProject,

    -- * Request Lenses
    describeProject_projectName,

    -- * Destructuring the Response
    DescribeProjectResponse (..),
    newDescribeProjectResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newDescribeProject' smart constructor.
data DescribeProject = DescribeProject'
  { -- | The name of the project to describe.
    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)

-- |
-- Create a value of 'DescribeProject' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'projectName', 'describeProject_projectName' - The name of the project to describe.
newDescribeProject ::
  -- | 'projectName'
  Prelude.Text ->
  DescribeProject
newDescribeProject :: Text -> DescribeProject
newDescribeProject Text
pProjectName_ =
  DescribeProject' :: Text -> DescribeProject
DescribeProject' {$sel:projectName:DescribeProject' :: Text
projectName = Text
pProjectName_}

-- | The name of the project to describe.
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

-- | /See:/ 'newDescribeProjectResponse' smart constructor.
data DescribeProjectResponse = DescribeProjectResponse'
  { -- | Information about a provisioned service catalog product.
    DescribeProjectResponse
-> Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails :: Prelude.Maybe ServiceCatalogProvisionedProductDetails,
    DescribeProjectResponse -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
    -- | The description of the project.
    DescribeProjectResponse -> Maybe Text
projectDescription :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeProjectResponse -> Int
httpStatus :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the project.
    DescribeProjectResponse -> Text
projectArn :: Prelude.Text,
    -- | The name of the project.
    DescribeProjectResponse -> Text
projectName :: Prelude.Text,
    -- | The ID of the project.
    DescribeProjectResponse -> Text
projectId :: Prelude.Text,
    -- | Information used to provision a service catalog product. For
    -- information, see
    -- <https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html What is Amazon Web Services Service Catalog>.
    DescribeProjectResponse -> ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails :: ServiceCatalogProvisioningDetails,
    -- | The status of the project.
    DescribeProjectResponse -> ProjectStatus
projectStatus :: ProjectStatus,
    -- | The time when the project was created.
    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)

-- |
-- Create a value of 'DescribeProjectResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'serviceCatalogProvisionedProductDetails', 'describeProjectResponse_serviceCatalogProvisionedProductDetails' - Information about a provisioned service catalog product.
--
-- 'createdBy', 'describeProjectResponse_createdBy' - Undocumented member.
--
-- 'projectDescription', 'describeProjectResponse_projectDescription' - The description of the project.
--
-- 'httpStatus', 'describeProjectResponse_httpStatus' - The response's http status code.
--
-- 'projectArn', 'describeProjectResponse_projectArn' - The Amazon Resource Name (ARN) of the project.
--
-- 'projectName', 'describeProjectResponse_projectName' - The name of the project.
--
-- 'projectId', 'describeProjectResponse_projectId' - The ID of the project.
--
-- 'serviceCatalogProvisioningDetails', 'describeProjectResponse_serviceCatalogProvisioningDetails' - Information used to provision a service catalog product. For
-- information, see
-- <https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html What is Amazon Web Services Service Catalog>.
--
-- 'projectStatus', 'describeProjectResponse_projectStatus' - The status of the project.
--
-- 'creationTime', 'describeProjectResponse_creationTime' - The time when the project was created.
newDescribeProjectResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'projectArn'
  Prelude.Text ->
  -- | 'projectName'
  Prelude.Text ->
  -- | 'projectId'
  Prelude.Text ->
  -- | 'serviceCatalogProvisioningDetails'
  ServiceCatalogProvisioningDetails ->
  -- | 'projectStatus'
  ProjectStatus ->
  -- | 'creationTime'
  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_
      }

-- | Information about a provisioned service catalog product.
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)

-- | Undocumented member.
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)

-- | The description of the project.
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)

-- | The response's http status code.
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)

-- | The Amazon Resource Name (ARN) of the project.
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)

-- | The name of the project.
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)

-- | The ID of the project.
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)

-- | Information used to provision a service catalog product. For
-- information, see
-- <https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html What is Amazon Web Services Service Catalog>.
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)

-- | The status of the project.
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)

-- | The time when the project was created.
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