{-# 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.IoTSiteWise.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)
--
-- Retrieves information about a project.
module Amazonka.IoTSiteWise.DescribeProject
  ( -- * Creating a Request
    DescribeProject (..),
    newDescribeProject,

    -- * Request Lenses
    describeProject_projectId,

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

    -- * Response Lenses
    describeProjectResponse_projectDescription,
    describeProjectResponse_httpStatus,
    describeProjectResponse_projectId,
    describeProjectResponse_projectArn,
    describeProjectResponse_projectName,
    describeProjectResponse_portalId,
    describeProjectResponse_projectCreationDate,
    describeProjectResponse_projectLastUpdateDate,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTSiteWise.Types
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
projectId :: 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:
--
-- 'projectId', 'describeProject_projectId' - The ID of the project.
newDescribeProject ::
  -- | 'projectId'
  Prelude.Text ->
  DescribeProject
newDescribeProject :: Text -> DescribeProject
newDescribeProject Text
pProjectId_ =
  DescribeProject' :: Text -> DescribeProject
DescribeProject' {$sel:projectId:DescribeProject' :: Text
projectId = Text
pProjectId_}

-- | The ID of the project.
describeProject_projectId :: Lens.Lens' DescribeProject Prelude.Text
describeProject_projectId :: (Text -> f Text) -> DescribeProject -> f DescribeProject
describeProject_projectId = (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
projectId :: Text
$sel:projectId:DescribeProject' :: DescribeProject -> Text
projectId} -> Text
projectId) (\s :: DescribeProject
s@DescribeProject' {} Text
a -> DescribeProject
s {$sel:projectId:DescribeProject' :: Text
projectId = 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 => Service -> a -> Request a
Request.get 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 Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> DescribeProjectResponse
DescribeProjectResponse'
            (Maybe Text
 -> Int
 -> Text
 -> Text
 -> Text
 -> Text
 -> POSIX
 -> POSIX
 -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> Text
      -> Text
      -> Text
      -> Text
      -> POSIX
      -> POSIX
      -> DescribeProjectResponse)
forall (f :: * -> *) a b. Functor 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
   -> Text
   -> POSIX
   -> POSIX
   -> DescribeProjectResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> Text
      -> Text
      -> POSIX
      -> 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
   -> Text
   -> POSIX
   -> POSIX
   -> DescribeProjectResponse)
-> Either String Text
-> Either
     String
     (Text -> Text -> Text -> POSIX -> 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
  (Text -> Text -> Text -> POSIX -> POSIX -> DescribeProjectResponse)
-> Either String Text
-> Either
     String (Text -> Text -> POSIX -> 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 -> POSIX -> POSIX -> DescribeProjectResponse)
-> Either String Text
-> Either
     String (Text -> POSIX -> 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 -> POSIX -> POSIX -> DescribeProjectResponse)
-> Either String Text
-> Either String (POSIX -> 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
"portalId")
            Either String (POSIX -> POSIX -> DescribeProjectResponse)
-> Either String POSIX
-> Either String (POSIX -> 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
"projectCreationDate")
            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
"projectLastUpdateDate")
      )

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
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeProject where
  toPath :: DescribeProject -> ByteString
toPath DescribeProject' {Text
projectId :: Text
$sel:projectId:DescribeProject' :: DescribeProject -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/projects/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
projectId]

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\'s description.
    DescribeProjectResponse -> Maybe Text
projectDescription :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeProjectResponse -> Int
httpStatus :: Prelude.Int,
    -- | The ID of the project.
    DescribeProjectResponse -> Text
projectId :: Prelude.Text,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
    -- of the project, which has the following format.
    --
    -- @arn:${Partition}:iotsitewise:${Region}:${Account}:project\/${ProjectId}@
    DescribeProjectResponse -> Text
projectArn :: Prelude.Text,
    -- | The name of the project.
    DescribeProjectResponse -> Text
projectName :: Prelude.Text,
    -- | The ID of the portal that the project is in.
    DescribeProjectResponse -> Text
portalId :: Prelude.Text,
    -- | The date the project was created, in Unix epoch time.
    DescribeProjectResponse -> POSIX
projectCreationDate :: Core.POSIX,
    -- | The date the project was last updated, in Unix epoch time.
    DescribeProjectResponse -> POSIX
