{-# 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-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)
--
-- 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.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:/ '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
(DescribeServiceActionExecutionParameters
 -> DescribeServiceActionExecutionParameters -> Bool)
-> (DescribeServiceActionExecutionParameters
    -> DescribeServiceActionExecutionParameters -> Bool)
-> Eq DescribeServiceActionExecutionParameters
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]
(Int -> ReadS DescribeServiceActionExecutionParameters)
-> ReadS [DescribeServiceActionExecutionParameters]
-> ReadPrec DescribeServiceActionExecutionParameters
-> ReadPrec [DescribeServiceActionExecutionParameters]
-> Read 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
(Int -> DescribeServiceActionExecutionParameters -> ShowS)
-> (DescribeServiceActionExecutionParameters -> String)
-> ([DescribeServiceActionExecutionParameters] -> ShowS)
-> Show DescribeServiceActionExecutionParameters
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.
 DescribeServiceActionExecutionParameters
 -> Rep DescribeServiceActionExecutionParameters x)
-> (forall x.
    Rep DescribeServiceActionExecutionParameters x
    -> DescribeServiceActionExecutionParameters)
-> Generic DescribeServiceActionExecutionParameters
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' :: Maybe Text
-> Text -> Text -> DescribeServiceActionExecutionParameters
DescribeServiceActionExecutionParameters'
      { $sel:acceptLanguage:DescribeServiceActionExecutionParameters' :: Maybe Text
acceptLanguage =
          Maybe Text
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 :: (Maybe Text -> f (Maybe Text))
-> DescribeServiceActionExecutionParameters
-> f DescribeServiceActionExecutionParameters
describeServiceActionExecutionParameters_acceptLanguage = (DescribeServiceActionExecutionParameters -> Maybe Text)
-> (DescribeServiceActionExecutionParameters
    -> Maybe Text -> DescribeServiceActionExecutionParameters)
-> Lens
     DescribeServiceActionExecutionParameters
     DescribeServiceActionExecutionParameters
     (Maybe Text)
     (Maybe Text)
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 :: (Text -> f Text)
-> DescribeServiceActionExecutionParameters
-> f DescribeServiceActionExecutionParameters
describeServiceActionExecutionParameters_provisionedProductId = (DescribeServiceActionExecutionParameters -> Text)
-> (DescribeServiceActionExecutionParameters
    -> Text -> DescribeServiceActionExecutionParameters)
-> Lens
     DescribeServiceActionExecutionParameters
     DescribeServiceActionExecutionParameters
     Text
     Text
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 :: (Text -> f Text)
-> DescribeServiceActionExecutionParameters
-> f DescribeServiceActionExecutionParameters
describeServiceActionExecutionParameters_serviceActionId = (DescribeServiceActionExecutionParameters -> Text)
-> (DescribeServiceActionExecutionParameters
    -> Text -> DescribeServiceActionExecutionParameters)
-> Lens
     DescribeServiceActionExecutionParameters
     DescribeServiceActionExecutionParameters
     Text
     Text
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 :: DescribeServiceActionExecutionParameters
-> Request DescribeServiceActionExecutionParameters
request = Service
-> DescribeServiceActionExecutionParameters
-> Request DescribeServiceActionExecutionParameters
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeServiceActionExecutionParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeServiceActionExecutionParameters)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeServiceActionExecutionParameters))
-> Logger
-> Service
-> Proxy DescribeServiceActionExecutionParameters
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeServiceActionExecutionParameters)))
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 [ExecutionParameter]
-> Int -> DescribeServiceActionExecutionParametersResponse
DescribeServiceActionExecutionParametersResponse'
            (Maybe [ExecutionParameter]
 -> Int -> DescribeServiceActionExecutionParametersResponse)
-> Either String (Maybe [ExecutionParameter])
-> Either
     String (Int -> DescribeServiceActionExecutionParametersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ExecutionParameter]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceActionParameters"
                            Either String (Maybe (Maybe [ExecutionParameter]))
-> Maybe [ExecutionParameter]
-> Either String (Maybe [ExecutionParameter])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ExecutionParameter]
forall a. Monoid a => a
Prelude.mempty
                        )
              Either
  String (Int -> DescribeServiceActionExecutionParametersResponse)
-> Either String Int
-> Either String DescribeServiceActionExecutionParametersResponse
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
    DescribeServiceActionExecutionParameters

instance
  Prelude.NFData
    DescribeServiceActionExecutionParameters

instance
  Core.ToHeaders
    DescribeServiceActionExecutionParameters
  where
  toHeaders :: DescribeServiceActionExecutionParameters -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeServiceActionExecutionParameters -> 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.DescribeServiceActionExecutionParameters" ::
                          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
    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
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (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,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"ProvisionedProductId"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
provisionedProductId
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ServiceActionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
serviceActionId)
          ]
      )

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

instance
  Core.ToQuery
    DescribeServiceActionExecutionParameters
  where
  toQuery :: DescribeServiceActionExecutionParameters -> QueryString
toQuery = QueryString
-> DescribeServiceActionExecutionParameters -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
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
(DescribeServiceActionExecutionParametersResponse
 -> DescribeServiceActionExecutionParametersResponse -> Bool)
-> (DescribeServiceActionExecutionParametersResponse
    -> DescribeServiceActionExecutionParametersResponse -> Bool)
-> Eq DescribeServiceActionExecutionParametersResponse
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]
(Int -> ReadS DescribeServiceActionExecutionParametersResponse)
-> ReadS [DescribeServiceActionExecutionParametersResponse]
-> ReadPrec DescribeServiceActionExecutionParametersResponse
-> ReadPrec [DescribeServiceActionExecutionParametersResponse]
-> Read 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
(Int -> DescribeServiceActionExecutionParametersResponse -> ShowS)
-> (DescribeServiceActionExecutionParametersResponse -> String)
-> ([DescribeServiceActionExecutionParametersResponse] -> ShowS)
-> Show DescribeServiceActionExecutionParametersResponse
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.
 DescribeServiceActionExecutionParametersResponse
 -> Rep DescribeServiceActionExecutionParametersResponse x)
-> (forall x.
    Rep DescribeServiceActionExecutionParametersResponse x
    -> DescribeServiceActionExecutionParametersResponse)
-> Generic DescribeServiceActionExecutionParametersResponse
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' :: Maybe [ExecutionParameter]
-> Int -> DescribeServiceActionExecutionParametersResponse
DescribeServiceActionExecutionParametersResponse'
      { $sel:serviceActionParameters:DescribeServiceActionExecutionParametersResponse' :: Maybe [ExecutionParameter]
serviceActionParameters =
          Maybe [ExecutionParameter]
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 :: (Maybe [ExecutionParameter] -> f (Maybe [ExecutionParameter]))
-> DescribeServiceActionExecutionParametersResponse
-> f DescribeServiceActionExecutionParametersResponse
describeServiceActionExecutionParametersResponse_serviceActionParameters = (DescribeServiceActionExecutionParametersResponse
 -> Maybe [ExecutionParameter])
-> (DescribeServiceActionExecutionParametersResponse
    -> Maybe [ExecutionParameter]
    -> DescribeServiceActionExecutionParametersResponse)
-> Lens
     DescribeServiceActionExecutionParametersResponse
     DescribeServiceActionExecutionParametersResponse
     (Maybe [ExecutionParameter])
     (Maybe [ExecutionParameter])
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) ((Maybe [ExecutionParameter] -> f (Maybe [ExecutionParameter]))
 -> DescribeServiceActionExecutionParametersResponse
 -> f DescribeServiceActionExecutionParametersResponse)
-> ((Maybe [ExecutionParameter] -> f (Maybe [ExecutionParameter]))
    -> Maybe [ExecutionParameter] -> f (Maybe [ExecutionParameter]))
-> (Maybe [ExecutionParameter] -> f (Maybe [ExecutionParameter]))
-> DescribeServiceActionExecutionParametersResponse
-> f DescribeServiceActionExecutionParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ExecutionParameter]
  [ExecutionParameter]
  [ExecutionParameter]
  [ExecutionParameter]
-> Iso
     (Maybe [ExecutionParameter])
     (Maybe [ExecutionParameter])
     (Maybe [ExecutionParameter])
     (Maybe [ExecutionParameter])
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
  [ExecutionParameter]
  [ExecutionParameter]
  [ExecutionParameter]
  [ExecutionParameter]
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 :: (Int -> f Int)
-> DescribeServiceActionExecutionParametersResponse
-> f DescribeServiceActionExecutionParametersResponse
describeServiceActionExecutionParametersResponse_httpStatus = (DescribeServiceActionExecutionParametersResponse -> Int)
-> (DescribeServiceActionExecutionParametersResponse
    -> Int -> DescribeServiceActionExecutionParametersResponse)
-> Lens
     DescribeServiceActionExecutionParametersResponse
     DescribeServiceActionExecutionParametersResponse
     Int
     Int
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