{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.ProvisionProduct
-- 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)
--
-- Provisions the specified product.
--
-- A provisioned product is a resourced instance of a product. For example,
-- provisioning a product based on a CloudFormation template launches a
-- CloudFormation stack and its underlying resources. You can check the
-- status of this request using DescribeRecord.
--
-- If the request contains a tag key with an empty list of values, there is
-- a tag conflict for that key. Do not include conflicted keys as tags, or
-- this causes the error \"Parameter validation failed: Missing required
-- parameter in Tags[/N/]:/Value/\".
module Amazonka.ServiceCatalog.ProvisionProduct
  ( -- * Creating a Request
    ProvisionProduct (..),
    newProvisionProduct,

    -- * Request Lenses
    provisionProduct_productName,
    provisionProduct_provisioningArtifactId,
    provisionProduct_provisioningArtifactName,
    provisionProduct_notificationArns,
    provisionProduct_pathName,
    provisionProduct_acceptLanguage,
    provisionProduct_pathId,
    provisionProduct_provisioningParameters,
    provisionProduct_productId,
    provisionProduct_tags,
    provisionProduct_provisioningPreferences,
    provisionProduct_provisionedProductName,
    provisionProduct_provisionToken,

    -- * Destructuring the Response
    ProvisionProductResponse (..),
    newProvisionProductResponse,

    -- * Response Lenses
    provisionProductResponse_recordDetail,
    provisionProductResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.ServiceCatalog.Types

-- | /See:/ 'newProvisionProduct' smart constructor.
data ProvisionProduct = ProvisionProduct'
  { -- | The name of the product. You must provide the name or ID, but not both.
    ProvisionProduct -> Maybe Text
productName :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioning artifact. You must provide the name
    -- or ID, but not both.
    ProvisionProduct -> Maybe Text
provisioningArtifactId :: Prelude.Maybe Prelude.Text,
    -- | The name of the provisioning artifact. You must provide the name or ID,
    -- but not both.
    ProvisionProduct -> Maybe Text
provisioningArtifactName :: Prelude.Maybe Prelude.Text,
    -- | Passed to CloudFormation. The SNS topic ARNs to which to publish
    -- stack-related events.
    ProvisionProduct -> Maybe [Text]
notificationArns :: Prelude.Maybe [Prelude.Text],
    -- | The name of the path. You must provide the name or ID, but not both.
    ProvisionProduct -> Maybe Text
pathName :: Prelude.Maybe Prelude.Text,
    -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    ProvisionProduct -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
    -- | 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. You must
    -- provide the name or ID, but not both.
    ProvisionProduct -> Maybe Text
pathId :: Prelude.Maybe Prelude.Text,
    -- | Parameters specified by the administrator that are required for
    -- provisioning the product.
    ProvisionProduct -> Maybe [ProvisioningParameter]
provisioningParameters :: Prelude.Maybe [ProvisioningParameter],
    -- | The product identifier. You must provide the name or ID, but not both.
    ProvisionProduct -> Maybe Text
productId :: Prelude.Maybe Prelude.Text,
    -- | One or more tags.
    ProvisionProduct -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | An object that contains information about the provisioning preferences
    -- for a stack set.
    ProvisionProduct -> Maybe ProvisioningPreferences
provisioningPreferences :: Prelude.Maybe ProvisioningPreferences,
    -- | A user-friendly name for the provisioned product. This value must be
    -- unique for the AWS account and cannot be updated after the product is
    -- provisioned.
    ProvisionProduct -> Text
provisionedProductName :: Prelude.Text,
    -- | An idempotency token that uniquely identifies the provisioning request.
    ProvisionProduct -> Text
provisionToken :: Prelude.Text
  }
  deriving (ProvisionProduct -> ProvisionProduct -> Bool
(ProvisionProduct -> ProvisionProduct -> Bool)
-> (ProvisionProduct -> ProvisionProduct -> Bool)
-> Eq ProvisionProduct
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProvisionProduct -> ProvisionProduct -> Bool
$c/= :: ProvisionProduct -> ProvisionProduct -> Bool
== :: ProvisionProduct -> ProvisionProduct -> Bool
$c== :: ProvisionProduct -> ProvisionProduct -> Bool
Prelude.Eq, ReadPrec [ProvisionProduct]
ReadPrec ProvisionProduct
Int -> ReadS ProvisionProduct
ReadS [ProvisionProduct]
(Int -> ReadS ProvisionProduct)
-> ReadS [ProvisionProduct]
-> ReadPrec ProvisionProduct
-> ReadPrec [ProvisionProduct]
-> Read ProvisionProduct
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProvisionProduct]
$creadListPrec :: ReadPrec [ProvisionProduct]
readPrec :: ReadPrec ProvisionProduct
$creadPrec :: ReadPrec ProvisionProduct
readList :: ReadS [ProvisionProduct]
$creadList :: ReadS [ProvisionProduct]
readsPrec :: Int -> ReadS ProvisionProduct
$creadsPrec :: Int -> ReadS ProvisionProduct
Prelude.Read, Int -> ProvisionProduct -> ShowS
[ProvisionProduct] -> ShowS
ProvisionProduct -> String
(Int -> ProvisionProduct -> ShowS)
-> (ProvisionProduct -> String)
-> ([ProvisionProduct] -> ShowS)
-> Show ProvisionProduct
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProvisionProduct] -> ShowS
$cshowList :: [ProvisionProduct] -> ShowS
show :: ProvisionProduct -> String
$cshow :: ProvisionProduct -> String
showsPrec :: Int -> ProvisionProduct -> ShowS
$cshowsPrec :: Int -> ProvisionProduct -> ShowS
Prelude.Show, (forall x. ProvisionProduct -> Rep ProvisionProduct x)
-> (forall x. Rep ProvisionProduct x -> ProvisionProduct)
-> Generic ProvisionProduct
forall x. Rep ProvisionProduct x -> ProvisionProduct
forall x. ProvisionProduct -> Rep ProvisionProduct x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProvisionProduct x -> ProvisionProduct
$cfrom :: forall x. ProvisionProduct -> Rep ProvisionProduct x
Prelude.Generic)

-- |
-- Create a value of 'ProvisionProduct' 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:
--
-- 'productName', 'provisionProduct_productName' - The name of the product. You must provide the name or ID, but not both.
--
-- 'provisioningArtifactId', 'provisionProduct_provisioningArtifactId' - The identifier of the provisioning artifact. You must provide the name
-- or ID, but not both.
--
-- 'provisioningArtifactName', 'provisionProduct_provisioningArtifactName' - The name of the provisioning artifact. You must provide the name or ID,
-- but not both.
--
-- 'notificationArns', 'provisionProduct_notificationArns' - Passed to CloudFormation. The SNS topic ARNs to which to publish
-- stack-related events.
--
-- 'pathName', 'provisionProduct_pathName' - The name of the path. You must provide the name or ID, but not both.
--
-- 'acceptLanguage', 'provisionProduct_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'pathId', 'provisionProduct_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. You must
-- provide the name or ID, but not both.
--
-- 'provisioningParameters', 'provisionProduct_provisioningParameters' - Parameters specified by the administrator that are required for
-- provisioning the product.
--
-- 'productId', 'provisionProduct_productId' - The product identifier. You must provide the name or ID, but not both.
--
-- 'tags', 'provisionProduct_tags' - One or more tags.
--
-- 'provisioningPreferences', 'provisionProduct_provisioningPreferences' - An object that contains information about the provisioning preferences
-- for a stack set.
--
-- 'provisionedProductName', 'provisionProduct_provisionedProductName' - A user-friendly name for the provisioned product. This value must be
-- unique for the AWS account and cannot be updated after the product is
-- provisioned.
--
-- 'provisionToken', 'provisionProduct_provisionToken' - An idempotency token that uniquely identifies the provisioning request.
newProvisionProduct ::
  -- | 'provisionedProductName'
  Prelude.Text ->
  -- | 'provisionToken'
  Prelude.Text ->
  ProvisionProduct
newProvisionProduct :: Text -> Text -> ProvisionProduct
newProvisionProduct
  Text
pProvisionedProductName_
  Text
pProvisionToken_ =
    ProvisionProduct' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [ProvisioningParameter]
-> Maybe Text
-> Maybe [Tag]
-> Maybe ProvisioningPreferences
-> Text
-> Text
-> ProvisionProduct
ProvisionProduct'
      { $sel:productName:ProvisionProduct' :: Maybe Text
productName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:provisioningArtifactId:ProvisionProduct' :: Maybe Text
provisioningArtifactId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:provisioningArtifactName:ProvisionProduct' :: Maybe Text
provisioningArtifactName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:notificationArns:ProvisionProduct' :: Maybe [Text]
notificationArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:pathName:ProvisionProduct' :: Maybe Text
pathName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:acceptLanguage:ProvisionProduct' :: Maybe Text
acceptLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:pathId:ProvisionProduct' :: Maybe Text
pathId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:provisioningParameters:ProvisionProduct' :: Maybe [ProvisioningParameter]
provisioningParameters = Maybe [ProvisioningParameter]
forall a. Maybe a
Prelude.Nothing,
        $sel:productId:ProvisionProduct' :: Maybe Text
productId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:ProvisionProduct' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
        $sel:provisioningPreferences:ProvisionProduct' :: Maybe ProvisioningPreferences
provisioningPreferences = Maybe ProvisioningPreferences
forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedProductName:ProvisionProduct' :: Text
provisionedProductName = Text
pProvisionedProductName_,
        $sel:provisionToken:ProvisionProduct' :: Text
provisionToken = Text
pProvisionToken_
      }

-- | The name of the product. You must provide the name or ID, but not both.
provisionProduct_productName :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_productName :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_productName = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
productName :: Maybe Text
$sel:productName:ProvisionProduct' :: ProvisionProduct -> Maybe Text
productName} -> Maybe Text
productName) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:productName:ProvisionProduct' :: Maybe Text
productName = Maybe Text
a} :: ProvisionProduct)

-- | The identifier of the provisioning artifact. You must provide the name
-- or ID, but not both.
provisionProduct_provisioningArtifactId :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_provisioningArtifactId :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_provisioningArtifactId = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
provisioningArtifactId :: Maybe Text
$sel:provisioningArtifactId:ProvisionProduct' :: ProvisionProduct -> Maybe Text
provisioningArtifactId} -> Maybe Text
provisioningArtifactId) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:provisioningArtifactId:ProvisionProduct' :: Maybe Text
provisioningArtifactId = Maybe Text
a} :: ProvisionProduct)

-- | The name of the provisioning artifact. You must provide the name or ID,
-- but not both.
provisionProduct_provisioningArtifactName :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_provisioningArtifactName :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_provisioningArtifactName = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
provisioningArtifactName :: Maybe Text
$sel:provisioningArtifactName:ProvisionProduct' :: ProvisionProduct -> Maybe Text
provisioningArtifactName} -> Maybe Text
provisioningArtifactName) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:provisioningArtifactName:ProvisionProduct' :: Maybe Text
provisioningArtifactName = Maybe Text
a} :: ProvisionProduct)

-- | Passed to CloudFormation. The SNS topic ARNs to which to publish
-- stack-related events.
provisionProduct_notificationArns :: Lens.Lens' ProvisionProduct (Prelude.Maybe [Prelude.Text])
provisionProduct_notificationArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_notificationArns = (ProvisionProduct -> Maybe [Text])
-> (ProvisionProduct -> Maybe [Text] -> ProvisionProduct)
-> Lens
     ProvisionProduct ProvisionProduct (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe [Text]
notificationArns :: Maybe [Text]
$sel:notificationArns:ProvisionProduct' :: ProvisionProduct -> Maybe [Text]
notificationArns} -> Maybe [Text]
notificationArns) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe [Text]
a -> ProvisionProduct
s {$sel:notificationArns:ProvisionProduct' :: Maybe [Text]
notificationArns = Maybe [Text]
a} :: ProvisionProduct) ((Maybe [Text] -> f (Maybe [Text]))
 -> ProvisionProduct -> f ProvisionProduct)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ProvisionProduct
