{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.SageMaker.Types.Project
-- 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)
module Amazonka.SageMaker.Types.Project where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.ProjectStatus
import Amazonka.SageMaker.Types.ServiceCatalogProvisionedProductDetails
import Amazonka.SageMaker.Types.ServiceCatalogProvisioningDetails
import Amazonka.SageMaker.Types.Tag
import Amazonka.SageMaker.Types.UserContext

-- | The properties of a project as returned by the Search API.
--
-- /See:/ 'newProject' smart constructor.
data Project = Project'
  { -- | A timestamp specifying when the project was created.
    Project -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    Project -> Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails :: Prelude.Maybe ServiceCatalogProvisionedProductDetails,
    -- | Who created the project.
    Project -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
    -- | The status of the project.
    Project -> Maybe ProjectStatus
projectStatus :: Prelude.Maybe ProjectStatus,
    -- | The name of the project.
    Project -> Maybe Text
projectName :: Prelude.Maybe Prelude.Text,
    Project -> Maybe ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails :: Prelude.Maybe ServiceCatalogProvisioningDetails,
    -- | The ID of the project.
    Project -> Maybe Text
projectId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the project.
    Project -> Maybe Text
projectArn :: Prelude.Maybe Prelude.Text,
    -- | The description of the project.
    Project -> Maybe Text
projectDescription :: Prelude.Maybe Prelude.Text,
    -- | An array of key-value pairs. You can use tags to categorize your Amazon
    -- Web Services resources in different ways, for example, by purpose,
    -- owner, or environment. For more information, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tagging Amazon Web Services Resources>.
    Project -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (Project -> Project -> Bool
(Project -> Project -> Bool)
-> (Project -> Project -> Bool) -> Eq Project
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Project -> Project -> Bool
$c/= :: Project -> Project -> Bool
== :: Project -> Project -> Bool
$c== :: Project -> Project -> Bool
Prelude.Eq, ReadPrec [Project]
ReadPrec Project
Int -> ReadS Project
ReadS [Project]
(Int -> ReadS Project)
-> ReadS [Project]
-> ReadPrec Project
-> ReadPrec [Project]
-> Read Project
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Project]
$creadListPrec :: ReadPrec [Project]
readPrec :: ReadPrec Project
$creadPrec :: ReadPrec Project
readList :: ReadS [Project]
$creadList :: ReadS [Project]
readsPrec :: Int -> ReadS Project
$creadsPrec :: Int -> ReadS Project
Prelude.Read, Int -> Project -> ShowS
[Project] -> ShowS
Project -> String
(Int -> Project -> ShowS)
-> (Project -> String) -> ([Project] -> ShowS) -> Show Project
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Project] -> ShowS
$cshowList :: [Project] -> ShowS
show :: Project -> String
$cshow :: Project -> String
showsPrec :: Int -> Project -> ShowS
$cshowsPrec :: Int -> Project -> ShowS
Prelude.Show, (forall x. Project -> Rep Project x)
-> (forall x. Rep Project x -> Project) -> Generic Project
forall x. Rep Project x -> Project
forall x. Project -> Rep Project x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Project x -> Project
$cfrom :: forall x. Project -> Rep Project x
Prelude.Generic)

-- |
-- Create a value of 'Project' 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:
--
-- 'creationTime', 'project_creationTime' - A timestamp specifying when the project was created.
--
-- 'serviceCatalogProvisionedProductDetails', 'project_serviceCatalogProvisionedProductDetails' - Undocumented member.
--
-- 'createdBy', 'project_createdBy' - Who created the project.
--
-- 'projectStatus', 'project_projectStatus' - The status of the project.
--
-- 'projectName', 'project_projectName' - The name of the project.
--
-- 'serviceCatalogProvisioningDetails', 'project_serviceCatalogProvisioningDetails' - Undocumented member.
--
-- 'projectId', 'project_projectId' - The ID of the project.
--
-- 'projectArn', 'project_projectArn' - The Amazon Resource Name (ARN) of the project.
--
-- 'projectDescription', 'project_projectDescription' - The description of the project.
--
-- 'tags', 'project_tags' - An array of key-value pairs. You can use tags to categorize your Amazon
-- Web Services resources in different ways, for example, by purpose,
-- owner, or environment. For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tagging Amazon Web Services Resources>.
newProject ::
  Project
