{-# 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.DAX.DescribeDefaultParameters
(
DescribeDefaultParameters (..),
newDescribeDefaultParameters,
describeDefaultParameters_nextToken,
describeDefaultParameters_maxResults,
DescribeDefaultParametersResponse (..),
newDescribeDefaultParametersResponse,
describeDefaultParametersResponse_nextToken,
describeDefaultParametersResponse_parameters,
describeDefaultParametersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DAX.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeDefaultParameters = DescribeDefaultParameters'
{
DescribeDefaultParameters -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeDefaultParameters -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (DescribeDefaultParameters -> DescribeDefaultParameters -> Bool
(DescribeDefaultParameters -> DescribeDefaultParameters -> Bool)
-> (DescribeDefaultParameters -> DescribeDefaultParameters -> Bool)
-> Eq DescribeDefaultParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDefaultParameters -> DescribeDefaultParameters -> Bool
$c/= :: DescribeDefaultParameters -> DescribeDefaultParameters -> Bool
== :: DescribeDefaultParameters -> DescribeDefaultParameters -> Bool
$c== :: DescribeDefaultParameters -> DescribeDefaultParameters -> Bool
Prelude.Eq, ReadPrec [DescribeDefaultParameters]
ReadPrec DescribeDefaultParameters
Int -> ReadS DescribeDefaultParameters
ReadS [DescribeDefaultParameters]
(Int -> ReadS DescribeDefaultParameters)
-> ReadS [DescribeDefaultParameters]
-> ReadPrec DescribeDefaultParameters
-> ReadPrec [DescribeDefaultParameters]
-> Read DescribeDefaultParameters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDefaultParameters]
$creadListPrec :: ReadPrec [DescribeDefaultParameters]
readPrec :: ReadPrec DescribeDefaultParameters
$creadPrec :: ReadPrec DescribeDefaultParameters
readList :: ReadS [DescribeDefaultParameters]
$creadList :: ReadS [DescribeDefaultParameters]
readsPrec :: Int -> ReadS DescribeDefaultParameters
$creadsPrec :: Int -> ReadS DescribeDefaultParameters
Prelude.Read, Int -> DescribeDefaultParameters -> ShowS
[DescribeDefaultParameters] -> ShowS
DescribeDefaultParameters -> String
(Int -> DescribeDefaultParameters -> ShowS)
-> (DescribeDefaultParameters -> String)
-> ([DescribeDefaultParameters] -> ShowS)
-> Show DescribeDefaultParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDefaultParameters] -> ShowS
$cshowList :: [DescribeDefaultParameters] -> ShowS
show :: DescribeDefaultParameters -> String
$cshow :: DescribeDefaultParameters -> String
showsPrec :: Int -> DescribeDefaultParameters -> ShowS
$cshowsPrec :: Int -> DescribeDefaultParameters -> ShowS
Prelude.Show, (forall x.
DescribeDefaultParameters -> Rep DescribeDefaultParameters x)
-> (forall x.
Rep DescribeDefaultParameters x -> DescribeDefaultParameters)
-> Generic DescribeDefaultParameters
forall x.
Rep DescribeDefaultParameters x -> DescribeDefaultParameters
forall x.
DescribeDefaultParameters -> Rep DescribeDefaultParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDefaultParameters x -> DescribeDefaultParameters
$cfrom :: forall x.
DescribeDefaultParameters -> Rep DescribeDefaultParameters x
Prelude.Generic)
newDescribeDefaultParameters ::
DescribeDefaultParameters
newDescribeDefaultParameters :: DescribeDefaultParameters
newDescribeDefaultParameters =
DescribeDefaultParameters' :: Maybe Text -> Maybe Int -> DescribeDefaultParameters
DescribeDefaultParameters'
{ $sel:nextToken:DescribeDefaultParameters' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeDefaultParameters' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeDefaultParameters_nextToken :: Lens.Lens' DescribeDefaultParameters (Prelude.Maybe Prelude.Text)
describeDefaultParameters_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeDefaultParameters -> f DescribeDefaultParameters
describeDefaultParameters_nextToken = (DescribeDefaultParameters -> Maybe Text)
-> (DescribeDefaultParameters
-> Maybe Text -> DescribeDefaultParameters)
-> Lens
DescribeDefaultParameters
DescribeDefaultParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDefaultParameters' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeDefaultParameters' :: DescribeDefaultParameters -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeDefaultParameters
s@DescribeDefaultParameters' {} Maybe Text
a -> DescribeDefaultParameters
s {$sel:nextToken:DescribeDefaultParameters' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeDefaultParameters)
describeDefaultParameters_maxResults :: Lens.Lens' DescribeDefaultParameters (Prelude.Maybe Prelude.Int)
describeDefaultParameters_maxResults :: (Maybe Int -> f (Maybe Int))
-> DescribeDefaultParameters -> f DescribeDefaultParameters
describeDefaultParameters_maxResults = (DescribeDefaultParameters -> Maybe Int)
-> (DescribeDefaultParameters
-> Maybe Int -> DescribeDefaultParameters)
-> Lens
DescribeDefaultParameters
DescribeDefaultParameters
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDefaultParameters' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeDefaultParameters' :: DescribeDefaultParameters -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeDefaultParameters
s@DescribeDefaultParameters' {} Maybe Int
a -> DescribeDefaultParameters
s {$sel:maxResults:DescribeDefaultParameters' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeDefaultParameters)
instance Core.AWSPager DescribeDefaultParameters where
page :: DescribeDefaultParameters
-> AWSResponse DescribeDefaultParameters
-> Maybe DescribeDefaultParameters
page DescribeDefaultParameters
rq AWSResponse DescribeDefaultParameters
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDefaultParameters
DescribeDefaultParametersResponse
rs
DescribeDefaultParametersResponse
-> Getting (First Text) DescribeDefaultParametersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDefaultParametersResponse
-> Const (First Text) DescribeDefaultParametersResponse
Lens' DescribeDefaultParametersResponse (Maybe Text)
describeDefaultParametersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDefaultParametersResponse
-> Const (First Text) DescribeDefaultParametersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDefaultParametersResponse Text
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 DescribeDefaultParameters
forall a. Maybe a
Prelude.Nothing
| Maybe [Parameter] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDefaultParameters
DescribeDefaultParametersResponse
rs
DescribeDefaultParametersResponse
-> Getting
(First [Parameter]) DescribeDefaultParametersResponse [Parameter]
-> Maybe [Parameter]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter]))
-> DescribeDefaultParametersResponse
-> Const (First [Parameter]) DescribeDefaultParametersResponse
Lens' DescribeDefaultParametersResponse (Maybe [Parameter])
describeDefaultParametersResponse_parameters
((Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter]))
-> DescribeDefaultParametersResponse
-> Const (First [Parameter]) DescribeDefaultParametersResponse)
-> (([Parameter] -> Const (First [Parameter]) [Parameter])
-> Maybe [Parameter]
-> Const (First [Parameter]) (Maybe [Parameter]))
-> Getting
(First [Parameter]) DescribeDefaultParametersResponse [Parameter]
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 DescribeDefaultParameters
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDefaultParameters -> Maybe DescribeDefaultParameters
forall a. a -> Maybe a
Prelude.Just (DescribeDefaultParameters -> Maybe DescribeDefaultParameters)
-> DescribeDefaultParameters -> Maybe DescribeDefaultParameters
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDefaultParameters
rq
DescribeDefaultParameters
-> (DescribeDefaultParameters -> DescribeDefaultParameters)
-> DescribeDefaultParameters
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDefaultParameters -> Identity DescribeDefaultParameters
Lens
DescribeDefaultParameters
DescribeDefaultParameters
(Maybe Text)
(Maybe Text)
describeDefaultParameters_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeDefaultParameters -> Identity DescribeDefaultParameters)
-> Maybe Text
-> DescribeDefaultParameters
-> DescribeDefaultParameters
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDefaultParameters
DescribeDefaultParametersResponse
rs
DescribeDefaultParametersResponse
-> Getting (First Text) DescribeDefaultParametersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDefaultParametersResponse
-> Const (First Text) DescribeDefaultParametersResponse
Lens' DescribeDefaultParametersResponse (Maybe Text)
describeDefaultParametersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDefaultParametersResponse
-> Const (First Text) DescribeDefaultParametersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDefaultParametersResponse Text
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 DescribeDefaultParameters where
type
AWSResponse DescribeDefaultParameters =
DescribeDefaultParametersResponse
request :: DescribeDefaultParameters -> Request DescribeDefaultParameters
request = Service
-> DescribeDefaultParameters -> Request DescribeDefaultParameters
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDefaultParameters
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDefaultParameters)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeDefaultParameters))
-> Logger
-> Service
-> Proxy DescribeDefaultParameters
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDefaultParameters)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [Parameter] -> Int -> DescribeDefaultParametersResponse
DescribeDefaultParametersResponse'
(Maybe Text
-> Maybe [Parameter] -> Int -> DescribeDefaultParametersResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Parameter] -> Int -> DescribeDefaultParametersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Maybe [Parameter] -> Int -> DescribeDefaultParametersResponse)
-> Either String (Maybe [Parameter])
-> Either String (Int -> DescribeDefaultParametersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Parameter]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Parameters" Either String (Maybe (Maybe [Parameter]))
-> Maybe [Parameter] -> Either String (Maybe [Parameter])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Parameter]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeDefaultParametersResponse)
-> Either String Int
-> Either String DescribeDefaultParametersResponse
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 DescribeDefaultParameters
instance Prelude.NFData DescribeDefaultParameters
instance Core.ToHeaders DescribeDefaultParameters where
toHeaders :: DescribeDefaultParameters -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeDefaultParameters -> 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
"AmazonDAXV3.DescribeDefaultParameters" ::
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 DescribeDefaultParameters where
toJSON :: DescribeDefaultParameters -> Value
toJSON DescribeDefaultParameters' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:maxResults:DescribeDefaultParameters' :: DescribeDefaultParameters -> Maybe Int
$sel:nextToken:DescribeDefaultParameters' :: DescribeDefaultParameters -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
]
)
instance Core.ToPath DescribeDefaultParameters where
toPath :: DescribeDefaultParameters -> ByteString
toPath = ByteString -> DescribeDefaultParameters -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDefaultParameters where
toQuery :: DescribeDefaultParameters -> QueryString
toQuery = QueryString -> DescribeDefaultParameters -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeDefaultParametersResponse = DescribeDefaultParametersResponse'
{
DescribeDefaultParametersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeDefaultParametersResponse -> Maybe [Parameter]
parameters :: Prelude.Maybe [Parameter],
DescribeDefaultParametersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool
(DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool)
-> (DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool)
-> Eq DescribeDefaultParametersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool
$c/= :: DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool
== :: DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool
$c== :: DescribeDefaultParametersResponse
-> DescribeDefaultParametersResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDefaultParametersResponse]
ReadPrec DescribeDefaultParametersResponse
Int -> ReadS DescribeDefaultParametersResponse
ReadS [DescribeDefaultParametersResponse]
(Int -> ReadS DescribeDefaultParametersResponse)
-> ReadS [DescribeDefaultParametersResponse]
-> ReadPrec DescribeDefaultParametersResponse
-> ReadPrec [DescribeDefaultParametersResponse]
-> Read DescribeDefaultParametersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDefaultParametersResponse]
$creadListPrec :: ReadPrec [DescribeDefaultParametersResponse]
readPrec :: ReadPrec DescribeDefaultParametersResponse
$creadPrec :: ReadPrec DescribeDefaultParametersResponse
readList :: ReadS [DescribeDefaultParametersResponse]
$creadList :: ReadS [DescribeDefaultParametersResponse]
readsPrec :: Int -> ReadS DescribeDefaultParametersResponse
$creadsPrec :: Int -> ReadS DescribeDefaultParametersResponse
Prelude.Read, Int -> DescribeDefaultParametersResponse -> ShowS
[DescribeDefaultParametersResponse] -> ShowS
DescribeDefaultParametersResponse -> String
(Int -> DescribeDefaultParametersResponse -> ShowS)
-> (DescribeDefaultParametersResponse -> String)
-> ([DescribeDefaultParametersResponse] -> ShowS)
-> Show DescribeDefaultParametersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDefaultParametersResponse] -> ShowS
$cshowList :: [DescribeDefaultParametersResponse] -> ShowS
show :: DescribeDefaultParametersResponse -> String
$cshow :: DescribeDefaultParametersResponse -> String
showsPrec :: Int -> DescribeDefaultParametersResponse -> ShowS
$cshowsPrec :: Int -> DescribeDefaultParametersResponse -> ShowS
Prelude.Show, (forall x.
DescribeDefaultParametersResponse
-> Rep DescribeDefaultParametersResponse x)
-> (forall x.
Rep DescribeDefaultParametersResponse x
-> DescribeDefaultParametersResponse)
-> Generic DescribeDefaultParametersResponse
forall x.
Rep DescribeDefaultParametersResponse x
-> DescribeDefaultParametersResponse
forall x.
DescribeDefaultParametersResponse
-> Rep DescribeDefaultParametersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDefaultParametersResponse x
-> DescribeDefaultParametersResponse
$cfrom :: forall x.
DescribeDefaultParametersResponse
-> Rep DescribeDefaultParametersResponse x
Prelude.Generic)
newDescribeDefaultParametersResponse ::
Prelude.Int ->
DescribeDefaultParametersResponse
newDescribeDefaultParametersResponse :: Int -> DescribeDefaultParametersResponse
newDescribeDefaultParametersResponse Int
pHttpStatus_ =
DescribeDefaultParametersResponse' :: Maybe Text
-> Maybe [Parameter] -> Int -> DescribeDefaultParametersResponse
DescribeDefaultParametersResponse'
{ $sel:nextToken:DescribeDefaultParametersResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:parameters:DescribeDefaultParametersResponse' :: Maybe [Parameter]
parameters = Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDefaultParametersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDefaultParametersResponse_nextToken :: Lens.Lens' DescribeDefaultParametersResponse (Prelude.Maybe Prelude.Text)
describeDefaultParametersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeDefaultParametersResponse
-> f DescribeDefaultParametersResponse
describeDefaultParametersResponse_nextToken = (DescribeDefaultParametersResponse -> Maybe Text)
-> (DescribeDefaultParametersResponse
-> Maybe Text -> DescribeDefaultParametersResponse)
-> Lens' DescribeDefaultParametersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDefaultParametersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeDefaultParametersResponse' :: DescribeDefaultParametersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeDefaultParametersResponse
s@DescribeDefaultParametersResponse' {} Maybe Text
a -> DescribeDefaultParametersResponse
s {$sel:nextToken:DescribeDefaultParametersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeDefaultParametersResponse)
describeDefaultParametersResponse_parameters :: Lens.Lens' DescribeDefaultParametersResponse (Prelude.Maybe [Parameter])
describeDefaultParametersResponse_parameters :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> DescribeDefaultParametersResponse
-> f DescribeDefaultParametersResponse
describeDefaultParametersResponse_parameters = (DescribeDefaultParametersResponse -> Maybe [Parameter])
-> (DescribeDefaultParametersResponse
-> Maybe [Parameter] -> DescribeDefaultParametersResponse)
-> Lens' DescribeDefaultParametersResponse (Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDefaultParametersResponse' {Maybe [Parameter]
parameters :: Maybe [Parameter]
$sel:parameters:DescribeDefaultParametersResponse' :: DescribeDefaultParametersResponse -> Maybe [Parameter]
parameters} -> Maybe [Parameter]
parameters) (\s :: DescribeDefaultParametersResponse
s@DescribeDefaultParametersResponse' {} Maybe [Parameter]
a -> DescribeDefaultParametersResponse
s {$sel:parameters:DescribeDefaultParametersResponse' :: Maybe [Parameter]
parameters = Maybe [Parameter]
a} :: DescribeDefaultParametersResponse) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> DescribeDefaultParametersResponse
-> f DescribeDefaultParametersResponse)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> DescribeDefaultParametersResponse
-> f DescribeDefaultParametersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Parameter] [Parameter] [Parameter] [Parameter]
-> Iso
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
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 [Parameter] [Parameter] [Parameter] [Parameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDefaultParametersResponse_httpStatus :: Lens.Lens' DescribeDefaultParametersResponse Prelude.Int
describeDefaultParametersResponse_httpStatus :: (Int -> f Int)
-> DescribeDefaultParametersResponse
-> f DescribeDefaultParametersResponse
describeDefaultParametersResponse_httpStatus = (DescribeDefaultParametersResponse -> Int)
-> (DescribeDefaultParametersResponse
-> Int -> DescribeDefaultParametersResponse)
-> Lens
DescribeDefaultParametersResponse
DescribeDefaultParametersResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDefaultParametersResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDefaultParametersResponse' :: DescribeDefaultParametersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDefaultParametersResponse
s@DescribeDefaultParametersResponse' {} Int
a -> DescribeDefaultParametersResponse
s {$sel:httpStatus:DescribeDefaultParametersResponse' :: Int
httpStatus = Int
a} :: DescribeDefaultParametersResponse)
instance
Prelude.NFData
DescribeDefaultParametersResponse