-> f ProvisionProduct
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 name of the path. You must provide the name or ID, but not both.
provisionProduct_pathName :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_pathName :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_pathName = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
pathName :: Maybe Text
$sel:pathName:ProvisionProduct' :: ProvisionProduct -> Maybe Text
pathName} -> Maybe Text
pathName) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:pathName:ProvisionProduct' :: Maybe Text
pathName = Maybe Text
a} :: ProvisionProduct)

-- | The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
provisionProduct_acceptLanguage :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_acceptLanguage = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:ProvisionProduct' :: ProvisionProduct -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:acceptLanguage:ProvisionProduct' :: Maybe Text
acceptLanguage = Maybe Text
a} :: ProvisionProduct)

-- | 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. You must
-- provide the name or ID, but not both.
provisionProduct_pathId :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_pathId :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_pathId = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
pathId :: Maybe Text
$sel:pathId:ProvisionProduct' :: ProvisionProduct -> Maybe Text
pathId} -> Maybe Text
pathId) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:pathId:ProvisionProduct' :: Maybe Text
pathId = Maybe Text
a} :: ProvisionProduct)

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

-- | The product identifier. You must provide the name or ID, but not both.
provisionProduct_productId :: Lens.Lens' ProvisionProduct (Prelude.Maybe Prelude.Text)
provisionProduct_productId :: (Maybe Text -> f (Maybe Text))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_productId = (ProvisionProduct -> Maybe Text)
-> (ProvisionProduct -> Maybe Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe Text
productId :: Maybe Text
$sel:productId:ProvisionProduct' :: ProvisionProduct -> Maybe Text
productId} -> Maybe Text
productId) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe Text
a -> ProvisionProduct
s {$sel:productId:ProvisionProduct' :: Maybe Text
productId = Maybe Text
a} :: ProvisionProduct)

-- | One or more tags.
provisionProduct_tags :: Lens.Lens' ProvisionProduct (Prelude.Maybe [Tag])
provisionProduct_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_tags = (ProvisionProduct -> Maybe [Tag])
-> (ProvisionProduct -> Maybe [Tag] -> ProvisionProduct)
-> Lens
     ProvisionProduct ProvisionProduct (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:ProvisionProduct' :: ProvisionProduct -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe [Tag]
a -> ProvisionProduct
s {$sel:tags:ProvisionProduct' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: ProvisionProduct) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> ProvisionProduct -> f ProvisionProduct)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> ProvisionProduct
-> f ProvisionProduct
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

-- | An object that contains information about the provisioning preferences
-- for a stack set.
provisionProduct_provisioningPreferences :: Lens.Lens' ProvisionProduct (Prelude.Maybe ProvisioningPreferences)
provisionProduct_provisioningPreferences :: (Maybe ProvisioningPreferences
 -> f (Maybe ProvisioningPreferences))
-> ProvisionProduct -> f ProvisionProduct
provisionProduct_provisioningPreferences = (ProvisionProduct -> Maybe ProvisioningPreferences)
-> (ProvisionProduct
    -> Maybe ProvisioningPreferences -> ProvisionProduct)
-> Lens
     ProvisionProduct
     ProvisionProduct
     (Maybe ProvisioningPreferences)
     (Maybe ProvisioningPreferences)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Maybe ProvisioningPreferences
provisioningPreferences :: Maybe ProvisioningPreferences
$sel:provisioningPreferences:ProvisionProduct' :: ProvisionProduct -> Maybe ProvisioningPreferences
provisioningPreferences} -> Maybe ProvisioningPreferences
provisioningPreferences) (\s :: ProvisionProduct
s@ProvisionProduct' {} Maybe ProvisioningPreferences
a -> ProvisionProduct
s {$sel:provisioningPreferences:ProvisionProduct' :: Maybe ProvisioningPreferences
provisioningPreferences = Maybe ProvisioningPreferences
a} :: ProvisionProduct)

