{-# 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.DataBrew.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)
--
-- Returns the definition of a specific DataBrew project.
module Amazonka.DataBrew.DescribeProject
  ( -- * Creating a Request
    DescribeProject (..),
    newDescribeProject,

    -- * Request Lenses
    describeProject_name,

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

    -- * Response Lenses
    describeProjectResponse_lastModifiedDate,
    describeProjectResponse_sessionStatus,
    describeProjectResponse_openDate,
    describeProjectResponse_createDate,
    describeProjectResponse_createdBy,
    describeProjectResponse_resourceArn,
    describeProjectResponse_recipeName,
    describeProjectResponse_datasetName,
    describeProjectResponse_lastModifiedBy,
    describeProjectResponse_sample,
    describeProjectResponse_openedBy,
    describeProjectResponse_tags,
    describeProjectResponse_roleArn,
    describeProjectResponse_httpStatus,
    describeProjectResponse_name,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DataBrew.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 name of the project to be described.
    DescribeProject -> Text
name :: 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:
--
-- 'name', 'describeProject_name' - The name of the project to be described.
newDescribeProject ::
  -- | 'name'
  Prelude.Text ->
  DescribeProject
newDescribeProject :: Text -> DescribeProject
newDescribeProject Text
pName_ =
  DescribeProject' :: Text -> DescribeProject
DescribeProject' {$sel:name:DescribeProject' :: Text
name = Text
pName_}

-- | The name of the project to be described.
describeProject_name :: Lens.Lens' DescribeProject Prelude.Text
describeProject_name :: (Text -> f Text) -> DescribeProject -> f DescribeProject
describeProject_name = (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
name :: Text
$sel:name:DescribeProject' :: DescribeProject -> Text
name} -> Text
name) (\s :: DescribeProject
s@DescribeProject' {} Text
a -> DescribeProject
s {$sel:name:DescribeProject' :: Text
name = 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 POSIX
-> Maybe SessionStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Sample
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> Text
-> DescribeProjectResponse
DescribeProjectResponse'
            (Maybe POSIX
 -> Maybe SessionStatus
 -> Maybe POSIX
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Sample
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Int
 -> Text
 -> DescribeProjectResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe SessionStatus
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> DescribeProjectResponse)
forall (f :: * -> *) a b. Functor 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
"LastModifiedDate")
            Either
  String
  (Maybe SessionStatus
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe SessionStatus)
-> Either
     String
     (Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SessionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SessionStatus")
            Either
  String
  (Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"OpenDate")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"CreateDate")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"CreatedBy")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"ResourceArn")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"RecipeName")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"DatasetName")
            Either
  String
  (Maybe Text
   -> Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Sample
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> 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
"LastModifiedBy")
            Either
  String
  (Maybe Sample
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Sample)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Int
      -> Text
      -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Sample)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Sample")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Int
   -> Text
   -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Maybe Text -> Int -> Text -> 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
"OpenedBy")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Maybe Text -> Int -> Text -> DescribeProjectResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String (Maybe Text -> Int -> Text -> DescribeProjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either
  String (Maybe Text -> Int -> Text -> DescribeProjectResponse)
-> Either String (Maybe Text)
-> Either String (Int -> Text -> 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
"RoleArn")
            Either String (Int -> Text -> DescribeProjectResponse)
-> Either String Int
-> Either String (Text -> 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 -> DescribeProjectResponse)
-> Either String Text -> Either String 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
"Name")
      )

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
name :: Text
$sel:name: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
name]

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 date and time that the project was last modified.
    DescribeProjectResponse -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Core.POSIX,
    -- | Describes the current state of the session:
    --
    -- -   @PROVISIONING@ - allocating resources for the session.
    --
    -- -   @INITIALIZING@ - getting the session ready for first use.
    --
    -- -   @ASSIGNED@ - the session is ready for use.
    DescribeProjectResponse -> Maybe SessionStatus
sessionStatus :: Prelude.Maybe SessionStatus,
    -- | The date and time when the project was opened.
    DescribeProjectResponse -> Maybe POSIX
