{-# 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.DescribeProvisioningParameters
-- 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)
--
-- Gets information about the configuration required to provision the
-- specified product using the specified provisioning artifact.
--
-- If the output contains a TagOption key with an empty list of values,
-- there is a TagOption conflict for that key. The end user cannot take
-- action to fix the conflict, and launch is not blocked. In subsequent
-- calls to ProvisionProduct, do not include conflicted TagOption keys as
-- tags, or this causes the error \"Parameter validation failed: Missing
-- required parameter in Tags[/N/]:/Value/\". Tag the provisioned product
-- with the value @sc-tagoption-conflict-portfolioId-productId@.
module Amazonka.ServiceCatalog.DescribeProvisioningParameters
  ( -- * Creating a Request
    DescribeProvisioningParameters (..),
    newDescribeProvisioningParameters,

    -- * Request Lenses
    describeProvisioningParameters_productName,
    describeProvisioningParameters_provisioningArtifactId,
    describeProvisioningParameters_provisioningArtifactName,
    describeProvisioningParameters_pathName,
    describeProvisioningParameters_acceptLanguage,
    describeProvisioningParameters_pathId,
    describeProvisioningParameters_productId,

    -- * Destructuring the Response
    DescribeProvisioningParametersResponse (..),
    newDescribeProvisioningParametersResponse,

    -- * Response Lenses
    describeProvisioningParametersResponse_provisioningArtifactPreferences,
    describeProvisioningParametersResponse_provisioningArtifactParameters,
    describeProvisioningParametersResponse_usageInstructions,
    describeProvisioningParametersResponse_constraintSummaries,
    describeProvisioningParametersResponse_tagOptions,
    describeProvisioningParametersResponse_provisioningArtifactOutputs,
    describeProvisioningParametersResponse_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:/ 'newDescribeProvisioningParameters' smart constructor.
data DescribeProvisioningParameters = DescribeProvisioningParameters'
  { -- | The name of the product. You must provide the name or ID, but not both.
    DescribeProvisioningParameters -> Maybe Text
productName :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioning artifact. You must provide the name
    -- or ID, but not both.
    DescribeProvisioningParameters -> Maybe Text
provisioningArtifactId :: Prelude.Maybe Prelude.Text,
    -- | The name of the provisioning artifact. You must provide the name or ID,
    -- but not both.
    DescribeProvisioningParameters -> Maybe Text
provisioningArtifactName :: Prelude.Maybe Prelude.Text,
    -- | The name of the path. You must provide the name or ID, but not both.
    DescribeProvisioningParameters -> Maybe Text
pathName :: Prelude.Maybe Prelude.Text,
    -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    DescribeProvisioningParameters -> 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.
    DescribeProvisioningParameters -> Maybe Text
pathId :: Prelude.Maybe Prelude.Text,
    -- | The product identifier. You must provide the product name or ID, but not
    -- both.
    DescribeProvisioningParameters -> Maybe Text
productId :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeProvisioningParameters
-> DescribeProvisioningParameters -> Bool
(DescribeProvisioningParameters
 -> DescribeProvisioningParameters -> Bool)
-> (DescribeProvisioningParameters
    -> DescribeProvisioningParameters -> Bool)
-> Eq DescribeProvisioningParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProvisioningParameters
-> DescribeProvisioningParameters -> Bool
$c/= :: DescribeProvisioningParameters
-> DescribeProvisioningParameters -> Bool
== :: DescribeProvisioningParameters
-> DescribeProvisioningParameters -> Bool
$c== :: DescribeProvisioningParameters
-> DescribeProvisioningParameters -> Bool
Prelude.Eq, ReadPrec [DescribeProvisioningParameters]
ReadPrec DescribeProvisioningParameters
Int -> ReadS DescribeProvisioningParameters
ReadS [DescribeProvisioningParameters]
(Int -> ReadS DescribeProvisioningParameters)
-> ReadS [DescribeProvisioningParameters]
-> ReadPrec DescribeProvisioningParameters
-> ReadPrec [DescribeProvisioningParameters]
-> Read DescribeProvisioningParameters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProvisioningParameters]
$creadListPrec :: ReadPrec [DescribeProvisioningParameters]
readPrec :: ReadPrec DescribeProvisioningParameters
$creadPrec :: ReadPrec DescribeProvisioningParameters
readList :: ReadS [DescribeProvisioningParameters]
$creadList :: ReadS [DescribeProvisioningParameters]
readsPrec :: Int -> ReadS DescribeProvisioningParameters
$creadsPrec :: Int -> ReadS DescribeProvisioningParameters
Prelude.Read, Int -> DescribeProvisioningParameters -> ShowS
[DescribeProvisioningParameters] -> ShowS
DescribeProvisioningParameters -> String
(Int -> DescribeProvisioningParameters -> ShowS)
-> (DescribeProvisioningParameters -> String)
-> ([DescribeProvisioningParameters] -> ShowS)
-> Show DescribeProvisioningParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProvisioningParameters] -> ShowS
$cshowList :: [DescribeProvisioningParameters] -> ShowS
show :: DescribeProvisioningParameters -> String
$cshow :: DescribeProvisioningParameters -> String
showsPrec :: Int -> DescribeProvisioningParameters -> ShowS
$cshowsPrec :: Int -> DescribeProvisioningParameters -> ShowS
Prelude.Show, (forall x.
 DescribeProvisioningParameters
 -> Rep DescribeProvisioningParameters x)
