{-# 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.ProvisionedProductPlanDetails
-- 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.ProvisionedProductPlanDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.ServiceCatalog.Types.ProvisionedProductPlanStatus
import Amazonka.ServiceCatalog.Types.ProvisionedProductPlanType
import Amazonka.ServiceCatalog.Types.Tag
import Amazonka.ServiceCatalog.Types.UpdateProvisioningParameter

-- | Information about a plan.
--
-- /See:/ 'newProvisionedProductPlanDetails' smart constructor.
data ProvisionedProductPlanDetails = ProvisionedProductPlanDetails'
  { -- | The status.
    ProvisionedProductPlanDetails -> Maybe ProvisionedProductPlanStatus
status :: Prelude.Maybe ProvisionedProductPlanStatus,
    -- | The product identifier.
    ProvisionedProductPlanDetails -> Maybe Text
provisionProductId :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioning artifact.
    ProvisionedProductPlanDetails -> Maybe Text
provisioningArtifactId :: Prelude.Maybe Prelude.Text,
    -- | The user-friendly name of the provisioned product.
    ProvisionedProductPlanDetails -> Maybe Text
provisionProductName :: Prelude.Maybe Prelude.Text,
    -- | The UTC time stamp of the creation time.
    ProvisionedProductPlanDetails -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | Passed to CloudFormation. The SNS topic ARNs to which to publish
    -- stack-related events.
    ProvisionedProductPlanDetails -> Maybe [Text]
notificationArns :: Prelude.Maybe [Prelude.Text],
    -- | The plan identifier.
    ProvisionedProductPlanDetails -> Maybe Text
planId :: Prelude.Maybe Prelude.Text,
    -- | The name of the plan.
    ProvisionedProductPlanDetails -> Maybe Text
planName :: Prelude.Maybe Prelude.Text,
    -- | The status message.
    ProvisionedProductPlanDetails -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | The time when the plan was last updated.
    ProvisionedProductPlanDetails -> Maybe POSIX
updatedTime :: Prelude.Maybe Core.POSIX,
    -- | The path identifier of the product. This value is optional if the
    -- product has a default path, and required if the product has more than
    -- one path. To list the paths for a product, use ListLaunchPaths.
    ProvisionedProductPlanDetails -> Maybe Text
pathId :: Prelude.Maybe Prelude.Text,
    -- | Parameters specified by the administrator that are required for
    -- provisioning the product.
    ProvisionedProductPlanDetails
-> Maybe [UpdateProvisioningParameter]
provisioningParameters :: Prelude.Maybe [UpdateProvisioningParameter],
    -- | The plan type.
    ProvisionedProductPlanDetails -> Maybe ProvisionedProductPlanType
planType :: Prelude.Maybe ProvisionedProductPlanType,
    -- | The product identifier.
    ProvisionedProductPlanDetails -> Maybe Text
productId :: Prelude.Maybe Prelude.Text,
    -- | One or more tags.
    ProvisionedProductPlanDetails -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (ProvisionedProductPlanDetails
-> ProvisionedProductPlanDetails -> Bool
(ProvisionedProductPlanDetails
 -> ProvisionedProductPlanDetails -> Bool)
-> (ProvisionedProductPlanDetails
    -> ProvisionedProductPlanDetails -> Bool)
-> Eq ProvisionedProductPlanDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProvisionedProductPlanDetails
-> ProvisionedProductPlanDetails -> Bool
$c/= :: ProvisionedProductPlanDetails
-> ProvisionedProductPlanDetails -> Bool
== :: ProvisionedProductPlanDetails
-> ProvisionedProductPlanDetails -> Bool
$c== :: ProvisionedProductPlanDetails
-> ProvisionedProductPlanDetails -> Bool
Prelude.Eq, ReadPrec [ProvisionedProductPlanDetails]
ReadPrec ProvisionedProductPlanDetails
Int -> ReadS ProvisionedProductPlanDetails
ReadS [ProvisionedProductPlanDetails]
(Int -> ReadS ProvisionedProductPlanDetails)
-> ReadS [ProvisionedProductPlanDetails]
-> ReadPrec ProvisionedProductPlanDetails
-> ReadPrec [ProvisionedProductPlanDetails]
-> Read ProvisionedProductPlanDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProvisionedProductPlanDetails]
$creadListPrec :: ReadPrec [ProvisionedProductPlanDetails]
readPrec :: ReadPrec ProvisionedProductPlanDetails
$creadPrec :: ReadPrec ProvisionedProductPlanDetails
readList :: ReadS [ProvisionedProductPlanDetails]
$creadList :: ReadS [ProvisionedProductPlanDetails]
readsPrec :: Int -> ReadS ProvisionedProductPlanDetails
$creadsPrec :: Int -> ReadS ProvisionedProductPlanDetails
Prelude.Read, Int -> ProvisionedProductPlanDetails -> ShowS
[ProvisionedProductPlanDetails] -> ShowS
ProvisionedProductPlanDetails -> String
(Int -> ProvisionedProductPlanDetails -> ShowS)
-> (ProvisionedProductPlanDetails -> String)
-> ([ProvisionedProductPlanDetails] -> ShowS)
-> Show ProvisionedProductPlanDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProvisionedProductPlanDetails] -> ShowS
$cshowList :: [ProvisionedProductPlanDetails] -> ShowS
show :: ProvisionedProductPlanDetails -> String
$cshow :: ProvisionedProductPlanDetails -> String
showsPrec :: Int -> ProvisionedProductPlanDetails -> ShowS
$cshowsPrec :: Int -> ProvisionedProductPlanDetails -> ShowS
Prelude.Show, (forall x.
 ProvisionedProductPlanDetails
 -> Rep ProvisionedProductPlanDetails x)
-> (forall x.
    Rep ProvisionedProductPlanDetails x
    -> ProvisionedProductPlanDetails)
-> Generic ProvisionedProductPlanDetails
forall x.
Rep ProvisionedProductPlanDetails x
-> ProvisionedProductPlanDetails
forall x.
ProvisionedProductPlanDetails
-> Rep ProvisionedProductPlanDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProvisionedProductPlanDetails x
-> ProvisionedProductPlanDetails
$cfrom :: forall x.
ProvisionedProductPlanDetails
-> Rep ProvisionedProductPlanDetails x
Prelude.Generic)

-- |
-- Create a value of 'ProvisionedProductPlanDetails' 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', 'provisionedProductPlanDetails_status' - The status.
--
-- 'provisionProductId', 'provisionedProductPlanDetails_provisionProductId' - The product identifier.
--
-- 'provisioningArtifactId', 'provisionedProductPlanDetails_provisioningArtifactId' - The identifier of the provisioning artifact.
--
-- 'provisionProductName', 'provisionedProductPlanDetails_provisionProductName' - The user-friendly name of the provisioned product.
--
-- 'createdTime', 'provisionedProductPlanDetails_createdTime' - The UTC time stamp of the creation time.
--
-- 'notificationArns', 'provisionedProductPlanDetails_notificationArns' - Passed to CloudFormation. The SNS topic ARNs to which to publish
-- stack-related events.
--
-- 'planId', 'provisionedProductPlanDetails_planId' - The plan identifier.
--
-- 'planName', 'provisionedProductPlanDetails_planName' - The name of the plan.
--
-- 'statusMessage', 'provisionedProductPlanDetails_statusMessage' - The status message.
--
-- 'updatedTime', 'provisionedProductPlanDetails_updatedTime' - The time when the plan was last updated.
--
-- 'pathId', 'provisionedProductPlanDetails_pathId' - The path identifier of the product. This value is optional if the
-- product has a default path, and required if the product has more than
-- one path. To list the paths for a product, use ListLaunchPaths.
--
-- 'provisioningParameters', 'provisionedProductPlanDetails_provisioningParameters' - Parameters specified by the administrator that are required for
-- provisioning the product.
--
-- 'planType', 'provisionedProductPlanDetails_planType' - The plan type.
--
-- 'productId', 'provisionedProductPlanDetails_productId' - The product identifier.
--
-- 'tags', 'provisionedProductPlanDetails_tags' - One or more tags.
newProvisionedProductPlanDetails ::
  ProvisionedProductPlanDetails
newProvisionedProductPlanDetails :: ProvisionedProductPlanDetails
newProvisionedProductPlanDetails =
  ProvisionedProductPlanDetails' :: Maybe ProvisionedProductPlanStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [UpdateProvisioningParameter]
-> Maybe ProvisionedProductPlanType
-> Maybe Text
-> Maybe [Tag]
-> ProvisionedProductPlanDetails
ProvisionedProductPlanDetails'
    { $sel:status:ProvisionedProductPlanDetails' :: Maybe ProvisionedProductPlanStatus
status =
        Maybe ProvisionedProductPlanStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:provisionProductId:ProvisionedProductPlanDetails' :: Maybe Text
provisionProductId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:provisioningArtifactId:ProvisionedProductPlanDetails' :: Maybe Text
provisioningArtifactId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:provisionProductName:ProvisionedProductPlanDetails' :: Maybe Text
provisionProductName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:ProvisionedProductPlanDetails' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:notificationArns:ProvisionedProductPlanDetails' :: Maybe [Text]
notificationArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:planId:ProvisionedProductPlanDetails' :: Maybe Text
planId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:planName:ProvisionedProductPlanDetails' :: Maybe Text
planName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:ProvisionedProductPlanDetails' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedTime:ProvisionedProductPlanDetails' :: Maybe POSIX
updatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:pathId:ProvisionedProductPlanDetails' :: Maybe Text
pathId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:provisioningParameters:ProvisionedProductPlanDetails' :: Maybe [UpdateProvisioningParameter]
provisioningParameters = Maybe [UpdateProvisioningParameter]
forall a. Maybe a
Prelude.Nothing,
      $sel:planType:ProvisionedProductPlanDetails' :: Maybe ProvisionedProductPlanType
planType = Maybe ProvisionedProductPlanType
forall a. Maybe a
Prelude.Nothing,
      $sel:productId:ProvisionedProductPlanDetails' :: Maybe Text
productId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ProvisionedProductPlanDetails' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
    }

-- | The status.
provisionedProductPlanDetails_status :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe ProvisionedProductPlanStatus)
provisionedProductPlanDetails_status :: (Maybe ProvisionedProductPlanStatus
 -> f (Maybe ProvisionedProductPlanStatus))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_status = (ProvisionedProductPlanDetails
 -> Maybe ProvisionedProductPlanStatus)
-> (ProvisionedProductPlanDetails
    -> Maybe ProvisionedProductPlanStatus
    -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe ProvisionedProductPlanStatus)
     (Maybe ProvisionedProductPlanStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe ProvisionedProductPlanStatus
status :: Maybe ProvisionedProductPlanStatus
$sel:status:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe ProvisionedProductPlanStatus
status} -> Maybe ProvisionedProductPlanStatus
status) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe ProvisionedProductPlanStatus
a -> ProvisionedProductPlanDetails
s {$sel:status:ProvisionedProductPlanDetails' :: Maybe ProvisionedProductPlanStatus
status = Maybe ProvisionedProductPlanStatus
a} :: ProvisionedProductPlanDetails)

-- | The product identifier.
provisionedProductPlanDetails_provisionProductId :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.Text)
provisionedProductPlanDetails_provisionProductId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_provisionProductId = (ProvisionedProductPlanDetails -> Maybe Text)
-> (ProvisionedProductPlanDetails
    -> Maybe Text -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe Text
provisionProductId :: Maybe Text
$sel:provisionProductId:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe Text
provisionProductId} -> Maybe Text
provisionProductId) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe Text
a -> ProvisionedProductPlanDetails
s {$sel:provisionProductId:ProvisionedProductPlanDetails' :: Maybe Text
provisionProductId = Maybe Text
a} :: ProvisionedProductPlanDetails)

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

-- | The user-friendly name of the provisioned product.
provisionedProductPlanDetails_provisionProductName :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.Text)
provisionedProductPlanDetails_provisionProductName :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_provisionProductName = (ProvisionedProductPlanDetails -> Maybe Text)
-> (ProvisionedProductPlanDetails
    -> Maybe Text -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe Text
provisionProductName :: Maybe Text
$sel:provisionProductName:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe Text
provisionProductName} -> Maybe Text
provisionProductName) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe Text
a -> ProvisionedProductPlanDetails
s {$sel:provisionProductName:ProvisionedProductPlanDetails' :: Maybe Text
provisionProductName = Maybe Text
a} :: ProvisionedProductPlanDetails)

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

-- | Passed to CloudFormation. The SNS topic ARNs to which to publish
-- stack-related events.
provisionedProductPlanDetails_notificationArns :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe [Prelude.Text])
provisionedProductPlanDetails_notificationArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_notificationArns = (ProvisionedProductPlanDetails -> Maybe [Text])
-> (ProvisionedProductPlanDetails
    -> Maybe [Text] -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe [Text]
notificationArns :: Maybe [Text]
$sel:notificationArns:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe [Text]
notificationArns} -> Maybe [Text]
notificationArns) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe [Text]
a -> ProvisionedProductPlanDetails
s {$sel:notificationArns:ProvisionedProductPlanDetails' :: Maybe [Text]
notificationArns = Maybe [Text]
a} :: ProvisionedProductPlanDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> ProvisionedProductPlanDetails
 -> f ProvisionedProductPlanDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ProvisionedProductPlanDetails
-> f ProvisionedProductPlanDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The plan identifier.
provisionedProductPlanDetails_planId :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.Text)
provisionedProductPlanDetails_planId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_planId = (ProvisionedProductPlanDetails -> Maybe Text)
-> (ProvisionedProductPlanDetails
    -> Maybe Text -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe Text
planId :: Maybe Text
$sel:planId:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe Text
planId} -> Maybe Text
planId) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe Text
a -> ProvisionedProductPlanDetails
s {$sel:planId:ProvisionedProductPlanDetails' :: Maybe Text
planId = Maybe Text
a} :: ProvisionedProductPlanDetails)

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

-- | The status message.
provisionedProductPlanDetails_statusMessage :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.Text)
provisionedProductPlanDetails_statusMessage :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_statusMessage = (ProvisionedProductPlanDetails -> Maybe Text)
-> (ProvisionedProductPlanDetails
    -> Maybe Text -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe Text
a -> ProvisionedProductPlanDetails
s {$sel:statusMessage:ProvisionedProductPlanDetails' :: Maybe Text
statusMessage = Maybe Text
a} :: ProvisionedProductPlanDetails)

-- | The time when the plan was last updated.
provisionedProductPlanDetails_updatedTime :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.UTCTime)
provisionedProductPlanDetails_updatedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_updatedTime = (ProvisionedProductPlanDetails -> Maybe POSIX)
-> (ProvisionedProductPlanDetails
    -> Maybe POSIX -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe POSIX
updatedTime :: Maybe POSIX
$sel:updatedTime:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe POSIX
updatedTime} -> Maybe POSIX
updatedTime) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe POSIX
a -> ProvisionedProductPlanDetails
s {$sel:updatedTime:ProvisionedProductPlanDetails' :: Maybe POSIX
updatedTime = Maybe POSIX
a} :: ProvisionedProductPlanDetails) ((Maybe POSIX -> f (Maybe POSIX))
 -> ProvisionedProductPlanDetails
 -> f ProvisionedProductPlanDetails)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ProvisionedProductPlanDetails
-> f ProvisionedProductPlanDetails
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 path identifier of the product. This value is optional if the
-- product has a default path, and required if the product has more than
-- one path. To list the paths for a product, use ListLaunchPaths.
provisionedProductPlanDetails_pathId :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.Text)
provisionedProductPlanDetails_pathId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_pathId = (ProvisionedProductPlanDetails -> Maybe Text)
-> (ProvisionedProductPlanDetails
    -> Maybe Text -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe Text
pathId :: Maybe Text
$sel:pathId:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe Text
pathId} -> Maybe Text
pathId) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe Text
a -> ProvisionedProductPlanDetails
s {$sel:pathId:ProvisionedProductPlanDetails' :: Maybe Text
pathId = Maybe Text
a} :: ProvisionedProductPlanDetails)

-- | Parameters specified by the administrator that are required for
-- provisioning the product.
provisionedProductPlanDetails_provisioningParameters :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe [UpdateProvisioningParameter])
provisionedProductPlanDetails_provisioningParameters :: (Maybe [UpdateProvisioningParameter]
 -> f (Maybe [UpdateProvisioningParameter]))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_provisioningParameters = (ProvisionedProductPlanDetails
 -> Maybe [UpdateProvisioningParameter])
-> (ProvisionedProductPlanDetails
    -> Maybe [UpdateProvisioningParameter]
    -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe [UpdateProvisioningParameter])
     (Maybe [UpdateProvisioningParameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe [UpdateProvisioningParameter]
provisioningParameters :: Maybe [UpdateProvisioningParameter]
$sel:provisioningParameters:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails
-> Maybe [UpdateProvisioningParameter]
provisioningParameters} -> Maybe [UpdateProvisioningParameter]
provisioningParameters) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe [UpdateProvisioningParameter]
a -> ProvisionedProductPlanDetails
s {$sel:provisioningParameters:ProvisionedProductPlanDetails' :: Maybe [UpdateProvisioningParameter]
provisioningParameters = Maybe [UpdateProvisioningParameter]
a} :: ProvisionedProductPlanDetails) ((Maybe [UpdateProvisioningParameter]
  -> f (Maybe [UpdateProvisioningParameter]))
 -> ProvisionedProductPlanDetails
 -> f ProvisionedProductPlanDetails)
-> ((Maybe [UpdateProvisioningParameter]
     -> f (Maybe [UpdateProvisioningParameter]))
    -> Maybe [UpdateProvisioningParameter]
    -> f (Maybe [UpdateProvisioningParameter]))
-> (Maybe [UpdateProvisioningParameter]
    -> f (Maybe [UpdateProvisioningParameter]))
-> ProvisionedProductPlanDetails
-> f ProvisionedProductPlanDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [UpdateProvisioningParameter]
  [UpdateProvisioningParameter]
  [UpdateProvisioningParameter]
  [UpdateProvisioningParameter]
-> Iso
     (Maybe [UpdateProvisioningParameter])
     (Maybe [UpdateProvisioningParameter])
     (Maybe [UpdateProvisioningParameter])
     (Maybe [UpdateProvisioningParameter])
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
  [UpdateProvisioningParameter]
  [UpdateProvisioningParameter]
  [UpdateProvisioningParameter]
  [UpdateProvisioningParameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The plan type.
provisionedProductPlanDetails_planType :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe ProvisionedProductPlanType)
provisionedProductPlanDetails_planType :: (Maybe ProvisionedProductPlanType
 -> f (Maybe ProvisionedProductPlanType))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_planType = (ProvisionedProductPlanDetails -> Maybe ProvisionedProductPlanType)
-> (ProvisionedProductPlanDetails
    -> Maybe ProvisionedProductPlanType
    -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe ProvisionedProductPlanType)
     (Maybe ProvisionedProductPlanType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe ProvisionedProductPlanType
planType :: Maybe ProvisionedProductPlanType
$sel:planType:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe ProvisionedProductPlanType
planType} -> Maybe ProvisionedProductPlanType
planType) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe ProvisionedProductPlanType
a -> ProvisionedProductPlanDetails
s {$sel:planType:ProvisionedProductPlanDetails' :: Maybe ProvisionedProductPlanType
planType = Maybe ProvisionedProductPlanType
a} :: ProvisionedProductPlanDetails)

-- | The product identifier.
provisionedProductPlanDetails_productId :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe Prelude.Text)
provisionedProductPlanDetails_productId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_productId = (ProvisionedProductPlanDetails -> Maybe Text)
-> (ProvisionedProductPlanDetails
    -> Maybe Text -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe Text
productId :: Maybe Text
$sel:productId:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe Text
productId} -> Maybe Text
productId) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe Text
a -> ProvisionedProductPlanDetails
s {$sel:productId:ProvisionedProductPlanDetails' :: Maybe Text
productId = Maybe Text
a} :: ProvisionedProductPlanDetails)

