{-# 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.ListResolverQueryLogConfigAssociations
(
ListResolverQueryLogConfigAssociations (..),
newListResolverQueryLogConfigAssociations,
listResolverQueryLogConfigAssociations_filters,
listResolverQueryLogConfigAssociations_maxResults,
listResolverQueryLogConfigAssociations_nextToken,
listResolverQueryLogConfigAssociations_sortBy,
listResolverQueryLogConfigAssociations_sortOrder,
ListResolverQueryLogConfigAssociationsResponse (..),
newListResolverQueryLogConfigAssociationsResponse,
listResolverQueryLogConfigAssociationsResponse_nextToken,
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations,
listResolverQueryLogConfigAssociationsResponse_totalCount,
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount,
listResolverQueryLogConfigAssociationsResponse_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.Route53Resolver.Types
data ListResolverQueryLogConfigAssociations = ListResolverQueryLogConfigAssociations'
{
ListResolverQueryLogConfigAssociations -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
ListResolverQueryLogConfigAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListResolverQueryLogConfigAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolverQueryLogConfigAssociations -> Maybe Text
sortBy :: Prelude.Maybe Prelude.Text,
ListResolverQueryLogConfigAssociations -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder
}
deriving (ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
$c/= :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
== :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
$c== :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
Prelude.Eq, ReadPrec [ListResolverQueryLogConfigAssociations]
ReadPrec ListResolverQueryLogConfigAssociations
Int -> ReadS ListResolverQueryLogConfigAssociations
ReadS [ListResolverQueryLogConfigAssociations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverQueryLogConfigAssociations]
$creadListPrec :: ReadPrec [ListResolverQueryLogConfigAssociations]
readPrec :: ReadPrec ListResolverQueryLogConfigAssociations
$creadPrec :: ReadPrec ListResolverQueryLogConfigAssociations
readList :: ReadS [ListResolverQueryLogConfigAssociations]
$creadList :: ReadS [ListResolverQueryLogConfigAssociations]
readsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociations
$creadsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociations
Prelude.Read, Int -> ListResolverQueryLogConfigAssociations -> ShowS
[ListResolverQueryLogConfigAssociations] -> ShowS
ListResolverQueryLogConfigAssociations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverQueryLogConfigAssociations] -> ShowS
$cshowList :: [ListResolverQueryLogConfigAssociations] -> ShowS
show :: ListResolverQueryLogConfigAssociations -> String
$cshow :: ListResolverQueryLogConfigAssociations -> String
showsPrec :: Int -> ListResolverQueryLogConfigAssociations -> ShowS
$cshowsPrec :: Int -> ListResolverQueryLogConfigAssociations -> ShowS
Prelude.Show, forall x.
Rep ListResolverQueryLogConfigAssociations x
-> ListResolverQueryLogConfigAssociations
forall x.
ListResolverQueryLogConfigAssociations
-> Rep ListResolverQueryLogConfigAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverQueryLogConfigAssociations x
-> ListResolverQueryLogConfigAssociations
$cfrom :: forall x.
ListResolverQueryLogConfigAssociations
-> Rep ListResolverQueryLogConfigAssociations x
Prelude.Generic)
newListResolverQueryLogConfigAssociations ::
ListResolverQueryLogConfigAssociations
newListResolverQueryLogConfigAssociations :: ListResolverQueryLogConfigAssociations
newListResolverQueryLogConfigAssociations =
ListResolverQueryLogConfigAssociations'
{ $sel:filters:ListResolverQueryLogConfigAssociations' :: Maybe [Filter]
filters =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: Maybe Text
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing
}
listResolverQueryLogConfigAssociations_filters :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe [Filter])
listResolverQueryLogConfigAssociations_filters :: Lens' ListResolverQueryLogConfigAssociations (Maybe [Filter])
listResolverQueryLogConfigAssociations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe [Filter]
a -> ListResolverQueryLogConfigAssociations
s {$sel:filters:ListResolverQueryLogConfigAssociations' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListResolverQueryLogConfigAssociations) 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
listResolverQueryLogConfigAssociations_maxResults :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe Prelude.Natural)
listResolverQueryLogConfigAssociations_maxResults :: Lens' ListResolverQueryLogConfigAssociations (Maybe Natural)
listResolverQueryLogConfigAssociations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe Natural
a -> ListResolverQueryLogConfigAssociations
s {$sel:maxResults:ListResolverQueryLogConfigAssociations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResolverQueryLogConfigAssociations)
listResolverQueryLogConfigAssociations_nextToken :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe Prelude.Text)
listResolverQueryLogConfigAssociations_nextToken :: Lens' ListResolverQueryLogConfigAssociations (Maybe Text)
listResolverQueryLogConfigAssociations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe Text
a -> ListResolverQueryLogConfigAssociations
s {$sel:nextToken:ListResolverQueryLogConfigAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverQueryLogConfigAssociations)
listResolverQueryLogConfigAssociations_sortBy :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe Prelude.Text)
listResolverQueryLogConfigAssociations_sortBy :: Lens' ListResolverQueryLogConfigAssociations (Maybe Text)
listResolverQueryLogConfigAssociations_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe Text
sortBy :: Maybe Text
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
sortBy} -> Maybe Text
sortBy) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe Text
a -> ListResolverQueryLogConfigAssociations
s {$sel:sortBy:ListResolverQueryLogConfigAssociations' :: Maybe Text
sortBy = Maybe Text
a} :: ListResolverQueryLogConfigAssociations)
listResolverQueryLogConfigAssociations_sortOrder :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe SortOrder)
listResolverQueryLogConfigAssociations_sortOrder :: Lens' ListResolverQueryLogConfigAssociations (Maybe SortOrder)
listResolverQueryLogConfigAssociations_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe SortOrder
a -> ListResolverQueryLogConfigAssociations
s {$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListResolverQueryLogConfigAssociations)
instance
Core.AWSPager
ListResolverQueryLogConfigAssociations
where
page :: ListResolverQueryLogConfigAssociations
-> AWSResponse ListResolverQueryLogConfigAssociations
-> Maybe ListResolverQueryLogConfigAssociations
page ListResolverQueryLogConfigAssociations
rq AWSResponse ListResolverQueryLogConfigAssociations
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolverQueryLogConfigAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Text)
listResolverQueryLogConfigAssociationsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResolverQueryLogConfigAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListResolverQueryLogConfigAssociationsResponse
(Maybe [ResolverQueryLogConfigAssociation])
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListResolverQueryLogConfigAssociations
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListResolverQueryLogConfigAssociations (Maybe Text)
listResolverQueryLogConfigAssociations_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResolverQueryLogConfigAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Text)
listResolverQueryLogConfigAssociationsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListResolverQueryLogConfigAssociations
where
type
AWSResponse
ListResolverQueryLogConfigAssociations =
ListResolverQueryLogConfigAssociationsResponse
request :: (Service -> Service)
-> ListResolverQueryLogConfigAssociations
-> Request ListResolverQueryLogConfigAssociations
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 ListResolverQueryLogConfigAssociations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListResolverQueryLogConfigAssociations)))
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 Text
-> Maybe [ResolverQueryLogConfigAssociation]
-> Maybe Int
-> Maybe Int
-> Int
-> ListResolverQueryLogConfigAssociationsResponse
ListResolverQueryLogConfigAssociationsResponse'
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
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ResolverQueryLogConfigAssociations"
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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TotalCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TotalFilteredCount")
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
ListResolverQueryLogConfigAssociations
where
hashWithSalt :: Int -> ListResolverQueryLogConfigAssociations -> Int
hashWithSalt
Int
_salt
ListResolverQueryLogConfigAssociations' {Maybe Natural
Maybe [Filter]
Maybe Text
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder
instance
Prelude.NFData
ListResolverQueryLogConfigAssociations
where
rnf :: ListResolverQueryLogConfigAssociations -> ()
rnf ListResolverQueryLogConfigAssociations' {Maybe Natural
Maybe [Filter]
Maybe Text
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sortBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder
instance
Data.ToHeaders
ListResolverQueryLogConfigAssociations
where
toHeaders :: ListResolverQueryLogConfigAssociations -> 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
"Route53Resolver.ListResolverQueryLogConfigAssociations" ::
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
ListResolverQueryLogConfigAssociations
where
toJSON :: ListResolverQueryLogConfigAssociations -> Value
toJSON ListResolverQueryLogConfigAssociations' {Maybe Natural
Maybe [Filter]
Maybe Text
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"Filters" 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 [Filter]
filters,
(Key
"MaxResults" 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 Natural
maxResults,
(Key
"NextToken" 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
nextToken,
(Key
"SortBy" 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
sortBy,
(Key
"SortOrder" 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 SortOrder
sortOrder
]
)
instance
Data.ToPath
ListResolverQueryLogConfigAssociations
where
toPath :: ListResolverQueryLogConfigAssociations -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
ListResolverQueryLogConfigAssociations
where
toQuery :: ListResolverQueryLogConfigAssociations -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListResolverQueryLogConfigAssociationsResponse = ListResolverQueryLogConfigAssociationsResponse'
{
ListResolverQueryLogConfigAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResolverQueryLogConfigAssociationsResponse
-> Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations :: Prelude.Maybe [ResolverQueryLogConfigAssociation],
ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalCount :: Prelude.Maybe Prelude.Int,
ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalFilteredCount :: Prelude.Maybe Prelude.Int,
ListResolverQueryLogConfigAssociationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
$c/= :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
== :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
$c== :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [ListResolverQueryLogConfigAssociationsResponse]
ReadPrec ListResolverQueryLogConfigAssociationsResponse
Int -> ReadS ListResolverQueryLogConfigAssociationsResponse
ReadS [ListResolverQueryLogConfigAssociationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverQueryLogConfigAssociationsResponse]
$creadListPrec :: ReadPrec [ListResolverQueryLogConfigAssociationsResponse]
readPrec :: ReadPrec ListResolverQueryLogConfigAssociationsResponse
$creadPrec :: ReadPrec ListResolverQueryLogConfigAssociationsResponse
readList :: ReadS [ListResolverQueryLogConfigAssociationsResponse]
$creadList :: ReadS [ListResolverQueryLogConfigAssociationsResponse]
readsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociationsResponse
$creadsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociationsResponse
Prelude.Read, Int -> ListResolverQueryLogConfigAssociationsResponse -> ShowS
[ListResolverQueryLogConfigAssociationsResponse] -> ShowS
ListResolverQueryLogConfigAssociationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverQueryLogConfigAssociationsResponse] -> ShowS
$cshowList :: [ListResolverQueryLogConfigAssociationsResponse] -> ShowS
show :: ListResolverQueryLogConfigAssociationsResponse -> String
$cshow :: ListResolverQueryLogConfigAssociationsResponse -> String
showsPrec :: Int -> ListResolverQueryLogConfigAssociationsResponse -> ShowS
$cshowsPrec :: Int -> ListResolverQueryLogConfigAssociationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListResolverQueryLogConfigAssociationsResponse x
-> ListResolverQueryLogConfigAssociationsResponse
forall x.
ListResolverQueryLogConfigAssociationsResponse
-> Rep ListResolverQueryLogConfigAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverQueryLogConfigAssociationsResponse x
-> ListResolverQueryLogConfigAssociationsResponse
$cfrom :: forall x.
ListResolverQueryLogConfigAssociationsResponse
-> Rep ListResolverQueryLogConfigAssociationsResponse x
Prelude.Generic)
newListResolverQueryLogConfigAssociationsResponse ::
Prelude.Int ->
ListResolverQueryLogConfigAssociationsResponse
newListResolverQueryLogConfigAssociationsResponse :: Int -> ListResolverQueryLogConfigAssociationsResponse
newListResolverQueryLogConfigAssociationsResponse
Int
pHttpStatus_ =
ListResolverQueryLogConfigAssociationsResponse'
{ $sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations =
forall a. Maybe a
Prelude.Nothing,
$sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalCount =
forall a. Maybe a
Prelude.Nothing,
$sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalFilteredCount =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResolverQueryLogConfigAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listResolverQueryLogConfigAssociationsResponse_nextToken :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe Prelude.Text)
listResolverQueryLogConfigAssociationsResponse_nextToken :: Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Text)
listResolverQueryLogConfigAssociationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe Text
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverQueryLogConfigAssociationsResponse)
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe [ResolverQueryLogConfigAssociation])
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations :: Lens'
ListResolverQueryLogConfigAssociationsResponse
(Maybe [ResolverQueryLogConfigAssociation])
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations :: Maybe [ResolverQueryLogConfigAssociation]
$sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse
-> Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations} -> Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe [ResolverQueryLogConfigAssociation]
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations = Maybe [ResolverQueryLogConfigAssociation]
a} :: ListResolverQueryLogConfigAssociationsResponse) 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
listResolverQueryLogConfigAssociationsResponse_totalCount :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe Prelude.Int)
listResolverQueryLogConfigAssociationsResponse_totalCount :: Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Int)
listResolverQueryLogConfigAssociationsResponse_totalCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe Int
totalCount :: Maybe Int
$sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalCount} -> Maybe Int
totalCount) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe Int
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalCount = Maybe Int
a} :: ListResolverQueryLogConfigAssociationsResponse)
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe Prelude.Int)
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount :: Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Int)
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe Int
totalFilteredCount :: Maybe Int
$sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalFilteredCount} -> Maybe Int
totalFilteredCount) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe Int
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalFilteredCount = Maybe Int
a} :: ListResolverQueryLogConfigAssociationsResponse)
listResolverQueryLogConfigAssociationsResponse_httpStatus :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse Prelude.Int
listResolverQueryLogConfigAssociationsResponse_httpStatus :: Lens' ListResolverQueryLogConfigAssociationsResponse Int
listResolverQueryLogConfigAssociationsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Int
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:httpStatus:ListResolverQueryLogConfigAssociationsResponse' :: Int
httpStatus = Int
a} :: ListResolverQueryLogConfigAssociationsResponse)
instance
Prelude.NFData
ListResolverQueryLogConfigAssociationsResponse
where
rnf :: ListResolverQueryLogConfigAssociationsResponse -> ()
rnf
ListResolverQueryLogConfigAssociationsResponse' {Int
Maybe Int
Maybe [ResolverQueryLogConfigAssociation]
Maybe Text
httpStatus :: Int
totalFilteredCount :: Maybe Int
totalCount :: Maybe Int
resolverQueryLogConfigAssociations :: Maybe [ResolverQueryLogConfigAssociation]
nextToken :: Maybe Text
$sel:httpStatus:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Int
$sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
$sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
$sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse
-> Maybe [ResolverQueryLogConfigAssociation]
$sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
totalCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
totalFilteredCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus