{-# 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.WAFV2.PutManagedRuleSetVersions
(
PutManagedRuleSetVersions (..),
newPutManagedRuleSetVersions,
putManagedRuleSetVersions_recommendedVersion,
putManagedRuleSetVersions_versionsToPublish,
putManagedRuleSetVersions_name,
putManagedRuleSetVersions_scope,
putManagedRuleSetVersions_id,
putManagedRuleSetVersions_lockToken,
PutManagedRuleSetVersionsResponse (..),
newPutManagedRuleSetVersionsResponse,
putManagedRuleSetVersionsResponse_nextLockToken,
putManagedRuleSetVersionsResponse_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.WAFV2.Types
data PutManagedRuleSetVersions = PutManagedRuleSetVersions'
{
PutManagedRuleSetVersions -> Maybe Text
recommendedVersion :: Prelude.Maybe Prelude.Text,
PutManagedRuleSetVersions -> Maybe (HashMap Text VersionToPublish)
versionsToPublish :: Prelude.Maybe (Prelude.HashMap Prelude.Text VersionToPublish),
PutManagedRuleSetVersions -> Text
name :: Prelude.Text,
PutManagedRuleSetVersions -> Scope
scope :: Scope,
PutManagedRuleSetVersions -> Text
id :: Prelude.Text,
PutManagedRuleSetVersions -> Text
lockToken :: Prelude.Text
}
deriving (PutManagedRuleSetVersions -> PutManagedRuleSetVersions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutManagedRuleSetVersions -> PutManagedRuleSetVersions -> Bool
$c/= :: PutManagedRuleSetVersions -> PutManagedRuleSetVersions -> Bool
== :: PutManagedRuleSetVersions -> PutManagedRuleSetVersions -> Bool
$c== :: PutManagedRuleSetVersions -> PutManagedRuleSetVersions -> Bool
Prelude.Eq, ReadPrec [PutManagedRuleSetVersions]
ReadPrec PutManagedRuleSetVersions
Int -> ReadS PutManagedRuleSetVersions
ReadS [PutManagedRuleSetVersions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutManagedRuleSetVersions]
$creadListPrec :: ReadPrec [PutManagedRuleSetVersions]
readPrec :: ReadPrec PutManagedRuleSetVersions
$creadPrec :: ReadPrec PutManagedRuleSetVersions
readList :: ReadS [PutManagedRuleSetVersions]
$creadList :: ReadS [PutManagedRuleSetVersions]
readsPrec :: Int -> ReadS PutManagedRuleSetVersions
$creadsPrec :: Int -> ReadS PutManagedRuleSetVersions
Prelude.Read, Int -> PutManagedRuleSetVersions -> ShowS
[PutManagedRuleSetVersions] -> ShowS
PutManagedRuleSetVersions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutManagedRuleSetVersions] -> ShowS
$cshowList :: [PutManagedRuleSetVersions] -> ShowS
show :: PutManagedRuleSetVersions -> String
$cshow :: PutManagedRuleSetVersions -> String
showsPrec :: Int -> PutManagedRuleSetVersions -> ShowS
$cshowsPrec :: Int -> PutManagedRuleSetVersions -> ShowS
Prelude.Show, forall x.
Rep PutManagedRuleSetVersions x -> PutManagedRuleSetVersions
forall x.
PutManagedRuleSetVersions -> Rep PutManagedRuleSetVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutManagedRuleSetVersions x -> PutManagedRuleSetVersions
$cfrom :: forall x.
PutManagedRuleSetVersions -> Rep PutManagedRuleSetVersions x
Prelude.Generic)
newPutManagedRuleSetVersions ::
Prelude.Text ->
Scope ->
Prelude.Text ->
Prelude.Text ->
PutManagedRuleSetVersions
newPutManagedRuleSetVersions :: Text -> Scope -> Text -> Text -> PutManagedRuleSetVersions
newPutManagedRuleSetVersions
Text
pName_
Scope
pScope_
Text
pId_
Text
pLockToken_ =
PutManagedRuleSetVersions'
{ $sel:recommendedVersion:PutManagedRuleSetVersions' :: Maybe Text
recommendedVersion =
forall a. Maybe a
Prelude.Nothing,
$sel:versionsToPublish:PutManagedRuleSetVersions' :: Maybe (HashMap Text VersionToPublish)
versionsToPublish = forall a. Maybe a
Prelude.Nothing,
$sel:name:PutManagedRuleSetVersions' :: Text
name = Text
pName_,
$sel:scope:PutManagedRuleSetVersions' :: Scope
scope = Scope
pScope_,
$sel:id:PutManagedRuleSetVersions' :: Text
id = Text
pId_,
$sel:lockToken:PutManagedRuleSetVersions' :: Text
lockToken = Text
pLockToken_
}
putManagedRuleSetVersions_recommendedVersion :: Lens.Lens' PutManagedRuleSetVersions (Prelude.Maybe Prelude.Text)
putManagedRuleSetVersions_recommendedVersion :: Lens' PutManagedRuleSetVersions (Maybe Text)
putManagedRuleSetVersions_recommendedVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersions' {Maybe Text
recommendedVersion :: Maybe Text
$sel:recommendedVersion:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe Text
recommendedVersion} -> Maybe Text
recommendedVersion) (\s :: PutManagedRuleSetVersions
s@PutManagedRuleSetVersions' {} Maybe Text
a -> PutManagedRuleSetVersions
s {$sel:recommendedVersion:PutManagedRuleSetVersions' :: Maybe Text
recommendedVersion = Maybe Text
a} :: PutManagedRuleSetVersions)
putManagedRuleSetVersions_versionsToPublish :: Lens.Lens' PutManagedRuleSetVersions (Prelude.Maybe (Prelude.HashMap Prelude.Text VersionToPublish))
putManagedRuleSetVersions_versionsToPublish :: Lens'
PutManagedRuleSetVersions (Maybe (HashMap Text VersionToPublish))
putManagedRuleSetVersions_versionsToPublish = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersions' {Maybe (HashMap Text VersionToPublish)
versionsToPublish :: Maybe (HashMap Text VersionToPublish)
$sel:versionsToPublish:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe (HashMap Text VersionToPublish)
versionsToPublish} -> Maybe (HashMap Text VersionToPublish)
versionsToPublish) (\s :: PutManagedRuleSetVersions
s@PutManagedRuleSetVersions' {} Maybe (HashMap Text VersionToPublish)
a -> PutManagedRuleSetVersions
s {$sel:versionsToPublish:PutManagedRuleSetVersions' :: Maybe (HashMap Text VersionToPublish)
versionsToPublish = Maybe (HashMap Text VersionToPublish)
a} :: PutManagedRuleSetVersions) 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
putManagedRuleSetVersions_name :: Lens.Lens' PutManagedRuleSetVersions Prelude.Text
putManagedRuleSetVersions_name :: Lens' PutManagedRuleSetVersions Text
putManagedRuleSetVersions_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersions' {Text
name :: Text
$sel:name:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
name} -> Text
name) (\s :: PutManagedRuleSetVersions
s@PutManagedRuleSetVersions' {} Text
a -> PutManagedRuleSetVersions
s {$sel:name:PutManagedRuleSetVersions' :: Text
name = Text
a} :: PutManagedRuleSetVersions)
putManagedRuleSetVersions_scope :: Lens.Lens' PutManagedRuleSetVersions Scope
putManagedRuleSetVersions_scope :: Lens' PutManagedRuleSetVersions Scope
putManagedRuleSetVersions_scope = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersions' {Scope
scope :: Scope
$sel:scope:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Scope
scope} -> Scope
scope) (\s :: PutManagedRuleSetVersions
s@PutManagedRuleSetVersions' {} Scope
a -> PutManagedRuleSetVersions
s {$sel:scope:PutManagedRuleSetVersions' :: Scope
scope = Scope
a} :: PutManagedRuleSetVersions)
putManagedRuleSetVersions_id :: Lens.Lens' PutManagedRuleSetVersions Prelude.Text
putManagedRuleSetVersions_id :: Lens' PutManagedRuleSetVersions Text
putManagedRuleSetVersions_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersions' {Text
id :: Text
$sel:id:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
id} -> Text
id) (\s :: PutManagedRuleSetVersions
s@PutManagedRuleSetVersions' {} Text
a -> PutManagedRuleSetVersions
s {$sel:id:PutManagedRuleSetVersions' :: Text
id = Text
a} :: PutManagedRuleSetVersions)
putManagedRuleSetVersions_lockToken :: Lens.Lens' PutManagedRuleSetVersions Prelude.Text
putManagedRuleSetVersions_lockToken :: Lens' PutManagedRuleSetVersions Text
putManagedRuleSetVersions_lockToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersions' {Text
lockToken :: Text
$sel:lockToken:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
lockToken} -> Text
lockToken) (\s :: PutManagedRuleSetVersions
s@PutManagedRuleSetVersions' {} Text
a -> PutManagedRuleSetVersions
s {$sel:lockToken:PutManagedRuleSetVersions' :: Text
lockToken = Text
a} :: PutManagedRuleSetVersions)
instance Core.AWSRequest PutManagedRuleSetVersions where
type
AWSResponse PutManagedRuleSetVersions =
PutManagedRuleSetVersionsResponse
request :: (Service -> Service)
-> PutManagedRuleSetVersions -> Request PutManagedRuleSetVersions
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 PutManagedRuleSetVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutManagedRuleSetVersions)))
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 -> Int -> PutManagedRuleSetVersionsResponse
PutManagedRuleSetVersionsResponse'
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
"NextLockToken")
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 PutManagedRuleSetVersions where
hashWithSalt :: Int -> PutManagedRuleSetVersions -> Int
hashWithSalt Int
_salt PutManagedRuleSetVersions' {Maybe Text
Maybe (HashMap Text VersionToPublish)
Text
Scope
lockToken :: Text
id :: Text
scope :: Scope
name :: Text
versionsToPublish :: Maybe (HashMap Text VersionToPublish)
recommendedVersion :: Maybe Text
$sel:lockToken:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:id:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:scope:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Scope
$sel:name:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:versionsToPublish:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe (HashMap Text VersionToPublish)
$sel:recommendedVersion:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recommendedVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text VersionToPublish)
versionsToPublish
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Scope
scope
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
lockToken
instance Prelude.NFData PutManagedRuleSetVersions where
rnf :: PutManagedRuleSetVersions -> ()
rnf PutManagedRuleSetVersions' {Maybe Text
Maybe (HashMap Text VersionToPublish)
Text
Scope
lockToken :: Text
id :: Text
scope :: Scope
name :: Text
versionsToPublish :: Maybe (HashMap Text VersionToPublish)
recommendedVersion :: Maybe Text
$sel:lockToken:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:id:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:scope:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Scope
$sel:name:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:versionsToPublish:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe (HashMap Text VersionToPublish)
$sel:recommendedVersion:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommendedVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text VersionToPublish)
versionsToPublish
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Scope
scope
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
lockToken
instance Data.ToHeaders PutManagedRuleSetVersions where
toHeaders :: PutManagedRuleSetVersions -> 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
"AWSWAF_20190729.PutManagedRuleSetVersions" ::
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 PutManagedRuleSetVersions where
toJSON :: PutManagedRuleSetVersions -> Value
toJSON PutManagedRuleSetVersions' {Maybe Text
Maybe (HashMap Text VersionToPublish)
Text
Scope
lockToken :: Text
id :: Text
scope :: Scope
name :: Text
versionsToPublish :: Maybe (HashMap Text VersionToPublish)
recommendedVersion :: Maybe Text
$sel:lockToken:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:id:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:scope:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Scope
$sel:name:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Text
$sel:versionsToPublish:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe (HashMap Text VersionToPublish)
$sel:recommendedVersion:PutManagedRuleSetVersions' :: PutManagedRuleSetVersions -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"RecommendedVersion" 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
recommendedVersion,
(Key
"VersionsToPublish" 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 (HashMap Text VersionToPublish)
versionsToPublish,
forall a. a -> Maybe a
Prelude.Just (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name),
forall a. a -> Maybe a
Prelude.Just (Key
"Scope" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Scope
scope),
forall a. a -> Maybe a
Prelude.Just (Key
"Id" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
id),
forall a. a -> Maybe a
Prelude.Just (Key
"LockToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
lockToken)
]
)
instance Data.ToPath PutManagedRuleSetVersions where
toPath :: PutManagedRuleSetVersions -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery PutManagedRuleSetVersions where
toQuery :: PutManagedRuleSetVersions -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data PutManagedRuleSetVersionsResponse = PutManagedRuleSetVersionsResponse'
{
PutManagedRuleSetVersionsResponse -> Maybe Text
nextLockToken :: Prelude.Maybe Prelude.Text,
PutManagedRuleSetVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutManagedRuleSetVersionsResponse
-> PutManagedRuleSetVersionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutManagedRuleSetVersionsResponse
-> PutManagedRuleSetVersionsResponse -> Bool
$c/= :: PutManagedRuleSetVersionsResponse
-> PutManagedRuleSetVersionsResponse -> Bool
== :: PutManagedRuleSetVersionsResponse
-> PutManagedRuleSetVersionsResponse -> Bool
$c== :: PutManagedRuleSetVersionsResponse
-> PutManagedRuleSetVersionsResponse -> Bool
Prelude.Eq, ReadPrec [PutManagedRuleSetVersionsResponse]
ReadPrec PutManagedRuleSetVersionsResponse
Int -> ReadS PutManagedRuleSetVersionsResponse
ReadS [PutManagedRuleSetVersionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutManagedRuleSetVersionsResponse]
$creadListPrec :: ReadPrec [PutManagedRuleSetVersionsResponse]
readPrec :: ReadPrec PutManagedRuleSetVersionsResponse
$creadPrec :: ReadPrec PutManagedRuleSetVersionsResponse
readList :: ReadS [PutManagedRuleSetVersionsResponse]
$creadList :: ReadS [PutManagedRuleSetVersionsResponse]
readsPrec :: Int -> ReadS PutManagedRuleSetVersionsResponse
$creadsPrec :: Int -> ReadS PutManagedRuleSetVersionsResponse
Prelude.Read, Int -> PutManagedRuleSetVersionsResponse -> ShowS
[PutManagedRuleSetVersionsResponse] -> ShowS
PutManagedRuleSetVersionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutManagedRuleSetVersionsResponse] -> ShowS
$cshowList :: [PutManagedRuleSetVersionsResponse] -> ShowS
show :: PutManagedRuleSetVersionsResponse -> String
$cshow :: PutManagedRuleSetVersionsResponse -> String
showsPrec :: Int -> PutManagedRuleSetVersionsResponse -> ShowS
$cshowsPrec :: Int -> PutManagedRuleSetVersionsResponse -> ShowS
Prelude.Show, forall x.
Rep PutManagedRuleSetVersionsResponse x
-> PutManagedRuleSetVersionsResponse
forall x.
PutManagedRuleSetVersionsResponse
-> Rep PutManagedRuleSetVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutManagedRuleSetVersionsResponse x
-> PutManagedRuleSetVersionsResponse
$cfrom :: forall x.
PutManagedRuleSetVersionsResponse
-> Rep PutManagedRuleSetVersionsResponse x
Prelude.Generic)
newPutManagedRuleSetVersionsResponse ::
Prelude.Int ->
PutManagedRuleSetVersionsResponse
newPutManagedRuleSetVersionsResponse :: Int -> PutManagedRuleSetVersionsResponse
newPutManagedRuleSetVersionsResponse Int
pHttpStatus_ =
PutManagedRuleSetVersionsResponse'
{ $sel:nextLockToken:PutManagedRuleSetVersionsResponse' :: Maybe Text
nextLockToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutManagedRuleSetVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putManagedRuleSetVersionsResponse_nextLockToken :: Lens.Lens' PutManagedRuleSetVersionsResponse (Prelude.Maybe Prelude.Text)
putManagedRuleSetVersionsResponse_nextLockToken :: Lens' PutManagedRuleSetVersionsResponse (Maybe Text)
putManagedRuleSetVersionsResponse_nextLockToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersionsResponse' {Maybe Text
nextLockToken :: Maybe Text
$sel:nextLockToken:PutManagedRuleSetVersionsResponse' :: PutManagedRuleSetVersionsResponse -> Maybe Text
nextLockToken} -> Maybe Text
nextLockToken) (\s :: PutManagedRuleSetVersionsResponse
s@PutManagedRuleSetVersionsResponse' {} Maybe Text
a -> PutManagedRuleSetVersionsResponse
s {$sel:nextLockToken:PutManagedRuleSetVersionsResponse' :: Maybe Text
nextLockToken = Maybe Text
a} :: PutManagedRuleSetVersionsResponse)
putManagedRuleSetVersionsResponse_httpStatus :: Lens.Lens' PutManagedRuleSetVersionsResponse Prelude.Int
putManagedRuleSetVersionsResponse_httpStatus :: Lens' PutManagedRuleSetVersionsResponse Int
putManagedRuleSetVersionsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutManagedRuleSetVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutManagedRuleSetVersionsResponse' :: PutManagedRuleSetVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutManagedRuleSetVersionsResponse
s@PutManagedRuleSetVersionsResponse' {} Int
a -> PutManagedRuleSetVersionsResponse
s {$sel:httpStatus:PutManagedRuleSetVersionsResponse' :: Int
httpStatus = Int
a} :: PutManagedRuleSetVersionsResponse)
instance
Prelude.NFData
PutManagedRuleSetVersionsResponse
where
rnf :: PutManagedRuleSetVersionsResponse -> ()
rnf PutManagedRuleSetVersionsResponse' {Int
Maybe Text
httpStatus :: Int
nextLockToken :: Maybe Text
$sel:httpStatus:PutManagedRuleSetVersionsResponse' :: PutManagedRuleSetVersionsResponse -> Int
$sel:nextLockToken:PutManagedRuleSetVersionsResponse' :: PutManagedRuleSetVersionsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextLockToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus