{-# 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.ELBV2.DescribeRules
(
DescribeRules (..),
newDescribeRules,
describeRules_listenerArn,
describeRules_marker,
describeRules_ruleArns,
describeRules_pageSize,
DescribeRulesResponse (..),
newDescribeRulesResponse,
describeRulesResponse_rules,
describeRulesResponse_nextMarker,
describeRulesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ELBV2.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 DescribeRules = DescribeRules'
{
DescribeRules -> Maybe Text
listenerArn :: Prelude.Maybe Prelude.Text,
DescribeRules -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeRules -> Maybe [Text]
ruleArns :: Prelude.Maybe [Prelude.Text],
DescribeRules -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeRules -> DescribeRules -> Bool
(DescribeRules -> DescribeRules -> Bool)
-> (DescribeRules -> DescribeRules -> Bool) -> Eq DescribeRules
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRules -> DescribeRules -> Bool
$c/= :: DescribeRules -> DescribeRules -> Bool
== :: DescribeRules -> DescribeRules -> Bool
$c== :: DescribeRules -> DescribeRules -> Bool
Prelude.Eq, ReadPrec [DescribeRules]
ReadPrec DescribeRules
Int -> ReadS DescribeRules
ReadS [DescribeRules]
(Int -> ReadS DescribeRules)
-> ReadS [DescribeRules]
-> ReadPrec DescribeRules
-> ReadPrec [DescribeRules]
-> Read DescribeRules
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRules]
$creadListPrec :: ReadPrec [DescribeRules]
readPrec :: ReadPrec DescribeRules
$creadPrec :: ReadPrec DescribeRules
readList :: ReadS [DescribeRules]
$creadList :: ReadS [DescribeRules]
readsPrec :: Int -> ReadS DescribeRules
$creadsPrec :: Int -> ReadS DescribeRules
Prelude.Read, Int -> DescribeRules -> ShowS
[DescribeRules] -> ShowS
DescribeRules -> String
(Int -> DescribeRules -> ShowS)
-> (DescribeRules -> String)
-> ([DescribeRules] -> ShowS)
-> Show DescribeRules
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRules] -> ShowS
$cshowList :: [DescribeRules] -> ShowS
show :: DescribeRules -> String
$cshow :: DescribeRules -> String
showsPrec :: Int -> DescribeRules -> ShowS
$cshowsPrec :: Int -> DescribeRules -> ShowS
Prelude.Show, (forall x. DescribeRules -> Rep DescribeRules x)
-> (forall x. Rep DescribeRules x -> DescribeRules)
-> Generic DescribeRules
forall x. Rep DescribeRules x -> DescribeRules
forall x. DescribeRules -> Rep DescribeRules x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeRules x -> DescribeRules
$cfrom :: forall x. DescribeRules -> Rep DescribeRules x
Prelude.Generic)
newDescribeRules ::
DescribeRules
newDescribeRules :: DescribeRules
newDescribeRules =
DescribeRules' :: Maybe Text
-> Maybe Text -> Maybe [Text] -> Maybe Natural -> DescribeRules
DescribeRules'
{ $sel:listenerArn:DescribeRules' :: Maybe Text
listenerArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeRules' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ruleArns:DescribeRules' :: Maybe [Text]
ruleArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:DescribeRules' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeRules_listenerArn :: Lens.Lens' DescribeRules (Prelude.Maybe Prelude.Text)
describeRules_listenerArn :: (Maybe Text -> f (Maybe Text)) -> DescribeRules -> f DescribeRules
describeRules_listenerArn = (DescribeRules -> Maybe Text)
-> (DescribeRules -> Maybe Text -> DescribeRules)
-> Lens DescribeRules DescribeRules (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRules' {Maybe Text
listenerArn :: Maybe Text
$sel:listenerArn:DescribeRules' :: DescribeRules -> Maybe Text
listenerArn} -> Maybe Text
listenerArn) (\s :: DescribeRules
s@DescribeRules' {} Maybe Text
a -> DescribeRules
s {$sel:listenerArn:DescribeRules' :: Maybe Text
listenerArn = Maybe Text
a} :: DescribeRules)
describeRules_marker :: Lens.Lens' DescribeRules (Prelude.Maybe Prelude.Text)
describeRules_marker :: (Maybe Text -> f (Maybe Text)) -> DescribeRules -> f DescribeRules
describeRules_marker = (DescribeRules -> Maybe Text)
-> (DescribeRules -> Maybe Text -> DescribeRules)
-> Lens DescribeRules DescribeRules (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRules' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeRules' :: DescribeRules -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeRules
s@DescribeRules' {} Maybe Text
a -> DescribeRules
s {$sel:marker:DescribeRules' :: Maybe Text
marker = Maybe Text
a} :: DescribeRules)
describeRules_ruleArns :: Lens.Lens' DescribeRules (Prelude.Maybe [Prelude.Text])
describeRules_ruleArns :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeRules -> f DescribeRules
describeRules_ruleArns = (DescribeRules -> Maybe [Text])
-> (DescribeRules -> Maybe [Text] -> DescribeRules)
-> Lens DescribeRules DescribeRules (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRules' {Maybe [Text]
ruleArns :: Maybe [Text]
$sel:ruleArns:DescribeRules' :: DescribeRules -> Maybe [Text]
ruleArns} -> Maybe [Text]
ruleArns) (\s :: DescribeRules
s@DescribeRules' {} Maybe [Text]
a -> DescribeRules
s {$sel:ruleArns:DescribeRules' :: Maybe [Text]
ruleArns = Maybe [Text]
a} :: DescribeRules) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeRules -> f DescribeRules)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeRules
-> f DescribeRules
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRules_pageSize :: Lens.Lens' DescribeRules (Prelude.Maybe Prelude.Natural)
describeRules_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> DescribeRules -> f DescribeRules
describeRules_pageSize = (DescribeRules -> Maybe Natural)
-> (DescribeRules -> Maybe Natural -> DescribeRules)
-> Lens DescribeRules DescribeRules (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRules' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:DescribeRules' :: DescribeRules -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: DescribeRules
s@DescribeRules' {} Maybe Natural
a -> DescribeRules
s {$sel:pageSize:DescribeRules' :: Maybe Natural
pageSize = Maybe Natural
a} :: DescribeRules)
instance Core.AWSPager DescribeRules where
page :: DescribeRules -> AWSResponse DescribeRules -> Maybe DescribeRules
page DescribeRules
rq AWSResponse DescribeRules
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeRules
DescribeRulesResponse
rs
DescribeRulesResponse
-> Getting (First Text) DescribeRulesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRulesResponse
-> Const (First Text) DescribeRulesResponse
Lens' DescribeRulesResponse (Maybe Text)
describeRulesResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRulesResponse
-> Const (First Text) DescribeRulesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeRulesResponse 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 DescribeRules
forall a. Maybe a
Prelude.Nothing
| Maybe [Rule] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeRules
DescribeRulesResponse
rs
DescribeRulesResponse
-> Getting (First [Rule]) DescribeRulesResponse [Rule]
-> Maybe [Rule]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Rule] -> Const (First [Rule]) (Maybe [Rule]))
-> DescribeRulesResponse
-> Const (First [Rule]) DescribeRulesResponse
Lens' DescribeRulesResponse (Maybe [Rule])
describeRulesResponse_rules ((Maybe [Rule] -> Const (First [Rule]) (Maybe [Rule]))
-> DescribeRulesResponse
-> Const (First [Rule]) DescribeRulesResponse)
-> (([Rule] -> Const (First [Rule]) [Rule])
-> Maybe [Rule] -> Const (First [Rule]) (Maybe [Rule]))
-> Getting (First [Rule]) DescribeRulesResponse [Rule]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Rule] -> Const (First [Rule]) [Rule])
-> Maybe [Rule] -> Const (First [Rule]) (Maybe [Rule])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeRules
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeRules -> Maybe DescribeRules
forall a. a -> Maybe a
Prelude.Just (DescribeRules -> Maybe DescribeRules)
-> DescribeRules -> Maybe DescribeRules
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeRules
rq
DescribeRules -> (DescribeRules -> DescribeRules) -> DescribeRules
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeRules -> Identity DescribeRules
Lens DescribeRules DescribeRules (Maybe Text) (Maybe Text)
describeRules_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeRules -> Identity DescribeRules)
-> Maybe Text -> DescribeRules -> DescribeRules
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeRules
DescribeRulesResponse
rs
DescribeRulesResponse
-> Getting (First Text) DescribeRulesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRulesResponse
-> Const (First Text) DescribeRulesResponse
Lens' DescribeRulesResponse (Maybe Text)
describeRulesResponse_nextMarker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRulesResponse
-> Const (First Text) DescribeRulesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeRulesResponse 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 DescribeRules where
type
AWSResponse DescribeRules =
DescribeRulesResponse
request :: DescribeRules -> Request DescribeRules
request = Service -> DescribeRules -> Request DescribeRules
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeRules
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeRules)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeRules))
-> Logger
-> Service
-> Proxy DescribeRules
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeRules)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeRulesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [Rule] -> Maybe Text -> Int -> DescribeRulesResponse
DescribeRulesResponse'
(Maybe [Rule] -> Maybe Text -> Int -> DescribeRulesResponse)
-> Either String (Maybe [Rule])
-> Either String (Maybe Text -> Int -> DescribeRulesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Rules" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Rule]))
-> Either String (Maybe [Rule])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Rule])
-> [Node] -> Either String (Maybe [Rule])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Rule]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> Int -> DescribeRulesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeRulesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextMarker")
Either String (Int -> DescribeRulesResponse)
-> Either String Int -> Either String DescribeRulesResponse
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 DescribeRules
instance Prelude.NFData DescribeRules
instance Core.ToHeaders DescribeRules where
toHeaders :: DescribeRules -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeRules -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeRules where
toPath :: DescribeRules -> ByteString
toPath = ByteString -> DescribeRules -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeRules where
toQuery :: DescribeRules -> QueryString
toQuery DescribeRules' {Maybe Natural
Maybe [Text]
Maybe Text
pageSize :: Maybe Natural
ruleArns :: Maybe [Text]
marker :: Maybe Text
listenerArn :: Maybe Text
$sel:pageSize:DescribeRules' :: DescribeRules -> Maybe Natural
$sel:ruleArns:DescribeRules' :: DescribeRules -> Maybe [Text]
$sel:marker:DescribeRules' :: DescribeRules -> Maybe Text
$sel:listenerArn:DescribeRules' :: DescribeRules -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeRules" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2015-12-01" :: Prelude.ByteString),
ByteString
"ListenerArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
listenerArn,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"RuleArns"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
ruleArns),
ByteString
"PageSize" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
pageSize
]
data DescribeRulesResponse = DescribeRulesResponse'
{
DescribeRulesResponse -> Maybe [Rule]
rules :: Prelude.Maybe [Rule],
DescribeRulesResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
DescribeRulesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeRulesResponse -> DescribeRulesResponse -> Bool
(DescribeRulesResponse -> DescribeRulesResponse -> Bool)
-> (DescribeRulesResponse -> DescribeRulesResponse -> Bool)
-> Eq DescribeRulesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRulesResponse -> DescribeRulesResponse -> Bool
$c/= :: DescribeRulesResponse -> DescribeRulesResponse -> Bool
== :: DescribeRulesResponse -> DescribeRulesResponse -> Bool
$c== :: DescribeRulesResponse -> DescribeRulesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRulesResponse]
ReadPrec DescribeRulesResponse
Int -> ReadS DescribeRulesResponse
ReadS [DescribeRulesResponse]
(Int -> ReadS DescribeRulesResponse)
-> ReadS [DescribeRulesResponse]
-> ReadPrec DescribeRulesResponse
-> ReadPrec [DescribeRulesResponse]
-> Read DescribeRulesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRulesResponse]
$creadListPrec :: ReadPrec [DescribeRulesResponse]
readPrec :: ReadPrec DescribeRulesResponse
$creadPrec :: ReadPrec DescribeRulesResponse
readList :: ReadS [DescribeRulesResponse]
$creadList :: ReadS [DescribeRulesResponse]
readsPrec :: Int -> ReadS DescribeRulesResponse
$creadsPrec :: Int -> ReadS DescribeRulesResponse
Prelude.Read, Int -> DescribeRulesResponse -> ShowS
[DescribeRulesResponse] -> ShowS
DescribeRulesResponse -> String
(Int -> DescribeRulesResponse -> ShowS)
-> (DescribeRulesResponse -> String)
-> ([DescribeRulesResponse] -> ShowS)
-> Show DescribeRulesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRulesResponse] -> ShowS
$cshowList :: [DescribeRulesResponse] -> ShowS
show :: DescribeRulesResponse -> String
$cshow :: DescribeRulesResponse -> String
showsPrec :: Int -> DescribeRulesResponse -> ShowS
$cshowsPrec :: Int -> DescribeRulesResponse -> ShowS
Prelude.Show, (forall x. DescribeRulesResponse -> Rep DescribeRulesResponse x)
-> (forall x. Rep DescribeRulesResponse x -> DescribeRulesResponse)
-> Generic DescribeRulesResponse
forall x. Rep DescribeRulesResponse x -> DescribeRulesResponse
forall x. DescribeRulesResponse -> Rep DescribeRulesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeRulesResponse x -> DescribeRulesResponse
$cfrom :: forall x. DescribeRulesResponse -> Rep DescribeRulesResponse x
Prelude.Generic)
newDescribeRulesResponse ::
Prelude.Int ->
DescribeRulesResponse
newDescribeRulesResponse :: Int -> DescribeRulesResponse
newDescribeRulesResponse Int
pHttpStatus_ =
DescribeRulesResponse' :: Maybe [Rule] -> Maybe Text -> Int -> DescribeRulesResponse
DescribeRulesResponse'
{ $sel:rules:DescribeRulesResponse' :: Maybe [Rule]
rules = Maybe [Rule]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:DescribeRulesResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeRulesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeRulesResponse_rules :: Lens.Lens' DescribeRulesResponse (Prelude.Maybe [Rule])
describeRulesResponse_rules :: (Maybe [Rule] -> f (Maybe [Rule]))
-> DescribeRulesResponse -> f DescribeRulesResponse
describeRulesResponse_rules = (DescribeRulesResponse -> Maybe [Rule])
-> (DescribeRulesResponse -> Maybe [Rule] -> DescribeRulesResponse)
-> Lens' DescribeRulesResponse (Maybe [Rule])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRulesResponse' {Maybe [Rule]
rules :: Maybe [Rule]
$sel:rules:DescribeRulesResponse' :: DescribeRulesResponse -> Maybe [Rule]
rules} -> Maybe [Rule]
rules) (\s :: DescribeRulesResponse
s@DescribeRulesResponse' {} Maybe [Rule]
a -> DescribeRulesResponse
s {$sel:rules:DescribeRulesResponse' :: Maybe [Rule]
rules = Maybe [Rule]
a} :: DescribeRulesResponse) ((Maybe [Rule] -> f (Maybe [Rule]))
-> DescribeRulesResponse -> f DescribeRulesResponse)
-> ((Maybe [Rule] -> f (Maybe [Rule]))
-> Maybe [Rule] -> f (Maybe [Rule]))
-> (Maybe [Rule] -> f (Maybe [Rule]))
-> DescribeRulesResponse
-> f DescribeRulesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Rule] [Rule] [Rule] [Rule]
-> Iso (Maybe [Rule]) (Maybe [Rule]) (Maybe [Rule]) (Maybe [Rule])
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 [Rule] [Rule] [Rule] [Rule]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRulesResponse_nextMarker :: Lens.Lens' DescribeRulesResponse (Prelude.Maybe Prelude.Text)
describeRulesResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> DescribeRulesResponse -> f DescribeRulesResponse
describeRulesResponse_nextMarker = (DescribeRulesResponse -> Maybe Text)
-> (DescribeRulesResponse -> Maybe Text -> DescribeRulesResponse)
-> Lens' DescribeRulesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRulesResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:DescribeRulesResponse' :: DescribeRulesResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: DescribeRulesResponse
s@DescribeRulesResponse' {} Maybe Text
a -> DescribeRulesResponse
s {$sel:nextMarker:DescribeRulesResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: DescribeRulesResponse)
describeRulesResponse_httpStatus :: Lens.Lens' DescribeRulesResponse Prelude.Int
describeRulesResponse_httpStatus :: (Int -> f Int) -> DescribeRulesResponse -> f DescribeRulesResponse
describeRulesResponse_httpStatus = (DescribeRulesResponse -> Int)
-> (DescribeRulesResponse -> Int -> DescribeRulesResponse)
-> Lens DescribeRulesResponse DescribeRulesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRulesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRulesResponse' :: DescribeRulesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRulesResponse
s@DescribeRulesResponse' {} Int
a -> DescribeRulesResponse
s {$sel:httpStatus:DescribeRulesResponse' :: Int
httpStatus = Int
a} :: DescribeRulesResponse)
instance Prelude.NFData DescribeRulesResponse