{-# 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.DescribeServiceActionExecutionParameters
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Finds the default parameters for a specific self-service action on a
-- specific provisioned product and returns a map of the results to the
-- user.
module Amazonka.ServiceCatalog.DescribeServiceActionExecutionParameters
  ( -- * Creating a Request
    DescribeServiceActionExecutionParameters (..),
    newDescribeServiceActionExecutionParameters,

    -- * Request Lenses
    describeServiceActionExecutionParameters_acceptLanguage,
    describeServiceActionExecutionParameters_provisionedProductId,
    describeServiceActionExecutionParameters_serviceActionId,

    -- * Destructuring the Response
    DescribeServiceActionExecutionParametersResponse (..),
    newDescribeServiceActionExecutionParametersResponse,

    -- * Response Lenses
    describeServiceActionExecutionParametersResponse_serviceActionParameters,
    describeServiceActionExecutionParametersResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeServiceActionExecutionParameters' smart constructor.
data DescribeServiceActionExecutionParameters = DescribeServiceActionExecutionParameters'
  { -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    DescribeServiceActionExecutionParameters -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the provisioned product.
    DescribeServiceActionExecutionParameters -> Text
provisionedProductId :: Prelude.Text,
    -- | The self-service action identifier.
    DescribeServiceActionExecutionParameters -> Text
serviceActionId :: Prelude.Text
  }
  deriving (DescribeServiceActionExecutionParameters
-> DescribeServiceActionExecutionParameters -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeServiceActionExecutionParameters
-> DescribeServiceActionExecutionParameters -> Bool
$c/= :: DescribeServiceActionExecutionParameters
-> DescribeServiceActionExecutionParameters -> Bool
== :: DescribeServiceActionExecutionParameters
-> DescribeServiceActionExecutionParameters -> Bool
$c== :: DescribeServiceActionExecutionParameters
-> DescribeServiceActionExecutionParameters -> Bool
Prelude.Eq, ReadPrec [DescribeServiceActionExecutionParameters]
ReadPrec DescribeServiceActionExecutionParameters
Int -> ReadS DescribeServiceActionExecutionParameters
ReadS [DescribeServiceActionExecutionParameters]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeServiceActionExecutionParameters]
$creadListPrec :: ReadPrec [DescribeServiceActionExecutionParameters]
readPrec :: ReadPrec DescribeServiceActionExecutionParameters
$creadPrec :: ReadPrec DescribeServiceActionExecutionParameters
readList :: ReadS [DescribeServiceActionExecutionParameters]
$creadList :: ReadS [DescribeServiceActionExecutionParameters]
readsPrec :: Int -> ReadS DescribeServiceActionExecutionParameters
$creadsPrec :: Int -> ReadS DescribeServiceActionExecutionParameters
Prelude.Read, Int -> DescribeServiceActionExecutionParameters -> ShowS
[DescribeServiceActionExecutionParameters] -> ShowS
DescribeServiceActionExecutionParameters -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeServiceActionExecutionParameters] -> ShowS
$cshowList :: [DescribeServiceActionExecutionParameters] -> ShowS
show :: DescribeServiceActionExecutionParameters -> String
$cshow :: DescribeServiceActionExecutionParameters -> String
showsPrec :: Int -> DescribeServiceActionExecutionParameters -> ShowS
$cshowsPrec :: Int -> DescribeServiceActionExecutionParameters -> ShowS
Prelude.Show, forall x.
Rep DescribeServiceActionExecutionParameters x
-> DescribeServiceActionExecutionParameters
forall x.
DescribeServiceActionExecutionParameters
-> Rep DescribeServiceActionExecutionParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeServiceActionExecutionParameters x
-> DescribeServiceActionExecutionParameters
$cfrom :: forall x.
DescribeServiceActionExecutionParameters
-> Rep DescribeServiceActionExecutionParameters x
Prelude.Generic)

-- |
-- Create a value of 'DescribeServiceActionExecutionParameters' 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:
--
-- 'acceptLanguage', 'describeServiceActionExecutionParameters_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'provisionedProductId', 'describeServiceActionExecutionParameters_provisionedProductId' - The identifier of the provisioned product.
--
-- 'serviceActionId', 'describeServiceActionExecutionParameters_serviceActionId' - The self-service action identifier.
newDescribeServiceActionExecutionParameters ::
  -- | 'provisionedProductId'
  Prelude.Text ->
  -- | 'serviceActionId'
  Prelude.Text ->
  DescribeServiceActionExecutionParameters
newDescribeServiceActionExecutionParameters :: Text -> Text -> DescribeServiceActionExecutionParameters
newDescribeServiceActionExecutionParameters
  Text
pProvisionedProductId_
  Text
pServiceActionId_ =
    DescribeServiceActionExecutionParameters'
      { $sel:acceptLanguage:DescribeServiceActionExecutionParameters' :: Maybe Text
acceptLanguage =
          forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedProductId:DescribeServiceActionExecutionParameters' :: Text
provisionedProductId =
          Text
pProvisionedProductId_,
        $sel:serviceActionId:DescribeServiceActionExecutionParameters' :: Text
serviceActionId =
          Text
pServiceActionId_
      }

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

