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

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.ServiceCatalog.Types.ProvisionedProductStatus
import Amazonka.ServiceCatalog.Types.Tag

-- | Information about a provisioned product.
--
-- /See:/ 'newProvisionedProductAttribute' smart constructor.
data ProvisionedProductAttribute = ProvisionedProductAttribute'
  { -- | A unique identifier that you provide to ensure idempotency. If multiple
    -- requests differ only by the idempotency token, the same response is
    -- returned for each repeated request.
    ProvisionedProductAttribute -> Maybe Text
idempotencyToken :: Prelude.Maybe Prelude.Text,
    -- | The current status of the provisioned product.
    --
    -- -   @AVAILABLE@ - Stable state, ready to perform any operation. The most
    --     recent operation succeeded and completed.
    --
    -- -   @UNDER_CHANGE@ - Transitive state. Operations performed might not
    --     have valid results. Wait for an @AVAILABLE@ status before performing
    --     operations.
    --
    -- -   @TAINTED@ - Stable state, ready to perform any operation. The stack
    --     has completed the requested operation but is not exactly what was
    --     requested. For example, a request to update to a new version failed
    --     and the stack rolled back to the current version.
    --
    -- -   @ERROR@ - An unexpected error occurred. The provisioned product
    --     exists but the stack is not running. For example, CloudFormation
    --     received a parameter value that was not valid and could not launch
    --     the stack.
    --
    -- -   @PLAN_IN_PROGRESS@ - Transitive state. The plan operations were
    --     performed to provision a new product, but resources have not yet
    --     been created. After reviewing the list of resources to be created,
    --     execute the plan. Wait for an @AVAILABLE@ status before performing
    --     operations.
    ProvisionedProductAttribute -> Maybe ProvisionedProductStatus
status :: Prelude.Maybe ProvisionedProductStatus,
    -- | The name of the product.
    ProvisionedProductAttribute -> Maybe Text
productName :: Prelude.Maybe Prelude.Text,
    -- | The record identifier of the last successful request performed on this
    -- provisioned product of the following types:
    --
    -- -   ProvisionedProduct
    --
    -- -   UpdateProvisionedProduct
    --
    -- -   ExecuteProvisionedProductPlan
    --
    -- -   TerminateProvisionedProduct
    ProvisionedProductAttribute -> Maybe Text
lastSuccessfulProvisioningRecordId :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioning artifact.
    ProvisionedProductAttribute -> Maybe Text
provisioningArtifactId :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the provisioned product.
    ProvisionedProductAttribute -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The UTC time stamp of the creation time.
    ProvisionedProductAttribute -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | The name of the provisioning artifact.
    ProvisionedProductAttribute -> Maybe Text
provisioningArtifactName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the IAM user.
    ProvisionedProductAttribute -> Maybe Text
userArn :: Prelude.Maybe Prelude.Text,
    -- | The current status message of the provisioned product.
    ProvisionedProductAttribute -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | The user-friendly name of the provisioned product.
    ProvisionedProductAttribute -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The record identifier of the last request performed on this provisioned
    -- product.
    ProvisionedProductAttribute -> Maybe Text
lastRecordId :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the IAM user in the session. This ARN might contain a session
    -- ID.
    ProvisionedProductAttribute -> Maybe Text
userArnSession :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioned product.
    ProvisionedProductAttribute -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The type of provisioned product. The supported values are @CFN_STACK@
    -- and @CFN_STACKSET@.
    ProvisionedProductAttribute -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
    -- | The assigned identifier for the resource, such as an EC2 instance ID or
    -- an S3 bucket name.
    ProvisionedProductAttribute -> Maybe Text
physicalId :: Prelude.Maybe Prelude.Text,
    -- | The record identifier of the last request performed on this provisioned
    -- product of the following types:
    --
    -- -   ProvisionedProduct
    --
    -- -   UpdateProvisionedProduct
    --
    -- -   ExecuteProvisionedProductPlan
    --
    -- -   TerminateProvisionedProduct
    ProvisionedProductAttribute -> Maybe Text
lastProvisioningRecordId :: Prelude.Maybe Prelude.Text,
    -- | The product identifier.
    ProvisionedProductAttribute -> Maybe Text
productId :: Prelude.Maybe Prelude.Text,
    -- | One or more tags.
    ProvisionedProductAttribute -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (ProvisionedProductAttribute -> ProvisionedProductAttribute -> Bool
(ProvisionedProductAttribute
 -> ProvisionedProductAttribute -> Bool)
-> (ProvisionedProductAttribute
    -> ProvisionedProductAttribute -> Bool)
-> Eq ProvisionedProductAttribute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProvisionedProductAttribute -> ProvisionedProductAttribute -> Bool
$c/= :: ProvisionedProductAttribute -> ProvisionedProductAttribute -> Bool
== :: ProvisionedProductAttribute -> ProvisionedProductAttribute -> Bool
$c== :: ProvisionedProductAttribute -> ProvisionedProductAttribute -> Bool
Prelude.Eq, ReadPrec [ProvisionedProductAttribute]
ReadPrec ProvisionedProductAttribute
Int -> ReadS ProvisionedProductAttribute
ReadS [ProvisionedProductAttribute]
(Int -> ReadS ProvisionedProductAttribute)
-> ReadS [ProvisionedProductAttribute]
-> ReadPrec ProvisionedProductAttribute
-> ReadPrec [ProvisionedProductAttribute]
-> Read ProvisionedProductAttribute
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProvisionedProductAttribute]
$creadListPrec :: ReadPrec [ProvisionedProductAttribute]
readPrec :: ReadPrec ProvisionedProductAttribute
$creadPrec :: ReadPrec ProvisionedProductAttribute
readList :: ReadS [ProvisionedProductAttribute]
$creadList :: ReadS [ProvisionedProductAttribute]
readsPrec :: Int -> ReadS ProvisionedProductAttribute
$creadsPrec :: Int -> ReadS ProvisionedProductAttribute
Prelude.Read, Int -> ProvisionedProductAttribute -> ShowS
[ProvisionedProductAttribute] -> ShowS
ProvisionedProductAttribute -> String
(Int -> ProvisionedProductAttribute -> ShowS)
-> (ProvisionedProductAttribute -> String)
-> ([ProvisionedProductAttribute] -> ShowS)
-> Show ProvisionedProductAttribute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProvisionedProductAttribute] -> ShowS
$cshowList :: [ProvisionedProductAttribute] -> ShowS
show :: ProvisionedProductAttribute -> String
$cshow :: ProvisionedProductAttribute -> String
showsPrec :: Int -> ProvisionedProductAttribute -> ShowS
$cshowsPrec :: Int -> ProvisionedProductAttribute -> ShowS
Prelude.Show, (forall x.
 ProvisionedProductAttribute -> Rep ProvisionedProductAttribute x)
-> (forall x.
    Rep ProvisionedProductAttribute x -> ProvisionedProductAttribute)
-> Generic ProvisionedProductAttribute
forall x.
Rep ProvisionedProductAttribute x -> ProvisionedProductAttribute
forall x.
ProvisionedProductAttribute -> Rep ProvisionedProductAttribute x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProvisionedProductAttribute x -> ProvisionedProductAttribute
$cfrom :: forall x.
ProvisionedProductAttribute -> Rep ProvisionedProductAttribute x
Prelude.Generic)

-- |
-- Create a value of 'ProvisionedProductAttribute' 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:
--
-- 'idempotencyToken', 'provisionedProductAttribute_idempotencyToken' - A unique identifier that you provide to ensure idempotency. If multiple
-- requests differ only by the idempotency token, the same response is
-- returned for each repeated request.
--
-- 'status', 'provisionedProductAttribute_status' - The current status of the provisioned product.
--
-- -   @AVAILABLE@ - Stable state, ready to perform any operation. The most
--     recent operation succeeded and completed.
--
-- -   @UNDER_CHANGE@ - Transitive state. Operations performed might not
--     have valid results. Wait for an @AVAILABLE@ status before performing
--     operations.
--
-- -   @TAINTED@ - Stable state, ready to perform any operation. The stack
--     has completed the requested operation but is not exactly what was
--     requested. For example, a request to update to a new version failed
--     and the stack rolled back to the current version.
--
-- -   @ERROR@ - An unexpected error occurred. The provisioned product
--     exists but the stack is not running. For example, CloudFormation
--     received a parameter value that was not valid and could not launch
--     the stack.
--
-- -   @PLAN_IN_PROGRESS@ - Transitive state. The plan operations were
--     performed to provision a new product, but resources have not yet
--     been created. After reviewing the list of resources to be created,
--     execute the plan. Wait for an @AVAILABLE@ status before performing
--     operations.
--
-- 'productName', 'provisionedProductAttribute_productName' - The name of the product.
--
-- 'lastSuccessfulProvisioningRecordId', 'provisionedProductAttribute_lastSuccessfulProvisioningRecordId' - The record identifier of the last successful request performed on this
-- provisioned product of the following types:
--
-- -   ProvisionedProduct
--
-- -   UpdateProvisionedProduct
--
-- -   ExecuteProvisionedProductPlan
--
-- -   TerminateProvisionedProduct
--
-- 'provisioningArtifactId', 'provisionedProductAttribute_provisioningArtifactId' - The identifier of the provisioning artifact.
--
-- 'arn', 'provisionedProductAttribute_arn' - The ARN of the provisioned product.
--
-- 'createdTime', 'provisionedProductAttribute_createdTime' - The UTC time stamp of the creation time.
--
-- 'provisioningArtifactName', 'provisionedProductAttribute_provisioningArtifactName' - The name of the provisioning artifact.
--
-- 'userArn', 'provisionedProductAttribute_userArn' - The Amazon Resource Name (ARN) of the IAM user.
--
-- 'statusMessage', 'provisionedProductAttribute_statusMessage' - The current status message of the provisioned product.
--
-- 'name', 'provisionedProductAttribute_name' - The user-friendly name of the provisioned product.
--
-- 'lastRecordId', 'provisionedProductAttribute_lastRecordId' - The record identifier of the last request performed on this provisioned
-- product.
--
-- 'userArnSession', 'provisionedProductAttribute_userArnSession' - The ARN of the IAM user in the session. This ARN might contain a session
-- ID.
--
-- 'id', 'provisionedProductAttribute_id' - The identifier of the provisioned product.
--
-- 'type'', 'provisionedProductAttribute_type' - The type of provisioned product. The supported values are @CFN_STACK@
-- and @CFN_STACKSET@.
--
-- 'physicalId', 'provisionedProductAttribute_physicalId' - The assigned identifier for the resource, such as an EC2 instance ID or
-- an S3 bucket name.
--
-- 'lastProvisioningRecordId', 'provisionedProductAttribute_lastProvisioningRecordId' - The record identifier of the last request performed on this provisioned
-- product of the following types:
--
-- -   ProvisionedProduct
--
-- -   UpdateProvisionedProduct
--
-- -   ExecuteProvisionedProductPlan
--
-- -   TerminateProvisionedProduct
--
-- 'productId', 'provisionedProductAttribute_productId' - The product identifier.
--
-- 'tags', 'provisionedProductAttribute_tags' - One or more tags.
newProvisionedProductAttribute ::
  ProvisionedProductAttribute
newProvisionedProductAttribute :: ProvisionedProductAttribute
newProvisionedProductAttribute =
  ProvisionedProductAttribute' :: Maybe Text
-> Maybe ProvisionedProductStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> ProvisionedProductAttribute
ProvisionedProductAttribute'
    { $sel:idempotencyToken:ProvisionedProductAttribute' :: Maybe Text
idempotencyToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:ProvisionedProductAttribute' :: Maybe ProvisionedProductStatus
status = Maybe ProvisionedProductStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:productName:ProvisionedProductAttribute' :: Maybe Text
productName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastSuccessfulProvisioningRecordId:ProvisionedProductAttribute' :: Maybe Text
lastSuccessfulProvisioningRecordId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:provisioningArtifactId:ProvisionedProductAttribute' :: Maybe Text
provisioningArtifactId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:ProvisionedProductAttribute' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:ProvisionedProductAttribute' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:provisioningArtifactName:ProvisionedProductAttribute' :: Maybe Text
provisioningArtifactName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:userArn:ProvisionedProductAttribute' :: Maybe Text
userArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:ProvisionedProductAttribute' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:ProvisionedProductAttribute' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastRecordId:ProvisionedProductAttribute' :: Maybe Text
lastRecordId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:userArnSession:ProvisionedProductAttribute' :: Maybe Text
userArnSession = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:ProvisionedProductAttribute' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:type':ProvisionedProductAttribute' :: Maybe Text
type' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:physicalId:ProvisionedProductAttribute' :: Maybe Text
physicalId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastProvisioningRecordId:ProvisionedProductAttribute' :: Maybe Text
lastProvisioningRecordId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:productId:ProvisionedProductAttribute' :: Maybe Text
productId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ProvisionedProductAttribute' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
    }

-- | A unique identifier that you provide to ensure idempotency. If multiple
-- requests differ only by the idempotency token, the same response is
-- returned for each repeated request.
provisionedProductAttribute_idempotencyToken :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_idempotencyToken :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_idempotencyToken = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
idempotencyToken :: Maybe Text
$sel:idempotencyToken:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
idempotencyToken} -> Maybe Text
idempotencyToken) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:idempotencyToken:ProvisionedProductAttribute' :: Maybe Text
idempotencyToken = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The current status of the provisioned product.
--
-- -   @AVAILABLE@ - Stable state, ready to perform any operation. The most
--     recent operation succeeded and completed.
--
-- -   @UNDER_CHANGE@ - Transitive state. Operations performed might not
--     have valid results. Wait for an @AVAILABLE@ status before performing
--     operations.
--
-- -   @TAINTED@ - Stable state, ready to perform any operation. The stack
--     has completed the requested operation but is not exactly what was
--     requested. For example, a request to update to a new version failed
--     and the stack rolled back to the current version.
--
-- -   @ERROR@ - An unexpected error occurred. The provisioned product
--     exists but the stack is not running. For example, CloudFormation
--     received a parameter value that was not valid and could not launch
--     the stack.
--
-- -   @PLAN_IN_PROGRESS@ - Transitive state. The plan operations were
--     performed to provision a new product, but resources have not yet
--     been created. After reviewing the list of resources to be created,
--     execute the plan. Wait for an @AVAILABLE@ status before performing
--     operations.
provisionedProductAttribute_status :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe ProvisionedProductStatus)
provisionedProductAttribute_status :: (Maybe ProvisionedProductStatus
 -> f (Maybe ProvisionedProductStatus))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_status = (ProvisionedProductAttribute -> Maybe ProvisionedProductStatus)
-> (ProvisionedProductAttribute
    -> Maybe ProvisionedProductStatus -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe ProvisionedProductStatus)
     (Maybe ProvisionedProductStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe ProvisionedProductStatus
status :: Maybe ProvisionedProductStatus
$sel:status:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe ProvisionedProductStatus
status} -> Maybe ProvisionedProductStatus
status) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe ProvisionedProductStatus
a -> ProvisionedProductAttribute
s {$sel:status:ProvisionedProductAttribute' :: Maybe ProvisionedProductStatus
status = Maybe ProvisionedProductStatus
a} :: ProvisionedProductAttribute)

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

-- | The record identifier of the last successful request performed on this
-- provisioned product of the following types:
--
-- -   ProvisionedProduct
--
-- -   UpdateProvisionedProduct
--
-- -   ExecuteProvisionedProductPlan
--
-- -   TerminateProvisionedProduct
provisionedProductAttribute_lastSuccessfulProvisioningRecordId :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_lastSuccessfulProvisioningRecordId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_lastSuccessfulProvisioningRecordId = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
lastSuccessfulProvisioningRecordId :: Maybe Text
$sel:lastSuccessfulProvisioningRecordId:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
lastSuccessfulProvisioningRecordId} -> Maybe Text
lastSuccessfulProvisioningRecordId) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:lastSuccessfulProvisioningRecordId:ProvisionedProductAttribute' :: Maybe Text
lastSuccessfulProvisioningRecordId = Maybe Text
a} :: ProvisionedProductAttribute)

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

-- | The ARN of the provisioned product.
provisionedProductAttribute_arn :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_arn :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_arn = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
arn :: Maybe Text
$sel:arn:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:arn:ProvisionedProductAttribute' :: Maybe Text
arn = Maybe Text
a} :: ProvisionedProductAttribute)

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

-- | The Amazon Resource Name (ARN) of the IAM user.
provisionedProductAttribute_userArn :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_userArn :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_userArn = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
userArn :: Maybe Text
$sel:userArn:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
userArn} -> Maybe Text
userArn) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:userArn:ProvisionedProductAttribute' :: Maybe Text
userArn = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The current status message of the provisioned product.
provisionedProductAttribute_statusMessage :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_statusMessage :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_statusMessage = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:statusMessage:ProvisionedProductAttribute' :: Maybe Text
statusMessage = Maybe Text
a} :: ProvisionedProductAttribute)

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

-- | The record identifier of the last request performed on this provisioned
-- product.
provisionedProductAttribute_lastRecordId :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_lastRecordId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_lastRecordId = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
lastRecordId :: Maybe Text
$sel:lastRecordId:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
lastRecordId} -> Maybe Text
lastRecordId) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:lastRecordId:ProvisionedProductAttribute' :: Maybe Text
lastRecordId = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The ARN of the IAM user in the session. This ARN might contain a session
-- ID.
provisionedProductAttribute_userArnSession :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_userArnSession :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_userArnSession = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
userArnSession :: Maybe Text
$sel:userArnSession:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
userArnSession} -> Maybe Text
userArnSession) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:userArnSession:ProvisionedProductAttribute' :: Maybe Text
userArnSession = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The identifier of the provisioned product.
provisionedProductAttribute_id :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_id :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_id = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
id :: Maybe Text
$sel:id:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
id} -> Maybe Text
id) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:id:ProvisionedProductAttribute' :: Maybe Text
id = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The type of provisioned product. The supported values are @CFN_STACK@
-- and @CFN_STACKSET@.
provisionedProductAttribute_type :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_type :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_type = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
type' :: Maybe Text
$sel:type':ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
type'} -> Maybe Text
type') (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:type':ProvisionedProductAttribute' :: Maybe Text
type' = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The assigned identifier for the resource, such as an EC2 instance ID or
-- an S3 bucket name.
provisionedProductAttribute_physicalId :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_physicalId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_physicalId = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
physicalId :: Maybe Text
$sel:physicalId:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
physicalId} -> Maybe Text
physicalId) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:physicalId:ProvisionedProductAttribute' :: Maybe Text
physicalId = Maybe Text
a} :: ProvisionedProductAttribute)

