{-# 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.Route53Resolver.ListResolverDnssecConfigs
(
ListResolverDnssecConfigs (..),
newListResolverDnssecConfigs,
listResolverDnssecConfigs_filters,
listResolverDnssecConfigs_nextToken,
listResolverDnssecConfigs_maxResults,
ListResolverDnssecConfigsResponse (..),
newListResolverDnssecConfigsResponse,
listResolverDnssecConfigsResponse_nextToken,
listResolverDnssecConfigsResponse_resolverDnssecConfigs,
listResolverDnssecConfigsResponse_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.Route53Resolver.Types
data ListResolverDnssecConfigs = ListResolverDnssecConfigs'
{
ListResolverDnssecConfigs -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
ListResolverDnssecConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolverDnssecConfigs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool
(ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool)
-> (ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool)
-> Eq ListResolverDnssecConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool
$c/= :: ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool
== :: ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool
$c== :: ListResolverDnssecConfigs -> ListResolverDnssecConfigs -> Bool
Prelude.Eq, ReadPrec [ListResolverDnssecConfigs]
ReadPrec ListResolverDnssecConfigs
Int -> ReadS ListResolverDnssecConfigs
ReadS [ListResolverDnssecConfigs]
(Int -> ReadS ListResolverDnssecConfigs)
-> ReadS [ListResolverDnssecConfigs]
-> ReadPrec ListResolverDnssecConfigs
-> ReadPrec [ListResolverDnssecConfigs]
-> Read ListResolverDnssecConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverDnssecConfigs]
$creadListPrec :: ReadPrec [ListResolverDnssecConfigs]
readPrec :: ReadPrec ListResolverDnssecConfigs
$creadPrec :: ReadPrec ListResolverDnssecConfigs
readList :: ReadS [ListResolverDnssecConfigs]
$creadList :: ReadS [ListResolverDnssecConfigs]
readsPrec :: Int -> ReadS ListResolverDnssecConfigs
$creadsPrec :: Int -> ReadS ListResolverDnssecConfigs
Prelude.Read, Int -> ListResolverDnssecConfigs -> ShowS
[ListResolverDnssecConfigs] -> ShowS
ListResolverDnssecConfigs -> String
(Int -> ListResolverDnssecConfigs -> ShowS)
-> (ListResolverDnssecConfigs -> String)
-> ([ListResolverDnssecConfigs] -> ShowS)
-> Show ListResolverDnssecConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverDnssecConfigs] -> ShowS
$cshowList :: [ListResolverDnssecConfigs] -> ShowS
show :: ListResolverDnssecConfigs -> String
$cshow :: ListResolverDnssecConfigs -> String
showsPrec :: Int -> ListResolverDnssecConfigs -> ShowS
$cshowsPrec :: Int -> ListResolverDnssecConfigs -> ShowS
Prelude.Show, (forall x.
ListResolverDnssecConfigs -> Rep ListResolverDnssecConfigs x)
-> (forall x.
Rep ListResolverDnssecConfigs x -> ListResolverDnssecConfigs)
-> Generic ListResolverDnssecConfigs
forall x.
Rep ListResolverDnssecConfigs x -> ListResolverDnssecConfigs
forall x.
ListResolverDnssecConfigs -> Rep ListResolverDnssecConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverDnssecConfigs x -> ListResolverDnssecConfigs
$cfrom :: forall x.
ListResolverDnssecConfigs -> Rep ListResolverDnssecConfigs x
Prelude.Generic)
newListResolverDnssecConfigs ::
ListResolverDnssecConfigs
newListResolverDnssecConfigs :: ListResolverDnssecConfigs
newListResolverDnssecConfigs =
ListResolverDnssecConfigs' :: Maybe [Filter]
-> Maybe Text -> Maybe Natural -> ListResolverDnssecConfigs
ListResolverDnssecConfigs'
{ $sel:filters:ListResolverDnssecConfigs' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListResolverDnssecConfigs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListResolverDnssecConfigs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listResolverDnssecConfigs_filters :: Lens.Lens' ListResolverDnssecConfigs (Prelude.Maybe [Filter])
listResolverDnssecConfigs_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListResolverDnssecConfigs -> f ListResolverDnssecConfigs
listResolverDnssecConfigs_filters = (ListResolverDnssecConfigs -> Maybe [Filter])
-> (ListResolverDnssecConfigs
-> Maybe [Filter] -> ListResolverDnssecConfigs)
-> Lens
ListResolverDnssecConfigs
ListResolverDnssecConfigs
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverDnssecConfigs' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListResolverDnssecConfigs' :: ListResolverDnssecConfigs -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListResolverDnssecConfigs
s@ListResolverDnssecConfigs' {} Maybe [Filter]
a -> ListResolverDnssecConfigs
s {$sel:filters:ListResolverDnssecConfigs' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListResolverDnssecConfigs) ((Maybe [Filter] -> f (Maybe [Filter]))
-> ListResolverDnssecConfigs -> f ListResolverDnssecConfigs)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListResolverDnssecConfigs
-> f ListResolverDnssecConfigs
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
listResolverDnssecConfigs_nextToken :: Lens.Lens' ListResolverDnssecConfigs (Prelude.Maybe Prelude.Text)
listResolverDnssecConfigs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResolverDnssecConfigs -> f ListResolverDnssecConfigs
listResolverDnssecConfigs_nextToken = (ListResolverDnssecConfigs -> Maybe Text)
-> (ListResolverDnssecConfigs
-> Maybe Text -> ListResolverDnssecConfigs)
-> Lens
ListResolverDnssecConfigs
ListResolverDnssecConfigs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverDnssecConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverDnssecConfigs' :: ListResolverDnssecConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverDnssecConfigs
s@ListResolverDnssecConfigs' {} Maybe Text
a -> ListResolverDnssecConfigs
s {$sel:nextToken:ListResolverDnssecConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverDnssecConfigs)
listResolverDnssecConfigs_maxResults :: Lens.Lens' ListResolverDnssecConfigs (Prelude.Maybe Prelude.Natural)
listResolverDnssecConfigs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListResolverDnssecConfigs -> f ListResolverDnssecConfigs
listResolverDnssecConfigs_maxResults = (ListResolverDnssecConfigs -> Maybe Natural)
-> (ListResolverDnssecConfigs
-> Maybe Natural -> ListResolverDnssecConfigs)
-> Lens
ListResolverDnssecConfigs
ListResolverDnssecConfigs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverDnssecConfigs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResolverDnssecConfigs' :: ListResolverDnssecConfigs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResolverDnssecConfigs
s@ListResolverDnssecConfigs' {} Maybe Natural
a -> ListResolverDnssecConfigs
s {$sel:maxResults:ListResolverDnssecConfigs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResolverDnssecConfigs)
instance Core.AWSPager ListResolverDnssecConfigs where
page :: ListResolverDnssecConfigs
-> AWSResponse ListResolverDnssecConfigs
-> Maybe ListResolverDnssecConfigs
page ListResolverDnssecConfigs
rq AWSResponse ListResolverDnssecConfigs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolverDnssecConfigs
ListResolverDnssecConfigsResponse
rs
ListResolverDnssecConfigsResponse
-> Getting (First Text) ListResolverDnssecConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolverDnssecConfigsResponse
-> Const (First Text) ListResolverDnssecConfigsResponse
Lens' ListResolverDnssecConfigsResponse (Maybe Text)
listResolverDnssecConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolverDnssecConfigsResponse
-> Const (First Text) ListResolverDnssecConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResolverDnssecConfigsResponse 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 ListResolverDnssecConfigs
forall a. Maybe a
Prelude.Nothing
| Maybe [ResolverDnssecConfig] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolverDnssecConfigs
ListResolverDnssecConfigsResponse
rs
ListResolverDnssecConfigsResponse
-> Getting
(First [ResolverDnssecConfig])
ListResolverDnssecConfigsResponse
[ResolverDnssecConfig]
-> Maybe [ResolverDnssecConfig]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ResolverDnssecConfig]
-> Const
(First [ResolverDnssecConfig]) (Maybe [ResolverDnssecConfig]))
-> ListResolverDnssecConfigsResponse
-> Const
(First [ResolverDnssecConfig]) ListResolverDnssecConfigsResponse
Lens'
ListResolverDnssecConfigsResponse (Maybe [ResolverDnssecConfig])
listResolverDnssecConfigsResponse_resolverDnssecConfigs
((Maybe [ResolverDnssecConfig]
-> Const
(First [ResolverDnssecConfig]) (Maybe [ResolverDnssecConfig]))
-> ListResolverDnssecConfigsResponse
-> Const
(First [ResolverDnssecConfig]) ListResolverDnssecConfigsResponse)
-> (([ResolverDnssecConfig]
-> Const (First [ResolverDnssecConfig]) [ResolverDnssecConfig])
-> Maybe [ResolverDnssecConfig]
-> Const
(First [ResolverDnssecConfig]) (Maybe [ResolverDnssecConfig]))
-> Getting
(First [ResolverDnssecConfig])
ListResolverDnssecConfigsResponse
[ResolverDnssecConfig]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ResolverDnssecConfig]
-> Const (First [ResolverDnssecConfig]) [ResolverDnssecConfig])
-> Maybe [ResolverDnssecConfig]
-> Const
(First [ResolverDnssecConfig]) (Maybe [ResolverDnssecConfig])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListResolverDnssecConfigs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListResolverDnssecConfigs -> Maybe ListResolverDnssecConfigs
forall a. a -> Maybe a
Prelude.Just (ListResolverDnssecConfigs -> Maybe ListResolverDnssecConfigs)
-> ListResolverDnssecConfigs -> Maybe ListResolverDnssecConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
ListResolverDnssecConfigs
rq
ListResolverDnssecConfigs
-> (ListResolverDnssecConfigs -> ListResolverDnssecConfigs)
-> ListResolverDnssecConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListResolverDnssecConfigs -> Identity ListResolverDnssecConfigs
Lens
ListResolverDnssecConfigs
ListResolverDnssecConfigs
(Maybe Text)
(Maybe Text)
listResolverDnssecConfigs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListResolverDnssecConfigs -> Identity ListResolverDnssecConfigs)
-> Maybe Text
-> ListResolverDnssecConfigs
-> ListResolverDnssecConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResolverDnssecConfigs
ListResolverDnssecConfigsResponse
rs
ListResolverDnssecConfigsResponse
-> Getting (First Text) ListResolverDnssecConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolverDnssecConfigsResponse
-> Const (First Text) ListResolverDnssecConfigsResponse
Lens' ListResolverDnssecConfigsResponse (Maybe Text)
listResolverDnssecConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResolverDnssecConfigsResponse
-> Const (First Text) ListResolverDnssecConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResolverDnssecConfigsResponse 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 ListResolverDnssecConfigs where
type
AWSResponse ListResolverDnssecConfigs =
ListResolverDnssecConfigsResponse
request :: ListResolverDnssecConfigs -> Request ListResolverDnssecConfigs
request = Service
-> ListResolverDnssecConfigs -> Request ListResolverDnssecConfigs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListResolverDnssecConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResolverDnssecConfigs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListResolverDnssecConfigs))
-> Logger
-> Service
-> Proxy ListResolverDnssecConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResolverDnssecConfigs)))
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 [ResolverDnssecConfig]
-> Int
-> ListResolverDnssecConfigsResponse
ListResolverDnssecConfigsResponse'
(Maybe Text
-> Maybe [ResolverDnssecConfig]
-> Int
-> ListResolverDnssecConfigsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ResolverDnssecConfig]
-> Int -> ListResolverDnssecConfigsResponse)
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 [ResolverDnssecConfig]
-> Int -> ListResolverDnssecConfigsResponse)
-> Either String (Maybe [ResolverDnssecConfig])
-> Either String (Int -> ListResolverDnssecConfigsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ResolverDnssecConfig]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ResolverDnssecConfigs"
Either String (Maybe (Maybe [ResolverDnssecConfig]))
-> Maybe [ResolverDnssecConfig]
-> Either String (Maybe [ResolverDnssecConfig])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ResolverDnssecConfig]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListResolverDnssecConfigsResponse)
-> Either String Int
-> Either String ListResolverDnssecConfigsResponse
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 ListResolverDnssecConfigs
instance Prelude.NFData ListResolverDnssecConfigs
instance Core.ToHeaders ListResolverDnssecConfigs where
toHeaders :: ListResolverDnssecConfigs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListResolverDnssecConfigs -> 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
"Route53Resolver.ListResolverDnssecConfigs" ::
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 ListResolverDnssecConfigs where
toJSON :: ListResolverDnssecConfigs -> Value
toJSON ListResolverDnssecConfigs' {Maybe Natural
Maybe [Filter]
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListResolverDnssecConfigs' :: ListResolverDnssecConfigs -> Maybe Natural
$sel:nextToken:ListResolverDnssecConfigs' :: ListResolverDnssecConfigs -> Maybe Text
$sel:filters:ListResolverDnssecConfigs' :: ListResolverDnssecConfigs -> Maybe [Filter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
(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 -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListResolverDnssecConfigs where
toPath :: ListResolverDnssecConfigs -> ByteString
toPath = ByteString -> ListResolverDnssecConfigs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListResolverDnssecConfigs where
toQuery :: ListResolverDnssecConfigs -> QueryString
toQuery = QueryString -> ListResolverDnssecConfigs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListResolverDnssecConfigsResponse = ListResolverDnssecConfigsResponse'
{
ListResolverDnssecConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolverDnssecConfigsResponse -> Maybe [ResolverDnssecConfig]
resolverDnssecConfigs :: Prelude.Maybe [ResolverDnssecConfig],
ListResolverDnssecConfigsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool
(ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool)
-> (ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool)
-> Eq ListResolverDnssecConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool
$c/= :: ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool
== :: ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool
$c== :: ListResolverDnssecConfigsResponse
-> ListResolverDnssecConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListResolverDnssecConfigsResponse]
ReadPrec ListResolverDnssecConfigsResponse
Int -> ReadS ListResolverDnssecConfigsResponse
ReadS [ListResolverDnssecConfigsResponse]
(Int -> ReadS ListResolverDnssecConfigsResponse)
-> ReadS [ListResolverDnssecConfigsResponse]
-> ReadPrec ListResolverDnssecConfigsResponse
-> ReadPrec [ListResolverDnssecConfigsResponse]
-> Read ListResolverDnssecConfigsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverDnssecConfigsResponse]
$creadListPrec :: ReadPrec [ListResolverDnssecConfigsResponse]
readPrec :: ReadPrec ListResolverDnssecConfigsResponse
$creadPrec :: ReadPrec ListResolverDnssecConfigsResponse
readList :: ReadS [ListResolverDnssecConfigsResponse]
$creadList :: ReadS [ListResolverDnssecConfigsResponse]
readsPrec :: Int -> ReadS ListResolverDnssecConfigsResponse
$creadsPrec :: Int -> ReadS ListResolverDnssecConfigsResponse
Prelude.Read, Int -> ListResolverDnssecConfigsResponse -> ShowS
[ListResolverDnssecConfigsResponse] -> ShowS
ListResolverDnssecConfigsResponse -> String
(Int -> ListResolverDnssecConfigsResponse -> ShowS)
-> (ListResolverDnssecConfigsResponse -> String)
-> ([ListResolverDnssecConfigsResponse] -> ShowS)
-> Show ListResolverDnssecConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverDnssecConfigsResponse] -> ShowS
$cshowList :: [ListResolverDnssecConfigsResponse] -> ShowS
show :: ListResolverDnssecConfigsResponse -> String
$cshow :: ListResolverDnssecConfigsResponse -> String
showsPrec :: Int -> ListResolverDnssecConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListResolverDnssecConfigsResponse -> ShowS
Prelude.Show, (forall x.
ListResolverDnssecConfigsResponse
-> Rep ListResolverDnssecConfigsResponse x)
-> (forall x.
Rep ListResolverDnssecConfigsResponse x
-> ListResolverDnssecConfigsResponse)
-> Generic ListResolverDnssecConfigsResponse
forall x.
Rep ListResolverDnssecConfigsResponse x
-> ListResolverDnssecConfigsResponse
forall x.
ListResolverDnssecConfigsResponse
-> Rep ListResolverDnssecConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverDnssecConfigsResponse x
-> ListResolverDnssecConfigsResponse
$cfrom :: forall x.
ListResolverDnssecConfigsResponse
-> Rep ListResolverDnssecConfigsResponse x
Prelude.Generic)
newListResolverDnssecConfigsResponse ::
Prelude.Int ->
ListResolverDnssecConfigsResponse
newListResolverDnssecConfigsResponse :: Int -> ListResolverDnssecConfigsResponse
newListResolverDnssecConfigsResponse Int
pHttpStatus_ =
ListResolverDnssecConfigsResponse' :: Maybe Text
-> Maybe [ResolverDnssecConfig]
-> Int
-> ListResolverDnssecConfigsResponse
ListResolverDnssecConfigsResponse'
{ $sel:nextToken:ListResolverDnssecConfigsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resolverDnssecConfigs:ListResolverDnssecConfigsResponse' :: Maybe [ResolverDnssecConfig]
resolverDnssecConfigs = Maybe [ResolverDnssecConfig]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResolverDnssecConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listResolverDnssecConfigsResponse_nextToken :: Lens.Lens' ListResolverDnssecConfigsResponse (Prelude.Maybe Prelude.Text)
listResolverDnssecConfigsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResolverDnssecConfigsResponse
-> f ListResolverDnssecConfigsResponse
listResolverDnssecConfigsResponse_nextToken = (ListResolverDnssecConfigsResponse -> Maybe Text)
-> (ListResolverDnssecConfigsResponse
-> Maybe Text -> ListResolverDnssecConfigsResponse)
-> Lens' ListResolverDnssecConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverDnssecConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverDnssecConfigsResponse' :: ListResolverDnssecConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverDnssecConfigsResponse
s@ListResolverDnssecConfigsResponse' {} Maybe Text
a -> ListResolverDnssecConfigsResponse
s {$sel:nextToken:ListResolverDnssecConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverDnssecConfigsResponse)
listResolverDnssecConfigsResponse_resolverDnssecConfigs :: Lens.Lens' ListResolverDnssecConfigsResponse (Prelude.Maybe [ResolverDnssecConfig])
listResolverDnssecConfigsResponse_resolverDnssecConfigs :: (Maybe [ResolverDnssecConfig] -> f (Maybe [ResolverDnssecConfig]))
-> ListResolverDnssecConfigsResponse
-> f ListResolverDnssecConfigsResponse
listResolverDnssecConfigsResponse_resolverDnssecConfigs = (ListResolverDnssecConfigsResponse -> Maybe [ResolverDnssecConfig])
-> (ListResolverDnssecConfigsResponse
-> Maybe [ResolverDnssecConfig]
-> ListResolverDnssecConfigsResponse)
-> Lens'
ListResolverDnssecConfigsResponse (Maybe [ResolverDnssecConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverDnssecConfigsResponse' {Maybe [ResolverDnssecConfig]
resolverDnssecConfigs :: Maybe [ResolverDnssecConfig]
$sel:resolverDnssecConfigs:ListResolverDnssecConfigsResponse' :: ListResolverDnssecConfigsResponse -> Maybe [ResolverDnssecConfig]
resolverDnssecConfigs} -> Maybe [ResolverDnssecConfig]
resolverDnssecConfigs) (\s :: ListResolverDnssecConfigsResponse
s@ListResolverDnssecConfigsResponse' {} Maybe [ResolverDnssecConfig]
a -> ListResolverDnssecConfigsResponse
s {$sel:resolverDnssecConfigs:ListResolverDnssecConfigsResponse' :: Maybe [ResolverDnssecConfig]
resolverDnssecConfigs = Maybe [ResolverDnssecConfig]
a} :: ListResolverDnssecConfigsResponse) ((Maybe [ResolverDnssecConfig] -> f (Maybe [ResolverDnssecConfig]))
-> ListResolverDnssecConfigsResponse
-> f ListResolverDnssecConfigsResponse)
-> ((Maybe [ResolverDnssecConfig]
-> f (Maybe [ResolverDnssecConfig]))
-> Maybe [ResolverDnssecConfig]
-> f (Maybe [ResolverDnssecConfig]))
-> (Maybe [ResolverDnssecConfig]
-> f (Maybe [ResolverDnssecConfig]))
-> ListResolverDnssecConfigsResponse
-> f ListResolverDnssecConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ResolverDnssecConfig]
[ResolverDnssecConfig]
[ResolverDnssecConfig]
[ResolverDnssecConfig]
-> Iso
(Maybe [ResolverDnssecConfig])
(Maybe [ResolverDnssecConfig])
(Maybe [ResolverDnssecConfig])
(Maybe [ResolverDnssecConfig])
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
[ResolverDnssecConfig]
[ResolverDnssecConfig]
[ResolverDnssecConfig]
[ResolverDnssecConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listResolverDnssecConfigsResponse_httpStatus :: Lens.Lens' ListResolverDnssecConfigsResponse Prelude.Int
listResolverDnssecConfigsResponse_httpStatus :: (Int -> f Int)
-> ListResolverDnssecConfigsResponse
-> f ListResolverDnssecConfigsResponse
listResolverDnssecConfigsResponse_httpStatus = (ListResolverDnssecConfigsResponse -> Int)
-> (ListResolverDnssecConfigsResponse
-> Int -> ListResolverDnssecConfigsResponse)
-> Lens
ListResolverDnssecConfigsResponse
ListResolverDnssecConfigsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverDnssecConfigsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResolverDnssecConfigsResponse' :: ListResolverDnssecConfigsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResolverDnssecConfigsResponse
s@ListResolverDnssecConfigsResponse' {} Int
a -> ListResolverDnssecConfigsResponse
s {$sel:httpStatus:ListResolverDnssecConfigsResponse' :: Int
httpStatus = Int
a} :: ListResolverDnssecConfigsResponse)
instance
Prelude.NFData
ListResolverDnssecConfigsResponse