-- | The identifier of the provisioned product.
describeServiceActionExecutionParameters_provisionedProductId :: Lens.Lens' DescribeServiceActionExecutionParameters Prelude.Text
describeServiceActionExecutionParameters_provisionedProductId :: Lens' DescribeServiceActionExecutionParameters Text
describeServiceActionExecutionParameters_provisionedProductId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeServiceActionExecutionParameters' {Text
provisionedProductId :: Text
$sel:provisionedProductId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
provisionedProductId} -> Text
provisionedProductId) (\s :: DescribeServiceActionExecutionParameters
s@DescribeServiceActionExecutionParameters' {} Text
a -> DescribeServiceActionExecutionParameters
s {$sel:provisionedProductId:DescribeServiceActionExecutionParameters' :: Text
provisionedProductId = Text
a} :: DescribeServiceActionExecutionParameters)

-- | The self-service action identifier.
describeServiceActionExecutionParameters_serviceActionId :: Lens.Lens' DescribeServiceActionExecutionParameters Prelude.Text
describeServiceActionExecutionParameters_serviceActionId :: Lens' DescribeServiceActionExecutionParameters Text
describeServiceActionExecutionParameters_serviceActionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeServiceActionExecutionParameters' {Text
serviceActionId :: Text
$sel:serviceActionId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
serviceActionId} -> Text
serviceActionId) (\s :: DescribeServiceActionExecutionParameters
s@DescribeServiceActionExecutionParameters' {} Text
a -> DescribeServiceActionExecutionParameters
s {$sel:serviceActionId:DescribeServiceActionExecutionParameters' :: Text
serviceActionId = Text
a} :: DescribeServiceActionExecutionParameters)

instance
  Core.AWSRequest
    DescribeServiceActionExecutionParameters
  where
  type
    AWSResponse
      DescribeServiceActionExecutionParameters =
      DescribeServiceActionExecutionParametersResponse
  request :: (Service -> Service)
-> DescribeServiceActionExecutionParameters
-> Request DescribeServiceActionExecutionParameters
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeServiceActionExecutionParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeServiceActionExecutionParameters)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [ExecutionParameter]
-> Int -> DescribeServiceActionExecutionParametersResponse
DescribeServiceActionExecutionParametersResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ServiceActionParameters"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeServiceActionExecutionParameters
  where
  hashWithSalt :: Int -> DescribeServiceActionExecutionParameters -> Int
hashWithSalt
    Int
_salt
    DescribeServiceActionExecutionParameters' {Maybe Text
Text
serviceActionId :: Text
provisionedProductId :: Text
acceptLanguage :: Maybe Text
$sel:serviceActionId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
$sel:provisionedProductId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
$sel:acceptLanguage:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
acceptLanguage
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
provisionedProductId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
serviceActionId

instance
  Prelude.NFData
    DescribeServiceActionExecutionParameters
  where
  rnf :: DescribeServiceActionExecutionParameters -> ()
rnf DescribeServiceActionExecutionParameters' {Maybe Text
Text
serviceActionId :: Text
provisionedProductId :: Text
acceptLanguage :: Maybe Text
$sel:serviceActionId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
$sel:provisionedProductId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
$sel:acceptLanguage:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
acceptLanguage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
provisionedProductId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
serviceActionId

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

instance
  Data.ToJSON
    DescribeServiceActionExecutionParameters
  where
  toJSON :: DescribeServiceActionExecutionParameters -> Value
toJSON DescribeServiceActionExecutionParameters' {Maybe Text
Text
serviceActionId :: Text
provisionedProductId :: Text
acceptLanguage :: Maybe Text
$sel:serviceActionId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
$sel:provisionedProductId:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Text
$sel:acceptLanguage:DescribeServiceActionExecutionParameters' :: DescribeServiceActionExecutionParameters -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AcceptLanguage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
            forall a. a -> Maybe a
Prelude.Just
              ( Key
"ProvisionedProductId"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
provisionedProductId
              ),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"ServiceActionId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
serviceActionId)
          ]
      )

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

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