-> (forall x.
    Rep DescribeProvisioningParameters x
    -> DescribeProvisioningParameters)
-> Generic DescribeProvisioningParameters
forall x.
Rep DescribeProvisioningParameters x
-> DescribeProvisioningParameters
forall x.
DescribeProvisioningParameters
-> Rep DescribeProvisioningParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeProvisioningParameters x
-> DescribeProvisioningParameters
$cfrom :: forall x.
DescribeProvisioningParameters
-> Rep DescribeProvisioningParameters x
Prelude.Generic)

-- |
-- Create a value of 'DescribeProvisioningParameters' 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', 'describeProvisioningParameters_productName' - The name of the product. You must provide the name or ID, but not both.
--
-- 'provisioningArtifactId', 'describeProvisioningParameters_provisioningArtifactId' - The identifier of the provisioning artifact. You must provide the name
-- or ID, but not both.
--
-- 'provisioningArtifactName', 'describeProvisioningParameters_provisioningArtifactName' - The name of the provisioning artifact. You must provide the name or ID,
-- but not both.
--
-- 'pathName', 'describeProvisioningParameters_pathName' - The name of the path. You must provide the name or ID, but not both.
--
-- 'acceptLanguage', 'describeProvisioningParameters_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'pathId', 'describeProvisioningParameters_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.
--
-- 'productId', 'describeProvisioningParameters_productId' - The product identifier. You must provide the product name or ID, but not
-- both.
newDescribeProvisioningParameters ::
  DescribeProvisioningParameters
newDescribeProvisioningParameters :: DescribeProvisioningParameters
newDescribeProvisioningParameters =
  DescribeProvisioningParameters' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DescribeProvisioningParameters
DescribeProvisioningParameters'
    { $sel:productName:DescribeProvisioningParameters' :: Maybe Text
productName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:provisioningArtifactId:DescribeProvisioningParameters' :: Maybe Text
provisioningArtifactId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:provisioningArtifactName:DescribeProvisioningParameters' :: Maybe Text
provisioningArtifactName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pathName:DescribeProvisioningParameters' :: Maybe Text
pathName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:acceptLanguage:DescribeProvisioningParameters' :: Maybe Text
acceptLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pathId:DescribeProvisioningParameters' :: Maybe Text
pathId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:productId:DescribeProvisioningParameters' :: Maybe Text
productId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

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

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

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

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

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

-- | 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.
describeProvisioningParameters_pathId :: Lens.Lens' DescribeProvisioningParameters (Prelude.Maybe Prelude.Text)
describeProvisioningParameters_pathId :: (Maybe Text -> f (Maybe Text))
-> DescribeProvisioningParameters
-> f DescribeProvisioningParameters
describeProvisioningParameters_pathId = (DescribeProvisioningParameters -> Maybe Text)
-> (DescribeProvisioningParameters
    -> Maybe Text -> DescribeProvisioningParameters)
-> Lens
     DescribeProvisioningParameters
     DescribeProvisioningParameters
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParameters' {Maybe Text
pathId :: Maybe Text
$sel:pathId:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
pathId} -> Maybe Text
pathId) (\s :: DescribeProvisioningParameters
s@DescribeProvisioningParameters' {} Maybe Text
a -> DescribeProvisioningParameters
s {$sel:pathId:DescribeProvisioningParameters' :: Maybe Text
pathId = Maybe Text
a} :: DescribeProvisioningParameters)

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

instance
  Core.AWSRequest
    DescribeProvisioningParameters
  where
  type
    AWSResponse DescribeProvisioningParameters =
      DescribeProvisioningParametersResponse
  request :: DescribeProvisioningParameters
-> Request DescribeProvisioningParameters
request = Service
-> DescribeProvisioningParameters
-> Request DescribeProvisioningParameters
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeProvisioningParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeProvisioningParameters)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeProvisioningParameters))
-> Logger
-> Service
-> Proxy DescribeProvisioningParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeProvisioningParameters)))
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 ProvisioningArtifactPreferences
-> Maybe [ProvisioningArtifactParameter]
-> Maybe [UsageInstruction]
-> Maybe [ConstraintSummary]
-> Maybe [TagOptionSummary]
-> Maybe [ProvisioningArtifactOutput]
-> Int
-> DescribeProvisioningParametersResponse
DescribeProvisioningParametersResponse'
            (Maybe ProvisioningArtifactPreferences
 -> Maybe [ProvisioningArtifactParameter]
 -> Maybe [UsageInstruction]
 -> Maybe [ConstraintSummary]
 -> Maybe [TagOptionSummary]
 -> Maybe [ProvisioningArtifactOutput]
 -> Int
 -> DescribeProvisioningParametersResponse)