-- | One or more tags.
provisionedProductPlanDetails_tags :: Lens.Lens' ProvisionedProductPlanDetails (Prelude.Maybe [Tag])
provisionedProductPlanDetails_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> ProvisionedProductPlanDetails -> f ProvisionedProductPlanDetails
provisionedProductPlanDetails_tags = (ProvisionedProductPlanDetails -> Maybe [Tag])
-> (ProvisionedProductPlanDetails
    -> Maybe [Tag] -> ProvisionedProductPlanDetails)
-> Lens
     ProvisionedProductPlanDetails
     ProvisionedProductPlanDetails
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductPlanDetails' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:ProvisionedProductPlanDetails' :: ProvisionedProductPlanDetails -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: ProvisionedProductPlanDetails
s@ProvisionedProductPlanDetails' {} Maybe [Tag]
a -> ProvisionedProductPlanDetails
s {$sel:tags:ProvisionedProductPlanDetails' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: ProvisionedProductPlanDetails) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> ProvisionedProductPlanDetails
 -> f ProvisionedProductPlanDetails)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> ProvisionedProductPlanDetails
-> f ProvisionedProductPlanDetails
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 ProvisionedProductPlanDetails where
  parseJSON :: Value -> Parser ProvisionedProductPlanDetails
parseJSON =
    String
-> (Object -> Parser ProvisionedProductPlanDetails)
-> Value
-> Parser ProvisionedProductPlanDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ProvisionedProductPlanDetails"
      ( \Object
x ->
          Maybe ProvisionedProductPlanStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [UpdateProvisioningParameter]
-> Maybe ProvisionedProductPlanType
-> Maybe Text
-> Maybe [Tag]
-> ProvisionedProductPlanDetails
ProvisionedProductPlanDetails'
            (Maybe ProvisionedProductPlanStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe [UpdateProvisioningParameter]
 -> Maybe ProvisionedProductPlanType
 -> Maybe Text
 -> Maybe [Tag]
 -> ProvisionedProductPlanDetails)
-> Parser (Maybe ProvisionedProductPlanStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ProvisionedProductPlanStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"ProvisionProductId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"ProvisioningArtifactId")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"ProvisionProductName")
            Parser
  (Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"CreatedTime")
            Parser
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NotificationArns"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"PlanId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"PlanName")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"StatusMessage")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"UpdatedTime")
            Parser
  (Maybe Text
   -> Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [UpdateProvisioningParameter]
      -> Maybe ProvisionedProductPlanType
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductPlanDetails)
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
"PathId")
            Parser
  (Maybe [UpdateProvisioningParameter]
   -> Maybe ProvisionedProductPlanType
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductPlanDetails)
-> Parser (Maybe [UpdateProvisioningParameter])
-> Parser
     (Maybe ProvisionedProductPlanType
      -> Maybe Text -> Maybe [Tag] -> ProvisionedProductPlanDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe [UpdateProvisioningParameter]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProvisioningParameters"
                            Parser (Maybe (Maybe [UpdateProvisioningParameter]))
-> Maybe [UpdateProvisioningParameter]
-> Parser (Maybe [UpdateProvisioningParameter])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [UpdateProvisioningParameter]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe ProvisionedProductPlanType
   -> Maybe Text -> Maybe [Tag] -> ProvisionedProductPlanDetails)
-> Parser (Maybe ProvisionedProductPlanType)
-> Parser
     (Maybe Text -> Maybe [Tag] -> ProvisionedProductPlanDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProvisionedProductPlanType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PlanType")
            Parser (Maybe Text -> Maybe [Tag] -> ProvisionedProductPlanDetails)
-> Parser (Maybe Text)
-> Parser (Maybe [Tag] -> ProvisionedProductPlanDetails)
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
"ProductId")
            Parser (Maybe [Tag] -> ProvisionedProductPlanDetails)
-> Parser (Maybe [Tag]) -> Parser ProvisionedProductPlanDetails
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
    ProvisionedProductPlanDetails

instance Prelude.NFData ProvisionedProductPlanDetails