{-# 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.CodeStar.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 a project and its resources.
module Amazonka.CodeStar.DescribeProject
  ( -- * Creating a Request
    DescribeProject (..),
    newDescribeProject,

    -- * Request Lenses
    describeProject_id,

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

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

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

-- |
-- 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:
--
-- 'id', 'describeProject_id' - The ID of the project.
newDescribeProject ::
  -- | 'id'
  Prelude.Text ->
  DescribeProject
newDescribeProject :: Text -> DescribeProject
newDescribeProject Text
pId_ = DescribeProject' :: Text -> DescribeProject
DescribeProject' {$sel:id:DescribeProject' :: Text
id = Text
pId_}

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

-- | /See:/ 'newDescribeProjectResponse' smart constructor.
data DescribeProjectResponse = DescribeProjectResponse'
  { -- | The project creation or deletion status.
    DescribeProjectResponse -> Maybe ProjectStatus
status :: Prelude.Maybe ProjectStatus,
    -- | The Amazon Resource Name (ARN) for the project.
    DescribeProjectResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The ID for the AWS CodeStar project template used to create the project.
    DescribeProjectResponse -> Maybe Text
projectTemplateId :: Prelude.Maybe Prelude.Text,
    -- | The display name for the project.
    DescribeProjectResponse -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The ID of the project.
    DescribeProjectResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The ID of the primary stack in AWS CloudFormation used to generate
    -- resources for the project.
    DescribeProjectResponse -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
    -- | A user- or system-generated token that identifies the entity that
    -- requested project creation.
    DescribeProjectResponse -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
    -- | The date and time the project was created, in timestamp format.
    DescribeProjectResponse -> Maybe POSIX
createdTimeStamp :: Prelude.Maybe Core.POSIX,
    -- | The description of the project, if any.
    DescribeProjectResponse -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The response's http status code.
    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)

-- |
-- 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:
--
-- 'status', 'describeProjectResponse_status' - The project creation or deletion status.
--
-- 'arn', 'describeProjectResponse_arn' - The Amazon Resource Name (ARN) for the project.
--
-- 'projectTemplateId', 'describeProjectResponse_projectTemplateId' - The ID for the AWS CodeStar project template used to create the project.
--
-- 'name', 'describeProjectResponse_name' - The display name for the project.
--
-- 'id', 'describeProjectResponse_id' - The ID of the project.
--
-- 'stackId', 'describeProjectResponse_stackId' - The ID of the primary stack in AWS CloudFormation used to generate
-- resources for the project.
--
-- 'clientRequestToken', 'describeProjectResponse_clientRequestToken' - A user- or system-generated token that identifies the entity that
-- requested project creation.
--
-- 'createdTimeStamp', 'describeProjectResponse_createdTimeStamp' - The date and time the project was created, in timestamp format.
--
-- 'description', 'describeProjectResponse_description' - The description of the project, if any.
--
-- 'httpStatus', 'describeProjectResponse_httpStatus' - The response's http status code.
newDescribeProjectResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The project creation or deletion status.
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)

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

-- | The ID for the AWS CodeStar project template used to create the project.
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)

-- | The display name for the project.
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

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

-- | The ID of the primary stack in AWS CloudFormation used to generate
-- resources for the project.
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)

-- | A user- or system-generated token that identifies the entity that
-- requested project creation.
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)

-- | The date and time the project was created, in timestamp format.
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

-- | The description of the project, if any.
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

-- | 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)

instance Prelude.NFData DescribeProjectResponse