newProject :: Project
newProject =
  Project' :: Maybe POSIX
-> Maybe ServiceCatalogProvisionedProductDetails
-> Maybe UserContext
-> Maybe ProjectStatus
-> Maybe Text
-> Maybe ServiceCatalogProvisioningDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Project
Project'
    { $sel:creationTime:Project' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceCatalogProvisionedProductDetails:Project' :: Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails =
        Maybe ServiceCatalogProvisionedProductDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:Project' :: Maybe UserContext
createdBy = Maybe UserContext
forall a. Maybe a
Prelude.Nothing,
      $sel:projectStatus:Project' :: Maybe ProjectStatus
projectStatus = Maybe ProjectStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:projectName:Project' :: Maybe Text
projectName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceCatalogProvisioningDetails:Project' :: Maybe ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails = Maybe ServiceCatalogProvisioningDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:projectId:Project' :: Maybe Text
projectId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:projectArn:Project' :: Maybe Text
projectArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:projectDescription:Project' :: Maybe Text
projectDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Project' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
    }

-- | A timestamp specifying when the project was created.
project_creationTime :: Lens.Lens' Project (Prelude.Maybe Prelude.UTCTime)
project_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Project -> f Project
project_creationTime = (Project -> Maybe POSIX)
-> (Project -> Maybe POSIX -> Project)
-> Lens Project Project (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Project' :: Project -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Project
s@Project' {} Maybe POSIX
a -> Project
s {$sel:creationTime:Project' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Project) ((Maybe POSIX -> f (Maybe POSIX)) -> Project -> f Project)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Project
-> f Project
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

-- | Undocumented member.
project_serviceCatalogProvisionedProductDetails :: Lens.Lens' Project (Prelude.Maybe ServiceCatalogProvisionedProductDetails)
project_serviceCatalogProvisionedProductDetails :: (Maybe ServiceCatalogProvisionedProductDetails
 -> f (Maybe ServiceCatalogProvisionedProductDetails))
-> Project -> f Project
project_serviceCatalogProvisionedProductDetails = (Project -> Maybe ServiceCatalogProvisionedProductDetails)
-> (Project
    -> Maybe ServiceCatalogProvisionedProductDetails -> Project)
-> Lens
     Project
     Project
     (Maybe ServiceCatalogProvisionedProductDetails)
     (Maybe ServiceCatalogProvisionedProductDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails :: Maybe ServiceCatalogProvisionedProductDetails
$sel:serviceCatalogProvisionedProductDetails:Project' :: Project -> Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails} -> Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails) (\s :: Project
s@Project' {} Maybe ServiceCatalogProvisionedProductDetails
a -> Project
s {$sel:serviceCatalogProvisionedProductDetails:Project' :: Maybe ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails = Maybe ServiceCatalogProvisionedProductDetails
a} :: Project)

-- | Who created the project.
project_createdBy :: Lens.Lens' Project (Prelude.Maybe UserContext)
project_createdBy :: (Maybe UserContext -> f (Maybe UserContext))
-> Project -> f Project
project_createdBy = (Project -> Maybe UserContext)
-> (Project -> Maybe UserContext -> Project)
-> Lens Project Project (Maybe UserContext) (Maybe UserContext)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe UserContext
createdBy :: Maybe UserContext
$sel:createdBy:Project' :: Project -> Maybe UserContext
createdBy} -> Maybe UserContext
createdBy) (\s :: Project
s@Project' {} Maybe UserContext
a -> Project
s {$sel:createdBy:Project' :: Maybe UserContext
createdBy = Maybe UserContext
a} :: Project)

-- | The status of the project.
project_projectStatus :: Lens.Lens' Project (Prelude.Maybe ProjectStatus)
project_projectStatus :: (Maybe ProjectStatus -> f (Maybe ProjectStatus))
-> Project -> f Project
project_projectStatus = (Project -> Maybe ProjectStatus)
-> (Project -> Maybe ProjectStatus -> Project)
-> Lens Project Project (Maybe ProjectStatus) (Maybe ProjectStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe ProjectStatus
projectStatus :: Maybe ProjectStatus
$sel:projectStatus:Project' :: Project -> Maybe ProjectStatus
projectStatus} -> Maybe ProjectStatus
projectStatus) (\s :: Project
s@Project' {} Maybe ProjectStatus
a -> Project
s {$sel:projectStatus:Project' :: Maybe ProjectStatus
projectStatus = Maybe ProjectStatus
a} :: Project)

-- | The name of the project.
project_projectName :: Lens.Lens' Project (Prelude.Maybe Prelude.Text)
project_projectName :: (Maybe Text -> f (Maybe Text)) -> Project -> f Project
project_projectName = (Project -> Maybe Text)
-> (Project -> Maybe Text -> Project)
-> Lens Project Project (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe Text
projectName :: Maybe Text
$sel:projectName:Project' :: Project -> Maybe Text
projectName} -> Maybe Text
projectName) (\s :: Project
s@Project' {} Maybe Text
a -> Project
s {$sel:projectName:Project' :: Maybe Text
projectName = Maybe Text
a} :: Project)

-- | Undocumented member.
project_serviceCatalogProvisioningDetails :: Lens.Lens' Project (Prelude.Maybe ServiceCatalogProvisioningDetails)
project_serviceCatalogProvisioningDetails :: (Maybe ServiceCatalogProvisioningDetails
 -> f (Maybe ServiceCatalogProvisioningDetails))
-> Project -> f Project
project_serviceCatalogProvisioningDetails = (Project -> Maybe ServiceCatalogProvisioningDetails)
-> (Project -> Maybe ServiceCatalogProvisioningDetails -> Project)
-> Lens
     Project
     Project
     (Maybe ServiceCatalogProvisioningDetails)
     (Maybe ServiceCatalogProvisioningDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails :: Maybe ServiceCatalogProvisioningDetails
$sel:serviceCatalogProvisioningDetails:Project' :: Project -> Maybe ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails} -> Maybe ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails) (\s :: Project
s@Project' {} Maybe ServiceCatalogProvisioningDetails
a -> Project
s {$sel:serviceCatalogProvisioningDetails:Project' :: Maybe ServiceCatalogProvisioningDetails
serviceCatalogProvisioningDetails = Maybe ServiceCatalogProvisioningDetails
a} :: Project)

-- | The ID of the project.
project_projectId :: Lens.Lens' Project (Prelude.Maybe Prelude.Text)
project_projectId :: (Maybe Text -> f (Maybe Text)) -> Project -> f Project
project_projectId = (Project -> Maybe Text)
-> (Project -> Maybe Text -> Project)
-> Lens Project Project (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe Text
projectId :: Maybe Text
$sel:projectId:Project' :: Project -> Maybe Text
projectId} -> Maybe Text
projectId) (\s :: Project
s@Project' {} Maybe Text
a -> Project
s {$sel:projectId:Project' :: Maybe Text
projectId = Maybe Text
a} :: Project)

-- | The Amazon Resource Name (ARN) of the project.
project_projectArn :: Lens.Lens' Project (Prelude.Maybe Prelude.Text)
project_projectArn :: (Maybe Text -> f (Maybe Text)) -> Project -> f Project
project_projectArn = (Project -> Maybe Text)
-> (Project -> Maybe Text -> Project)
-> Lens Project Project (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe Text
projectArn :: Maybe Text
$sel:projectArn:Project' :: Project -> Maybe Text
projectArn} -> Maybe Text
projectArn) (\s :: Project
s@Project' {} Maybe Text
a -> Project
s {$sel:projectArn:Project' :: Maybe Text
projectArn = Maybe Text
a} :: Project)

-- | The description of the project.
project_projectDescription :: Lens.Lens' Project (Prelude.Maybe Prelude.Text)
project_projectDescription :: (Maybe Text -> f (Maybe Text)) -> Project -> f Project
project_projectDescription = (Project -> Maybe Text)
-> (Project -> Maybe Text -> Project)
-> Lens Project Project (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe Text
projectDescription :: Maybe Text
$sel:projectDescription:Project' :: Project -> Maybe Text
projectDescription} -> Maybe Text
projectDescription) (\s :: Project
s@Project' {} Maybe Text
a -> Project
s {$sel:projectDescription:Project' :: Maybe Text
projectDescription = Maybe Text
a} :: Project)

-- | An array of key-value pairs. You can use tags to categorize your Amazon
-- Web Services resources in different ways, for example, by purpose,
-- owner, or environment. For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tagging Amazon Web Services Resources>.
project_tags :: Lens.Lens' Project (Prelude.Maybe [Tag])
project_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> Project -> f Project
project_tags = (Project -> Maybe [Tag])
-> (Project -> Maybe [Tag] -> Project)
-> Lens Project Project (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Project' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:Project' :: Project -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: Project
s@Project' {} Maybe [Tag]
a -> Project
s {$sel:tags:Project' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: Project) ((Maybe [Tag] -> f (Maybe [Tag])) -> Project -> f Project)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> Project
-> f Project
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON Project where
  parseJSON :: Value -> Parser Project
parseJSON =
    String -> (Object -> Parser Project) -> Value -> Parser Project
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Project"
      ( \Object
x ->
          Maybe POSIX
-> Maybe ServiceCatalogProvisionedProductDetails
-> Maybe UserContext
-> Maybe ProjectStatus
-> Maybe Text
-> Maybe ServiceCatalogProvisioningDetails
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Project
Project'
            (Maybe POSIX
 -> Maybe ServiceCatalogProvisionedProductDetails
 -> Maybe UserContext
 -> Maybe ProjectStatus
 -> Maybe Text
 -> Maybe ServiceCatalogProvisioningDetails
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Tag]
 -> Project)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe ServiceCatalogProvisionedProductDetails
      -> Maybe UserContext
      -> Maybe ProjectStatus
      -> Maybe Text
      -> Maybe ServiceCatalogProvisioningDetails
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> Project)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
            Parser
  (Maybe ServiceCatalogProvisionedProductDetails
   -> Maybe UserContext
   -> Maybe ProjectStatus
   -> Maybe Text
   -> Maybe ServiceCatalogProvisioningDetails
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> Project)
-> Parser (Maybe ServiceCatalogProvisionedProductDetails)
-> Parser
     (Maybe UserContext
      -> Maybe ProjectStatus
      -> Maybe Text
      -> Maybe ServiceCatalogProvisioningDetails
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe ServiceCatalogProvisionedProductDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServiceCatalogProvisionedProductDetails"
                        )
            Parser
  (Maybe UserContext
   -> Maybe ProjectStatus
   -> Maybe Text
   -> Maybe ServiceCatalogProvisioningDetails
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> Project)
-> Parser (Maybe UserContext)
-> Parser
     (Maybe ProjectStatus
      -> Maybe Text
      -> Maybe ServiceCatalogProvisioningDetails
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe UserContext)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedBy")
            Parser
  (Maybe ProjectStatus
   -> Maybe Text
   -> Maybe ServiceCatalogProvisioningDetails
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> Project)
-> Parser (Maybe ProjectStatus)
-> Parser
     (Maybe Text
      -> Maybe ServiceCatalogProvisioningDetails
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProjectStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProjectStatus")
            Parser
  (Maybe Text
   -> Maybe ServiceCatalogProvisioningDetails
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> Project)
-> Parser (Maybe Text)
-> Parser
     (Maybe ServiceCatalogProvisioningDetails
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProjectName")
            Parser
  (Maybe ServiceCatalogProvisioningDetails
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> Project)
-> Parser (Maybe ServiceCatalogProvisioningDetails)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Tag] -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ServiceCatalogProvisioningDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServiceCatalogProvisioningDetails")
            Parser
  (Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Tag] -> Project)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe [Tag] -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProjectId")
            Parser (Maybe Text -> Maybe Text -> Maybe [Tag] -> Project)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe [Tag] -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProjectArn")
            Parser (Maybe Text -> Maybe [Tag] -> Project)
-> Parser (Maybe Text) -> Parser (Maybe [Tag] -> Project)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProjectDescription")
            Parser (Maybe [Tag] -> Project)
-> Parser (Maybe [Tag]) -> Parser Project
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags" Parser (Maybe (Maybe [Tag])) -> Maybe [Tag] -> Parser (Maybe [Tag])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable Project

instance Prelude.NFData Project