projectLastUpdateDate :: 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:
--
-- 'projectDescription', 'describeProjectResponse_projectDescription' - The project\'s description.
--
-- 'httpStatus', 'describeProjectResponse_httpStatus' - The response's http status code.
--
-- 'projectId', 'describeProjectResponse_projectId' - The ID of the project.
--
-- 'projectArn', 'describeProjectResponse_projectArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the project, which has the following format.
--
-- @arn:${Partition}:iotsitewise:${Region}:${Account}:project\/${ProjectId}@
--
-- 'projectName', 'describeProjectResponse_projectName' - The name of the project.
--
-- 'portalId', 'describeProjectResponse_portalId' - The ID of the portal that the project is in.
--
-- 'projectCreationDate', 'describeProjectResponse_projectCreationDate' - The date the project was created, in Unix epoch time.
--
-- 'projectLastUpdateDate', 'describeProjectResponse_projectLastUpdateDate' - The date the project was last updated, in Unix epoch time.
newDescribeProjectResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'projectId'
  Prelude.Text ->
  -- | 'projectArn'
  Prelude.Text ->
  -- | 'projectName'
  Prelude.Text ->
  -- | 'portalId'
  Prelude.Text ->
  -- | 'projectCreationDate'
  Prelude.UTCTime ->
  -- | 'projectLastUpdateDate'
  Prelude.UTCTime ->
  DescribeProjectResponse
newDescribeProjectResponse :: Int
-> Text
-> Text
-> Text
-> Text
-> UTCTime
-> UTCTime
-> DescribeProjectResponse
newDescribeProjectResponse
  Int
pHttpStatus_
  Text
pProjectId_
  Text
pProjectArn_
  Text
pProjectName_
  Text
pPortalId_
  UTCTime
pProjectCreationDate_
  UTCTime
pProjectLastUpdateDate_ =
    DescribeProjectResponse' :: Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> DescribeProjectResponse
DescribeProjectResponse'
      { $sel:projectDescription:DescribeProjectResponse' :: Maybe Text
projectDescription =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeProjectResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:projectId:DescribeProjectResponse' :: Text
projectId = Text
pProjectId_,
        $sel:projectArn:DescribeProjectResponse' :: Text
projectArn = Text
pProjectArn_,
        $sel:projectName:DescribeProjectResponse' :: Text
projectName = Text
pProjectName_,
        $sel:portalId:DescribeProjectResponse' :: Text
portalId = Text
pPortalId_,
        $sel:projectCreationDate:DescribeProjectResponse' :: POSIX
projectCreationDate =
          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
pProjectCreationDate_,
        $sel:projectLastUpdateDate:DescribeProjectResponse' :: POSIX
projectLastUpdateDate =
          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
pProjectLastUpdateDate_
      }

-- | The project\'s description.
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 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)

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the project, which has the following format.
--
-- @arn:${Partition}:iotsitewise:${Region}:${Account}:project\/${ProjectId}@
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 portal that the project is in.
describeProjectResponse_portalId :: Lens.Lens' DescribeProjectResponse Prelude.Text
describeProjectResponse_portalId :: (Text -> f Text)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_portalId = (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
portalId :: Text
$sel:portalId:DescribeProjectResponse' :: DescribeProjectResponse -> Text
portalId} -> Text
portalId) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Text
a -> DescribeProjectResponse
s {$sel:portalId:DescribeProjectResponse' :: Text
portalId = Text
a} :: DescribeProjectResponse)

-- | The date the project was created, in Unix epoch time.
describeProjectResponse_projectCreationDate :: Lens.Lens' DescribeProjectResponse Prelude.UTCTime
describeProjectResponse_projectCreationDate :: (UTCTime -> f UTCTime)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectCreationDate = (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
projectCreationDate :: POSIX
$sel:projectCreationDate:DescribeProjectResponse' :: DescribeProjectResponse -> POSIX
projectCreationDate} -> POSIX
projectCreationDate) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} POSIX
a -> DescribeProjectResponse
s {$sel:projectCreationDate:DescribeProjectResponse' :: POSIX
projectCreationDate = 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

-- | The date the project was last updated, in Unix epoch time.
describeProjectResponse_projectLastUpdateDate :: Lens.Lens' DescribeProjectResponse Prelude.UTCTime
describeProjectResponse_projectLastUpdateDate :: (UTCTime -> f UTCTime)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_projectLastUpdateDate = (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
projectLastUpdateDate :: POSIX
$sel:projectLastUpdateDate:DescribeProjectResponse' :: DescribeProjectResponse -> POSIX
projectLastUpdateDate} -> POSIX
projectLastUpdateDate) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} POSIX
a -> DescribeProjectResponse
s {$sel:projectLastUpdateDate:DescribeProjectResponse' :: POSIX
projectLastUpdateDate = 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