{-# 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.OpsWorks.DescribeStackProvisioningParameters
-- 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)
--
-- Requests a description of a stack\'s provisioning parameters.
--
-- __Required Permissions__: To use this action, an IAM user must have a
-- Show, Deploy, or Manage permissions level for the stack or an attached
-- policy that explicitly grants permissions. For more information about
-- user permissions, see
-- <https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html Managing User Permissions>.
module Amazonka.OpsWorks.DescribeStackProvisioningParameters
  ( -- * Creating a Request
    DescribeStackProvisioningParameters (..),
    newDescribeStackProvisioningParameters,

    -- * Request Lenses
    describeStackProvisioningParameters_stackId,

    -- * Destructuring the Response
    DescribeStackProvisioningParametersResponse (..),
    newDescribeStackProvisioningParametersResponse,

    -- * Response Lenses
    describeStackProvisioningParametersResponse_agentInstallerUrl,
    describeStackProvisioningParametersResponse_parameters,
    describeStackProvisioningParametersResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeStackProvisioningParameters' smart constructor.
data DescribeStackProvisioningParameters = DescribeStackProvisioningParameters'
  { -- | The stack ID.
    DescribeStackProvisioningParameters -> Text
stackId :: Prelude.Text
  }
  deriving (DescribeStackProvisioningParameters
-> DescribeStackProvisioningParameters -> Bool
(DescribeStackProvisioningParameters
 -> DescribeStackProvisioningParameters -> Bool)
-> (DescribeStackProvisioningParameters
    -> DescribeStackProvisioningParameters -> Bool)
-> Eq DescribeStackProvisioningParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeStackProvisioningParameters
-> DescribeStackProvisioningParameters -> Bool
$c/= :: DescribeStackProvisioningParameters
-> DescribeStackProvisioningParameters -> Bool
== :: DescribeStackProvisioningParameters
-> DescribeStackProvisioningParameters -> Bool
$c== :: DescribeStackProvisioningParameters
-> DescribeStackProvisioningParameters -> Bool
Prelude.Eq, ReadPrec [DescribeStackProvisioningParameters]
ReadPrec DescribeStackProvisioningParameters
Int -> ReadS DescribeStackProvisioningParameters
ReadS [DescribeStackProvisioningParameters]
(Int -> ReadS DescribeStackProvisioningParameters)
-> ReadS [DescribeStackProvisioningParameters]
-> ReadPrec DescribeStackProvisioningParameters
-> ReadPrec [DescribeStackProvisioningParameters]
-> Read DescribeStackProvisioningParameters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeStackProvisioningParameters]
$creadListPrec :: ReadPrec [DescribeStackProvisioningParameters]
readPrec :: ReadPrec DescribeStackProvisioningParameters
$creadPrec :: ReadPrec DescribeStackProvisioningParameters
readList :: ReadS [DescribeStackProvisioningParameters]
$creadList :: ReadS [DescribeStackProvisioningParameters]
readsPrec :: Int -> ReadS DescribeStackProvisioningParameters
$creadsPrec :: Int -> ReadS DescribeStackProvisioningParameters
Prelude.Read, Int -> DescribeStackProvisioningParameters -> ShowS
[DescribeStackProvisioningParameters] -> ShowS
DescribeStackProvisioningParameters -> String
(Int -> DescribeStackProvisioningParameters -> ShowS)
-> (DescribeStackProvisioningParameters -> String)
-> ([DescribeStackProvisioningParameters] -> ShowS)
-> Show DescribeStackProvisioningParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeStackProvisioningParameters] -> ShowS
$cshowList :: [DescribeStackProvisioningParameters] -> ShowS
show :: DescribeStackProvisioningParameters -> String
$cshow :: DescribeStackProvisioningParameters -> String
showsPrec :: Int -> DescribeStackProvisioningParameters -> ShowS
$cshowsPrec :: Int -> DescribeStackProvisioningParameters -> ShowS
Prelude.Show, (forall x.
 DescribeStackProvisioningParameters
 -> Rep DescribeStackProvisioningParameters x)
-> (forall x.
    Rep DescribeStackProvisioningParameters x
    -> DescribeStackProvisioningParameters)
