{-# 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.ServiceCatalog.Types.ProvisioningArtifactDetail
-- 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.ServiceCatalog.Types.ProvisioningArtifactDetail where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactGuidance
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactType

-- | Information about a provisioning artifact (also known as a version) for
-- a product.
--
-- /See:/ 'newProvisioningArtifactDetail' smart constructor.
data ProvisioningArtifactDetail = ProvisioningArtifactDetail'
  { -- | The UTC time stamp of the creation time.
    ProvisioningArtifactDetail -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | Indicates whether the product version is active.
    ProvisioningArtifactDetail -> Maybe Bool
active :: Prelude.Maybe Prelude.Bool,
    -- | The name of the provisioning artifact.
    ProvisioningArtifactDetail -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioning artifact.
    ProvisioningArtifactDetail -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The type of provisioning artifact.
    --
    -- -   @CLOUD_FORMATION_TEMPLATE@ - AWS CloudFormation template
    --
    -- -   @MARKETPLACE_AMI@ - AWS Marketplace AMI
    --
    -- -   @MARKETPLACE_CAR@ - AWS Marketplace Clusters and AWS Resources
    ProvisioningArtifactDetail -> Maybe ProvisioningArtifactType
type' :: Prelude.Maybe ProvisioningArtifactType,
    -- | Information set by the administrator to provide guidance to end users
    -- about which provisioning artifacts to use.
    ProvisioningArtifactDetail -> Maybe ProvisioningArtifactGuidance
guidance :: Prelude.Maybe ProvisioningArtifactGuidance,
    -- | The description of the provisioning artifact.
    ProvisioningArtifactDetail -> Maybe Text
description :: Prelude.Maybe Prelude.Text
  }
  deriving (ProvisioningArtifactDetail -> ProvisioningArtifactDetail -> Bool
(ProvisioningArtifactDetail -> ProvisioningArtifactDetail -> Bool)
-> (ProvisioningArtifactDetail
    -> ProvisioningArtifactDetail -> Bool)
-> Eq ProvisioningArtifactDetail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProvisioningArtifactDetail -> ProvisioningArtifactDetail -> Bool
$c/= :: ProvisioningArtifactDetail -> ProvisioningArtifactDetail -> Bool
== :: ProvisioningArtifactDetail -> ProvisioningArtifactDetail -> Bool
$c== :: ProvisioningArtifactDetail -> ProvisioningArtifactDetail -> Bool
Prelude.Eq, ReadPrec [ProvisioningArtifactDetail]
ReadPrec ProvisioningArtifactDetail
Int -> ReadS ProvisioningArtifactDetail
ReadS [ProvisioningArtifactDetail]
(Int -> ReadS ProvisioningArtifactDetail)
-> ReadS [ProvisioningArtifactDetail]
-> ReadPrec ProvisioningArtifactDetail
-> ReadPrec [ProvisioningArtifactDetail]
-> Read ProvisioningArtifactDetail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProvisioningArtifactDetail]
$creadListPrec :: ReadPrec [ProvisioningArtifactDetail]
readPrec :: ReadPrec ProvisioningArtifactDetail
$creadPrec :: ReadPrec ProvisioningArtifactDetail
readList :: ReadS [ProvisioningArtifactDetail]
$creadList :: ReadS [ProvisioningArtifactDetail]
readsPrec :: Int -> ReadS ProvisioningArtifactDetail
$creadsPrec :: Int -> ReadS ProvisioningArtifactDetail
Prelude.Read, Int -> ProvisioningArtifactDetail -> ShowS
[ProvisioningArtifactDetail] -> ShowS
ProvisioningArtifactDetail -> String
(Int -> ProvisioningArtifactDetail -> ShowS)
-> (ProvisioningArtifactDetail -> String)
-> ([ProvisioningArtifactDetail] -> ShowS)
-> Show ProvisioningArtifactDetail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProvisioningArtifactDetail] -> ShowS
$cshowList :: [ProvisioningArtifactDetail] -> ShowS
show :: ProvisioningArtifactDetail -> String
$cshow :: ProvisioningArtifactDetail -> String
showsPrec :: Int -> ProvisioningArtifactDetail -> ShowS
$cshowsPrec :: Int -> ProvisioningArtifactDetail -> ShowS
Prelude.Show, (forall x.
 ProvisioningArtifactDetail -> Rep ProvisioningArtifactDetail x)
-> (forall x.
    Rep ProvisioningArtifactDetail x -> ProvisioningArtifactDetail)
-> Generic ProvisioningArtifactDetail
forall x.
Rep ProvisioningArtifactDetail x -> ProvisioningArtifactDetail
forall x.
ProvisioningArtifactDetail -> Rep ProvisioningArtifactDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProvisioningArtifactDetail x -> ProvisioningArtifactDetail
$cfrom :: forall x.
ProvisioningArtifactDetail -> Rep ProvisioningArtifactDetail x
Prelude.Generic)

-- |
-- Create a value of 'ProvisioningArtifactDetail' 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:
--
-- 'createdTime', 'provisioningArtifactDetail_createdTime' - The UTC time stamp of the creation time.
--
-- 'active', 'provisioningArtifactDetail_active' - Indicates whether the product version is active.
--
-- 'name', 'provisioningArtifactDetail_name' - The name of the provisioning artifact.
--
-- 'id', 'provisioningArtifactDetail_id' - The identifier of the provisioning artifact.
--
-- 'type'', 'provisioningArtifactDetail_type' - The type of provisioning artifact.
--
-- -   @CLOUD_FORMATION_TEMPLATE@ - AWS CloudFormation template
--
-- -   @MARKETPLACE_AMI@ - AWS Marketplace AMI
--
-- -   @MARKETPLACE_CAR@ - AWS Marketplace Clusters and AWS Resources
--
-- 'guidance', 'provisioningArtifactDetail_guidance' - Information set by the administrator to provide guidance to end users
-- about which provisioning artifacts to use.
--
-- 'description', 'provisioningArtifactDetail_description' - The description of the provisioning artifact.
newProvisioningArtifactDetail ::
  ProvisioningArtifactDetail
newProvisioningArtifactDetail :: ProvisioningArtifactDetail
newProvisioningArtifactDetail =
  ProvisioningArtifactDetail' :: Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe ProvisioningArtifactType
-> Maybe ProvisioningArtifactGuidance
-> Maybe Text
-> ProvisioningArtifactDetail
ProvisioningArtifactDetail'
    { $sel:createdTime:ProvisioningArtifactDetail' :: Maybe POSIX
createdTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:active:ProvisioningArtifactDetail' :: Maybe Bool
active = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:name:ProvisioningArtifactDetail' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:ProvisioningArtifactDetail' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:type':ProvisioningArtifactDetail' :: Maybe ProvisioningArtifactType
type' = Maybe ProvisioningArtifactType
forall a. Maybe a
Prelude.Nothing,
      $sel:guidance:ProvisioningArtifactDetail' :: Maybe ProvisioningArtifactGuidance
guidance = Maybe ProvisioningArtifactGuidance
forall a. Maybe a
Prelude.Nothing,
      $sel:description:ProvisioningArtifactDetail' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The UTC time stamp of the creation time.
provisioningArtifactDetail_createdTime :: Lens.Lens' ProvisioningArtifactDetail (Prelude.Maybe Prelude.UTCTime)
provisioningArtifactDetail_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ProvisioningArtifactDetail -> f ProvisioningArtifactDetail
provisioningArtifactDetail_createdTime = (ProvisioningArtifactDetail -> Maybe POSIX)
-> (ProvisioningArtifactDetail
    -> Maybe POSIX -> ProvisioningArtifactDetail)
-> Lens
     ProvisioningArtifactDetail
     ProvisioningArtifactDetail
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisioningArtifactDetail' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:ProvisioningArtifactDetail' :: ProvisioningArtifactDetail -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: ProvisioningArtifactDetail
s@ProvisioningArtifactDetail' {} Maybe POSIX
a -> ProvisioningArtifactDetail
s {$sel:createdTime:ProvisioningArtifactDetail' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: ProvisioningArtifactDetail) ((Maybe POSIX -> f (Maybe POSIX))
 -> ProvisioningArtifactDetail -> f ProvisioningArtifactDetail)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ProvisioningArtifactDetail
-> f ProvisioningArtifactDetail
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

-- | Indicates whether the product version is active.
provisioningArtifactDetail_active :: Lens.Lens' ProvisioningArtifactDetail (Prelude.Maybe Prelude.Bool)
provisioningArtifactDetail_active :: (Maybe Bool -> f (Maybe Bool))
-> ProvisioningArtifactDetail -> f ProvisioningArtifactDetail
provisioningArtifactDetail_active = (ProvisioningArtifactDetail -> Maybe Bool)
-> (ProvisioningArtifactDetail
    -> Maybe Bool -> ProvisioningArtifactDetail)
-> Lens
     ProvisioningArtifactDetail
     ProvisioningArtifactDetail
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisioningArtifactDetail' {Maybe Bool
active :: Maybe Bool
$sel:active:ProvisioningArtifactDetail' :: ProvisioningArtifactDetail -> Maybe Bool
active} -> Maybe Bool
active) (\s :: ProvisioningArtifactDetail
s@ProvisioningArtifactDetail' {} Maybe Bool
a -> ProvisioningArtifactDetail
s {$sel:active:ProvisioningArtifactDetail' :: Maybe Bool
active = Maybe Bool
a} :: ProvisioningArtifactDetail)

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

-- | The identifier of the provisioning artifact.
provisioningArtifactDetail_id :: Lens.Lens' ProvisioningArtifactDetail (Prelude.Maybe Prelude.Text)
provisioningArtifactDetail_id :: (Maybe Text -> f (Maybe Text))
-> ProvisioningArtifactDetail -> f ProvisioningArtifactDetail
provisioningArtifactDetail_id = (ProvisioningArtifactDetail -> Maybe Text)
-> (ProvisioningArtifactDetail
    -> Maybe Text -> ProvisioningArtifactDetail)
-> Lens
     ProvisioningArtifactDetail
     ProvisioningArtifactDetail
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisioningArtifactDetail' {Maybe Text
id :: Maybe Text
$sel:id:ProvisioningArtifactDetail' :: ProvisioningArtifactDetail -> Maybe Text
id} -> Maybe Text
id) (\s :: ProvisioningArtifactDetail
s@ProvisioningArtifactDetail' {} Maybe Text
a -> ProvisioningArtifactDetail
s {$sel:id:ProvisioningArtifactDetail' :: Maybe Text
id = Maybe Text
a} :: ProvisioningArtifactDetail)

-- | The type of provisioning artifact.
--
-- -   @CLOUD_FORMATION_TEMPLATE@ - AWS CloudFormation template
--
-- -   @MARKETPLACE_AMI@ - AWS Marketplace AMI
--
-- -   @MARKETPLACE_CAR@ - AWS Marketplace Clusters and AWS Resources
provisioningArtifactDetail_type :: Lens.Lens' ProvisioningArtifactDetail (Prelude.Maybe ProvisioningArtifactType)
provisioningArtifactDetail_type :: (Maybe ProvisioningArtifactType
 -> f (Maybe ProvisioningArtifactType))
-> ProvisioningArtifactDetail -> f ProvisioningArtifactDetail
provisioningArtifactDetail_type = (ProvisioningArtifactDetail -> Maybe ProvisioningArtifactType)
-> (ProvisioningArtifactDetail
    -> Maybe ProvisioningArtifactType -> ProvisioningArtifactDetail)
-> Lens
     ProvisioningArtifactDetail
     ProvisioningArtifactDetail
     (Maybe ProvisioningArtifactType)
     (Maybe ProvisioningArtifactType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisioningArtifactDetail' {Maybe ProvisioningArtifactType
type' :: Maybe ProvisioningArtifactType
$sel:type':ProvisioningArtifactDetail' :: ProvisioningArtifactDetail -> Maybe ProvisioningArtifactType
type'} -> Maybe ProvisioningArtifactType
type') (\s :: ProvisioningArtifactDetail
s@ProvisioningArtifactDetail' {} Maybe ProvisioningArtifactType
a -> ProvisioningArtifactDetail
s {$sel:type':ProvisioningArtifactDetail' :: Maybe ProvisioningArtifactType
type' = Maybe ProvisioningArtifactType
a} :: ProvisioningArtifactDetail)

-- | Information set by the administrator to provide guidance to end users
-- about which provisioning artifacts to use.
provisioningArtifactDetail_guidance :: Lens.Lens' ProvisioningArtifactDetail (Prelude.Maybe ProvisioningArtifactGuidance)
provisioningArtifactDetail_guidance :: (Maybe ProvisioningArtifactGuidance
 -> f (Maybe ProvisioningArtifactGuidance))
