{-# 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.Glue.Types.Blueprint
-- 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.Glue.Types.Blueprint where

import qualified Amazonka.Core as Core
import Amazonka.Glue.Types.BlueprintStatus
import Amazonka.Glue.Types.LastActiveDefinition
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The details of a blueprint.
--
-- /See:/ 'newBlueprint' smart constructor.
data Blueprint = Blueprint'
  { -- | The status of the blueprint registration.
    --
    -- -   Creating — The blueprint registration is in progress.
    --
    -- -   Active — The blueprint has been successfully registered.
    --
    -- -   Updating — An update to the blueprint registration is in progress.
    --
    -- -   Failed — The blueprint registration failed.
    Blueprint -> Maybe BlueprintStatus
status :: Prelude.Maybe BlueprintStatus,
    -- | A JSON string that indicates the list of parameter specifications for
    -- the blueprint.
    Blueprint -> Maybe Text
parameterSpec :: Prelude.Maybe Prelude.Text,
    -- | Specifies the path in Amazon S3 where the blueprint is published.
    Blueprint -> Maybe Text
blueprintLocation :: Prelude.Maybe Prelude.Text,
    -- | The date and time the blueprint was last modified.
    Blueprint -> Maybe POSIX
lastModifiedOn :: Prelude.Maybe Core.POSIX,
    -- | When there are multiple versions of a blueprint and the latest version
    -- has some errors, this attribute indicates the last successful blueprint
    -- definition that is available with the service.
    Blueprint -> Maybe LastActiveDefinition
lastActiveDefinition :: Prelude.Maybe LastActiveDefinition,
    -- | The name of the blueprint.
    Blueprint -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | Specifies a path in Amazon S3 where the blueprint is copied when you
    -- call @CreateBlueprint\/UpdateBlueprint@ to register the blueprint in
    -- Glue.
    Blueprint -> Maybe Text
blueprintServiceLocation :: Prelude.Maybe Prelude.Text,
    -- | An error message.
    Blueprint -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | The description of the blueprint.
    Blueprint -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The date and time the blueprint was registered.
    Blueprint -> Maybe POSIX
createdOn :: Prelude.Maybe Core.POSIX
  }
  deriving (Blueprint -> Blueprint -> Bool
(Blueprint -> Blueprint -> Bool)
-> (Blueprint -> Blueprint -> Bool) -> Eq Blueprint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Blueprint -> Blueprint -> Bool
$c/= :: Blueprint -> Blueprint -> Bool
== :: Blueprint -> Blueprint -> Bool
$c== :: Blueprint -> Blueprint -> Bool
Prelude.Eq, ReadPrec [Blueprint]
ReadPrec Blueprint
Int -> ReadS Blueprint
ReadS [Blueprint]
(Int -> ReadS Blueprint)
-> ReadS [Blueprint]
-> ReadPrec Blueprint
-> ReadPrec [Blueprint]
-> Read Blueprint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Blueprint]
$creadListPrec :: ReadPrec [Blueprint]
readPrec :: ReadPrec Blueprint
$creadPrec :: ReadPrec Blueprint
readList :: ReadS [Blueprint]
$creadList :: ReadS [Blueprint]
readsPrec :: Int -> ReadS Blueprint
$creadsPrec :: Int -> ReadS Blueprint
Prelude.Read, Int -> Blueprint -> ShowS
[Blueprint] -> ShowS
Blueprint -> String
(Int -> Blueprint -> ShowS)
-> (Blueprint -> String)
-> ([Blueprint] -> ShowS)
-> Show Blueprint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Blueprint] -> ShowS
$cshowList :: [Blueprint] -> ShowS
show :: Blueprint -> String
$cshow :: Blueprint -> String
showsPrec :: Int -> Blueprint -> ShowS
$cshowsPrec :: Int -> Blueprint -> ShowS
Prelude.Show, (forall x. Blueprint -> Rep Blueprint x)
-> (forall x. Rep Blueprint x -> Blueprint) -> Generic Blueprint
forall x. Rep Blueprint x -> Blueprint
forall x. Blueprint -> Rep Blueprint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Blueprint x -> Blueprint
$cfrom :: forall x. Blueprint -> Rep Blueprint x
Prelude.Generic)

