{-# 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.GuardDuty.CreateIPSet
(
CreateIPSet (..),
newCreateIPSet,
createIPSet_clientToken,
createIPSet_tags,
createIPSet_detectorId,
createIPSet_name,
createIPSet_format,
createIPSet_location,
createIPSet_activate,
CreateIPSetResponse (..),
newCreateIPSetResponse,
createIPSetResponse_httpStatus,
createIPSetResponse_ipSetId,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GuardDuty.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 CreateIPSet = CreateIPSet'
{
CreateIPSet -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateIPSet -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateIPSet -> Text
detectorId :: Prelude.Text,
CreateIPSet -> Text
name :: Prelude.Text,
CreateIPSet -> IpSetFormat
format :: IpSetFormat,
CreateIPSet -> Text
location :: Prelude.Text,
CreateIPSet -> Bool
activate :: Prelude.Bool
}
deriving (CreateIPSet -> CreateIPSet -> Bool
(CreateIPSet -> CreateIPSet -> Bool)
-> (CreateIPSet -> CreateIPSet -> Bool) -> Eq CreateIPSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateIPSet -> CreateIPSet -> Bool
$c/= :: CreateIPSet -> CreateIPSet -> Bool
== :: CreateIPSet -> CreateIPSet -> Bool
$c== :: CreateIPSet -> CreateIPSet -> Bool
Prelude.Eq, ReadPrec [CreateIPSet]
ReadPrec CreateIPSet
Int -> ReadS CreateIPSet
ReadS [CreateIPSet]
(Int -> ReadS CreateIPSet)
-> ReadS [CreateIPSet]
-> ReadPrec CreateIPSet
-> ReadPrec [CreateIPSet]
-> Read CreateIPSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateIPSet]
$creadListPrec :: ReadPrec [CreateIPSet]
readPrec :: ReadPrec CreateIPSet
$creadPrec :: ReadPrec CreateIPSet
readList :: ReadS [CreateIPSet]
$creadList :: ReadS [CreateIPSet]
readsPrec :: Int -> ReadS CreateIPSet
$creadsPrec :: Int -> ReadS CreateIPSet
Prelude.Read, Int -> CreateIPSet -> ShowS
[CreateIPSet] -> ShowS
CreateIPSet -> String
(Int -> CreateIPSet -> ShowS)
-> (CreateIPSet -> String)
-> ([CreateIPSet] -> ShowS)
-> Show CreateIPSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateIPSet] -> ShowS
$cshowList :: [CreateIPSet] -> ShowS
show :: CreateIPSet -> String
$cshow :: CreateIPSet -> String
showsPrec :: Int -> CreateIPSet -> ShowS
$cshowsPrec :: Int -> CreateIPSet -> ShowS
Prelude.Show, (forall x. CreateIPSet -> Rep CreateIPSet x)
-> (forall x. Rep CreateIPSet x -> CreateIPSet)
-> Generic CreateIPSet
forall x. Rep CreateIPSet x -> CreateIPSet
forall x. CreateIPSet -> Rep CreateIPSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateIPSet x -> CreateIPSet
$cfrom :: forall x. CreateIPSet -> Rep CreateIPSet x
Prelude.Generic)
newCreateIPSet ::
Prelude.Text ->
Prelude.Text ->
IpSetFormat ->
Prelude.Text ->
Prelude.Bool ->
CreateIPSet
newCreateIPSet :: Text -> Text -> IpSetFormat -> Text -> Bool -> CreateIPSet
newCreateIPSet
Text
pDetectorId_
Text
pName_
IpSetFormat
pFormat_
Text
pLocation_
Bool
pActivate_ =
CreateIPSet' :: Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> IpSetFormat
-> Text
-> Bool
-> CreateIPSet
CreateIPSet'
{ $sel:clientToken:CreateIPSet' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateIPSet' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:detectorId:CreateIPSet' :: Text
detectorId = Text
pDetectorId_,
$sel:name:CreateIPSet' :: Text
name = Text
pName_,
$sel:format:CreateIPSet' :: IpSetFormat
format = IpSetFormat
pFormat_,
$sel:location:CreateIPSet' :: Text
location = Text
pLocation_,
$sel:activate:CreateIPSet' :: Bool
activate = Bool
pActivate_
}
createIPSet_clientToken :: Lens.Lens' CreateIPSet (Prelude.Maybe Prelude.Text)
createIPSet_clientToken :: (Maybe Text -> f (Maybe Text)) -> CreateIPSet -> f CreateIPSet
createIPSet_clientToken = (CreateIPSet -> Maybe Text)
-> (CreateIPSet -> Maybe Text -> CreateIPSet)
-> Lens CreateIPSet CreateIPSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateIPSet' :: CreateIPSet -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateIPSet
s@CreateIPSet' {} Maybe Text
a -> CreateIPSet
s {$sel:clientToken:CreateIPSet' :: Maybe Text
clientToken = Maybe Text
a} :: CreateIPSet)
createIPSet_tags :: Lens.Lens' CreateIPSet (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createIPSet_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateIPSet -> f CreateIPSet
createIPSet_tags = (CreateIPSet -> Maybe (HashMap Text Text))
-> (CreateIPSet -> Maybe (HashMap Text Text) -> CreateIPSet)
-> Lens
CreateIPSet
CreateIPSet
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateIPSet' :: CreateIPSet -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateIPSet
s@CreateIPSet' {} Maybe (HashMap Text Text)
a -> CreateIPSet
s {$sel:tags:CreateIPSet' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateIPSet) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateIPSet -> f CreateIPSet)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateIPSet
-> f CreateIPSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createIPSet_detectorId :: Lens.Lens' CreateIPSet Prelude.Text
createIPSet_detectorId :: (Text -> f Text) -> CreateIPSet -> f CreateIPSet
createIPSet_detectorId = (CreateIPSet -> Text)
-> (CreateIPSet -> Text -> CreateIPSet)
-> Lens CreateIPSet CreateIPSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {Text
detectorId :: Text
$sel:detectorId:CreateIPSet' :: CreateIPSet -> Text
detectorId} -> Text
detectorId) (\s :: CreateIPSet
s@CreateIPSet' {} Text
a -> CreateIPSet
s {$sel:detectorId:CreateIPSet' :: Text
detectorId = Text
a} :: CreateIPSet)
createIPSet_name :: Lens.Lens' CreateIPSet Prelude.Text
createIPSet_name :: (Text -> f Text) -> CreateIPSet -> f CreateIPSet
createIPSet_name = (CreateIPSet -> Text)
-> (CreateIPSet -> Text -> CreateIPSet)
-> Lens CreateIPSet CreateIPSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {Text
name :: Text
$sel:name:CreateIPSet' :: CreateIPSet -> Text
name} -> Text
name) (\s :: CreateIPSet
s@CreateIPSet' {} Text
a -> CreateIPSet
s {$sel:name:CreateIPSet' :: Text
name = Text
a} :: CreateIPSet)
createIPSet_format :: Lens.Lens' CreateIPSet IpSetFormat
createIPSet_format :: (IpSetFormat -> f IpSetFormat) -> CreateIPSet -> f CreateIPSet
createIPSet_format = (CreateIPSet -> IpSetFormat)
-> (CreateIPSet -> IpSetFormat -> CreateIPSet)
-> Lens CreateIPSet CreateIPSet IpSetFormat IpSetFormat
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {IpSetFormat
format :: IpSetFormat
$sel:format:CreateIPSet' :: CreateIPSet -> IpSetFormat
format} -> IpSetFormat
format) (\s :: CreateIPSet
s@CreateIPSet' {} IpSetFormat
a -> CreateIPSet
s {$sel:format:CreateIPSet' :: IpSetFormat
format = IpSetFormat
a} :: CreateIPSet)
createIPSet_location :: Lens.Lens' CreateIPSet Prelude.Text
createIPSet_location :: (Text -> f Text) -> CreateIPSet -> f CreateIPSet
createIPSet_location = (CreateIPSet -> Text)
-> (CreateIPSet -> Text -> CreateIPSet)
-> Lens CreateIPSet CreateIPSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {Text
location :: Text
$sel:location:CreateIPSet' :: CreateIPSet -> Text
location} -> Text
location) (\s :: CreateIPSet
s@CreateIPSet' {} Text
a -> CreateIPSet
s {$sel:location:CreateIPSet' :: Text
location = Text
a} :: CreateIPSet)
createIPSet_activate :: Lens.Lens' CreateIPSet Prelude.Bool
createIPSet_activate :: (Bool -> f Bool) -> CreateIPSet -> f CreateIPSet
createIPSet_activate = (CreateIPSet -> Bool)
-> (CreateIPSet -> Bool -> CreateIPSet)
-> Lens CreateIPSet CreateIPSet Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSet' {Bool
activate :: Bool
$sel:activate:CreateIPSet' :: CreateIPSet -> Bool
activate} -> Bool
activate) (\s :: CreateIPSet
s@CreateIPSet' {} Bool
a -> CreateIPSet
s {$sel:activate:CreateIPSet' :: Bool
activate = Bool
a} :: CreateIPSet)
instance Core.AWSRequest CreateIPSet where
type AWSResponse CreateIPSet = CreateIPSetResponse
request :: CreateIPSet -> Request CreateIPSet
request = Service -> CreateIPSet -> Request CreateIPSet
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateIPSet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateIPSet)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateIPSet))
-> Logger
-> Service
-> Proxy CreateIPSet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateIPSet)))
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 ->
Int -> Text -> CreateIPSetResponse
CreateIPSetResponse'
(Int -> Text -> CreateIPSetResponse)
-> Either String Int -> Either String (Text -> CreateIPSetResponse)
forall (f :: * -> *) a b. Functor 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))
Either String (Text -> CreateIPSetResponse)
-> Either String Text -> Either String CreateIPSetResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ipSetId")
)
instance Prelude.Hashable CreateIPSet
instance Prelude.NFData CreateIPSet
instance Core.ToHeaders CreateIPSet where
toHeaders :: CreateIPSet -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateIPSet -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 CreateIPSet where
toJSON :: CreateIPSet -> Value
toJSON CreateIPSet' {Bool
Maybe Text
Maybe (HashMap Text Text)
Text
IpSetFormat
activate :: Bool
location :: Text
format :: IpSetFormat
name :: Text
detectorId :: Text
tags :: Maybe (HashMap Text Text)
clientToken :: Maybe Text
$sel:activate:CreateIPSet' :: CreateIPSet -> Bool
$sel:location:CreateIPSet' :: CreateIPSet -> Text
$sel:format:CreateIPSet' :: CreateIPSet -> IpSetFormat
$sel:name:CreateIPSet' :: CreateIPSet -> Text
$sel:detectorId:CreateIPSet' :: CreateIPSet -> Text
$sel:tags:CreateIPSet' :: CreateIPSet -> Maybe (HashMap Text Text)
$sel:clientToken:CreateIPSet' :: CreateIPSet -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" 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
clientToken,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"format" Text -> IpSetFormat -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= IpSetFormat
format),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"location" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
location),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"activate" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
activate)
]
)
instance Core.ToPath CreateIPSet where
toPath :: CreateIPSet -> ByteString
toPath CreateIPSet' {Bool
Maybe Text
Maybe (HashMap Text Text)
Text
IpSetFormat
activate :: Bool
location :: Text
format :: IpSetFormat
name :: Text
detectorId :: Text
tags :: Maybe (HashMap Text Text)
clientToken :: Maybe Text
$sel:activate:CreateIPSet' :: CreateIPSet -> Bool
$sel:location:CreateIPSet' :: CreateIPSet -> Text
$sel:format:CreateIPSet' :: CreateIPSet -> IpSetFormat
$sel:name:CreateIPSet' :: CreateIPSet -> Text
$sel:detectorId:CreateIPSet' :: CreateIPSet -> Text
$sel:tags:CreateIPSet' :: CreateIPSet -> Maybe (HashMap Text Text)
$sel:clientToken:CreateIPSet' :: CreateIPSet -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/detector/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
detectorId, ByteString
"/ipset"]
instance Core.ToQuery CreateIPSet where
toQuery :: CreateIPSet -> QueryString
toQuery = QueryString -> CreateIPSet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateIPSetResponse = CreateIPSetResponse'
{
CreateIPSetResponse -> Int
httpStatus :: Prelude.Int,
CreateIPSetResponse -> Text
ipSetId :: Prelude.Text
}
deriving (CreateIPSetResponse -> CreateIPSetResponse -> Bool
(CreateIPSetResponse -> CreateIPSetResponse -> Bool)
-> (CreateIPSetResponse -> CreateIPSetResponse -> Bool)
-> Eq CreateIPSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateIPSetResponse -> CreateIPSetResponse -> Bool
$c/= :: CreateIPSetResponse -> CreateIPSetResponse -> Bool
== :: CreateIPSetResponse -> CreateIPSetResponse -> Bool
$c== :: CreateIPSetResponse -> CreateIPSetResponse -> Bool
Prelude.Eq, ReadPrec [CreateIPSetResponse]
ReadPrec CreateIPSetResponse
Int -> ReadS CreateIPSetResponse
ReadS [CreateIPSetResponse]
(Int -> ReadS CreateIPSetResponse)
-> ReadS [CreateIPSetResponse]
-> ReadPrec CreateIPSetResponse
-> ReadPrec [CreateIPSetResponse]
-> Read CreateIPSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateIPSetResponse]
$creadListPrec :: ReadPrec [CreateIPSetResponse]
readPrec :: ReadPrec CreateIPSetResponse
$creadPrec :: ReadPrec CreateIPSetResponse
readList :: ReadS [CreateIPSetResponse]
$creadList :: ReadS [CreateIPSetResponse]
readsPrec :: Int -> ReadS CreateIPSetResponse
$creadsPrec :: Int -> ReadS CreateIPSetResponse
Prelude.Read, Int -> CreateIPSetResponse -> ShowS
[CreateIPSetResponse] -> ShowS
CreateIPSetResponse -> String
(Int -> CreateIPSetResponse -> ShowS)
-> (CreateIPSetResponse -> String)
-> ([CreateIPSetResponse] -> ShowS)
-> Show CreateIPSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateIPSetResponse] -> ShowS
$cshowList :: [CreateIPSetResponse] -> ShowS
show :: CreateIPSetResponse -> String
$cshow :: CreateIPSetResponse -> String
showsPrec :: Int -> CreateIPSetResponse -> ShowS
$cshowsPrec :: Int -> CreateIPSetResponse -> ShowS
Prelude.Show, (forall x. CreateIPSetResponse -> Rep CreateIPSetResponse x)
-> (forall x. Rep CreateIPSetResponse x -> CreateIPSetResponse)
-> Generic CreateIPSetResponse
forall x. Rep CreateIPSetResponse x -> CreateIPSetResponse
forall x. CreateIPSetResponse -> Rep CreateIPSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateIPSetResponse x -> CreateIPSetResponse
$cfrom :: forall x. CreateIPSetResponse -> Rep CreateIPSetResponse x
Prelude.Generic)
newCreateIPSetResponse ::
Prelude.Int ->
Prelude.Text ->
CreateIPSetResponse
newCreateIPSetResponse :: Int -> Text -> CreateIPSetResponse
newCreateIPSetResponse Int
pHttpStatus_ Text
pIpSetId_ =
CreateIPSetResponse' :: Int -> Text -> CreateIPSetResponse
CreateIPSetResponse'
{ $sel:httpStatus:CreateIPSetResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:ipSetId:CreateIPSetResponse' :: Text
ipSetId = Text
pIpSetId_
}
createIPSetResponse_httpStatus :: Lens.Lens' CreateIPSetResponse Prelude.Int
createIPSetResponse_httpStatus :: (Int -> f Int) -> CreateIPSetResponse -> f CreateIPSetResponse
createIPSetResponse_httpStatus = (CreateIPSetResponse -> Int)
-> (CreateIPSetResponse -> Int -> CreateIPSetResponse)
-> Lens CreateIPSetResponse CreateIPSetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateIPSetResponse' :: CreateIPSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateIPSetResponse
s@CreateIPSetResponse' {} Int
a -> CreateIPSetResponse
s {$sel:httpStatus:CreateIPSetResponse' :: Int
httpStatus = Int
a} :: CreateIPSetResponse)
createIPSetResponse_ipSetId :: Lens.Lens' CreateIPSetResponse Prelude.Text
createIPSetResponse_ipSetId :: (Text -> f Text) -> CreateIPSetResponse -> f CreateIPSetResponse
createIPSetResponse_ipSetId = (CreateIPSetResponse -> Text)
-> (CreateIPSetResponse -> Text -> CreateIPSetResponse)
-> Lens CreateIPSetResponse CreateIPSetResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateIPSetResponse' {Text
ipSetId :: Text
$sel:ipSetId:CreateIPSetResponse' :: CreateIPSetResponse -> Text
ipSetId} -> Text
ipSetId) (\s :: CreateIPSetResponse
s@CreateIPSetResponse' {} Text
a -> CreateIPSetResponse
s {$sel:ipSetId:CreateIPSetResponse' :: Text
ipSetId = Text
a} :: CreateIPSetResponse)
instance Prelude.NFData CreateIPSetResponse