-> ProvisioningArtifactDetail -> f ProvisioningArtifactDetail
provisioningArtifactDetail_guidance = (ProvisioningArtifactDetail -> Maybe ProvisioningArtifactGuidance)
-> (ProvisioningArtifactDetail
    -> Maybe ProvisioningArtifactGuidance
    -> ProvisioningArtifactDetail)
-> Lens
     ProvisioningArtifactDetail
     ProvisioningArtifactDetail
     (Maybe ProvisioningArtifactGuidance)
     (Maybe ProvisioningArtifactGuidance)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisioningArtifactDetail' {Maybe ProvisioningArtifactGuidance
guidance :: Maybe ProvisioningArtifactGuidance
$sel:guidance:ProvisioningArtifactDetail' :: ProvisioningArtifactDetail -> Maybe ProvisioningArtifactGuidance
guidance} -> Maybe ProvisioningArtifactGuidance
guidance) (\s :: ProvisioningArtifactDetail
s@ProvisioningArtifactDetail' {} Maybe ProvisioningArtifactGuidance
a -> ProvisioningArtifactDetail
s {$sel:guidance:ProvisioningArtifactDetail' :: Maybe ProvisioningArtifactGuidance
guidance = Maybe ProvisioningArtifactGuidance
a} :: ProvisioningArtifactDetail)

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

instance Core.FromJSON ProvisioningArtifactDetail where
  parseJSON :: Value -> Parser ProvisioningArtifactDetail
parseJSON =
    String
-> (Object -> Parser ProvisioningArtifactDetail)
-> Value
-> Parser ProvisioningArtifactDetail
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ProvisioningArtifactDetail"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe ProvisioningArtifactType
-> Maybe ProvisioningArtifactGuidance
-> Maybe Text
-> ProvisioningArtifactDetail
ProvisioningArtifactDetail'
            (Maybe POSIX
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe ProvisioningArtifactType
 -> Maybe ProvisioningArtifactGuidance
 -> Maybe Text
 -> ProvisioningArtifactDetail)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe ProvisioningArtifactType
      -> Maybe ProvisioningArtifactGuidance
      -> Maybe Text
      -> ProvisioningArtifactDetail)
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
"CreatedTime")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe ProvisioningArtifactType
   -> Maybe ProvisioningArtifactGuidance
   -> Maybe Text
   -> ProvisioningArtifactDetail)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe ProvisioningArtifactType
      -> Maybe ProvisioningArtifactGuidance
      -> Maybe Text
      -> ProvisioningArtifactDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Active")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe ProvisioningArtifactType
   -> Maybe ProvisioningArtifactGuidance
   -> Maybe Text
   -> ProvisioningArtifactDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe ProvisioningArtifactType
      -> Maybe ProvisioningArtifactGuidance
      -> Maybe Text
      -> ProvisioningArtifactDetail)
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 ProvisioningArtifactType
   -> Maybe ProvisioningArtifactGuidance
   -> Maybe Text
   -> ProvisioningArtifactDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe ProvisioningArtifactType
      -> Maybe ProvisioningArtifactGuidance
      -> Maybe Text
      -> ProvisioningArtifactDetail)
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
"Id")
            Parser
  (Maybe ProvisioningArtifactType
   -> Maybe ProvisioningArtifactGuidance
   -> Maybe Text
   -> ProvisioningArtifactDetail)
-> Parser (Maybe ProvisioningArtifactType)
-> Parser
     (Maybe ProvisioningArtifactGuidance
      -> Maybe Text -> ProvisioningArtifactDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProvisioningArtifactType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Type")
            Parser
  (Maybe ProvisioningArtifactGuidance
   -> Maybe Text -> ProvisioningArtifactDetail)
-> Parser (Maybe ProvisioningArtifactGuidance)
-> Parser (Maybe Text -> ProvisioningArtifactDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProvisioningArtifactGuidance)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Guidance")
            Parser (Maybe Text -> ProvisioningArtifactDetail)
-> Parser (Maybe Text) -> Parser ProvisioningArtifactDetail
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")
      )

instance Prelude.Hashable ProvisioningArtifactDetail

instance Prelude.NFData ProvisioningArtifactDetail