-- | /See:/ 'newDescribeServiceActionExecutionParametersResponse' smart constructor.
data DescribeServiceActionExecutionParametersResponse = DescribeServiceActionExecutionParametersResponse'
  { -- | The parameters of the self-service action.
    DescribeServiceActionExecutionParametersResponse
-> Maybe [ExecutionParameter]
serviceActionParameters :: Prelude.Maybe [ExecutionParameter],
    -- | The response's http status code.
    DescribeServiceActionExecutionParametersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeServiceActionExecutionParametersResponse
-> DescribeServiceActionExecutionParametersResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeServiceActionExecutionParametersResponse
-> DescribeServiceActionExecutionParametersResponse -> Bool
$c/= :: DescribeServiceActionExecutionParametersResponse
-> DescribeServiceActionExecutionParametersResponse -> Bool
== :: DescribeServiceActionExecutionParametersResponse
-> DescribeServiceActionExecutionParametersResponse -> Bool
$c== :: DescribeServiceActionExecutionParametersResponse
-> DescribeServiceActionExecutionParametersResponse -> Bool
Prelude.Eq, ReadPrec [DescribeServiceActionExecutionParametersResponse]
ReadPrec DescribeServiceActionExecutionParametersResponse
Int -> ReadS DescribeServiceActionExecutionParametersResponse
ReadS [DescribeServiceActionExecutionParametersResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeServiceActionExecutionParametersResponse]
$creadListPrec :: ReadPrec [DescribeServiceActionExecutionParametersResponse]
readPrec :: ReadPrec DescribeServiceActionExecutionParametersResponse
$creadPrec :: ReadPrec DescribeServiceActionExecutionParametersResponse
readList :: ReadS [DescribeServiceActionExecutionParametersResponse]
$creadList :: ReadS [DescribeServiceActionExecutionParametersResponse]
readsPrec :: Int -> ReadS DescribeServiceActionExecutionParametersResponse
$creadsPrec :: Int -> ReadS DescribeServiceActionExecutionParametersResponse
Prelude.Read, Int -> DescribeServiceActionExecutionParametersResponse -> ShowS
[DescribeServiceActionExecutionParametersResponse] -> ShowS
DescribeServiceActionExecutionParametersResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeServiceActionExecutionParametersResponse] -> ShowS
$cshowList :: [DescribeServiceActionExecutionParametersResponse] -> ShowS
show :: DescribeServiceActionExecutionParametersResponse -> String
$cshow :: DescribeServiceActionExecutionParametersResponse -> String
showsPrec :: Int -> DescribeServiceActionExecutionParametersResponse -> ShowS
$cshowsPrec :: Int -> DescribeServiceActionExecutionParametersResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeServiceActionExecutionParametersResponse x
-> DescribeServiceActionExecutionParametersResponse
forall x.
DescribeServiceActionExecutionParametersResponse
-> Rep DescribeServiceActionExecutionParametersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeServiceActionExecutionParametersResponse x
-> DescribeServiceActionExecutionParametersResponse
$cfrom :: forall x.
DescribeServiceActionExecutionParametersResponse
-> Rep DescribeServiceActionExecutionParametersResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeServiceActionExecutionParametersResponse' 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:
--
-- 'serviceActionParameters', 'describeServiceActionExecutionParametersResponse_serviceActionParameters' - The parameters of the self-service action.
--
-- 'httpStatus', 'describeServiceActionExecutionParametersResponse_httpStatus' - The response's http status code.
newDescribeServiceActionExecutionParametersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeServiceActionExecutionParametersResponse
newDescribeServiceActionExecutionParametersResponse :: Int -> DescribeServiceActionExecutionParametersResponse
newDescribeServiceActionExecutionParametersResponse
  Int
pHttpStatus_ =
    DescribeServiceActionExecutionParametersResponse'
      { $sel:serviceActionParameters:DescribeServiceActionExecutionParametersResponse' :: Maybe [ExecutionParameter]
serviceActionParameters =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeServiceActionExecutionParametersResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The parameters of the self-service action.
describeServiceActionExecutionParametersResponse_serviceActionParameters :: Lens.Lens' DescribeServiceActionExecutionParametersResponse (Prelude.Maybe [ExecutionParameter])
describeServiceActionExecutionParametersResponse_serviceActionParameters :: Lens'
  DescribeServiceActionExecutionParametersResponse
  (Maybe [ExecutionParameter])
describeServiceActionExecutionParametersResponse_serviceActionParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeServiceActionExecutionParametersResponse' {Maybe [ExecutionParameter]
serviceActionParameters :: Maybe [ExecutionParameter]
$sel:serviceActionParameters:DescribeServiceActionExecutionParametersResponse' :: DescribeServiceActionExecutionParametersResponse
-> Maybe [ExecutionParameter]
serviceActionParameters} -> Maybe [ExecutionParameter]
serviceActionParameters) (\s :: DescribeServiceActionExecutionParametersResponse
s@DescribeServiceActionExecutionParametersResponse' {} Maybe [ExecutionParameter]
a -> DescribeServiceActionExecutionParametersResponse
s {$sel:serviceActionParameters:DescribeServiceActionExecutionParametersResponse' :: Maybe [ExecutionParameter]
serviceActionParameters = Maybe [ExecutionParameter]
a} :: DescribeServiceActionExecutionParametersResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeServiceActionExecutionParametersResponse
  where
  rnf :: DescribeServiceActionExecutionParametersResponse -> ()
rnf
    DescribeServiceActionExecutionParametersResponse' {Int
Maybe [ExecutionParameter]
httpStatus :: Int
serviceActionParameters :: Maybe [ExecutionParameter]
$sel:httpStatus:DescribeServiceActionExecutionParametersResponse' :: DescribeServiceActionExecutionParametersResponse -> Int
$sel:serviceActionParameters:DescribeServiceActionExecutionParametersResponse' :: DescribeServiceActionExecutionParametersResponse
-> Maybe [ExecutionParameter]
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe [ExecutionParameter]
serviceActionParameters
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus