{-# 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.RDS.DescribeEngineDefaultParameters
(
DescribeEngineDefaultParameters (..),
newDescribeEngineDefaultParameters,
describeEngineDefaultParameters_filters,
describeEngineDefaultParameters_marker,
describeEngineDefaultParameters_maxRecords,
describeEngineDefaultParameters_dbParameterGroupFamily,
DescribeEngineDefaultParametersResponse (..),
newDescribeEngineDefaultParametersResponse,
describeEngineDefaultParametersResponse_httpStatus,
describeEngineDefaultParametersResponse_engineDefaults,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeEngineDefaultParameters = DescribeEngineDefaultParameters'
{
DescribeEngineDefaultParameters -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeEngineDefaultParameters -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeEngineDefaultParameters -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeEngineDefaultParameters -> Text
dbParameterGroupFamily :: Prelude.Text
}
deriving (DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool
(DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool)
-> (DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool)
-> Eq DescribeEngineDefaultParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool
$c/= :: DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool
== :: DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool
$c== :: DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters -> Bool
Prelude.Eq, ReadPrec [DescribeEngineDefaultParameters]
ReadPrec DescribeEngineDefaultParameters
Int -> ReadS DescribeEngineDefaultParameters
ReadS [DescribeEngineDefaultParameters]
(Int -> ReadS DescribeEngineDefaultParameters)
-> ReadS [DescribeEngineDefaultParameters]
-> ReadPrec DescribeEngineDefaultParameters
-> ReadPrec [DescribeEngineDefaultParameters]
-> Read DescribeEngineDefaultParameters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEngineDefaultParameters]
$creadListPrec :: ReadPrec [DescribeEngineDefaultParameters]
readPrec :: ReadPrec DescribeEngineDefaultParameters
$creadPrec :: ReadPrec DescribeEngineDefaultParameters
readList :: ReadS [DescribeEngineDefaultParameters]
$creadList :: ReadS [DescribeEngineDefaultParameters]
readsPrec :: Int -> ReadS DescribeEngineDefaultParameters
$creadsPrec :: Int -> ReadS DescribeEngineDefaultParameters
Prelude.Read, Int -> DescribeEngineDefaultParameters -> ShowS
[DescribeEngineDefaultParameters] -> ShowS
DescribeEngineDefaultParameters -> String
(Int -> DescribeEngineDefaultParameters -> ShowS)
-> (DescribeEngineDefaultParameters -> String)
-> ([DescribeEngineDefaultParameters] -> ShowS)
-> Show DescribeEngineDefaultParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEngineDefaultParameters] -> ShowS
$cshowList :: [DescribeEngineDefaultParameters] -> ShowS
show :: DescribeEngineDefaultParameters -> String
$cshow :: DescribeEngineDefaultParameters -> String
showsPrec :: Int -> DescribeEngineDefaultParameters -> ShowS
$cshowsPrec :: Int -> DescribeEngineDefaultParameters -> ShowS
Prelude.Show, (forall x.
DescribeEngineDefaultParameters
-> Rep DescribeEngineDefaultParameters x)
-> (forall x.
Rep DescribeEngineDefaultParameters x
-> DescribeEngineDefaultParameters)
-> Generic DescribeEngineDefaultParameters
forall x.
Rep DescribeEngineDefaultParameters x
-> DescribeEngineDefaultParameters
forall x.
DescribeEngineDefaultParameters
-> Rep DescribeEngineDefaultParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEngineDefaultParameters x
-> DescribeEngineDefaultParameters
$cfrom :: forall x.
DescribeEngineDefaultParameters
-> Rep DescribeEngineDefaultParameters x
Prelude.Generic)
newDescribeEngineDefaultParameters ::
Prelude.Text ->
DescribeEngineDefaultParameters
newDescribeEngineDefaultParameters :: Text -> DescribeEngineDefaultParameters
newDescribeEngineDefaultParameters
Text
pDBParameterGroupFamily_ =
DescribeEngineDefaultParameters' :: Maybe [Filter]
-> Maybe Text
-> Maybe Int
-> Text
-> DescribeEngineDefaultParameters
DescribeEngineDefaultParameters'
{ $sel:filters:DescribeEngineDefaultParameters' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeEngineDefaultParameters' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeEngineDefaultParameters' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:dbParameterGroupFamily:DescribeEngineDefaultParameters' :: Text
dbParameterGroupFamily =
Text
pDBParameterGroupFamily_
}
describeEngineDefaultParameters_filters :: Lens.Lens' DescribeEngineDefaultParameters (Prelude.Maybe [Filter])
describeEngineDefaultParameters_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEngineDefaultParameters
-> f DescribeEngineDefaultParameters
describeEngineDefaultParameters_filters = (DescribeEngineDefaultParameters -> Maybe [Filter])
-> (DescribeEngineDefaultParameters
-> Maybe [Filter] -> DescribeEngineDefaultParameters)
-> Lens
DescribeEngineDefaultParameters
DescribeEngineDefaultParameters
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEngineDefaultParameters' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeEngineDefaultParameters
s@DescribeEngineDefaultParameters' {} Maybe [Filter]
a -> DescribeEngineDefaultParameters
s {$sel:filters:DescribeEngineDefaultParameters' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeEngineDefaultParameters) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEngineDefaultParameters
-> f DescribeEngineDefaultParameters)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEngineDefaultParameters
-> f DescribeEngineDefaultParameters
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeEngineDefaultParameters_marker :: Lens.Lens' DescribeEngineDefaultParameters (Prelude.Maybe Prelude.Text)
describeEngineDefaultParameters_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEngineDefaultParameters
-> f DescribeEngineDefaultParameters
describeEngineDefaultParameters_marker = (DescribeEngineDefaultParameters -> Maybe Text)
-> (DescribeEngineDefaultParameters
-> Maybe Text -> DescribeEngineDefaultParameters)
-> Lens
DescribeEngineDefaultParameters
DescribeEngineDefaultParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEngineDefaultParameters' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEngineDefaultParameters
s@DescribeEngineDefaultParameters' {} Maybe Text
a -> DescribeEngineDefaultParameters
s {$sel:marker:DescribeEngineDefaultParameters' :: Maybe Text
marker = Maybe Text
a} :: DescribeEngineDefaultParameters)
describeEngineDefaultParameters_maxRecords :: Lens.Lens' DescribeEngineDefaultParameters (Prelude.Maybe Prelude.Int)
describeEngineDefaultParameters_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeEngineDefaultParameters
-> f DescribeEngineDefaultParameters
describeEngineDefaultParameters_maxRecords = (DescribeEngineDefaultParameters -> Maybe Int)
-> (DescribeEngineDefaultParameters
-> Maybe Int -> DescribeEngineDefaultParameters)
-> Lens
DescribeEngineDefaultParameters
DescribeEngineDefaultParameters
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEngineDefaultParameters' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeEngineDefaultParameters
s@DescribeEngineDefaultParameters' {} Maybe Int
a -> DescribeEngineDefaultParameters
s {$sel:maxRecords:DescribeEngineDefaultParameters' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeEngineDefaultParameters)
describeEngineDefaultParameters_dbParameterGroupFamily :: Lens.Lens' DescribeEngineDefaultParameters Prelude.Text
describeEngineDefaultParameters_dbParameterGroupFamily :: (Text -> f Text)
-> DescribeEngineDefaultParameters
-> f DescribeEngineDefaultParameters
describeEngineDefaultParameters_dbParameterGroupFamily = (DescribeEngineDefaultParameters -> Text)
-> (DescribeEngineDefaultParameters
-> Text -> DescribeEngineDefaultParameters)
-> Lens
DescribeEngineDefaultParameters
DescribeEngineDefaultParameters
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEngineDefaultParameters' {Text
dbParameterGroupFamily :: Text
$sel:dbParameterGroupFamily:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Text
dbParameterGroupFamily} -> Text
dbParameterGroupFamily) (\s :: DescribeEngineDefaultParameters
s@DescribeEngineDefaultParameters' {} Text
a -> DescribeEngineDefaultParameters
s {$sel:dbParameterGroupFamily:DescribeEngineDefaultParameters' :: Text
dbParameterGroupFamily = Text
a} :: DescribeEngineDefaultParameters)
instance
Core.AWSPager
DescribeEngineDefaultParameters
where
page :: DescribeEngineDefaultParameters
-> AWSResponse DescribeEngineDefaultParameters
-> Maybe DescribeEngineDefaultParameters
page DescribeEngineDefaultParameters
rq AWSResponse DescribeEngineDefaultParameters
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEngineDefaultParameters
DescribeEngineDefaultParametersResponse
rs
DescribeEngineDefaultParametersResponse
-> Getting
(First Text) DescribeEngineDefaultParametersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (EngineDefaults -> Const (First Text) EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> Const (First Text) DescribeEngineDefaultParametersResponse
Lens' DescribeEngineDefaultParametersResponse EngineDefaults
describeEngineDefaultParametersResponse_engineDefaults
((EngineDefaults -> Const (First Text) EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> Const (First Text) DescribeEngineDefaultParametersResponse)
-> ((Text -> Const (First Text) Text)
-> EngineDefaults -> Const (First Text) EngineDefaults)
-> Getting
(First Text) DescribeEngineDefaultParametersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Maybe Text -> Const (First Text) (Maybe Text))
-> EngineDefaults -> Const (First Text) EngineDefaults
Lens' EngineDefaults (Maybe Text)
engineDefaults_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> EngineDefaults -> Const (First Text) EngineDefaults)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> (Text -> Const (First Text) Text)
-> EngineDefaults
-> Const (First Text) EngineDefaults
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeEngineDefaultParameters
forall a. Maybe a
Prelude.Nothing
| Maybe [Parameter] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEngineDefaultParameters
DescribeEngineDefaultParametersResponse
rs
DescribeEngineDefaultParametersResponse
-> Getting
(First [Parameter])
DescribeEngineDefaultParametersResponse
[Parameter]
-> Maybe [Parameter]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (EngineDefaults -> Const (First [Parameter]) EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> Const
(First [Parameter]) DescribeEngineDefaultParametersResponse
Lens' DescribeEngineDefaultParametersResponse EngineDefaults
describeEngineDefaultParametersResponse_engineDefaults
((EngineDefaults -> Const (First [Parameter]) EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> Const
(First [Parameter]) DescribeEngineDefaultParametersResponse)
-> (([Parameter] -> Const (First [Parameter]) [Parameter])
-> EngineDefaults -> Const (First [Parameter]) EngineDefaults)
-> Getting
(First [Parameter])
DescribeEngineDefaultParametersResponse
[Parameter]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter]))
-> EngineDefaults -> Const (First [Parameter]) EngineDefaults
Lens' EngineDefaults (Maybe [Parameter])
engineDefaults_parameters
((Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter]))
-> EngineDefaults -> Const (First [Parameter]) EngineDefaults)
-> (([Parameter] -> Const (First [Parameter]) [Parameter])
-> Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter]))
-> ([Parameter] -> Const (First [Parameter]) [Parameter])
-> EngineDefaults
-> Const (First [Parameter]) EngineDefaults
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Parameter] -> Const (First [Parameter]) [Parameter])
-> Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeEngineDefaultParameters
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeEngineDefaultParameters
-> Maybe DescribeEngineDefaultParameters
forall a. a -> Maybe a
Prelude.Just (DescribeEngineDefaultParameters
-> Maybe DescribeEngineDefaultParameters)
-> DescribeEngineDefaultParameters
-> Maybe DescribeEngineDefaultParameters
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeEngineDefaultParameters
rq
DescribeEngineDefaultParameters
-> (DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters)
-> DescribeEngineDefaultParameters
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeEngineDefaultParameters
-> Identity DescribeEngineDefaultParameters
Lens
DescribeEngineDefaultParameters
DescribeEngineDefaultParameters
(Maybe Text)
(Maybe Text)
describeEngineDefaultParameters_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeEngineDefaultParameters
-> Identity DescribeEngineDefaultParameters)
-> Maybe Text
-> DescribeEngineDefaultParameters
-> DescribeEngineDefaultParameters
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeEngineDefaultParameters
DescribeEngineDefaultParametersResponse
rs
DescribeEngineDefaultParametersResponse
-> Getting
(First Text) DescribeEngineDefaultParametersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (EngineDefaults -> Const (First Text) EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> Const (First Text) DescribeEngineDefaultParametersResponse
Lens' DescribeEngineDefaultParametersResponse EngineDefaults
describeEngineDefaultParametersResponse_engineDefaults
((EngineDefaults -> Const (First Text) EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> Const (First Text) DescribeEngineDefaultParametersResponse)
-> ((Text -> Const (First Text) Text)
-> EngineDefaults -> Const (First Text) EngineDefaults)
-> Getting
(First Text) DescribeEngineDefaultParametersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Maybe Text -> Const (First Text) (Maybe Text))
-> EngineDefaults -> Const (First Text) EngineDefaults
Lens' EngineDefaults (Maybe Text)
engineDefaults_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> EngineDefaults -> Const (First Text) EngineDefaults)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> (Text -> Const (First Text) Text)
-> EngineDefaults
-> Const (First Text) EngineDefaults
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
DescribeEngineDefaultParameters
where
type
AWSResponse DescribeEngineDefaultParameters =
DescribeEngineDefaultParametersResponse
request :: DescribeEngineDefaultParameters
-> Request DescribeEngineDefaultParameters
request = Service
-> DescribeEngineDefaultParameters
-> Request DescribeEngineDefaultParameters
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeEngineDefaultParameters
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeEngineDefaultParameters)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeEngineDefaultParameters))
-> Logger
-> Service
-> Proxy DescribeEngineDefaultParameters
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeEngineDefaultParameters)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeEngineDefaultParametersResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Int -> EngineDefaults -> DescribeEngineDefaultParametersResponse
DescribeEngineDefaultParametersResponse'
(Int -> EngineDefaults -> DescribeEngineDefaultParametersResponse)
-> Either String Int
-> Either
String (EngineDefaults -> DescribeEngineDefaultParametersResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String (EngineDefaults -> DescribeEngineDefaultParametersResponse)
-> Either String EngineDefaults
-> Either String DescribeEngineDefaultParametersResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String EngineDefaults
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"EngineDefaults")
)
instance
Prelude.Hashable
DescribeEngineDefaultParameters
instance
Prelude.NFData
DescribeEngineDefaultParameters
instance
Core.ToHeaders
DescribeEngineDefaultParameters
where
toHeaders :: DescribeEngineDefaultParameters -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeEngineDefaultParameters -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeEngineDefaultParameters where
toPath :: DescribeEngineDefaultParameters -> ByteString
toPath = ByteString -> DescribeEngineDefaultParameters -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeEngineDefaultParameters where
toQuery :: DescribeEngineDefaultParameters -> QueryString
toQuery DescribeEngineDefaultParameters' {Maybe Int
Maybe [Filter]
Maybe Text
Text
dbParameterGroupFamily :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:dbParameterGroupFamily:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Text
$sel:maxRecords:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Maybe Int
$sel:marker:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Maybe Text
$sel:filters:DescribeEngineDefaultParameters' :: DescribeEngineDefaultParameters -> Maybe [Filter]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeEngineDefaultParameters" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"Filters"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
ByteString
"DBParameterGroupFamily"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbParameterGroupFamily
]
data DescribeEngineDefaultParametersResponse = DescribeEngineDefaultParametersResponse'
{
DescribeEngineDefaultParametersResponse -> Int
httpStatus :: Prelude.Int,
DescribeEngineDefaultParametersResponse -> EngineDefaults
engineDefaults :: EngineDefaults
}
deriving (DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool
(DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool)
-> (DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool)
-> Eq DescribeEngineDefaultParametersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool
$c/= :: DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool
== :: DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool
$c== :: DescribeEngineDefaultParametersResponse
-> DescribeEngineDefaultParametersResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEngineDefaultParametersResponse]
ReadPrec DescribeEngineDefaultParametersResponse
Int -> ReadS DescribeEngineDefaultParametersResponse
ReadS [DescribeEngineDefaultParametersResponse]
(Int -> ReadS DescribeEngineDefaultParametersResponse)
-> ReadS [DescribeEngineDefaultParametersResponse]
-> ReadPrec DescribeEngineDefaultParametersResponse
-> ReadPrec [DescribeEngineDefaultParametersResponse]
-> Read DescribeEngineDefaultParametersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEngineDefaultParametersResponse]
$creadListPrec :: ReadPrec [DescribeEngineDefaultParametersResponse]
readPrec :: ReadPrec DescribeEngineDefaultParametersResponse
$creadPrec :: ReadPrec DescribeEngineDefaultParametersResponse
readList :: ReadS [DescribeEngineDefaultParametersResponse]
$creadList :: ReadS [DescribeEngineDefaultParametersResponse]
readsPrec :: Int -> ReadS DescribeEngineDefaultParametersResponse
$creadsPrec :: Int -> ReadS DescribeEngineDefaultParametersResponse
Prelude.Read, Int -> DescribeEngineDefaultParametersResponse -> ShowS
[DescribeEngineDefaultParametersResponse] -> ShowS
DescribeEngineDefaultParametersResponse -> String
(Int -> DescribeEngineDefaultParametersResponse -> ShowS)
-> (DescribeEngineDefaultParametersResponse -> String)
-> ([DescribeEngineDefaultParametersResponse] -> ShowS)
-> Show DescribeEngineDefaultParametersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEngineDefaultParametersResponse] -> ShowS
$cshowList :: [DescribeEngineDefaultParametersResponse] -> ShowS
show :: DescribeEngineDefaultParametersResponse -> String
$cshow :: DescribeEngineDefaultParametersResponse -> String
showsPrec :: Int -> DescribeEngineDefaultParametersResponse -> ShowS
$cshowsPrec :: Int -> DescribeEngineDefaultParametersResponse -> ShowS
Prelude.Show, (forall x.
DescribeEngineDefaultParametersResponse
-> Rep DescribeEngineDefaultParametersResponse x)
-> (forall x.
Rep DescribeEngineDefaultParametersResponse x
-> DescribeEngineDefaultParametersResponse)
-> Generic DescribeEngineDefaultParametersResponse
forall x.
Rep DescribeEngineDefaultParametersResponse x
-> DescribeEngineDefaultParametersResponse
forall x.
DescribeEngineDefaultParametersResponse
-> Rep DescribeEngineDefaultParametersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEngineDefaultParametersResponse x
-> DescribeEngineDefaultParametersResponse
$cfrom :: forall x.
DescribeEngineDefaultParametersResponse
-> Rep DescribeEngineDefaultParametersResponse x
Prelude.Generic)
newDescribeEngineDefaultParametersResponse ::
Prelude.Int ->
EngineDefaults ->
DescribeEngineDefaultParametersResponse
newDescribeEngineDefaultParametersResponse :: Int -> EngineDefaults -> DescribeEngineDefaultParametersResponse
newDescribeEngineDefaultParametersResponse
Int
pHttpStatus_
EngineDefaults
pEngineDefaults_ =
DescribeEngineDefaultParametersResponse' :: Int -> EngineDefaults -> DescribeEngineDefaultParametersResponse
DescribeEngineDefaultParametersResponse'
{ $sel:httpStatus:DescribeEngineDefaultParametersResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:engineDefaults:DescribeEngineDefaultParametersResponse' :: EngineDefaults
engineDefaults = EngineDefaults
pEngineDefaults_
}
describeEngineDefaultParametersResponse_httpStatus :: Lens.Lens' DescribeEngineDefaultParametersResponse Prelude.Int
describeEngineDefaultParametersResponse_httpStatus :: (Int -> f Int)
-> DescribeEngineDefaultParametersResponse
-> f DescribeEngineDefaultParametersResponse
describeEngineDefaultParametersResponse_httpStatus = (DescribeEngineDefaultParametersResponse -> Int)
-> (DescribeEngineDefaultParametersResponse
-> Int -> DescribeEngineDefaultParametersResponse)
-> Lens
DescribeEngineDefaultParametersResponse
DescribeEngineDefaultParametersResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEngineDefaultParametersResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEngineDefaultParametersResponse' :: DescribeEngineDefaultParametersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEngineDefaultParametersResponse
s@DescribeEngineDefaultParametersResponse' {} Int
a -> DescribeEngineDefaultParametersResponse
s {$sel:httpStatus:DescribeEngineDefaultParametersResponse' :: Int
httpStatus = Int
a} :: DescribeEngineDefaultParametersResponse)
describeEngineDefaultParametersResponse_engineDefaults :: Lens.Lens' DescribeEngineDefaultParametersResponse EngineDefaults
describeEngineDefaultParametersResponse_engineDefaults :: (EngineDefaults -> f EngineDefaults)
-> DescribeEngineDefaultParametersResponse
-> f DescribeEngineDefaultParametersResponse
describeEngineDefaultParametersResponse_engineDefaults = (DescribeEngineDefaultParametersResponse -> EngineDefaults)
-> (DescribeEngineDefaultParametersResponse
-> EngineDefaults -> DescribeEngineDefaultParametersResponse)
-> Lens' DescribeEngineDefaultParametersResponse EngineDefaults
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEngineDefaultParametersResponse' {EngineDefaults
engineDefaults :: EngineDefaults
$sel:engineDefaults:DescribeEngineDefaultParametersResponse' :: DescribeEngineDefaultParametersResponse -> EngineDefaults
engineDefaults} -> EngineDefaults
engineDefaults) (\s :: DescribeEngineDefaultParametersResponse
s@DescribeEngineDefaultParametersResponse' {} EngineDefaults
a -> DescribeEngineDefaultParametersResponse
s {$sel:engineDefaults:DescribeEngineDefaultParametersResponse' :: EngineDefaults
engineDefaults = EngineDefaults
a} :: DescribeEngineDefaultParametersResponse)
instance
Prelude.NFData
DescribeEngineDefaultParametersResponse