{-# 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.WAFRegional.GetRateBasedRuleManagedKeys
(
GetRateBasedRuleManagedKeys (..),
newGetRateBasedRuleManagedKeys,
getRateBasedRuleManagedKeys_nextMarker,
getRateBasedRuleManagedKeys_ruleId,
GetRateBasedRuleManagedKeysResponse (..),
newGetRateBasedRuleManagedKeysResponse,
getRateBasedRuleManagedKeysResponse_nextMarker,
getRateBasedRuleManagedKeysResponse_managedKeys,
getRateBasedRuleManagedKeysResponse_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.WAFRegional.Types
data GetRateBasedRuleManagedKeys = GetRateBasedRuleManagedKeys'
{
GetRateBasedRuleManagedKeys -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
GetRateBasedRuleManagedKeys -> Text
ruleId :: Prelude.Text
}
deriving (GetRateBasedRuleManagedKeys -> GetRateBasedRuleManagedKeys -> Bool
(GetRateBasedRuleManagedKeys
-> GetRateBasedRuleManagedKeys -> Bool)
-> (GetRateBasedRuleManagedKeys
-> GetRateBasedRuleManagedKeys -> Bool)
-> Eq GetRateBasedRuleManagedKeys
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRateBasedRuleManagedKeys -> GetRateBasedRuleManagedKeys -> Bool
$c/= :: GetRateBasedRuleManagedKeys -> GetRateBasedRuleManagedKeys -> Bool
== :: GetRateBasedRuleManagedKeys -> GetRateBasedRuleManagedKeys -> Bool
$c== :: GetRateBasedRuleManagedKeys -> GetRateBasedRuleManagedKeys -> Bool
Prelude.Eq, ReadPrec [GetRateBasedRuleManagedKeys]
ReadPrec GetRateBasedRuleManagedKeys
Int -> ReadS GetRateBasedRuleManagedKeys
ReadS [GetRateBasedRuleManagedKeys]
(Int -> ReadS GetRateBasedRuleManagedKeys)
-> ReadS [GetRateBasedRuleManagedKeys]
-> ReadPrec GetRateBasedRuleManagedKeys
-> ReadPrec [GetRateBasedRuleManagedKeys]
-> Read GetRateBasedRuleManagedKeys
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRateBasedRuleManagedKeys]
$creadListPrec :: ReadPrec [GetRateBasedRuleManagedKeys]
readPrec :: ReadPrec GetRateBasedRuleManagedKeys
$creadPrec :: ReadPrec GetRateBasedRuleManagedKeys
readList :: ReadS [GetRateBasedRuleManagedKeys]
$creadList :: ReadS [GetRateBasedRuleManagedKeys]
readsPrec :: Int -> ReadS GetRateBasedRuleManagedKeys
$creadsPrec :: Int -> ReadS GetRateBasedRuleManagedKeys
Prelude.Read, Int -> GetRateBasedRuleManagedKeys -> ShowS
[GetRateBasedRuleManagedKeys] -> ShowS
GetRateBasedRuleManagedKeys -> String
(Int -> GetRateBasedRuleManagedKeys -> ShowS)
-> (GetRateBasedRuleManagedKeys -> String)
-> ([GetRateBasedRuleManagedKeys] -> ShowS)
-> Show GetRateBasedRuleManagedKeys
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRateBasedRuleManagedKeys] -> ShowS
$cshowList :: [GetRateBasedRuleManagedKeys] -> ShowS
show :: GetRateBasedRuleManagedKeys -> String
$cshow :: GetRateBasedRuleManagedKeys -> String
showsPrec :: Int -> GetRateBasedRuleManagedKeys -> ShowS
$cshowsPrec :: Int -> GetRateBasedRuleManagedKeys -> ShowS
Prelude.Show, (forall x.
GetRateBasedRuleManagedKeys -> Rep GetRateBasedRuleManagedKeys x)
-> (forall x.
Rep GetRateBasedRuleManagedKeys x -> GetRateBasedRuleManagedKeys)
-> Generic GetRateBasedRuleManagedKeys
forall x.
Rep GetRateBasedRuleManagedKeys x -> GetRateBasedRuleManagedKeys
forall x.
GetRateBasedRuleManagedKeys -> Rep GetRateBasedRuleManagedKeys x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRateBasedRuleManagedKeys x -> GetRateBasedRuleManagedKeys
$cfrom :: forall x.
GetRateBasedRuleManagedKeys -> Rep GetRateBasedRuleManagedKeys x
Prelude.Generic)
newGetRateBasedRuleManagedKeys ::
Prelude.Text ->
GetRateBasedRuleManagedKeys
newGetRateBasedRuleManagedKeys :: Text -> GetRateBasedRuleManagedKeys
newGetRateBasedRuleManagedKeys Text
pRuleId_ =
GetRateBasedRuleManagedKeys' :: Maybe Text -> Text -> GetRateBasedRuleManagedKeys
GetRateBasedRuleManagedKeys'
{ $sel:nextMarker:GetRateBasedRuleManagedKeys' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ruleId:GetRateBasedRuleManagedKeys' :: Text
ruleId = Text
pRuleId_
}
getRateBasedRuleManagedKeys_nextMarker :: Lens.Lens' GetRateBasedRuleManagedKeys (Prelude.Maybe Prelude.Text)
getRateBasedRuleManagedKeys_nextMarker :: (Maybe Text -> f (Maybe Text))
-> GetRateBasedRuleManagedKeys -> f GetRateBasedRuleManagedKeys
getRateBasedRuleManagedKeys_nextMarker = (GetRateBasedRuleManagedKeys -> Maybe Text)
-> (GetRateBasedRuleManagedKeys
-> Maybe Text -> GetRateBasedRuleManagedKeys)
-> Lens
GetRateBasedRuleManagedKeys
GetRateBasedRuleManagedKeys
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRateBasedRuleManagedKeys' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:GetRateBasedRuleManagedKeys' :: GetRateBasedRuleManagedKeys -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: GetRateBasedRuleManagedKeys
s@GetRateBasedRuleManagedKeys' {} Maybe Text
a -> GetRateBasedRuleManagedKeys
s {$sel:nextMarker:GetRateBasedRuleManagedKeys' :: Maybe Text
nextMarker = Maybe Text
a} :: GetRateBasedRuleManagedKeys)
getRateBasedRuleManagedKeys_ruleId :: Lens.Lens' GetRateBasedRuleManagedKeys Prelude.Text
getRateBasedRuleManagedKeys_ruleId :: (Text -> f Text)
-> GetRateBasedRuleManagedKeys -> f GetRateBasedRuleManagedKeys
getRateBasedRuleManagedKeys_ruleId = (GetRateBasedRuleManagedKeys -> Text)
-> (GetRateBasedRuleManagedKeys
-> Text -> GetRateBasedRuleManagedKeys)
-> Lens
GetRateBasedRuleManagedKeys GetRateBasedRuleManagedKeys Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRateBasedRuleManagedKeys' {Text
ruleId :: Text
$sel:ruleId:GetRateBasedRuleManagedKeys' :: GetRateBasedRuleManagedKeys -> Text
ruleId} -> Text
ruleId) (\s :: GetRateBasedRuleManagedKeys
s@GetRateBasedRuleManagedKeys' {} Text
a -> GetRateBasedRuleManagedKeys
s {$sel:ruleId:GetRateBasedRuleManagedKeys' :: Text
ruleId = Text
a} :: GetRateBasedRuleManagedKeys)
instance Core.AWSRequest GetRateBasedRuleManagedKeys where
type
AWSResponse GetRateBasedRuleManagedKeys =
GetRateBasedRuleManagedKeysResponse
request :: GetRateBasedRuleManagedKeys -> Request GetRateBasedRuleManagedKeys
request = Service
-> GetRateBasedRuleManagedKeys
-> Request GetRateBasedRuleManagedKeys
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetRateBasedRuleManagedKeys
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetRateBasedRuleManagedKeys)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRateBasedRuleManagedKeys))
-> Logger
-> Service
-> Proxy GetRateBasedRuleManagedKeys
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetRateBasedRuleManagedKeys)))
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 [Text] -> Int -> GetRateBasedRuleManagedKeysResponse
GetRateBasedRuleManagedKeysResponse'
(Maybe Text
-> Maybe [Text] -> Int -> GetRateBasedRuleManagedKeysResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Int -> GetRateBasedRuleManagedKeysResponse)
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
"NextMarker")
Either
String (Maybe [Text] -> Int -> GetRateBasedRuleManagedKeysResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> GetRateBasedRuleManagedKeysResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ManagedKeys" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetRateBasedRuleManagedKeysResponse)
-> Either String Int
-> Either String GetRateBasedRuleManagedKeysResponse
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 GetRateBasedRuleManagedKeys
instance Prelude.NFData GetRateBasedRuleManagedKeys
instance Core.ToHeaders GetRateBasedRuleManagedKeys where
toHeaders :: GetRateBasedRuleManagedKeys -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetRateBasedRuleManagedKeys -> 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
"AWSWAF_Regional_20161128.GetRateBasedRuleManagedKeys" ::
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 GetRateBasedRuleManagedKeys where
toJSON :: GetRateBasedRuleManagedKeys -> Value
toJSON GetRateBasedRuleManagedKeys' {Maybe Text
Text
ruleId :: Text
nextMarker :: Maybe Text
$sel:ruleId:GetRateBasedRuleManagedKeys' :: GetRateBasedRuleManagedKeys -> Text
$sel:nextMarker:GetRateBasedRuleManagedKeys' :: GetRateBasedRuleManagedKeys -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextMarker" 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
nextMarker,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RuleId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
ruleId)
]
)
instance Core.ToPath GetRateBasedRuleManagedKeys where
toPath :: GetRateBasedRuleManagedKeys -> ByteString
toPath = ByteString -> GetRateBasedRuleManagedKeys -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetRateBasedRuleManagedKeys where
toQuery :: GetRateBasedRuleManagedKeys -> QueryString
toQuery = QueryString -> GetRateBasedRuleManagedKeys -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetRateBasedRuleManagedKeysResponse = GetRateBasedRuleManagedKeysResponse'
{
GetRateBasedRuleManagedKeysResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
GetRateBasedRuleManagedKeysResponse -> Maybe [Text]
managedKeys :: Prelude.Maybe [Prelude.Text],
GetRateBasedRuleManagedKeysResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool
(GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool)
-> (GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool)
-> Eq GetRateBasedRuleManagedKeysResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool
$c/= :: GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool
== :: GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool
$c== :: GetRateBasedRuleManagedKeysResponse
-> GetRateBasedRuleManagedKeysResponse -> Bool
Prelude.Eq, ReadPrec [GetRateBasedRuleManagedKeysResponse]
ReadPrec GetRateBasedRuleManagedKeysResponse
Int -> ReadS GetRateBasedRuleManagedKeysResponse
ReadS [GetRateBasedRuleManagedKeysResponse]
(Int -> ReadS GetRateBasedRuleManagedKeysResponse)
-> ReadS [GetRateBasedRuleManagedKeysResponse]
-> ReadPrec GetRateBasedRuleManagedKeysResponse
-> ReadPrec [GetRateBasedRuleManagedKeysResponse]
-> Read GetRateBasedRuleManagedKeysResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRateBasedRuleManagedKeysResponse]
$creadListPrec :: ReadPrec [GetRateBasedRuleManagedKeysResponse]
readPrec :: ReadPrec GetRateBasedRuleManagedKeysResponse
$creadPrec :: ReadPrec GetRateBasedRuleManagedKeysResponse
readList :: ReadS [GetRateBasedRuleManagedKeysResponse]
$creadList :: ReadS [GetRateBasedRuleManagedKeysResponse]
readsPrec :: Int -> ReadS GetRateBasedRuleManagedKeysResponse
$creadsPrec :: Int -> ReadS GetRateBasedRuleManagedKeysResponse
Prelude.Read, Int -> GetRateBasedRuleManagedKeysResponse -> ShowS
[GetRateBasedRuleManagedKeysResponse] -> ShowS
GetRateBasedRuleManagedKeysResponse -> String
(Int -> GetRateBasedRuleManagedKeysResponse -> ShowS)
-> (GetRateBasedRuleManagedKeysResponse -> String)
-> ([GetRateBasedRuleManagedKeysResponse] -> ShowS)
-> Show GetRateBasedRuleManagedKeysResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRateBasedRuleManagedKeysResponse] -> ShowS
$cshowList :: [GetRateBasedRuleManagedKeysResponse] -> ShowS
show :: GetRateBasedRuleManagedKeysResponse -> String
$cshow :: GetRateBasedRuleManagedKeysResponse -> String
showsPrec :: Int -> GetRateBasedRuleManagedKeysResponse -> ShowS
$cshowsPrec :: Int -> GetRateBasedRuleManagedKeysResponse -> ShowS
Prelude.Show, (forall x.
GetRateBasedRuleManagedKeysResponse
-> Rep GetRateBasedRuleManagedKeysResponse x)
-> (forall x.
Rep GetRateBasedRuleManagedKeysResponse x
-> GetRateBasedRuleManagedKeysResponse)
-> Generic GetRateBasedRuleManagedKeysResponse
forall x.
Rep GetRateBasedRuleManagedKeysResponse x
-> GetRateBasedRuleManagedKeysResponse
forall x.
GetRateBasedRuleManagedKeysResponse
-> Rep GetRateBasedRuleManagedKeysResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRateBasedRuleManagedKeysResponse x
-> GetRateBasedRuleManagedKeysResponse
$cfrom :: forall x.
GetRateBasedRuleManagedKeysResponse
-> Rep GetRateBasedRuleManagedKeysResponse x
Prelude.Generic)
newGetRateBasedRuleManagedKeysResponse ::
Prelude.Int ->
GetRateBasedRuleManagedKeysResponse
newGetRateBasedRuleManagedKeysResponse :: Int -> GetRateBasedRuleManagedKeysResponse
newGetRateBasedRuleManagedKeysResponse Int
pHttpStatus_ =
GetRateBasedRuleManagedKeysResponse' :: Maybe Text
-> Maybe [Text] -> Int -> GetRateBasedRuleManagedKeysResponse
GetRateBasedRuleManagedKeysResponse'
{ $sel:nextMarker:GetRateBasedRuleManagedKeysResponse' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:managedKeys:GetRateBasedRuleManagedKeysResponse' :: Maybe [Text]
managedKeys = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRateBasedRuleManagedKeysResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRateBasedRuleManagedKeysResponse_nextMarker :: Lens.Lens' GetRateBasedRuleManagedKeysResponse (Prelude.Maybe Prelude.Text)
getRateBasedRuleManagedKeysResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> GetRateBasedRuleManagedKeysResponse
-> f GetRateBasedRuleManagedKeysResponse
getRateBasedRuleManagedKeysResponse_nextMarker = (GetRateBasedRuleManagedKeysResponse -> Maybe Text)
-> (GetRateBasedRuleManagedKeysResponse
-> Maybe Text -> GetRateBasedRuleManagedKeysResponse)
-> Lens
GetRateBasedRuleManagedKeysResponse
GetRateBasedRuleManagedKeysResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRateBasedRuleManagedKeysResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:GetRateBasedRuleManagedKeysResponse' :: GetRateBasedRuleManagedKeysResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: GetRateBasedRuleManagedKeysResponse
s@GetRateBasedRuleManagedKeysResponse' {} Maybe Text
a -> GetRateBasedRuleManagedKeysResponse
s {$sel:nextMarker:GetRateBasedRuleManagedKeysResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: GetRateBasedRuleManagedKeysResponse)
getRateBasedRuleManagedKeysResponse_managedKeys :: Lens.Lens' GetRateBasedRuleManagedKeysResponse (Prelude.Maybe [Prelude.Text])
getRateBasedRuleManagedKeysResponse_managedKeys :: (Maybe [Text] -> f (Maybe [Text]))
-> GetRateBasedRuleManagedKeysResponse
-> f GetRateBasedRuleManagedKeysResponse
getRateBasedRuleManagedKeysResponse_managedKeys = (GetRateBasedRuleManagedKeysResponse -> Maybe [Text])
-> (GetRateBasedRuleManagedKeysResponse
-> Maybe [Text] -> GetRateBasedRuleManagedKeysResponse)
-> Lens
GetRateBasedRuleManagedKeysResponse
GetRateBasedRuleManagedKeysResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRateBasedRuleManagedKeysResponse' {Maybe [Text]
managedKeys :: Maybe [Text]
$sel:managedKeys:GetRateBasedRuleManagedKeysResponse' :: GetRateBasedRuleManagedKeysResponse -> Maybe [Text]
managedKeys} -> Maybe [Text]
managedKeys) (\s :: GetRateBasedRuleManagedKeysResponse
s@GetRateBasedRuleManagedKeysResponse' {} Maybe [Text]
a -> GetRateBasedRuleManagedKeysResponse
s {$sel:managedKeys:GetRateBasedRuleManagedKeysResponse' :: Maybe [Text]
managedKeys = Maybe [Text]
a} :: GetRateBasedRuleManagedKeysResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> GetRateBasedRuleManagedKeysResponse
-> f GetRateBasedRuleManagedKeysResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetRateBasedRuleManagedKeysResponse
-> f GetRateBasedRuleManagedKeysResponse
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
getRateBasedRuleManagedKeysResponse_httpStatus :: Lens.Lens' GetRateBasedRuleManagedKeysResponse Prelude.Int
getRateBasedRuleManagedKeysResponse_httpStatus :: (Int -> f Int)
-> GetRateBasedRuleManagedKeysResponse
-> f GetRateBasedRuleManagedKeysResponse
getRateBasedRuleManagedKeysResponse_httpStatus = (GetRateBasedRuleManagedKeysResponse -> Int)
-> (GetRateBasedRuleManagedKeysResponse
-> Int -> GetRateBasedRuleManagedKeysResponse)
-> Lens
GetRateBasedRuleManagedKeysResponse
GetRateBasedRuleManagedKeysResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRateBasedRuleManagedKeysResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRateBasedRuleManagedKeysResponse' :: GetRateBasedRuleManagedKeysResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRateBasedRuleManagedKeysResponse
s@GetRateBasedRuleManagedKeysResponse' {} Int
a -> GetRateBasedRuleManagedKeysResponse
s {$sel:httpStatus:GetRateBasedRuleManagedKeysResponse' :: Int
httpStatus = Int
a} :: GetRateBasedRuleManagedKeysResponse)
instance
Prelude.NFData
GetRateBasedRuleManagedKeysResponse