{-# 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 #-}
module Amazonka.ServiceCatalog.DescribeServiceActionExecutionParameters
(
DescribeServiceActionExecutionParameters (..),
newDescribeServiceActionExecutionParameters,
describeServiceActionExecutionParameters_acceptLanguage,
describeServiceActionExecutionParameters_provisionedProductId,
describeServiceActionExecutionParameters_serviceActionId,
DescribeServiceActionExecutionParametersResponse (..),
newDescribeServiceActionExecutionParametersResponse,
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
data DescribeServiceActionExecutionParameters = DescribeServiceActionExecutionParameters'
{
DescribeServiceActionExecutionParameters -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
DescribeServiceActionExecutionParameters -> Text
provisionedProductId :: Prelude.Text,
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)
newDescribeServiceActionExecutionParameters ::
Prelude.Text ->
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_
}
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)
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)
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
data DescribeServiceActionExecutionParametersResponse = DescribeServiceActionExecutionParametersResponse'
{
DescribeServiceActionExecutionParametersResponse
-> Maybe [ExecutionParameter]
serviceActionParameters :: Prelude.Maybe [ExecutionParameter],
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)
newDescribeServiceActionExecutionParametersResponse ::
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_
}
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
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