{-# 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.Route53Resolver.ImportFirewallDomains
(
ImportFirewallDomains (..),
newImportFirewallDomains,
importFirewallDomains_firewallDomainListId,
importFirewallDomains_operation,
importFirewallDomains_domainFileUrl,
ImportFirewallDomainsResponse (..),
newImportFirewallDomainsResponse,
importFirewallDomainsResponse_status,
importFirewallDomainsResponse_statusMessage,
importFirewallDomainsResponse_name,
importFirewallDomainsResponse_id,
importFirewallDomainsResponse_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.Route53Resolver.Types
data ImportFirewallDomains = ImportFirewallDomains'
{
ImportFirewallDomains -> Text
firewallDomainListId :: Prelude.Text,
ImportFirewallDomains -> FirewallDomainImportOperation
operation :: FirewallDomainImportOperation,
ImportFirewallDomains -> Text
domainFileUrl :: Prelude.Text
}
deriving (ImportFirewallDomains -> ImportFirewallDomains -> Bool
(ImportFirewallDomains -> ImportFirewallDomains -> Bool)
-> (ImportFirewallDomains -> ImportFirewallDomains -> Bool)
-> Eq ImportFirewallDomains
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportFirewallDomains -> ImportFirewallDomains -> Bool
$c/= :: ImportFirewallDomains -> ImportFirewallDomains -> Bool
== :: ImportFirewallDomains -> ImportFirewallDomains -> Bool
$c== :: ImportFirewallDomains -> ImportFirewallDomains -> Bool
Prelude.Eq, ReadPrec [ImportFirewallDomains]
ReadPrec ImportFirewallDomains
Int -> ReadS ImportFirewallDomains
ReadS [ImportFirewallDomains]
(Int -> ReadS ImportFirewallDomains)
-> ReadS [ImportFirewallDomains]
-> ReadPrec ImportFirewallDomains
-> ReadPrec [ImportFirewallDomains]
-> Read ImportFirewallDomains
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportFirewallDomains]
$creadListPrec :: ReadPrec [ImportFirewallDomains]
readPrec :: ReadPrec ImportFirewallDomains
$creadPrec :: ReadPrec ImportFirewallDomains
readList :: ReadS [ImportFirewallDomains]
$creadList :: ReadS [ImportFirewallDomains]
readsPrec :: Int -> ReadS ImportFirewallDomains
$creadsPrec :: Int -> ReadS ImportFirewallDomains
Prelude.Read, Int -> ImportFirewallDomains -> ShowS
[ImportFirewallDomains] -> ShowS
ImportFirewallDomains -> String
(Int -> ImportFirewallDomains -> ShowS)
-> (ImportFirewallDomains -> String)
-> ([ImportFirewallDomains] -> ShowS)
-> Show ImportFirewallDomains
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportFirewallDomains] -> ShowS
$cshowList :: [ImportFirewallDomains] -> ShowS
show :: ImportFirewallDomains -> String
$cshow :: ImportFirewallDomains -> String
showsPrec :: Int -> ImportFirewallDomains -> ShowS
$cshowsPrec :: Int -> ImportFirewallDomains -> ShowS
Prelude.Show, (forall x. ImportFirewallDomains -> Rep ImportFirewallDomains x)
-> (forall x. Rep ImportFirewallDomains x -> ImportFirewallDomains)
-> Generic ImportFirewallDomains
forall x. Rep ImportFirewallDomains x -> ImportFirewallDomains
forall x. ImportFirewallDomains -> Rep ImportFirewallDomains x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImportFirewallDomains x -> ImportFirewallDomains
$cfrom :: forall x. ImportFirewallDomains -> Rep ImportFirewallDomains x
Prelude.Generic)
newImportFirewallDomains ::
Prelude.Text ->
FirewallDomainImportOperation ->
Prelude.Text ->
ImportFirewallDomains
newImportFirewallDomains :: Text
-> FirewallDomainImportOperation -> Text -> ImportFirewallDomains
newImportFirewallDomains
Text
pFirewallDomainListId_
FirewallDomainImportOperation
pOperation_
Text
pDomainFileUrl_ =
ImportFirewallDomains' :: Text
-> FirewallDomainImportOperation -> Text -> ImportFirewallDomains
ImportFirewallDomains'
{ $sel:firewallDomainListId:ImportFirewallDomains' :: Text
firewallDomainListId =
Text
pFirewallDomainListId_,
$sel:operation:ImportFirewallDomains' :: FirewallDomainImportOperation
operation = FirewallDomainImportOperation
pOperation_,
$sel:domainFileUrl:ImportFirewallDomains' :: Text
domainFileUrl = Text
pDomainFileUrl_
}
importFirewallDomains_firewallDomainListId :: Lens.Lens' ImportFirewallDomains Prelude.Text
importFirewallDomains_firewallDomainListId :: (Text -> f Text)
-> ImportFirewallDomains -> f ImportFirewallDomains
importFirewallDomains_firewallDomainListId = (ImportFirewallDomains -> Text)
-> (ImportFirewallDomains -> Text -> ImportFirewallDomains)
-> Lens ImportFirewallDomains ImportFirewallDomains Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomains' {Text
firewallDomainListId :: Text
$sel:firewallDomainListId:ImportFirewallDomains' :: ImportFirewallDomains -> Text
firewallDomainListId} -> Text
firewallDomainListId) (\s :: ImportFirewallDomains
s@ImportFirewallDomains' {} Text
a -> ImportFirewallDomains
s {$sel:firewallDomainListId:ImportFirewallDomains' :: Text
firewallDomainListId = Text
a} :: ImportFirewallDomains)
importFirewallDomains_operation :: Lens.Lens' ImportFirewallDomains FirewallDomainImportOperation
importFirewallDomains_operation :: (FirewallDomainImportOperation -> f FirewallDomainImportOperation)
-> ImportFirewallDomains -> f ImportFirewallDomains
importFirewallDomains_operation = (ImportFirewallDomains -> FirewallDomainImportOperation)
-> (ImportFirewallDomains
-> FirewallDomainImportOperation -> ImportFirewallDomains)
-> Lens
ImportFirewallDomains
ImportFirewallDomains
FirewallDomainImportOperation
FirewallDomainImportOperation
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomains' {FirewallDomainImportOperation
operation :: FirewallDomainImportOperation
$sel:operation:ImportFirewallDomains' :: ImportFirewallDomains -> FirewallDomainImportOperation
operation} -> FirewallDomainImportOperation
operation) (\s :: ImportFirewallDomains
s@ImportFirewallDomains' {} FirewallDomainImportOperation
a -> ImportFirewallDomains
s {$sel:operation:ImportFirewallDomains' :: FirewallDomainImportOperation
operation = FirewallDomainImportOperation
a} :: ImportFirewallDomains)
importFirewallDomains_domainFileUrl :: Lens.Lens' ImportFirewallDomains Prelude.Text
importFirewallDomains_domainFileUrl :: (Text -> f Text)
-> ImportFirewallDomains -> f ImportFirewallDomains
importFirewallDomains_domainFileUrl = (ImportFirewallDomains -> Text)
-> (ImportFirewallDomains -> Text -> ImportFirewallDomains)
-> Lens ImportFirewallDomains ImportFirewallDomains Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomains' {Text
domainFileUrl :: Text
$sel:domainFileUrl:ImportFirewallDomains' :: ImportFirewallDomains -> Text
domainFileUrl} -> Text
domainFileUrl) (\s :: ImportFirewallDomains
s@ImportFirewallDomains' {} Text
a -> ImportFirewallDomains
s {$sel:domainFileUrl:ImportFirewallDomains' :: Text
domainFileUrl = Text
a} :: ImportFirewallDomains)
instance Core.AWSRequest ImportFirewallDomains where
type
AWSResponse ImportFirewallDomains =
ImportFirewallDomainsResponse
request :: ImportFirewallDomains -> Request ImportFirewallDomains
request = Service -> ImportFirewallDomains -> Request ImportFirewallDomains
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ImportFirewallDomains
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ImportFirewallDomains)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ImportFirewallDomains))
-> Logger
-> Service
-> Proxy ImportFirewallDomains
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ImportFirewallDomains)))
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 FirewallDomainListStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ImportFirewallDomainsResponse
ImportFirewallDomainsResponse'
(Maybe FirewallDomainListStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ImportFirewallDomainsResponse)
-> Either String (Maybe FirewallDomainListStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ImportFirewallDomainsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe FirewallDomainListStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ImportFirewallDomainsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> ImportFirewallDomainsResponse)
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
"StatusMessage")
Either
String
(Maybe Text -> Maybe Text -> Int -> ImportFirewallDomainsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> ImportFirewallDomainsResponse)
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
"Name")
Either String (Maybe Text -> Int -> ImportFirewallDomainsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ImportFirewallDomainsResponse)
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
"Id")
Either String (Int -> ImportFirewallDomainsResponse)
-> Either String Int -> Either String ImportFirewallDomainsResponse
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 ImportFirewallDomains
instance Prelude.NFData ImportFirewallDomains
instance Core.ToHeaders ImportFirewallDomains where
toHeaders :: ImportFirewallDomains -> ResponseHeaders
toHeaders =
ResponseHeaders -> ImportFirewallDomains -> 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
"Route53Resolver.ImportFirewallDomains" ::
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 ImportFirewallDomains where
toJSON :: ImportFirewallDomains -> Value
toJSON ImportFirewallDomains' {Text
FirewallDomainImportOperation
domainFileUrl :: Text
operation :: FirewallDomainImportOperation
firewallDomainListId :: Text
$sel:domainFileUrl:ImportFirewallDomains' :: ImportFirewallDomains -> Text
$sel:operation:ImportFirewallDomains' :: ImportFirewallDomains -> FirewallDomainImportOperation
$sel:firewallDomainListId:ImportFirewallDomains' :: ImportFirewallDomains -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"FirewallDomainListId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
firewallDomainListId
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Operation" Text -> FirewallDomainImportOperation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= FirewallDomainImportOperation
operation),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"DomainFileUrl" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainFileUrl)
]
)
instance Core.ToPath ImportFirewallDomains where
toPath :: ImportFirewallDomains -> ByteString
toPath = ByteString -> ImportFirewallDomains -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ImportFirewallDomains where
toQuery :: ImportFirewallDomains -> QueryString
toQuery = QueryString -> ImportFirewallDomains -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ImportFirewallDomainsResponse = ImportFirewallDomainsResponse'
{ ImportFirewallDomainsResponse -> Maybe FirewallDomainListStatus
status :: Prelude.Maybe FirewallDomainListStatus,
ImportFirewallDomainsResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
ImportFirewallDomainsResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ImportFirewallDomainsResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
ImportFirewallDomainsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool
(ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool)
-> (ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool)
-> Eq ImportFirewallDomainsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool
$c/= :: ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool
== :: ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool
$c== :: ImportFirewallDomainsResponse
-> ImportFirewallDomainsResponse -> Bool
Prelude.Eq, ReadPrec [ImportFirewallDomainsResponse]
ReadPrec ImportFirewallDomainsResponse
Int -> ReadS ImportFirewallDomainsResponse
ReadS [ImportFirewallDomainsResponse]
(Int -> ReadS ImportFirewallDomainsResponse)
-> ReadS [ImportFirewallDomainsResponse]
-> ReadPrec ImportFirewallDomainsResponse
-> ReadPrec [ImportFirewallDomainsResponse]
-> Read ImportFirewallDomainsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportFirewallDomainsResponse]
$creadListPrec :: ReadPrec [ImportFirewallDomainsResponse]
readPrec :: ReadPrec ImportFirewallDomainsResponse
$creadPrec :: ReadPrec ImportFirewallDomainsResponse
readList :: ReadS [ImportFirewallDomainsResponse]
$creadList :: ReadS [ImportFirewallDomainsResponse]
readsPrec :: Int -> ReadS ImportFirewallDomainsResponse
$creadsPrec :: Int -> ReadS ImportFirewallDomainsResponse
Prelude.Read, Int -> ImportFirewallDomainsResponse -> ShowS
[ImportFirewallDomainsResponse] -> ShowS
ImportFirewallDomainsResponse -> String
(Int -> ImportFirewallDomainsResponse -> ShowS)
-> (ImportFirewallDomainsResponse -> String)
-> ([ImportFirewallDomainsResponse] -> ShowS)
-> Show ImportFirewallDomainsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportFirewallDomainsResponse] -> ShowS
$cshowList :: [ImportFirewallDomainsResponse] -> ShowS
show :: ImportFirewallDomainsResponse -> String
$cshow :: ImportFirewallDomainsResponse -> String
showsPrec :: Int -> ImportFirewallDomainsResponse -> ShowS
$cshowsPrec :: Int -> ImportFirewallDomainsResponse -> ShowS
Prelude.Show, (forall x.
ImportFirewallDomainsResponse
-> Rep ImportFirewallDomainsResponse x)
-> (forall x.
Rep ImportFirewallDomainsResponse x
-> ImportFirewallDomainsResponse)
-> Generic ImportFirewallDomainsResponse
forall x.
Rep ImportFirewallDomainsResponse x
-> ImportFirewallDomainsResponse
forall x.
ImportFirewallDomainsResponse
-> Rep ImportFirewallDomainsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportFirewallDomainsResponse x
-> ImportFirewallDomainsResponse
$cfrom :: forall x.
ImportFirewallDomainsResponse
-> Rep ImportFirewallDomainsResponse x
Prelude.Generic)
newImportFirewallDomainsResponse ::
Prelude.Int ->
ImportFirewallDomainsResponse
newImportFirewallDomainsResponse :: Int -> ImportFirewallDomainsResponse
newImportFirewallDomainsResponse Int
pHttpStatus_ =
ImportFirewallDomainsResponse' :: Maybe FirewallDomainListStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ImportFirewallDomainsResponse
ImportFirewallDomainsResponse'
{ $sel:status:ImportFirewallDomainsResponse' :: Maybe FirewallDomainListStatus
status =
Maybe FirewallDomainListStatus
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:ImportFirewallDomainsResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:ImportFirewallDomainsResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:ImportFirewallDomainsResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ImportFirewallDomainsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
importFirewallDomainsResponse_status :: Lens.Lens' ImportFirewallDomainsResponse (Prelude.Maybe FirewallDomainListStatus)
importFirewallDomainsResponse_status :: (Maybe FirewallDomainListStatus
-> f (Maybe FirewallDomainListStatus))
-> ImportFirewallDomainsResponse -> f ImportFirewallDomainsResponse
importFirewallDomainsResponse_status = (ImportFirewallDomainsResponse -> Maybe FirewallDomainListStatus)
-> (ImportFirewallDomainsResponse
-> Maybe FirewallDomainListStatus -> ImportFirewallDomainsResponse)
-> Lens
ImportFirewallDomainsResponse
ImportFirewallDomainsResponse
(Maybe FirewallDomainListStatus)
(Maybe FirewallDomainListStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomainsResponse' {Maybe FirewallDomainListStatus
status :: Maybe FirewallDomainListStatus
$sel:status:ImportFirewallDomainsResponse' :: ImportFirewallDomainsResponse -> Maybe FirewallDomainListStatus
status} -> Maybe FirewallDomainListStatus
status) (\s :: ImportFirewallDomainsResponse
s@ImportFirewallDomainsResponse' {} Maybe FirewallDomainListStatus
a -> ImportFirewallDomainsResponse
s {$sel:status:ImportFirewallDomainsResponse' :: Maybe FirewallDomainListStatus
status = Maybe FirewallDomainListStatus
a} :: ImportFirewallDomainsResponse)
importFirewallDomainsResponse_statusMessage :: Lens.Lens' ImportFirewallDomainsResponse (Prelude.Maybe Prelude.Text)
importFirewallDomainsResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> ImportFirewallDomainsResponse -> f ImportFirewallDomainsResponse
importFirewallDomainsResponse_statusMessage = (ImportFirewallDomainsResponse -> Maybe Text)
-> (ImportFirewallDomainsResponse
-> Maybe Text -> ImportFirewallDomainsResponse)
-> Lens
ImportFirewallDomainsResponse
ImportFirewallDomainsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomainsResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:ImportFirewallDomainsResponse' :: ImportFirewallDomainsResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: ImportFirewallDomainsResponse
s@ImportFirewallDomainsResponse' {} Maybe Text
a -> ImportFirewallDomainsResponse
s {$sel:statusMessage:ImportFirewallDomainsResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: ImportFirewallDomainsResponse)
importFirewallDomainsResponse_name :: Lens.Lens' ImportFirewallDomainsResponse (Prelude.Maybe Prelude.Text)
importFirewallDomainsResponse_name :: (Maybe Text -> f (Maybe Text))
-> ImportFirewallDomainsResponse -> f ImportFirewallDomainsResponse
importFirewallDomainsResponse_name = (ImportFirewallDomainsResponse -> Maybe Text)
-> (ImportFirewallDomainsResponse
-> Maybe Text -> ImportFirewallDomainsResponse)
-> Lens
ImportFirewallDomainsResponse
ImportFirewallDomainsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomainsResponse' {Maybe Text
name :: Maybe Text
$sel:name:ImportFirewallDomainsResponse' :: ImportFirewallDomainsResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: ImportFirewallDomainsResponse
s@ImportFirewallDomainsResponse' {} Maybe Text
a -> ImportFirewallDomainsResponse
s {$sel:name:ImportFirewallDomainsResponse' :: Maybe Text
name = Maybe Text
a} :: ImportFirewallDomainsResponse)
importFirewallDomainsResponse_id :: Lens.Lens' ImportFirewallDomainsResponse (Prelude.Maybe Prelude.Text)
importFirewallDomainsResponse_id :: (Maybe Text -> f (Maybe Text))
-> ImportFirewallDomainsResponse -> f ImportFirewallDomainsResponse
importFirewallDomainsResponse_id = (ImportFirewallDomainsResponse -> Maybe Text)
-> (ImportFirewallDomainsResponse
-> Maybe Text -> ImportFirewallDomainsResponse)
-> Lens
ImportFirewallDomainsResponse
ImportFirewallDomainsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomainsResponse' {Maybe Text
id :: Maybe Text
$sel:id:ImportFirewallDomainsResponse' :: ImportFirewallDomainsResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: ImportFirewallDomainsResponse
s@ImportFirewallDomainsResponse' {} Maybe Text
a -> ImportFirewallDomainsResponse
s {$sel:id:ImportFirewallDomainsResponse' :: Maybe Text
id = Maybe Text
a} :: ImportFirewallDomainsResponse)
importFirewallDomainsResponse_httpStatus :: Lens.Lens' ImportFirewallDomainsResponse Prelude.Int
importFirewallDomainsResponse_httpStatus :: (Int -> f Int)
-> ImportFirewallDomainsResponse -> f ImportFirewallDomainsResponse
importFirewallDomainsResponse_httpStatus = (ImportFirewallDomainsResponse -> Int)
-> (ImportFirewallDomainsResponse
-> Int -> ImportFirewallDomainsResponse)
-> Lens
ImportFirewallDomainsResponse ImportFirewallDomainsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportFirewallDomainsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ImportFirewallDomainsResponse' :: ImportFirewallDomainsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ImportFirewallDomainsResponse
s@ImportFirewallDomainsResponse' {} Int
a -> ImportFirewallDomainsResponse
s {$sel:httpStatus:ImportFirewallDomainsResponse' :: Int
httpStatus = Int
a} :: ImportFirewallDomainsResponse)
instance Prelude.NFData ImportFirewallDomainsResponse