-- | A user-friendly name for the provisioned product. This value must be
-- unique for the AWS account and cannot be updated after the product is
-- provisioned.
provisionProduct_provisionedProductName :: Lens.Lens' ProvisionProduct Prelude.Text
provisionProduct_provisionedProductName :: (Text -> f Text) -> ProvisionProduct -> f ProvisionProduct
provisionProduct_provisionedProductName = (ProvisionProduct -> Text)
-> (ProvisionProduct -> Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Text
provisionedProductName :: Text
$sel:provisionedProductName:ProvisionProduct' :: ProvisionProduct -> Text
provisionedProductName} -> Text
provisionedProductName) (\s :: ProvisionProduct
s@ProvisionProduct' {} Text
a -> ProvisionProduct
s {$sel:provisionedProductName:ProvisionProduct' :: Text
provisionedProductName = Text
a} :: ProvisionProduct)

-- | An idempotency token that uniquely identifies the provisioning request.
provisionProduct_provisionToken :: Lens.Lens' ProvisionProduct Prelude.Text
provisionProduct_provisionToken :: (Text -> f Text) -> ProvisionProduct -> f ProvisionProduct
provisionProduct_provisionToken = (ProvisionProduct -> Text)
-> (ProvisionProduct -> Text -> ProvisionProduct)
-> Lens ProvisionProduct ProvisionProduct Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProduct' {Text
provisionToken :: Text
$sel:provisionToken:ProvisionProduct' :: ProvisionProduct -> Text
provisionToken} -> Text
provisionToken) (\s :: ProvisionProduct
s@ProvisionProduct' {} Text
a -> ProvisionProduct
s {$sel:provisionToken:ProvisionProduct' :: Text
provisionToken = Text
a} :: ProvisionProduct)

instance Core.AWSRequest ProvisionProduct where
  type
    AWSResponse ProvisionProduct =
      ProvisionProductResponse
  request :: ProvisionProduct -> Request ProvisionProduct
request = Service -> ProvisionProduct -> Request ProvisionProduct
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ProvisionProduct
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ProvisionProduct)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ProvisionProduct))
-> Logger
-> Service
-> Proxy ProvisionProduct
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ProvisionProduct)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe RecordDetail -> Int -> ProvisionProductResponse
ProvisionProductResponse'
            (Maybe RecordDetail -> Int -> ProvisionProductResponse)
-> Either String (Maybe RecordDetail)
-> Either String (Int -> ProvisionProductResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RecordDetail)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RecordDetail")
            Either String (Int -> ProvisionProductResponse)
-> Either String Int -> Either String ProvisionProductResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ProvisionProduct

instance Prelude.NFData ProvisionProduct

instance Core.ToHeaders ProvisionProduct where
  toHeaders :: ProvisionProduct -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ProvisionProduct -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWS242ServiceCatalogService.ProvisionProduct" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ProvisionProduct where
  toJSON :: ProvisionProduct -> Value
toJSON ProvisionProduct' {Maybe [Text]
Maybe [ProvisioningParameter]
Maybe [Tag]
Maybe Text
Maybe ProvisioningPreferences
Text
provisionToken :: Text
provisionedProductName :: Text
provisioningPreferences :: Maybe ProvisioningPreferences
tags :: Maybe [Tag]
productId :: Maybe Text
provisioningParameters :: Maybe [ProvisioningParameter]
pathId :: Maybe Text
acceptLanguage :: Maybe Text
pathName :: Maybe Text
notificationArns :: Maybe [Text]
provisioningArtifactName :: Maybe Text
provisioningArtifactId :: Maybe Text
productName :: Maybe Text
$sel:provisionToken:ProvisionProduct' :: ProvisionProduct -> Text
$sel:provisionedProductName:ProvisionProduct' :: ProvisionProduct -> Text
$sel:provisioningPreferences:ProvisionProduct' :: ProvisionProduct -> Maybe ProvisioningPreferences
$sel:tags:ProvisionProduct' :: ProvisionProduct -> Maybe [Tag]
$sel:productId:ProvisionProduct' :: ProvisionProduct -> Maybe Text
$sel:provisioningParameters:ProvisionProduct' :: ProvisionProduct -> Maybe [ProvisioningParameter]
$sel:pathId:ProvisionProduct' :: ProvisionProduct -> Maybe Text
$sel:acceptLanguage:ProvisionProduct' :: ProvisionProduct -> Maybe Text
$sel:pathName:ProvisionProduct' :: ProvisionProduct -> Maybe Text
$sel:notificationArns:ProvisionProduct' :: ProvisionProduct -> Maybe [Text]
$sel:provisioningArtifactName:ProvisionProduct' :: ProvisionProduct -> Maybe Text
$sel:provisioningArtifactId:ProvisionProduct' :: ProvisionProduct -> Maybe Text
$sel:productName:ProvisionProduct' :: ProvisionProduct -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ProductName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
productName,
            (Text
"ProvisioningArtifactId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
provisioningArtifactId,
            (Text
"ProvisioningArtifactName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
provisioningArtifactName,
            (Text
"NotificationArns" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
notificationArns,
            (Text
"PathName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pathName,
            (Text
"AcceptLanguage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
            (Text
"PathId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pathId,
            (Text
"ProvisioningParameters" Text -> [ProvisioningParameter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([ProvisioningParameter] -> Pair)
-> Maybe [ProvisioningParameter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ProvisioningParameter]
provisioningParameters,
            (Text
"ProductId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
productId,
            (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            (Text
"ProvisioningPreferences" Text -> ProvisioningPreferences -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProvisioningPreferences -> Pair)
-> Maybe ProvisioningPreferences -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProvisioningPreferences
provisioningPreferences,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"ProvisionedProductName"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
provisionedProductName
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ProvisionToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
provisionToken)
          ]
      )

instance Core.ToPath ProvisionProduct where
  toPath :: ProvisionProduct -> ByteString
toPath = ByteString -> ProvisionProduct -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ProvisionProduct where
  toQuery :: ProvisionProduct -> QueryString
toQuery = QueryString -> ProvisionProduct -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newProvisionProductResponse' smart constructor.
data ProvisionProductResponse = ProvisionProductResponse'
  { -- | Information about the result of provisioning the product.
    ProvisionProductResponse -> Maybe RecordDetail
recordDetail :: Prelude.Maybe RecordDetail,
    -- | The response's http status code.
    ProvisionProductResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ProvisionProductResponse -> ProvisionProductResponse -> Bool
(ProvisionProductResponse -> ProvisionProductResponse -> Bool)
-> (ProvisionProductResponse -> ProvisionProductResponse -> Bool)
-> Eq ProvisionProductResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProvisionProductResponse -> ProvisionProductResponse -> Bool
$c/= :: ProvisionProductResponse -> ProvisionProductResponse -> Bool
== :: ProvisionProductResponse -> ProvisionProductResponse -> Bool
$c== :: ProvisionProductResponse -> ProvisionProductResponse -> Bool
Prelude.Eq, ReadPrec [ProvisionProductResponse]
ReadPrec ProvisionProductResponse
Int -> ReadS ProvisionProductResponse
ReadS [ProvisionProductResponse]
(Int -> ReadS ProvisionProductResponse)
-> ReadS [ProvisionProductResponse]
-> ReadPrec ProvisionProductResponse
-> ReadPrec [ProvisionProductResponse]
-> Read ProvisionProductResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProvisionProductResponse]
$creadListPrec :: ReadPrec [ProvisionProductResponse]
readPrec :: ReadPrec ProvisionProductResponse
$creadPrec :: ReadPrec ProvisionProductResponse
readList :: ReadS [ProvisionProductResponse]
$creadList :: ReadS [ProvisionProductResponse]
readsPrec :: Int -> ReadS ProvisionProductResponse
$creadsPrec :: Int -> ReadS ProvisionProductResponse
Prelude.Read, Int -> ProvisionProductResponse -> ShowS
[ProvisionProductResponse] -> ShowS
ProvisionProductResponse -> String
(Int -> ProvisionProductResponse -> ShowS)
-> (ProvisionProductResponse -> String)
-> ([ProvisionProductResponse] -> ShowS)
-> Show ProvisionProductResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProvisionProductResponse] -> ShowS
$cshowList :: [ProvisionProductResponse] -> ShowS
show :: ProvisionProductResponse -> String
$cshow :: ProvisionProductResponse -> String
showsPrec :: Int -> ProvisionProductResponse -> ShowS
$cshowsPrec :: Int -> ProvisionProductResponse -> ShowS
Prelude.Show, (forall x.
 ProvisionProductResponse -> Rep ProvisionProductResponse x)
-> (forall x.
    Rep ProvisionProductResponse x -> ProvisionProductResponse)
-> Generic ProvisionProductResponse
forall x.
Rep ProvisionProductResponse x -> ProvisionProductResponse
forall x.
ProvisionProductResponse -> Rep ProvisionProductResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProvisionProductResponse x -> ProvisionProductResponse
$cfrom :: forall x.
ProvisionProductResponse -> Rep ProvisionProductResponse x
Prelude.Generic)

-- |
-- Create a value of 'ProvisionProductResponse' 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:
--
-- 'recordDetail', 'provisionProductResponse_recordDetail' - Information about the result of provisioning the product.
--
-- 'httpStatus', 'provisionProductResponse_httpStatus' - The response's http status code.
newProvisionProductResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ProvisionProductResponse
newProvisionProductResponse :: Int -> ProvisionProductResponse
newProvisionProductResponse Int
pHttpStatus_ =
  ProvisionProductResponse' :: Maybe RecordDetail -> Int -> ProvisionProductResponse
ProvisionProductResponse'
    { $sel:recordDetail:ProvisionProductResponse' :: Maybe RecordDetail
recordDetail =
        Maybe RecordDetail
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ProvisionProductResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the result of provisioning the product.
provisionProductResponse_recordDetail :: Lens.Lens' ProvisionProductResponse (Prelude.Maybe RecordDetail)
provisionProductResponse_recordDetail :: (Maybe RecordDetail -> f (Maybe RecordDetail))
-> ProvisionProductResponse -> f ProvisionProductResponse
provisionProductResponse_recordDetail = (ProvisionProductResponse -> Maybe RecordDetail)
-> (ProvisionProductResponse
    -> Maybe RecordDetail -> ProvisionProductResponse)
-> Lens
     ProvisionProductResponse
     ProvisionProductResponse
     (Maybe RecordDetail)
     (Maybe RecordDetail)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProductResponse' {Maybe RecordDetail
recordDetail :: Maybe RecordDetail
$sel:recordDetail:ProvisionProductResponse' :: ProvisionProductResponse -> Maybe RecordDetail
recordDetail} -> Maybe RecordDetail
recordDetail) (\s :: ProvisionProductResponse
s@ProvisionProductResponse' {} Maybe RecordDetail
a -> ProvisionProductResponse
s {$sel:recordDetail:ProvisionProductResponse' :: Maybe RecordDetail
recordDetail = Maybe RecordDetail
a} :: ProvisionProductResponse)

-- | The response's http status code.
provisionProductResponse_httpStatus :: Lens.Lens' ProvisionProductResponse Prelude.Int
provisionProductResponse_httpStatus :: (Int -> f Int)
-> ProvisionProductResponse -> f ProvisionProductResponse
provisionProductResponse_httpStatus = (ProvisionProductResponse -> Int)
-> (ProvisionProductResponse -> Int -> ProvisionProductResponse)
-> Lens ProvisionProductResponse ProvisionProductResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProvisionProductResponse' {Int
httpStatus :: Int
$sel:httpStatus:ProvisionProductResponse' :: ProvisionProductResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ProvisionProductResponse
s@ProvisionProductResponse' {} Int
a -> ProvisionProductResponse
s {$sel:httpStatus:ProvisionProductResponse' :: Int
httpStatus = Int
a} :: ProvisionProductResponse)

instance Prelude.NFData ProvisionProductResponse