-- |
-- Create a value of 'Blueprint' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'status', 'blueprint_status' - The status of the blueprint registration.
--
-- -   Creating — The blueprint registration is in progress.
--
-- -   Active — The blueprint has been successfully registered.
--
-- -   Updating — An update to the blueprint registration is in progress.
--
-- -   Failed — The blueprint registration failed.
--
-- 'parameterSpec', 'blueprint_parameterSpec' - A JSON string that indicates the list of parameter specifications for
-- the blueprint.
--
-- 'blueprintLocation', 'blueprint_blueprintLocation' - Specifies the path in Amazon S3 where the blueprint is published.
--
-- 'lastModifiedOn', 'blueprint_lastModifiedOn' - The date and time the blueprint was last modified.
--
-- 'lastActiveDefinition', 'blueprint_lastActiveDefinition' - When there are multiple versions of a blueprint and the latest version
-- has some errors, this attribute indicates the last successful blueprint
-- definition that is available with the service.
--
-- 'name', 'blueprint_name' - The name of the blueprint.
--
-- 'blueprintServiceLocation', 'blueprint_blueprintServiceLocation' - Specifies a path in Amazon S3 where the blueprint is copied when you
-- call @CreateBlueprint\/UpdateBlueprint@ to register the blueprint in
-- Glue.
--
-- 'errorMessage', 'blueprint_errorMessage' - An error message.
--
-- 'description', 'blueprint_description' - The description of the blueprint.
--
-- 'createdOn', 'blueprint_createdOn' - The date and time the blueprint was registered.
newBlueprint ::
  Blueprint
newBlueprint :: Blueprint
newBlueprint =
  Blueprint' :: Maybe BlueprintStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe LastActiveDefinition
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Blueprint
Blueprint'
    { $sel:status:Blueprint' :: Maybe BlueprintStatus
status = Maybe BlueprintStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:parameterSpec:Blueprint' :: Maybe Text
parameterSpec = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:blueprintLocation:Blueprint' :: Maybe Text
blueprintLocation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedOn:Blueprint' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:lastActiveDefinition:Blueprint' :: Maybe LastActiveDefinition
lastActiveDefinition = Maybe LastActiveDefinition
forall a. Maybe a
Prelude.Nothing,
      $sel:name:Blueprint' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:blueprintServiceLocation:Blueprint' :: Maybe Text
blueprintServiceLocation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:errorMessage:Blueprint' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:Blueprint' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdOn:Blueprint' :: Maybe POSIX
createdOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the blueprint registration.
--
-- -   Creating — The blueprint registration is in progress.
--
-- -   Active — The blueprint has been successfully registered.
--
-- -   Updating — An update to the blueprint registration is in progress.
--
-- -   Failed — The blueprint registration failed.
blueprint_status :: Lens.Lens' Blueprint (Prelude.Maybe BlueprintStatus)
blueprint_status :: (Maybe BlueprintStatus -> f (Maybe BlueprintStatus))
-> Blueprint -> f Blueprint
blueprint_status = (Blueprint -> Maybe BlueprintStatus)
-> (Blueprint -> Maybe BlueprintStatus -> Blueprint)
-> Lens
     Blueprint Blueprint (Maybe BlueprintStatus) (Maybe BlueprintStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe BlueprintStatus
status :: Maybe BlueprintStatus
$sel:status:Blueprint' :: Blueprint -> Maybe BlueprintStatus
status} -> Maybe BlueprintStatus
status) (\s :: Blueprint
s@Blueprint' {} Maybe BlueprintStatus
a -> Blueprint
s {$sel:status:Blueprint' :: Maybe BlueprintStatus
status = Maybe BlueprintStatus
a} :: Blueprint)