-> Generic DescribeStackProvisioningParameters
forall x.
Rep DescribeStackProvisioningParameters x
-> DescribeStackProvisioningParameters
forall x.
DescribeStackProvisioningParameters
-> Rep DescribeStackProvisioningParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeStackProvisioningParameters x
-> DescribeStackProvisioningParameters
$cfrom :: forall x.
DescribeStackProvisioningParameters
-> Rep DescribeStackProvisioningParameters x
Prelude.Generic)

-- |
-- Create a value of 'DescribeStackProvisioningParameters' 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:
--
-- 'stackId', 'describeStackProvisioningParameters_stackId' - The stack ID.
newDescribeStackProvisioningParameters ::
  -- | 'stackId'
  Prelude.Text ->
  DescribeStackProvisioningParameters
newDescribeStackProvisioningParameters :: Text -> DescribeStackProvisioningParameters
newDescribeStackProvisioningParameters Text
pStackId_ =
  DescribeStackProvisioningParameters' :: Text -> DescribeStackProvisioningParameters
DescribeStackProvisioningParameters'
    { $sel:stackId:DescribeStackProvisioningParameters' :: Text
stackId =
        Text
pStackId_
    }

-- | The stack ID.
describeStackProvisioningParameters_stackId :: Lens.Lens' DescribeStackProvisioningParameters Prelude.Text
describeStackProvisioningParameters_stackId :: (Text -> f Text)
-> DescribeStackProvisioningParameters
-> f DescribeStackProvisioningParameters
describeStackProvisioningParameters_stackId = (DescribeStackProvisioningParameters -> Text)
-> (DescribeStackProvisioningParameters
    -> Text -> DescribeStackProvisioningParameters)
-> Lens
     DescribeStackProvisioningParameters
     DescribeStackProvisioningParameters
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStackProvisioningParameters' {Text
stackId :: Text
$sel:stackId:DescribeStackProvisioningParameters' :: DescribeStackProvisioningParameters -> Text
stackId} -> Text
stackId) (\s :: DescribeStackProvisioningParameters
s@DescribeStackProvisioningParameters' {} Text
a -> DescribeStackProvisioningParameters
s {$sel:stackId:DescribeStackProvisioningParameters' :: Text
stackId = Text
a} :: DescribeStackProvisioningParameters)

instance
  Core.AWSRequest
    DescribeStackProvisioningParameters
  where
  type
    AWSResponse DescribeStackProvisioningParameters =
      DescribeStackProvisioningParametersResponse
  request :: DescribeStackProvisioningParameters
-> Request DescribeStackProvisioningParameters
request = Service
-> DescribeStackProvisioningParameters
-> Request DescribeStackProvisioningParameters
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeStackProvisioningParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeStackProvisioningParameters)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeStackProvisioningParameters))
-> Logger
-> Service
-> Proxy DescribeStackProvisioningParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeStackProvisioningParameters)))
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 Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeStackProvisioningParametersResponse
DescribeStackProvisioningParametersResponse'
            (Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeStackProvisioningParametersResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> DescribeStackProvisioningParametersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AgentInstallerUrl")
              Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> DescribeStackProvisioningParametersResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String (Int -> DescribeStackProvisioningParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Parameters" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
              Either String (Int -> DescribeStackProvisioningParametersResponse)
-> Either String Int
-> Either String DescribeStackProvisioningParametersResponse
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
    DescribeStackProvisioningParameters

instance
  Prelude.NFData
    DescribeStackProvisioningParameters

instance
  Core.ToHeaders
    DescribeStackProvisioningParameters
  where
  toHeaders :: DescribeStackProvisioningParameters -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeStackProvisioningParameters -> 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
"OpsWorks_20130218.DescribeStackProvisioningParameters" ::
                          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
    DescribeStackProvisioningParameters
  where
  toJSON :: DescribeStackProvisioningParameters -> Value
toJSON DescribeStackProvisioningParameters' {Text
stackId :: Text
$sel:stackId:DescribeStackProvisioningParameters' :: DescribeStackProvisioningParameters -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"StackId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
stackId)]
      )

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

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

-- | Contains the response to a @DescribeStackProvisioningParameters@
-- request.
--
-- /See:/ 'newDescribeStackProvisioningParametersResponse' smart constructor.
data DescribeStackProvisioningParametersResponse = DescribeStackProvisioningParametersResponse'
  { -- | The AWS OpsWorks Stacks agent installer\'s URL.
    DescribeStackProvisioningParametersResponse -> Maybe Text
agentInstallerUrl :: Prelude.Maybe Prelude.Text,
    -- | An embedded object that contains the provisioning parameters.
    DescribeStackProvisioningParametersResponse
-> Maybe (HashMap Text Text)
parameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeStackProvisioningParametersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeStackProvisioningParametersResponse
-> DescribeStackProvisioningParametersResponse -> Bool
(DescribeStackProvisioningParametersResponse
 -> DescribeStackProvisioningParametersResponse -> Bool)
-> (DescribeStackProvisioningParametersResponse
    -> DescribeStackProvisioningParametersResponse -> Bool)
-> Eq DescribeStackProvisioningParametersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeStackProvisioningParametersResponse
-> DescribeStackProvisioningParametersResponse -> Bool
$c/= :: DescribeStackProvisioningParametersResponse
-> DescribeStackProvisioningParametersResponse -> Bool
== :: DescribeStackProvisioningParametersResponse
-> DescribeStackProvisioningParametersResponse -> Bool
$c== :: DescribeStackProvisioningParametersResponse
-> DescribeStackProvisioningParametersResponse -> Bool
Prelude.Eq, ReadPrec [DescribeStackProvisioningParametersResponse]
ReadPrec DescribeStackProvisioningParametersResponse
Int -> ReadS DescribeStackProvisioningParametersResponse
ReadS [DescribeStackProvisioningParametersResponse]
(Int -> ReadS DescribeStackProvisioningParametersResponse)
-> ReadS [DescribeStackProvisioningParametersResponse]
-> ReadPrec DescribeStackProvisioningParametersResponse
-> ReadPrec [DescribeStackProvisioningParametersResponse]
-> Read DescribeStackProvisioningParametersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeStackProvisioningParametersResponse]
$creadListPrec :: ReadPrec [DescribeStackProvisioningParametersResponse]
readPrec :: ReadPrec DescribeStackProvisioningParametersResponse
$creadPrec :: ReadPrec DescribeStackProvisioningParametersResponse
readList :: ReadS [DescribeStackProvisioningParametersResponse]
$creadList :: ReadS [DescribeStackProvisioningParametersResponse]
readsPrec :: Int -> ReadS DescribeStackProvisioningParametersResponse
$creadsPrec :: Int -> ReadS DescribeStackProvisioningParametersResponse
Prelude.Read, Int -> DescribeStackProvisioningParametersResponse -> ShowS
[DescribeStackProvisioningParametersResponse] -> ShowS
DescribeStackProvisioningParametersResponse -> String
(Int -> DescribeStackProvisioningParametersResponse -> ShowS)
-> (DescribeStackProvisioningParametersResponse -> String)
-> ([DescribeStackProvisioningParametersResponse] -> ShowS)
-> Show DescribeStackProvisioningParametersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeStackProvisioningParametersResponse] -> ShowS
$cshowList :: [DescribeStackProvisioningParametersResponse] -> ShowS
show :: DescribeStackProvisioningParametersResponse -> String
$cshow :: DescribeStackProvisioningParametersResponse -> String
showsPrec :: Int -> DescribeStackProvisioningParametersResponse -> ShowS
$cshowsPrec :: Int -> DescribeStackProvisioningParametersResponse -> ShowS
Prelude.Show, (forall x.
 DescribeStackProvisioningParametersResponse
 -> Rep DescribeStackProvisioningParametersResponse x)
-> (forall x.
    Rep DescribeStackProvisioningParametersResponse x
    -> DescribeStackProvisioningParametersResponse)
-> Generic DescribeStackProvisioningParametersResponse
forall x.
Rep DescribeStackProvisioningParametersResponse x
-> DescribeStackProvisioningParametersResponse
forall x.
DescribeStackProvisioningParametersResponse
-> Rep DescribeStackProvisioningParametersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeStackProvisioningParametersResponse x
-> DescribeStackProvisioningParametersResponse
$cfrom :: forall x.
DescribeStackProvisioningParametersResponse
-> Rep DescribeStackProvisioningParametersResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeStackProvisioningParametersResponse' 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:
--
-- 'agentInstallerUrl', 'describeStackProvisioningParametersResponse_agentInstallerUrl' - The AWS OpsWorks Stacks agent installer\'s URL.
--
-- 'parameters', 'describeStackProvisioningParametersResponse_parameters' - An embedded object that contains the provisioning parameters.
--
-- 'httpStatus', 'describeStackProvisioningParametersResponse_httpStatus' - The response's http status code.
newDescribeStackProvisioningParametersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeStackProvisioningParametersResponse
newDescribeStackProvisioningParametersResponse :: Int -> DescribeStackProvisioningParametersResponse
newDescribeStackProvisioningParametersResponse
  Int
pHttpStatus_ =
    DescribeStackProvisioningParametersResponse' :: Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeStackProvisioningParametersResponse
DescribeStackProvisioningParametersResponse'
      { $sel:agentInstallerUrl:DescribeStackProvisioningParametersResponse' :: Maybe Text
agentInstallerUrl =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:parameters:DescribeStackProvisioningParametersResponse' :: Maybe (HashMap Text Text)
parameters = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeStackProvisioningParametersResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The AWS OpsWorks Stacks agent installer\'s URL.
describeStackProvisioningParametersResponse_agentInstallerUrl :: Lens.Lens' DescribeStackProvisioningParametersResponse (Prelude.Maybe Prelude.Text)
describeStackProvisioningParametersResponse_agentInstallerUrl :: (Maybe Text -> f (Maybe Text))
-> DescribeStackProvisioningParametersResponse
-> f DescribeStackProvisioningParametersResponse
describeStackProvisioningParametersResponse_agentInstallerUrl = (DescribeStackProvisioningParametersResponse -> Maybe Text)
-> (DescribeStackProvisioningParametersResponse
    -> Maybe Text -> DescribeStackProvisioningParametersResponse)
-> Lens
     DescribeStackProvisioningParametersResponse
     DescribeStackProvisioningParametersResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStackProvisioningParametersResponse' {Maybe Text
agentInstallerUrl :: Maybe Text
$sel:agentInstallerUrl:DescribeStackProvisioningParametersResponse' :: DescribeStackProvisioningParametersResponse -> Maybe Text
agentInstallerUrl} -> Maybe Text
agentInstallerUrl) (\s :: DescribeStackProvisioningParametersResponse
s@DescribeStackProvisioningParametersResponse' {} Maybe Text
a -> DescribeStackProvisioningParametersResponse
s {$sel:agentInstallerUrl:DescribeStackProvisioningParametersResponse' :: Maybe Text
agentInstallerUrl = Maybe Text
a} :: DescribeStackProvisioningParametersResponse)

-- | An embedded object that contains the provisioning parameters.
describeStackProvisioningParametersResponse_parameters :: Lens.Lens' DescribeStackProvisioningParametersResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeStackProvisioningParametersResponse_parameters :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeStackProvisioningParametersResponse
-> f DescribeStackProvisioningParametersResponse
describeStackProvisioningParametersResponse_parameters = (DescribeStackProvisioningParametersResponse
 -> Maybe (HashMap Text Text))
-> (DescribeStackProvisioningParametersResponse
    -> Maybe (HashMap Text Text)
    -> DescribeStackProvisioningParametersResponse)
-> Lens
     DescribeStackProvisioningParametersResponse
     DescribeStackProvisioningParametersResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStackProvisioningParametersResponse' {Maybe (HashMap Text Text)
parameters :: Maybe (HashMap Text Text)
$sel:parameters:DescribeStackProvisioningParametersResponse' :: DescribeStackProvisioningParametersResponse
-> Maybe (HashMap Text Text)
parameters} -> Maybe (HashMap Text Text)
parameters) (\s :: DescribeStackProvisioningParametersResponse
s@DescribeStackProvisioningParametersResponse' {} Maybe (HashMap Text Text)
a -> DescribeStackProvisioningParametersResponse
s {$sel:parameters:DescribeStackProvisioningParametersResponse' :: Maybe (HashMap Text Text)
parameters = Maybe (HashMap Text Text)
a} :: DescribeStackProvisioningParametersResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeStackProvisioningParametersResponse
 -> f DescribeStackProvisioningParametersResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeStackProvisioningParametersResponse
-> f DescribeStackProvisioningParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeStackProvisioningParametersResponse