{-# 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.CloudWatchLogs.DescribeQueryDefinitions
(
DescribeQueryDefinitions (..),
newDescribeQueryDefinitions,
describeQueryDefinitions_queryDefinitionNamePrefix,
describeQueryDefinitions_nextToken,
describeQueryDefinitions_maxResults,
DescribeQueryDefinitionsResponse (..),
newDescribeQueryDefinitionsResponse,
describeQueryDefinitionsResponse_queryDefinitions,
describeQueryDefinitionsResponse_nextToken,
describeQueryDefinitionsResponse_httpStatus,
)
where
import Amazonka.CloudWatchLogs.Types
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
data DescribeQueryDefinitions = DescribeQueryDefinitions'
{
DescribeQueryDefinitions -> Maybe Text
queryDefinitionNamePrefix :: Prelude.Maybe Prelude.Text,
DescribeQueryDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeQueryDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool
(DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool)
-> (DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool)
-> Eq DescribeQueryDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool
$c/= :: DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool
== :: DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool
$c== :: DescribeQueryDefinitions -> DescribeQueryDefinitions -> Bool
Prelude.Eq, ReadPrec [DescribeQueryDefinitions]
ReadPrec DescribeQueryDefinitions
Int -> ReadS DescribeQueryDefinitions
ReadS [DescribeQueryDefinitions]
(Int -> ReadS DescribeQueryDefinitions)
-> ReadS [DescribeQueryDefinitions]
-> ReadPrec DescribeQueryDefinitions
-> ReadPrec [DescribeQueryDefinitions]
-> Read DescribeQueryDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeQueryDefinitions]
$creadListPrec :: ReadPrec [DescribeQueryDefinitions]
readPrec :: ReadPrec DescribeQueryDefinitions
$creadPrec :: ReadPrec DescribeQueryDefinitions
readList :: ReadS [DescribeQueryDefinitions]
$creadList :: ReadS [DescribeQueryDefinitions]
readsPrec :: Int -> ReadS DescribeQueryDefinitions
$creadsPrec :: Int -> ReadS DescribeQueryDefinitions
Prelude.Read, Int -> DescribeQueryDefinitions -> ShowS
[DescribeQueryDefinitions] -> ShowS
DescribeQueryDefinitions -> String
(Int -> DescribeQueryDefinitions -> ShowS)
-> (DescribeQueryDefinitions -> String)
-> ([DescribeQueryDefinitions] -> ShowS)
-> Show DescribeQueryDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeQueryDefinitions] -> ShowS
$cshowList :: [DescribeQueryDefinitions] -> ShowS
show :: DescribeQueryDefinitions -> String
$cshow :: DescribeQueryDefinitions -> String
showsPrec :: Int -> DescribeQueryDefinitions -> ShowS
$cshowsPrec :: Int -> DescribeQueryDefinitions -> ShowS
Prelude.Show, (forall x.
DescribeQueryDefinitions -> Rep DescribeQueryDefinitions x)
-> (forall x.
Rep DescribeQueryDefinitions x -> DescribeQueryDefinitions)
-> Generic DescribeQueryDefinitions
forall x.
Rep DescribeQueryDefinitions x -> DescribeQueryDefinitions
forall x.
DescribeQueryDefinitions -> Rep DescribeQueryDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeQueryDefinitions x -> DescribeQueryDefinitions
$cfrom :: forall x.
DescribeQueryDefinitions -> Rep DescribeQueryDefinitions x
Prelude.Generic)
newDescribeQueryDefinitions ::
DescribeQueryDefinitions
newDescribeQueryDefinitions :: DescribeQueryDefinitions
newDescribeQueryDefinitions =
DescribeQueryDefinitions' :: Maybe Text
-> Maybe Text -> Maybe Natural -> DescribeQueryDefinitions
DescribeQueryDefinitions'
{ $sel:queryDefinitionNamePrefix:DescribeQueryDefinitions' :: Maybe Text
queryDefinitionNamePrefix =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeQueryDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeQueryDefinitions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeQueryDefinitions_queryDefinitionNamePrefix :: Lens.Lens' DescribeQueryDefinitions (Prelude.Maybe Prelude.Text)
describeQueryDefinitions_queryDefinitionNamePrefix :: (Maybe Text -> f (Maybe Text))
-> DescribeQueryDefinitions -> f DescribeQueryDefinitions
describeQueryDefinitions_queryDefinitionNamePrefix = (DescribeQueryDefinitions -> Maybe Text)
-> (DescribeQueryDefinitions
-> Maybe Text -> DescribeQueryDefinitions)
-> Lens
DescribeQueryDefinitions
DescribeQueryDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeQueryDefinitions' {Maybe Text
queryDefinitionNamePrefix :: Maybe Text
$sel:queryDefinitionNamePrefix:DescribeQueryDefinitions' :: DescribeQueryDefinitions -> Maybe Text
queryDefinitionNamePrefix} -> Maybe Text
queryDefinitionNamePrefix) (\s :: DescribeQueryDefinitions
s@DescribeQueryDefinitions' {} Maybe Text
a -> DescribeQueryDefinitions
s {$sel:queryDefinitionNamePrefix:DescribeQueryDefinitions' :: Maybe Text
queryDefinitionNamePrefix = Maybe Text
a} :: DescribeQueryDefinitions)
describeQueryDefinitions_nextToken :: Lens.Lens' DescribeQueryDefinitions (Prelude.Maybe Prelude.Text)
describeQueryDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeQueryDefinitions -> f DescribeQueryDefinitions
describeQueryDefinitions_nextToken = (DescribeQueryDefinitions -> Maybe Text)
-> (DescribeQueryDefinitions
-> Maybe Text -> DescribeQueryDefinitions)
-> Lens
DescribeQueryDefinitions
DescribeQueryDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeQueryDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeQueryDefinitions' :: DescribeQueryDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeQueryDefinitions
s@DescribeQueryDefinitions' {} Maybe Text
a -> DescribeQueryDefinitions
s {$sel:nextToken:DescribeQueryDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeQueryDefinitions)
describeQueryDefinitions_maxResults :: Lens.Lens' DescribeQueryDefinitions (Prelude.Maybe Prelude.Natural)
describeQueryDefinitions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeQueryDefinitions -> f DescribeQueryDefinitions
describeQueryDefinitions_maxResults = (DescribeQueryDefinitions -> Maybe Natural)
-> (DescribeQueryDefinitions
-> Maybe Natural -> DescribeQueryDefinitions)
-> Lens
DescribeQueryDefinitions
DescribeQueryDefinitions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeQueryDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeQueryDefinitions' :: DescribeQueryDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeQueryDefinitions
s@DescribeQueryDefinitions' {} Maybe Natural
a -> DescribeQueryDefinitions
s {$sel:maxResults:DescribeQueryDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeQueryDefinitions)
instance Core.AWSRequest DescribeQueryDefinitions where
type
AWSResponse DescribeQueryDefinitions =
DescribeQueryDefinitionsResponse
request :: DescribeQueryDefinitions -> Request DescribeQueryDefinitions
request = Service
-> DescribeQueryDefinitions -> Request DescribeQueryDefinitions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeQueryDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeQueryDefinitions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeQueryDefinitions))
-> Logger
-> Service
-> Proxy DescribeQueryDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeQueryDefinitions)))
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 [QueryDefinition]
-> Maybe Text -> Int -> DescribeQueryDefinitionsResponse
DescribeQueryDefinitionsResponse'
(Maybe [QueryDefinition]
-> Maybe Text -> Int -> DescribeQueryDefinitionsResponse)
-> Either String (Maybe [QueryDefinition])
-> Either
String (Maybe Text -> Int -> DescribeQueryDefinitionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [QueryDefinition]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"queryDefinitions"
Either String (Maybe (Maybe [QueryDefinition]))
-> Maybe [QueryDefinition]
-> Either String (Maybe [QueryDefinition])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [QueryDefinition]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> DescribeQueryDefinitionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeQueryDefinitionsResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> DescribeQueryDefinitionsResponse)
-> Either String Int
-> Either String DescribeQueryDefinitionsResponse
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 DescribeQueryDefinitions
instance Prelude.NFData DescribeQueryDefinitions
instance Core.ToHeaders DescribeQueryDefinitions where
toHeaders :: DescribeQueryDefinitions -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeQueryDefinitions -> 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
"Logs_20140328.DescribeQueryDefinitions" ::
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 DescribeQueryDefinitions where
toJSON :: DescribeQueryDefinitions -> Value
toJSON DescribeQueryDefinitions' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
queryDefinitionNamePrefix :: Maybe Text
$sel:maxResults:DescribeQueryDefinitions' :: DescribeQueryDefinitions -> Maybe Natural
$sel:nextToken:DescribeQueryDefinitions' :: DescribeQueryDefinitions -> Maybe Text
$sel:queryDefinitionNamePrefix:DescribeQueryDefinitions' :: DescribeQueryDefinitions -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"queryDefinitionNamePrefix" 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
queryDefinitionNamePrefix,
(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 DescribeQueryDefinitions where
toPath :: DescribeQueryDefinitions -> ByteString
toPath = ByteString -> DescribeQueryDefinitions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeQueryDefinitions where
toQuery :: DescribeQueryDefinitions -> QueryString
toQuery = QueryString -> DescribeQueryDefinitions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeQueryDefinitionsResponse = DescribeQueryDefinitionsResponse'
{
DescribeQueryDefinitionsResponse -> Maybe [QueryDefinition]
queryDefinitions :: Prelude.Maybe [QueryDefinition],
DescribeQueryDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeQueryDefinitionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool
(DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool)
-> (DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool)
-> Eq DescribeQueryDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool
$c/= :: DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool
== :: DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool
$c== :: DescribeQueryDefinitionsResponse
-> DescribeQueryDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeQueryDefinitionsResponse]
ReadPrec DescribeQueryDefinitionsResponse
Int -> ReadS DescribeQueryDefinitionsResponse
ReadS [DescribeQueryDefinitionsResponse]
(Int -> ReadS DescribeQueryDefinitionsResponse)
-> ReadS [DescribeQueryDefinitionsResponse]
-> ReadPrec DescribeQueryDefinitionsResponse
-> ReadPrec [DescribeQueryDefinitionsResponse]
-> Read DescribeQueryDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeQueryDefinitionsResponse]
$creadListPrec :: ReadPrec [DescribeQueryDefinitionsResponse]
readPrec :: ReadPrec DescribeQueryDefinitionsResponse
$creadPrec :: ReadPrec DescribeQueryDefinitionsResponse
readList :: ReadS [DescribeQueryDefinitionsResponse]
$creadList :: ReadS [DescribeQueryDefinitionsResponse]
readsPrec :: Int -> ReadS DescribeQueryDefinitionsResponse
$creadsPrec :: Int -> ReadS DescribeQueryDefinitionsResponse
Prelude.Read, Int -> DescribeQueryDefinitionsResponse -> ShowS
[DescribeQueryDefinitionsResponse] -> ShowS
DescribeQueryDefinitionsResponse -> String
(Int -> DescribeQueryDefinitionsResponse -> ShowS)
-> (DescribeQueryDefinitionsResponse -> String)
-> ([DescribeQueryDefinitionsResponse] -> ShowS)
-> Show DescribeQueryDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeQueryDefinitionsResponse] -> ShowS
$cshowList :: [DescribeQueryDefinitionsResponse] -> ShowS
show :: DescribeQueryDefinitionsResponse -> String
$cshow :: DescribeQueryDefinitionsResponse -> String
showsPrec :: Int -> DescribeQueryDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeQueryDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeQueryDefinitionsResponse
-> Rep DescribeQueryDefinitionsResponse x)
-> (forall x.
Rep DescribeQueryDefinitionsResponse x
-> DescribeQueryDefinitionsResponse)
-> Generic DescribeQueryDefinitionsResponse
forall x.
Rep DescribeQueryDefinitionsResponse x
-> DescribeQueryDefinitionsResponse
forall x.
DescribeQueryDefinitionsResponse
-> Rep DescribeQueryDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeQueryDefinitionsResponse x
-> DescribeQueryDefinitionsResponse
$cfrom :: forall x.
DescribeQueryDefinitionsResponse
-> Rep DescribeQueryDefinitionsResponse x
Prelude.Generic)
newDescribeQueryDefinitionsResponse ::
Prelude.Int ->
DescribeQueryDefinitionsResponse
newDescribeQueryDefinitionsResponse :: Int -> DescribeQueryDefinitionsResponse
newDescribeQueryDefinitionsResponse Int
pHttpStatus_ =
DescribeQueryDefinitionsResponse' :: Maybe [QueryDefinition]
-> Maybe Text -> Int -> DescribeQueryDefinitionsResponse
DescribeQueryDefinitionsResponse'
{ $sel:queryDefinitions:DescribeQueryDefinitionsResponse' :: Maybe [QueryDefinition]
queryDefinitions =
Maybe [QueryDefinition]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeQueryDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeQueryDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeQueryDefinitionsResponse_queryDefinitions :: Lens.Lens' DescribeQueryDefinitionsResponse (Prelude.Maybe [QueryDefinition])
describeQueryDefinitionsResponse_queryDefinitions :: (Maybe [QueryDefinition] -> f (Maybe [QueryDefinition]))
-> DescribeQueryDefinitionsResponse
-> f DescribeQueryDefinitionsResponse
describeQueryDefinitionsResponse_queryDefinitions = (DescribeQueryDefinitionsResponse -> Maybe [QueryDefinition])
-> (DescribeQueryDefinitionsResponse
-> Maybe [QueryDefinition] -> DescribeQueryDefinitionsResponse)
-> Lens
DescribeQueryDefinitionsResponse
DescribeQueryDefinitionsResponse
(Maybe [QueryDefinition])
(Maybe [QueryDefinition])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeQueryDefinitionsResponse' {Maybe [QueryDefinition]
queryDefinitions :: Maybe [QueryDefinition]
$sel:queryDefinitions:DescribeQueryDefinitionsResponse' :: DescribeQueryDefinitionsResponse -> Maybe [QueryDefinition]
queryDefinitions} -> Maybe [QueryDefinition]
queryDefinitions) (\s :: DescribeQueryDefinitionsResponse
s@DescribeQueryDefinitionsResponse' {} Maybe [QueryDefinition]
a -> DescribeQueryDefinitionsResponse
s {$sel:queryDefinitions:DescribeQueryDefinitionsResponse' :: Maybe [QueryDefinition]
queryDefinitions = Maybe [QueryDefinition]
a} :: DescribeQueryDefinitionsResponse) ((Maybe [QueryDefinition] -> f (Maybe [QueryDefinition]))
-> DescribeQueryDefinitionsResponse
-> f DescribeQueryDefinitionsResponse)
-> ((Maybe [QueryDefinition] -> f (Maybe [QueryDefinition]))
-> Maybe [QueryDefinition] -> f (Maybe [QueryDefinition]))
-> (Maybe [QueryDefinition] -> f (Maybe [QueryDefinition]))
-> DescribeQueryDefinitionsResponse
-> f DescribeQueryDefinitionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[QueryDefinition]
[QueryDefinition]
[QueryDefinition]
[QueryDefinition]
-> Iso
(Maybe [QueryDefinition])
(Maybe [QueryDefinition])
(Maybe [QueryDefinition])
(Maybe [QueryDefinition])
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
[QueryDefinition]
[QueryDefinition]
[QueryDefinition]
[QueryDefinition]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeQueryDefinitionsResponse_nextToken :: Lens.Lens' DescribeQueryDefinitionsResponse (Prelude.Maybe Prelude.Text)
describeQueryDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeQueryDefinitionsResponse
-> f DescribeQueryDefinitionsResponse
describeQueryDefinitionsResponse_nextToken = (DescribeQueryDefinitionsResponse -> Maybe Text)
-> (DescribeQueryDefinitionsResponse
-> Maybe Text -> DescribeQueryDefinitionsResponse)
-> Lens
DescribeQueryDefinitionsResponse
DescribeQueryDefinitionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeQueryDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeQueryDefinitionsResponse' :: DescribeQueryDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeQueryDefinitionsResponse
s@DescribeQueryDefinitionsResponse' {} Maybe Text
a -> DescribeQueryDefinitionsResponse
s {$sel:nextToken:DescribeQueryDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeQueryDefinitionsResponse)
describeQueryDefinitionsResponse_httpStatus :: Lens.Lens' DescribeQueryDefinitionsResponse Prelude.Int
describeQueryDefinitionsResponse_httpStatus :: (Int -> f Int)
-> DescribeQueryDefinitionsResponse
-> f DescribeQueryDefinitionsResponse
describeQueryDefinitionsResponse_httpStatus = (DescribeQueryDefinitionsResponse -> Int)
-> (DescribeQueryDefinitionsResponse
-> Int -> DescribeQueryDefinitionsResponse)
-> Lens
DescribeQueryDefinitionsResponse
DescribeQueryDefinitionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeQueryDefinitionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeQueryDefinitionsResponse' :: DescribeQueryDefinitionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeQueryDefinitionsResponse
s@DescribeQueryDefinitionsResponse' {} Int
a -> DescribeQueryDefinitionsResponse
s {$sel:httpStatus:DescribeQueryDefinitionsResponse' :: Int
httpStatus = Int
a} :: DescribeQueryDefinitionsResponse)
instance
Prelude.NFData
DescribeQueryDefinitionsResponse