-- | A JSON string that indicates the list of parameter specifications for
-- the blueprint.
blueprint_parameterSpec :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_parameterSpec :: (Maybe Text -> f (Maybe Text)) -> Blueprint -> f Blueprint
blueprint_parameterSpec = (Blueprint -> Maybe Text)
-> (Blueprint -> Maybe Text -> Blueprint)
-> Lens Blueprint Blueprint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
parameterSpec :: Maybe Text
$sel:parameterSpec:Blueprint' :: Blueprint -> Maybe Text
parameterSpec} -> Maybe Text
parameterSpec) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:parameterSpec:Blueprint' :: Maybe Text
parameterSpec = Maybe Text
a} :: Blueprint)

-- | Specifies the path in Amazon S3 where the blueprint is published.
blueprint_blueprintLocation :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_blueprintLocation :: (Maybe Text -> f (Maybe Text)) -> Blueprint -> f Blueprint
blueprint_blueprintLocation = (Blueprint -> Maybe Text)
-> (Blueprint -> Maybe Text -> Blueprint)
-> Lens Blueprint Blueprint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
blueprintLocation :: Maybe Text
$sel:blueprintLocation:Blueprint' :: Blueprint -> Maybe Text
blueprintLocation} -> Maybe Text
blueprintLocation) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:blueprintLocation:Blueprint' :: Maybe Text
blueprintLocation = Maybe Text
a} :: Blueprint)

-- | The date and time the blueprint was last modified.
blueprint_lastModifiedOn :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.UTCTime)
blueprint_lastModifiedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Blueprint -> f Blueprint
blueprint_lastModifiedOn = (Blueprint -> Maybe POSIX)
-> (Blueprint -> Maybe POSIX -> Blueprint)
-> Lens Blueprint Blueprint (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe POSIX
lastModifiedOn :: Maybe POSIX
$sel:lastModifiedOn:Blueprint' :: Blueprint -> Maybe POSIX
lastModifiedOn} -> Maybe POSIX
lastModifiedOn) (\s :: Blueprint
s@Blueprint' {} Maybe POSIX
a -> Blueprint
s {$sel:lastModifiedOn:Blueprint' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
a} :: Blueprint) ((Maybe POSIX -> f (Maybe POSIX)) -> Blueprint -> f Blueprint)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Blueprint
-> f Blueprint
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

-- | When there are multiple versions of a blueprint and the latest version
-- has some errors, this attribute indicates the last successful blueprint
-- definition that is available with the service.
blueprint_lastActiveDefinition :: Lens.Lens' Blueprint (Prelude.Maybe LastActiveDefinition)
blueprint_lastActiveDefinition :: (Maybe LastActiveDefinition -> f (Maybe LastActiveDefinition))
-> Blueprint -> f Blueprint
blueprint_lastActiveDefinition = (Blueprint -> Maybe LastActiveDefinition)
-> (Blueprint -> Maybe LastActiveDefinition -> Blueprint)
-> Lens
     Blueprint
     Blueprint
     (Maybe LastActiveDefinition)
     (Maybe LastActiveDefinition)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe LastActiveDefinition
lastActiveDefinition :: Maybe LastActiveDefinition
$sel:lastActiveDefinition:Blueprint' :: Blueprint -> Maybe LastActiveDefinition
lastActiveDefinition} -> Maybe LastActiveDefinition
lastActiveDefinition) (\s :: Blueprint
s@Blueprint' {} Maybe LastActiveDefinition
a -> Blueprint
s {$sel:lastActiveDefinition:Blueprint' :: Maybe LastActiveDefinition
lastActiveDefinition = Maybe LastActiveDefinition
a} :: Blueprint)

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

-- | Specifies a path in Amazon S3 where the blueprint is copied when you
-- call @CreateBlueprint\/UpdateBlueprint@ to register the blueprint in
-- Glue.
blueprint_blueprintServiceLocation :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_blueprintServiceLocation :: (Maybe Text -> f (Maybe Text)) -> Blueprint -> f Blueprint
blueprint_blueprintServiceLocation = (Blueprint -> Maybe Text)
-> (Blueprint -> Maybe Text -> Blueprint)
-> Lens Blueprint Blueprint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
blueprintServiceLocation :: Maybe Text
$sel:blueprintServiceLocation:Blueprint' :: Blueprint -> Maybe Text
blueprintServiceLocation} -> Maybe Text
blueprintServiceLocation) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:blueprintServiceLocation:Blueprint' :: Maybe Text
blueprintServiceLocation = Maybe Text
a} :: Blueprint)

-- | An error message.
blueprint_errorMessage :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_errorMessage :: (Maybe Text -> f (Maybe Text)) -> Blueprint -> f Blueprint
blueprint_errorMessage = (Blueprint -> Maybe Text)
-> (Blueprint -> Maybe Text -> Blueprint)
-> Lens Blueprint Blueprint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:Blueprint' :: Blueprint -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:errorMessage:Blueprint' :: Maybe Text
errorMessage = Maybe Text
a} :: Blueprint)

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

-- | The date and time the blueprint was registered.
blueprint_createdOn :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.UTCTime)
blueprint_createdOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Blueprint -> f Blueprint
blueprint_createdOn = (Blueprint -> Maybe POSIX)
-> (Blueprint -> Maybe POSIX -> Blueprint)
-> Lens Blueprint Blueprint (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe POSIX
createdOn :: Maybe POSIX
$sel:createdOn:Blueprint' :: Blueprint -> Maybe POSIX
createdOn} -> Maybe POSIX
createdOn) (\s :: Blueprint
s@Blueprint' {} Maybe POSIX
a -> Blueprint
s {$sel:createdOn:Blueprint' :: Maybe POSIX
createdOn = Maybe POSIX
a} :: Blueprint) ((Maybe POSIX -> f (Maybe POSIX)) -> Blueprint -> f Blueprint)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Blueprint
-> f Blueprint
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

instance Core.FromJSON Blueprint where
  parseJSON :: Value -> Parser Blueprint
parseJSON =
    String -> (Object -> Parser Blueprint) -> Value -> Parser Blueprint
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Blueprint"
      ( \Object
x ->
          Maybe BlueprintStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe LastActiveDefinition
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Blueprint
Blueprint'
            (Maybe BlueprintStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe LastActiveDefinition
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Blueprint)
-> Parser (Maybe BlueprintStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe LastActiveDefinition
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Blueprint)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe BlueprintStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe LastActiveDefinition
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Blueprint)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe LastActiveDefinition
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Blueprint)
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
"ParameterSpec")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe LastActiveDefinition
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Blueprint)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe LastActiveDefinition
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Blueprint)
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
"BlueprintLocation")
            Parser
  (Maybe POSIX
   -> Maybe LastActiveDefinition
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Blueprint)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe LastActiveDefinition
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Blueprint)
forall (f :: * -> *) a b. Applicative f => 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
"LastModifiedOn")
            Parser
  (Maybe LastActiveDefinition
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Blueprint)
-> Parser (Maybe LastActiveDefinition)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Blueprint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LastActiveDefinition)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastActiveDefinition")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Blueprint)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe POSIX -> Blueprint)
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
"Name")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe POSIX -> Blueprint)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe POSIX -> Blueprint)
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
"BlueprintServiceLocation")
            Parser (Maybe Text -> Maybe Text -> Maybe POSIX -> Blueprint)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe POSIX -> Blueprint)
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
"ErrorMessage")
            Parser (Maybe Text -> Maybe POSIX -> Blueprint)
-> Parser (Maybe Text) -> Parser (Maybe POSIX -> Blueprint)
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
"Description")
            Parser (Maybe POSIX -> Blueprint)
-> Parser (Maybe POSIX) -> Parser Blueprint
forall (f :: * -> *) a b. Applicative f => 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
"CreatedOn")
      )

instance Prelude.Hashable Blueprint

instance Prelude.NFData Blueprint