openDate :: Prelude.Maybe Core.POSIX,
    -- | The date and time that the project was created.
    DescribeProjectResponse -> Maybe POSIX
createDate :: Prelude.Maybe Core.POSIX,
    -- | The identifier (user name) of the user who created the project.
    DescribeProjectResponse -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the project.
    DescribeProjectResponse -> Maybe Text
resourceArn :: Prelude.Maybe Prelude.Text,
    -- | The recipe associated with this job.
    DescribeProjectResponse -> Maybe Text
recipeName :: Prelude.Maybe Prelude.Text,
    -- | The dataset associated with the project.
    DescribeProjectResponse -> Maybe Text
datasetName :: Prelude.Maybe Prelude.Text,
    -- | The identifier (user name) of the user who last modified the project.
    DescribeProjectResponse -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
    DescribeProjectResponse -> Maybe Sample
sample :: Prelude.Maybe Sample,
    -- | The identifier (user name) of the user that opened the project for use.
    DescribeProjectResponse -> Maybe Text
openedBy :: Prelude.Maybe Prelude.Text,
    -- | Metadata tags associated with this project.
    DescribeProjectResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The ARN of the Identity and Access Management (IAM) role to be assumed
    -- when DataBrew runs the job.
    DescribeProjectResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeProjectResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the project.
    DescribeProjectResponse -> Text
name :: Prelude.Text
  }
  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:
--
-- 'lastModifiedDate', 'describeProjectResponse_lastModifiedDate' - The date and time that the project was last modified.
--
-- 'sessionStatus', 'describeProjectResponse_sessionStatus' - Describes the current state of the session:
--
-- -   @PROVISIONING@ - allocating resources for the session.
--
-- -   @INITIALIZING@ - getting the session ready for first use.
--
-- -   @ASSIGNED@ - the session is ready for use.
--
-- 'openDate', 'describeProjectResponse_openDate' - The date and time when the project was opened.
--
-- 'createDate', 'describeProjectResponse_createDate' - The date and time that the project was created.
--
-- 'createdBy', 'describeProjectResponse_createdBy' - The identifier (user name) of the user who created the project.
--
-- 'resourceArn', 'describeProjectResponse_resourceArn' - The Amazon Resource Name (ARN) of the project.
--
-- 'recipeName', 'describeProjectResponse_recipeName' - The recipe associated with this job.
--
-- 'datasetName', 'describeProjectResponse_datasetName' - The dataset associated with the project.
--
-- 'lastModifiedBy', 'describeProjectResponse_lastModifiedBy' - The identifier (user name) of the user who last modified the project.
--
-- 'sample', 'describeProjectResponse_sample' - Undocumented member.
--
-- 'openedBy', 'describeProjectResponse_openedBy' - The identifier (user name) of the user that opened the project for use.
--
-- 'tags', 'describeProjectResponse_tags' - Metadata tags associated with this project.
--
-- 'roleArn', 'describeProjectResponse_roleArn' - The ARN of the Identity and Access Management (IAM) role to be assumed
-- when DataBrew runs the job.
--
-- 'httpStatus', 'describeProjectResponse_httpStatus' - The response's http status code.
--
-- 'name', 'describeProjectResponse_name' - The name of the project.
newDescribeProjectResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'name'
  Prelude.Text ->
  DescribeProjectResponse
newDescribeProjectResponse :: Int -> Text -> DescribeProjectResponse
newDescribeProjectResponse Int
pHttpStatus_ Text
pName_ =
  DescribeProjectResponse' :: Maybe POSIX
-> Maybe SessionStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Sample
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> Text
-> DescribeProjectResponse
DescribeProjectResponse'
    { $sel:lastModifiedDate:DescribeProjectResponse' :: Maybe POSIX
lastModifiedDate =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:sessionStatus:DescribeProjectResponse' :: Maybe SessionStatus
sessionStatus = Maybe SessionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:openDate:DescribeProjectResponse' :: Maybe POSIX
openDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:createDate:DescribeProjectResponse' :: Maybe POSIX
createDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:DescribeProjectResponse' :: Maybe Text
createdBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceArn:DescribeProjectResponse' :: Maybe Text
resourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:recipeName:DescribeProjectResponse' :: Maybe Text
recipeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetName:DescribeProjectResponse' :: Maybe Text
datasetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:DescribeProjectResponse' :: Maybe Text
lastModifiedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sample:DescribeProjectResponse' :: Maybe Sample
sample = Maybe Sample
forall a. Maybe a
Prelude.Nothing,
      $sel:openedBy:DescribeProjectResponse' :: Maybe Text
openedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeProjectResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:DescribeProjectResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeProjectResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:name:DescribeProjectResponse' :: Text
name = Text
pName_
    }

-- | The date and time that the project was last modified.
describeProjectResponse_lastModifiedDate :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.UTCTime)
describeProjectResponse_lastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_lastModifiedDate = (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
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe POSIX
a -> DescribeProjectResponse
s {$sel:lastModifiedDate:DescribeProjectResponse' :: Maybe POSIX
lastModifiedDate = 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

-- | Describes the current state of the session:
--
-- -   @PROVISIONING@ - allocating resources for the session.
--
-- -   @INITIALIZING@ - getting the session ready for first use.
--
-- -   @ASSIGNED@ - the session is ready for use.
describeProjectResponse_sessionStatus :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe SessionStatus)
describeProjectResponse_sessionStatus :: (Maybe SessionStatus -> f (Maybe SessionStatus))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_sessionStatus = (DescribeProjectResponse -> Maybe SessionStatus)
-> (DescribeProjectResponse
    -> Maybe SessionStatus -> DescribeProjectResponse)
-> Lens
     DescribeProjectResponse
     DescribeProjectResponse
     (Maybe SessionStatus)
     (Maybe SessionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe SessionStatus
sessionStatus :: Maybe SessionStatus
$sel:sessionStatus:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe SessionStatus
sessionStatus} -> Maybe SessionStatus
sessionStatus) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe SessionStatus
a -> DescribeProjectResponse
s {$sel:sessionStatus:DescribeProjectResponse' :: Maybe SessionStatus
sessionStatus = Maybe SessionStatus
a} :: DescribeProjectResponse)

-- | The date and time when the project was opened.
describeProjectResponse_openDate :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.UTCTime)
describeProjectResponse_openDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_openDate = (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
openDate :: Maybe POSIX
$sel:openDate:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe POSIX
openDate} -> Maybe POSIX
openDate) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe POSIX
a -> DescribeProjectResponse
s {$sel:openDate:DescribeProjectResponse' :: Maybe POSIX
openDate = 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 date and time that the project was created.
describeProjectResponse_createDate :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.UTCTime)
describeProjectResponse_createDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_createDate = (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
createDate :: Maybe POSIX
$sel:createDate:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe POSIX
createDate} -> Maybe POSIX
createDate) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe POSIX
a -> DescribeProjectResponse
s {$sel:createDate:DescribeProjectResponse' :: Maybe POSIX
createDate = 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 identifier (user name) of the user who created the project.
describeProjectResponse_createdBy :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_createdBy :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_createdBy = (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
createdBy :: Maybe Text
$sel:createdBy:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:createdBy:DescribeProjectResponse' :: Maybe Text
createdBy = Maybe Text
a} :: DescribeProjectResponse)

-- | The Amazon Resource Name (ARN) of the project.
describeProjectResponse_resourceArn :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_resourceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_resourceArn = (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
resourceArn :: Maybe Text
$sel:resourceArn:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
resourceArn} -> Maybe Text
resourceArn) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:resourceArn:DescribeProjectResponse' :: Maybe Text
resourceArn = Maybe Text
a} :: DescribeProjectResponse)

-- | The recipe associated with this job.
describeProjectResponse_recipeName :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_recipeName :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_recipeName = (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
recipeName :: Maybe Text
$sel:recipeName:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
recipeName} -> Maybe Text
recipeName) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:recipeName:DescribeProjectResponse' :: Maybe Text
recipeName = Maybe Text
a} :: DescribeProjectResponse)

-- | The dataset associated with the project.
describeProjectResponse_datasetName :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_datasetName :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_datasetName = (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
datasetName :: Maybe Text
$sel:datasetName:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
datasetName} -> Maybe Text
datasetName) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:datasetName:DescribeProjectResponse' :: Maybe Text
datasetName = Maybe Text
a} :: DescribeProjectResponse)

-- | The identifier (user name) of the user who last modified the project.
describeProjectResponse_lastModifiedBy :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_lastModifiedBy :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_lastModifiedBy = (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
lastModifiedBy :: Maybe Text
$sel:lastModifiedBy:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
lastModifiedBy} -> Maybe Text
lastModifiedBy) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:lastModifiedBy:DescribeProjectResponse' :: Maybe Text
lastModifiedBy = Maybe Text
a} :: DescribeProjectResponse)

-- | Undocumented member.
describeProjectResponse_sample :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Sample)
describeProjectResponse_sample :: (Maybe Sample -> f (Maybe Sample))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_sample = (DescribeProjectResponse -> Maybe Sample)
-> (DescribeProjectResponse
    -> Maybe Sample -> DescribeProjectResponse)
-> Lens
     DescribeProjectResponse
     DescribeProjectResponse
     (Maybe Sample)
     (Maybe Sample)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe Sample
sample :: Maybe Sample
$sel:sample:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Sample
sample} -> Maybe Sample
sample) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Sample
a -> DescribeProjectResponse
s {$sel:sample:DescribeProjectResponse' :: Maybe Sample
sample = Maybe Sample
a} :: DescribeProjectResponse)

-- | The identifier (user name) of the user that opened the project for use.
describeProjectResponse_openedBy :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_openedBy :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_openedBy = (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
openedBy :: Maybe Text
$sel:openedBy:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
openedBy} -> Maybe Text
openedBy) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:openedBy:DescribeProjectResponse' :: Maybe Text
openedBy = Maybe Text
a} :: DescribeProjectResponse)

-- | Metadata tags associated with this project.
describeProjectResponse_tags :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeProjectResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_tags = (DescribeProjectResponse -> Maybe (HashMap Text Text))
-> (DescribeProjectResponse
    -> Maybe (HashMap Text Text) -> DescribeProjectResponse)
-> Lens
     DescribeProjectResponse
     DescribeProjectResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProjectResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe (HashMap Text Text)
a -> DescribeProjectResponse
s {$sel:tags:DescribeProjectResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeProjectResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeProjectResponse -> f DescribeProjectResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeProjectResponse
-> f DescribeProjectResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ARN of the Identity and Access Management (IAM) role to be assumed
-- when DataBrew runs the job.
describeProjectResponse_roleArn :: Lens.Lens' DescribeProjectResponse (Prelude.Maybe Prelude.Text)
describeProjectResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_roleArn = (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
roleArn :: Maybe Text
$sel:roleArn:DescribeProjectResponse' :: DescribeProjectResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Maybe Text
a -> DescribeProjectResponse
s {$sel:roleArn:DescribeProjectResponse' :: Maybe Text
roleArn = 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 name of the project.
describeProjectResponse_name :: Lens.Lens' DescribeProjectResponse Prelude.Text
describeProjectResponse_name :: (Text -> f Text)
-> DescribeProjectResponse -> f DescribeProjectResponse
describeProjectResponse_name = (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
name :: Text
$sel:name:DescribeProjectResponse' :: DescribeProjectResponse -> Text
name} -> Text
name) (\s :: DescribeProjectResponse
s@DescribeProjectResponse' {} Text
a -> DescribeProjectResponse
s {$sel:name:DescribeProjectResponse' :: Text
name = Text
a} :: DescribeProjectResponse)

instance Prelude.NFData DescribeProjectResponse