-> Either String (Maybe ProvisioningArtifactPreferences)
-> Either
     String
     (Maybe [ProvisioningArtifactParameter]
      -> Maybe [UsageInstruction]
      -> Maybe [ConstraintSummary]
      -> Maybe [TagOptionSummary]
      -> Maybe [ProvisioningArtifactOutput]
      -> Int
      -> DescribeProvisioningParametersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe ProvisioningArtifactPreferences)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProvisioningArtifactPreferences")
            Either
  String
  (Maybe [ProvisioningArtifactParameter]
   -> Maybe [UsageInstruction]
   -> Maybe [ConstraintSummary]
   -> Maybe [TagOptionSummary]
   -> Maybe [ProvisioningArtifactOutput]
   -> Int
   -> DescribeProvisioningParametersResponse)
-> Either String (Maybe [ProvisioningArtifactParameter])
-> Either
     String
     (Maybe [UsageInstruction]
      -> Maybe [ConstraintSummary]
      -> Maybe [TagOptionSummary]
      -> Maybe [ProvisioningArtifactOutput]
      -> Int
      -> DescribeProvisioningParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [ProvisioningArtifactParameter]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProvisioningArtifactParameters"
                            Either String (Maybe (Maybe [ProvisioningArtifactParameter]))
-> Maybe [ProvisioningArtifactParameter]
-> Either String (Maybe [ProvisioningArtifactParameter])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ProvisioningArtifactParameter]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe [UsageInstruction]
   -> Maybe [ConstraintSummary]
   -> Maybe [TagOptionSummary]
   -> Maybe [ProvisioningArtifactOutput]
   -> Int
   -> DescribeProvisioningParametersResponse)
-> Either String (Maybe [UsageInstruction])
-> Either
     String
     (Maybe [ConstraintSummary]
      -> Maybe [TagOptionSummary]
      -> Maybe [ProvisioningArtifactOutput]
      -> Int
      -> DescribeProvisioningParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [UsageInstruction]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UsageInstructions"
                            Either String (Maybe (Maybe [UsageInstruction]))
-> Maybe [UsageInstruction]
-> Either String (Maybe [UsageInstruction])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [UsageInstruction]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe [ConstraintSummary]
   -> Maybe [TagOptionSummary]
   -> Maybe [ProvisioningArtifactOutput]
   -> Int
   -> DescribeProvisioningParametersResponse)
-> Either String (Maybe [ConstraintSummary])
-> Either
     String
     (Maybe [TagOptionSummary]
      -> Maybe [ProvisioningArtifactOutput]
      -> Int
      -> DescribeProvisioningParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ConstraintSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConstraintSummaries"
                            Either String (Maybe (Maybe [ConstraintSummary]))
-> Maybe [ConstraintSummary]
-> Either String (Maybe [ConstraintSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ConstraintSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe [TagOptionSummary]
   -> Maybe [ProvisioningArtifactOutput]
   -> Int
   -> DescribeProvisioningParametersResponse)
-> Either String (Maybe [TagOptionSummary])
-> Either
     String
     (Maybe [ProvisioningArtifactOutput]
      -> Int -> DescribeProvisioningParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [TagOptionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TagOptions" Either String (Maybe (Maybe [TagOptionSummary]))
-> Maybe [TagOptionSummary]
-> Either String (Maybe [TagOptionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TagOptionSummary]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe [ProvisioningArtifactOutput]
   -> Int -> DescribeProvisioningParametersResponse)
-> Either String (Maybe [ProvisioningArtifactOutput])
-> Either String (Int -> DescribeProvisioningParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [ProvisioningArtifactOutput]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProvisioningArtifactOutputs"
                            Either String (Maybe (Maybe [ProvisioningArtifactOutput]))
-> Maybe [ProvisioningArtifactOutput]
-> Either String (Maybe [ProvisioningArtifactOutput])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ProvisioningArtifactOutput]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> DescribeProvisioningParametersResponse)
-> Either String Int
-> Either String DescribeProvisioningParametersResponse
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
    DescribeProvisioningParameters

instance
  Prelude.NFData
    DescribeProvisioningParameters

instance
  Core.ToHeaders
    DescribeProvisioningParameters
  where
  toHeaders :: DescribeProvisioningParameters -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeProvisioningParameters -> 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.DescribeProvisioningParameters" ::
                          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 DescribeProvisioningParameters where
  toJSON :: DescribeProvisioningParameters -> Value
toJSON DescribeProvisioningParameters' {Maybe Text
productId :: Maybe Text
pathId :: Maybe Text
acceptLanguage :: Maybe Text
pathName :: Maybe Text
provisioningArtifactName :: Maybe Text
provisioningArtifactId :: Maybe Text
productName :: Maybe Text
$sel:productId:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
$sel:pathId:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
$sel:acceptLanguage:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
$sel:pathName:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
$sel:provisioningArtifactName:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
$sel:provisioningArtifactId:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> Maybe Text
$sel:productName:DescribeProvisioningParameters' :: DescribeProvisioningParameters -> 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
"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
"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
          ]
      )

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

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

-- | /See:/ 'newDescribeProvisioningParametersResponse' smart constructor.
data DescribeProvisioningParametersResponse = DescribeProvisioningParametersResponse'
  { -- | An object that contains information about preferences, such as regions
    -- and accounts, for the provisioning artifact.
    DescribeProvisioningParametersResponse
-> Maybe ProvisioningArtifactPreferences
provisioningArtifactPreferences :: Prelude.Maybe ProvisioningArtifactPreferences,
    -- | Information about the parameters used to provision the product.
    DescribeProvisioningParametersResponse
-> Maybe [ProvisioningArtifactParameter]
provisioningArtifactParameters :: Prelude.Maybe [ProvisioningArtifactParameter],
    -- | Any additional metadata specifically related to the provisioning of the
    -- product. For example, see the @Version@ field of the CloudFormation
    -- template.
    DescribeProvisioningParametersResponse -> Maybe [UsageInstruction]
usageInstructions :: Prelude.Maybe [UsageInstruction],
    -- | Information about the constraints used to provision the product.
    DescribeProvisioningParametersResponse -> Maybe [ConstraintSummary]
constraintSummaries :: Prelude.Maybe [ConstraintSummary],
    -- | Information about the TagOptions associated with the resource.
    DescribeProvisioningParametersResponse -> Maybe [TagOptionSummary]
tagOptions :: Prelude.Maybe [TagOptionSummary],
    -- | The output of the provisioning artifact.
    DescribeProvisioningParametersResponse
-> Maybe [ProvisioningArtifactOutput]
provisioningArtifactOutputs :: Prelude.Maybe [ProvisioningArtifactOutput],
    -- | The response's http status code.
    DescribeProvisioningParametersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeProvisioningParametersResponse
-> DescribeProvisioningParametersResponse -> Bool
(DescribeProvisioningParametersResponse
 -> DescribeProvisioningParametersResponse -> Bool)
-> (DescribeProvisioningParametersResponse
    -> DescribeProvisioningParametersResponse -> Bool)
-> Eq DescribeProvisioningParametersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProvisioningParametersResponse
-> DescribeProvisioningParametersResponse -> Bool
$c/= :: DescribeProvisioningParametersResponse
-> DescribeProvisioningParametersResponse -> Bool
== :: DescribeProvisioningParametersResponse
-> DescribeProvisioningParametersResponse -> Bool
$c== :: DescribeProvisioningParametersResponse
-> DescribeProvisioningParametersResponse -> Bool
Prelude.Eq, ReadPrec [DescribeProvisioningParametersResponse]
ReadPrec DescribeProvisioningParametersResponse
Int -> ReadS DescribeProvisioningParametersResponse
ReadS [DescribeProvisioningParametersResponse]
(Int -> ReadS DescribeProvisioningParametersResponse)
-> ReadS [DescribeProvisioningParametersResponse]
-> ReadPrec DescribeProvisioningParametersResponse
-> ReadPrec [DescribeProvisioningParametersResponse]
-> Read DescribeProvisioningParametersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProvisioningParametersResponse]
$creadListPrec :: ReadPrec [DescribeProvisioningParametersResponse]
readPrec :: ReadPrec DescribeProvisioningParametersResponse
$creadPrec :: ReadPrec DescribeProvisioningParametersResponse
readList :: ReadS [DescribeProvisioningParametersResponse]
$creadList :: ReadS [DescribeProvisioningParametersResponse]
readsPrec :: Int -> ReadS DescribeProvisioningParametersResponse
$creadsPrec :: Int -> ReadS DescribeProvisioningParametersResponse
Prelude.Read, Int -> DescribeProvisioningParametersResponse -> ShowS
[DescribeProvisioningParametersResponse] -> ShowS
DescribeProvisioningParametersResponse -> String
(Int -> DescribeProvisioningParametersResponse -> ShowS)
-> (DescribeProvisioningParametersResponse -> String)
-> ([DescribeProvisioningParametersResponse] -> ShowS)
-> Show DescribeProvisioningParametersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProvisioningParametersResponse] -> ShowS
$cshowList :: [DescribeProvisioningParametersResponse] -> ShowS
show :: DescribeProvisioningParametersResponse -> String
$cshow :: DescribeProvisioningParametersResponse -> String
showsPrec :: Int -> DescribeProvisioningParametersResponse -> ShowS
$cshowsPrec :: Int -> DescribeProvisioningParametersResponse -> ShowS
Prelude.Show, (forall x.
 DescribeProvisioningParametersResponse
 -> Rep DescribeProvisioningParametersResponse x)