-- | The record identifier of the last request performed on this provisioned
-- product of the following types:
--
-- -   ProvisionedProduct
--
-- -   UpdateProvisionedProduct
--
-- -   ExecuteProvisionedProductPlan
--
-- -   TerminateProvisionedProduct
provisionedProductAttribute_lastProvisioningRecordId :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe Prelude.Text)
provisionedProductAttribute_lastProvisioningRecordId :: (Maybe Text -> f (Maybe Text))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_lastProvisioningRecordId = (ProvisionedProductAttribute -> Maybe Text)
-> (ProvisionedProductAttribute
    -> Maybe Text -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe Text
lastProvisioningRecordId :: Maybe Text
$sel:lastProvisioningRecordId:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe Text
lastProvisioningRecordId} -> Maybe Text
lastProvisioningRecordId) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe Text
a -> ProvisionedProductAttribute
s {$sel:lastProvisioningRecordId:ProvisionedProductAttribute' :: Maybe Text
lastProvisioningRecordId = Maybe Text
a} :: ProvisionedProductAttribute)

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

-- | One or more tags.
provisionedProductAttribute_tags :: Lens.Lens' ProvisionedProductAttribute (Prelude.Maybe [Tag])
provisionedProductAttribute_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> ProvisionedProductAttribute -> f ProvisionedProductAttribute
provisionedProductAttribute_tags = (ProvisionedProductAttribute -> Maybe [Tag])
-> (ProvisionedProductAttribute
    -> Maybe [Tag] -> ProvisionedProductAttribute)
-> Lens
     ProvisionedProductAttribute
     ProvisionedProductAttribute
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionedProductAttribute' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:ProvisionedProductAttribute' :: ProvisionedProductAttribute -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: ProvisionedProductAttribute
s@ProvisionedProductAttribute' {} Maybe [Tag]
a -> ProvisionedProductAttribute
s {$sel:tags:ProvisionedProductAttribute' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: ProvisionedProductAttribute) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> ProvisionedProductAttribute -> f ProvisionedProductAttribute)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> ProvisionedProductAttribute
-> f ProvisionedProductAttribute
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 ProvisionedProductAttribute where
  parseJSON :: Value -> Parser ProvisionedProductAttribute
parseJSON =
    String
-> (Object -> Parser ProvisionedProductAttribute)
-> Value
-> Parser ProvisionedProductAttribute
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ProvisionedProductAttribute"
      ( \Object
x ->
          Maybe Text
-> Maybe ProvisionedProductStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> ProvisionedProductAttribute
ProvisionedProductAttribute'
            (Maybe Text
 -> Maybe ProvisionedProductStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Tag]
 -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe ProvisionedProductStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
forall (f :: * -> *) a b. Functor 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
"IdempotencyToken")
            Parser
  (Maybe ProvisionedProductStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe ProvisionedProductStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProvisionedProductStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"ProductName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"LastSuccessfulProvisioningRecordId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"Arn")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"ProvisioningArtifactName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"UserArn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"LastRecordId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"UserArnSession")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Tag]
      -> ProvisionedProductAttribute)
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
"Type")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Tag]
   -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe [Tag] -> ProvisionedProductAttribute)
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
"PhysicalId")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe [Tag] -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe [Tag] -> ProvisionedProductAttribute)
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
"LastProvisioningRecordId")
            Parser (Maybe Text -> Maybe [Tag] -> ProvisionedProductAttribute)
-> Parser (Maybe Text)
-> Parser (Maybe [Tag] -> ProvisionedProductAttribute)
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] -> ProvisionedProductAttribute)
-> Parser (Maybe [Tag]) -> Parser ProvisionedProductAttribute
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 ProvisionedProductAttribute

instance Prelude.NFData ProvisionedProductAttribute