-> (forall x.
    Rep DescribeProvisioningParametersResponse x
    -> DescribeProvisioningParametersResponse)
-> Generic DescribeProvisioningParametersResponse
forall x.
Rep DescribeProvisioningParametersResponse x
-> DescribeProvisioningParametersResponse
forall x.
DescribeProvisioningParametersResponse
-> Rep DescribeProvisioningParametersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeProvisioningParametersResponse x
-> DescribeProvisioningParametersResponse
$cfrom :: forall x.
DescribeProvisioningParametersResponse
-> Rep DescribeProvisioningParametersResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeProvisioningParametersResponse' 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:
--
-- 'provisioningArtifactPreferences', 'describeProvisioningParametersResponse_provisioningArtifactPreferences' - An object that contains information about preferences, such as regions
-- and accounts, for the provisioning artifact.
--
-- 'provisioningArtifactParameters', 'describeProvisioningParametersResponse_provisioningArtifactParameters' - Information about the parameters used to provision the product.
--
-- 'usageInstructions', 'describeProvisioningParametersResponse_usageInstructions' - Any additional metadata specifically related to the provisioning of the
-- product. For example, see the @Version@ field of the CloudFormation
-- template.
--
-- 'constraintSummaries', 'describeProvisioningParametersResponse_constraintSummaries' - Information about the constraints used to provision the product.
--
-- 'tagOptions', 'describeProvisioningParametersResponse_tagOptions' - Information about the TagOptions associated with the resource.
--
-- 'provisioningArtifactOutputs', 'describeProvisioningParametersResponse_provisioningArtifactOutputs' - The output of the provisioning artifact.
--
-- 'httpStatus', 'describeProvisioningParametersResponse_httpStatus' - The response's http status code.
newDescribeProvisioningParametersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeProvisioningParametersResponse
newDescribeProvisioningParametersResponse :: Int -> DescribeProvisioningParametersResponse
newDescribeProvisioningParametersResponse
  Int
pHttpStatus_ =
    DescribeProvisioningParametersResponse' :: Maybe ProvisioningArtifactPreferences
-> Maybe [ProvisioningArtifactParameter]
-> Maybe [UsageInstruction]
-> Maybe [ConstraintSummary]
-> Maybe [TagOptionSummary]
-> Maybe [ProvisioningArtifactOutput]
-> Int
-> DescribeProvisioningParametersResponse
DescribeProvisioningParametersResponse'
      { $sel:provisioningArtifactPreferences:DescribeProvisioningParametersResponse' :: Maybe ProvisioningArtifactPreferences
provisioningArtifactPreferences =
          Maybe ProvisioningArtifactPreferences
forall a. Maybe a
Prelude.Nothing,
        $sel:provisioningArtifactParameters:DescribeProvisioningParametersResponse' :: Maybe [ProvisioningArtifactParameter]
provisioningArtifactParameters =
          Maybe [ProvisioningArtifactParameter]
forall a. Maybe a
Prelude.Nothing,
        $sel:usageInstructions:DescribeProvisioningParametersResponse' :: Maybe [UsageInstruction]
usageInstructions = Maybe [UsageInstruction]
forall a. Maybe a
Prelude.Nothing,
        $sel:constraintSummaries:DescribeProvisioningParametersResponse' :: Maybe [ConstraintSummary]
constraintSummaries =
          Maybe [ConstraintSummary]
forall a. Maybe a
Prelude.Nothing,
        $sel:tagOptions:DescribeProvisioningParametersResponse' :: Maybe [TagOptionSummary]
tagOptions = Maybe [TagOptionSummary]
forall a. Maybe a
Prelude.Nothing,
        $sel:provisioningArtifactOutputs:DescribeProvisioningParametersResponse' :: Maybe [ProvisioningArtifactOutput]
provisioningArtifactOutputs =
          Maybe [ProvisioningArtifactOutput]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeProvisioningParametersResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | An object that contains information about preferences, such as regions
-- and accounts, for the provisioning artifact.
describeProvisioningParametersResponse_provisioningArtifactPreferences :: Lens.Lens' DescribeProvisioningParametersResponse (Prelude.Maybe ProvisioningArtifactPreferences)
describeProvisioningParametersResponse_provisioningArtifactPreferences :: (Maybe ProvisioningArtifactPreferences
 -> f (Maybe ProvisioningArtifactPreferences))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
describeProvisioningParametersResponse_provisioningArtifactPreferences = (DescribeProvisioningParametersResponse
 -> Maybe ProvisioningArtifactPreferences)
-> (DescribeProvisioningParametersResponse
    -> Maybe ProvisioningArtifactPreferences
    -> DescribeProvisioningParametersResponse)
-> Lens
     DescribeProvisioningParametersResponse
     DescribeProvisioningParametersResponse
     (Maybe ProvisioningArtifactPreferences)
     (Maybe ProvisioningArtifactPreferences)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParametersResponse' {Maybe ProvisioningArtifactPreferences
provisioningArtifactPreferences :: Maybe ProvisioningArtifactPreferences
$sel:provisioningArtifactPreferences:DescribeProvisioningParametersResponse' :: DescribeProvisioningParametersResponse
-> Maybe ProvisioningArtifactPreferences
provisioningArtifactPreferences} -> Maybe ProvisioningArtifactPreferences
provisioningArtifactPreferences) (\s :: DescribeProvisioningParametersResponse
s@DescribeProvisioningParametersResponse' {} Maybe ProvisioningArtifactPreferences
a -> DescribeProvisioningParametersResponse
s {$sel:provisioningArtifactPreferences:DescribeProvisioningParametersResponse' :: Maybe ProvisioningArtifactPreferences
provisioningArtifactPreferences = Maybe ProvisioningArtifactPreferences
a} :: DescribeProvisioningParametersResponse)

-- | Information about the parameters used to provision the product.
describeProvisioningParametersResponse_provisioningArtifactParameters :: Lens.Lens' DescribeProvisioningParametersResponse (Prelude.Maybe [ProvisioningArtifactParameter])
describeProvisioningParametersResponse_provisioningArtifactParameters :: (Maybe [ProvisioningArtifactParameter]
 -> f (Maybe [ProvisioningArtifactParameter]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
describeProvisioningParametersResponse_provisioningArtifactParameters = (DescribeProvisioningParametersResponse
 -> Maybe [ProvisioningArtifactParameter])
-> (DescribeProvisioningParametersResponse
    -> Maybe [ProvisioningArtifactParameter]
    -> DescribeProvisioningParametersResponse)
-> Lens
     DescribeProvisioningParametersResponse
     DescribeProvisioningParametersResponse
     (Maybe [ProvisioningArtifactParameter])
     (Maybe [ProvisioningArtifactParameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParametersResponse' {Maybe [ProvisioningArtifactParameter]
provisioningArtifactParameters :: Maybe [ProvisioningArtifactParameter]
$sel:provisioningArtifactParameters:DescribeProvisioningParametersResponse' :: DescribeProvisioningParametersResponse
-> Maybe [ProvisioningArtifactParameter]
provisioningArtifactParameters} -> Maybe [ProvisioningArtifactParameter]
provisioningArtifactParameters) (\s :: DescribeProvisioningParametersResponse
s@DescribeProvisioningParametersResponse' {} Maybe [ProvisioningArtifactParameter]
a -> DescribeProvisioningParametersResponse
s {$sel:provisioningArtifactParameters:DescribeProvisioningParametersResponse' :: Maybe [ProvisioningArtifactParameter]
provisioningArtifactParameters = Maybe [ProvisioningArtifactParameter]
a} :: DescribeProvisioningParametersResponse) ((Maybe [ProvisioningArtifactParameter]
  -> f (Maybe [ProvisioningArtifactParameter]))
 -> DescribeProvisioningParametersResponse
 -> f DescribeProvisioningParametersResponse)
-> ((Maybe [ProvisioningArtifactParameter]
     -> f (Maybe [ProvisioningArtifactParameter]))
    -> Maybe [ProvisioningArtifactParameter]
    -> f (Maybe [ProvisioningArtifactParameter]))
-> (Maybe [ProvisioningArtifactParameter]
    -> f (Maybe [ProvisioningArtifactParameter]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ProvisioningArtifactParameter]
  [ProvisioningArtifactParameter]
  [ProvisioningArtifactParameter]
  [ProvisioningArtifactParameter]
-> Iso
     (Maybe [ProvisioningArtifactParameter])
     (Maybe [ProvisioningArtifactParameter])
     (Maybe [ProvisioningArtifactParameter])
     (Maybe [ProvisioningArtifactParameter])
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
  [ProvisioningArtifactParameter]
  [ProvisioningArtifactParameter]
  [ProvisioningArtifactParameter]
  [ProvisioningArtifactParameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Any additional metadata specifically related to the provisioning of the
-- product. For example, see the @Version@ field of the CloudFormation
-- template.
describeProvisioningParametersResponse_usageInstructions :: Lens.Lens' DescribeProvisioningParametersResponse (Prelude.Maybe [UsageInstruction])
describeProvisioningParametersResponse_usageInstructions :: (Maybe [UsageInstruction] -> f (Maybe [UsageInstruction]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
describeProvisioningParametersResponse_usageInstructions = (DescribeProvisioningParametersResponse
 -> Maybe [UsageInstruction])
-> (DescribeProvisioningParametersResponse
    -> Maybe [UsageInstruction]
    -> DescribeProvisioningParametersResponse)
-> Lens
     DescribeProvisioningParametersResponse
     DescribeProvisioningParametersResponse
     (Maybe [UsageInstruction])
     (Maybe [UsageInstruction])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParametersResponse' {Maybe [UsageInstruction]
usageInstructions :: Maybe [UsageInstruction]
$sel:usageInstructions:DescribeProvisioningParametersResponse' :: DescribeProvisioningParametersResponse -> Maybe [UsageInstruction]
usageInstructions} -> Maybe [UsageInstruction]
usageInstructions) (\s :: DescribeProvisioningParametersResponse
s@DescribeProvisioningParametersResponse' {} Maybe [UsageInstruction]
a -> DescribeProvisioningParametersResponse
s {$sel:usageInstructions:DescribeProvisioningParametersResponse' :: Maybe [UsageInstruction]
usageInstructions = Maybe [UsageInstruction]
a} :: DescribeProvisioningParametersResponse) ((Maybe [UsageInstruction] -> f (Maybe [UsageInstruction]))
 -> DescribeProvisioningParametersResponse
 -> f DescribeProvisioningParametersResponse)
-> ((Maybe [UsageInstruction] -> f (Maybe [UsageInstruction]))
    -> Maybe [UsageInstruction] -> f (Maybe [UsageInstruction]))
-> (Maybe [UsageInstruction] -> f (Maybe [UsageInstruction]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [UsageInstruction]
  [UsageInstruction]
  [UsageInstruction]
  [UsageInstruction]
-> Iso
     (Maybe [UsageInstruction])
     (Maybe [UsageInstruction])
     (Maybe [UsageInstruction])
     (Maybe [UsageInstruction])
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
  [UsageInstruction]
  [UsageInstruction]
  [UsageInstruction]
  [UsageInstruction]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about the constraints used to provision the product.
describeProvisioningParametersResponse_constraintSummaries :: Lens.Lens' DescribeProvisioningParametersResponse (Prelude.Maybe [ConstraintSummary])
describeProvisioningParametersResponse_constraintSummaries :: (Maybe [ConstraintSummary] -> f (Maybe [ConstraintSummary]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
describeProvisioningParametersResponse_constraintSummaries = (DescribeProvisioningParametersResponse
 -> Maybe [ConstraintSummary])
-> (DescribeProvisioningParametersResponse
    -> Maybe [ConstraintSummary]
    -> DescribeProvisioningParametersResponse)
-> Lens
     DescribeProvisioningParametersResponse
     DescribeProvisioningParametersResponse
     (Maybe [ConstraintSummary])
     (Maybe [ConstraintSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParametersResponse' {Maybe [ConstraintSummary]
constraintSummaries :: Maybe [ConstraintSummary]
$sel:constraintSummaries:DescribeProvisioningParametersResponse' :: DescribeProvisioningParametersResponse -> Maybe [ConstraintSummary]
constraintSummaries} -> Maybe [ConstraintSummary]
constraintSummaries) (\s :: DescribeProvisioningParametersResponse
s@DescribeProvisioningParametersResponse' {} Maybe [ConstraintSummary]
a -> DescribeProvisioningParametersResponse
s {$sel:constraintSummaries:DescribeProvisioningParametersResponse' :: Maybe [ConstraintSummary]
constraintSummaries = Maybe [ConstraintSummary]
a} :: DescribeProvisioningParametersResponse) ((Maybe [ConstraintSummary] -> f (Maybe [ConstraintSummary]))
 -> DescribeProvisioningParametersResponse
 -> f DescribeProvisioningParametersResponse)
-> ((Maybe [ConstraintSummary] -> f (Maybe [ConstraintSummary]))
    -> Maybe [ConstraintSummary] -> f (Maybe [ConstraintSummary]))
-> (Maybe [ConstraintSummary] -> f (Maybe [ConstraintSummary]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConstraintSummary]
  [ConstraintSummary]
  [ConstraintSummary]
  [ConstraintSummary]
-> Iso
     (Maybe [ConstraintSummary])
     (Maybe [ConstraintSummary])
     (Maybe [ConstraintSummary])
     (Maybe [ConstraintSummary])
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
  [ConstraintSummary]
  [ConstraintSummary]
  [ConstraintSummary]
  [ConstraintSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about the TagOptions associated with the resource.
describeProvisioningParametersResponse_tagOptions :: Lens.Lens' DescribeProvisioningParametersResponse (Prelude.Maybe [TagOptionSummary])
describeProvisioningParametersResponse_tagOptions :: (Maybe [TagOptionSummary] -> f (Maybe [TagOptionSummary]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
describeProvisioningParametersResponse_tagOptions = (DescribeProvisioningParametersResponse
 -> Maybe [TagOptionSummary])
-> (DescribeProvisioningParametersResponse
    -> Maybe [TagOptionSummary]
    -> DescribeProvisioningParametersResponse)
-> Lens
     DescribeProvisioningParametersResponse
     DescribeProvisioningParametersResponse
     (Maybe [TagOptionSummary])
     (Maybe [TagOptionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParametersResponse' {Maybe [TagOptionSummary]
tagOptions :: Maybe [TagOptionSummary]
$sel:tagOptions:DescribeProvisioningParametersResponse' :: DescribeProvisioningParametersResponse -> Maybe [TagOptionSummary]
tagOptions} -> Maybe [TagOptionSummary]
tagOptions) (\s :: DescribeProvisioningParametersResponse
s@DescribeProvisioningParametersResponse' {} Maybe [TagOptionSummary]
a -> DescribeProvisioningParametersResponse
s {$sel:tagOptions:DescribeProvisioningParametersResponse' :: Maybe [TagOptionSummary]
tagOptions = Maybe [TagOptionSummary]
a} :: DescribeProvisioningParametersResponse) ((Maybe [TagOptionSummary] -> f (Maybe [TagOptionSummary]))
 -> DescribeProvisioningParametersResponse
 -> f DescribeProvisioningParametersResponse)
-> ((Maybe [TagOptionSummary] -> f (Maybe [TagOptionSummary]))
    -> Maybe [TagOptionSummary] -> f (Maybe [TagOptionSummary]))
-> (Maybe [TagOptionSummary] -> f (Maybe [TagOptionSummary]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TagOptionSummary]
  [TagOptionSummary]
  [TagOptionSummary]
  [TagOptionSummary]
-> Iso
     (Maybe [TagOptionSummary])
     (Maybe [TagOptionSummary])
     (Maybe [TagOptionSummary])
     (Maybe [TagOptionSummary])
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
  [TagOptionSummary]
  [TagOptionSummary]
  [TagOptionSummary]
  [TagOptionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The output of the provisioning artifact.
describeProvisioningParametersResponse_provisioningArtifactOutputs :: Lens.Lens' DescribeProvisioningParametersResponse (Prelude.Maybe [ProvisioningArtifactOutput])
describeProvisioningParametersResponse_provisioningArtifactOutputs :: (Maybe [ProvisioningArtifactOutput]
 -> f (Maybe [ProvisioningArtifactOutput]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
describeProvisioningParametersResponse_provisioningArtifactOutputs = (DescribeProvisioningParametersResponse
 -> Maybe [ProvisioningArtifactOutput])
-> (DescribeProvisioningParametersResponse
    -> Maybe [ProvisioningArtifactOutput]
    -> DescribeProvisioningParametersResponse)
-> Lens
     DescribeProvisioningParametersResponse
     DescribeProvisioningParametersResponse
     (Maybe [ProvisioningArtifactOutput])
     (Maybe [ProvisioningArtifactOutput])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisioningParametersResponse' {Maybe [ProvisioningArtifactOutput]
provisioningArtifactOutputs :: Maybe [ProvisioningArtifactOutput]
$sel:provisioningArtifactOutputs:DescribeProvisioningParametersResponse' :: DescribeProvisioningParametersResponse
-> Maybe [ProvisioningArtifactOutput]
provisioningArtifactOutputs} -> Maybe [ProvisioningArtifactOutput]
provisioningArtifactOutputs) (\s :: DescribeProvisioningParametersResponse
s@DescribeProvisioningParametersResponse' {} Maybe [ProvisioningArtifactOutput]
a -> DescribeProvisioningParametersResponse
s {$sel:provisioningArtifactOutputs:DescribeProvisioningParametersResponse' :: Maybe [ProvisioningArtifactOutput]
provisioningArtifactOutputs = Maybe [ProvisioningArtifactOutput]
a} :: DescribeProvisioningParametersResponse) ((Maybe [ProvisioningArtifactOutput]
  -> f (Maybe [ProvisioningArtifactOutput]))
 -> DescribeProvisioningParametersResponse
 -> f DescribeProvisioningParametersResponse)
-> ((Maybe [ProvisioningArtifactOutput]
     -> f (Maybe [ProvisioningArtifactOutput]))
    -> Maybe [ProvisioningArtifactOutput]
    -> f (Maybe [ProvisioningArtifactOutput]))
-> (Maybe [ProvisioningArtifactOutput]
    -> f (Maybe [ProvisioningArtifactOutput]))
-> DescribeProvisioningParametersResponse
-> f DescribeProvisioningParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ProvisioningArtifactOutput]
  [ProvisioningArtifactOutput]
  [ProvisioningArtifactOutput]
  [ProvisioningArtifactOutput]
-> Iso
     (Maybe [ProvisioningArtifactOutput])
     (Maybe [ProvisioningArtifactOutput])
     (Maybe [ProvisioningArtifactOutput])
     (Maybe [ProvisioningArtifactOutput])
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
  [ProvisioningArtifactOutput]
  [ProvisioningArtifactOutput]
  [ProvisioningArtifactOutput]
  [ProvisioningArtifactOutput]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeProvisioningParametersResponse