{-# 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.OpenSearch.CreateOutboundConnection
(
CreateOutboundConnection (..),
newCreateOutboundConnection,
createOutboundConnection_localDomainInfo,
createOutboundConnection_remoteDomainInfo,
createOutboundConnection_connectionAlias,
CreateOutboundConnectionResponse (..),
newCreateOutboundConnectionResponse,
createOutboundConnectionResponse_remoteDomainInfo,
createOutboundConnectionResponse_connectionAlias,
createOutboundConnectionResponse_localDomainInfo,
createOutboundConnectionResponse_connectionId,
createOutboundConnectionResponse_connectionStatus,
createOutboundConnectionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpenSearch.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateOutboundConnection = CreateOutboundConnection'
{
CreateOutboundConnection -> DomainInformationContainer
localDomainInfo :: DomainInformationContainer,
CreateOutboundConnection -> DomainInformationContainer
remoteDomainInfo :: DomainInformationContainer,
CreateOutboundConnection -> Text
connectionAlias :: Prelude.Text
}
deriving (CreateOutboundConnection -> CreateOutboundConnection -> Bool
(CreateOutboundConnection -> CreateOutboundConnection -> Bool)
-> (CreateOutboundConnection -> CreateOutboundConnection -> Bool)
-> Eq CreateOutboundConnection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateOutboundConnection -> CreateOutboundConnection -> Bool
$c/= :: CreateOutboundConnection -> CreateOutboundConnection -> Bool
== :: CreateOutboundConnection -> CreateOutboundConnection -> Bool
$c== :: CreateOutboundConnection -> CreateOutboundConnection -> Bool
Prelude.Eq, ReadPrec [CreateOutboundConnection]
ReadPrec CreateOutboundConnection
Int -> ReadS CreateOutboundConnection
ReadS [CreateOutboundConnection]
(Int -> ReadS CreateOutboundConnection)
-> ReadS [CreateOutboundConnection]
-> ReadPrec CreateOutboundConnection
-> ReadPrec [CreateOutboundConnection]
-> Read CreateOutboundConnection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateOutboundConnection]
$creadListPrec :: ReadPrec [CreateOutboundConnection]
readPrec :: ReadPrec CreateOutboundConnection
$creadPrec :: ReadPrec CreateOutboundConnection
readList :: ReadS [CreateOutboundConnection]
$creadList :: ReadS [CreateOutboundConnection]
readsPrec :: Int -> ReadS CreateOutboundConnection
$creadsPrec :: Int -> ReadS CreateOutboundConnection
Prelude.Read, Int -> CreateOutboundConnection -> ShowS
[CreateOutboundConnection] -> ShowS
CreateOutboundConnection -> String
(Int -> CreateOutboundConnection -> ShowS)
-> (CreateOutboundConnection -> String)
-> ([CreateOutboundConnection] -> ShowS)
-> Show CreateOutboundConnection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateOutboundConnection] -> ShowS
$cshowList :: [CreateOutboundConnection] -> ShowS
show :: CreateOutboundConnection -> String
$cshow :: CreateOutboundConnection -> String
showsPrec :: Int -> CreateOutboundConnection -> ShowS
$cshowsPrec :: Int -> CreateOutboundConnection -> ShowS
Prelude.Show, (forall x.
CreateOutboundConnection -> Rep CreateOutboundConnection x)
-> (forall x.
Rep CreateOutboundConnection x -> CreateOutboundConnection)
-> Generic CreateOutboundConnection
forall x.
Rep CreateOutboundConnection x -> CreateOutboundConnection
forall x.
CreateOutboundConnection -> Rep CreateOutboundConnection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateOutboundConnection x -> CreateOutboundConnection
$cfrom :: forall x.
CreateOutboundConnection -> Rep CreateOutboundConnection x
Prelude.Generic)
newCreateOutboundConnection ::
DomainInformationContainer ->
DomainInformationContainer ->
Prelude.Text ->
CreateOutboundConnection
newCreateOutboundConnection :: DomainInformationContainer
-> DomainInformationContainer -> Text -> CreateOutboundConnection
newCreateOutboundConnection
DomainInformationContainer
pLocalDomainInfo_
DomainInformationContainer
pRemoteDomainInfo_
Text
pConnectionAlias_ =
CreateOutboundConnection' :: DomainInformationContainer
-> DomainInformationContainer -> Text -> CreateOutboundConnection
CreateOutboundConnection'
{ $sel:localDomainInfo:CreateOutboundConnection' :: DomainInformationContainer
localDomainInfo =
DomainInformationContainer
pLocalDomainInfo_,
$sel:remoteDomainInfo:CreateOutboundConnection' :: DomainInformationContainer
remoteDomainInfo = DomainInformationContainer
pRemoteDomainInfo_,
$sel:connectionAlias:CreateOutboundConnection' :: Text
connectionAlias = Text
pConnectionAlias_
}
createOutboundConnection_localDomainInfo :: Lens.Lens' CreateOutboundConnection DomainInformationContainer
createOutboundConnection_localDomainInfo :: (DomainInformationContainer -> f DomainInformationContainer)
-> CreateOutboundConnection -> f CreateOutboundConnection
createOutboundConnection_localDomainInfo = (CreateOutboundConnection -> DomainInformationContainer)
-> (CreateOutboundConnection
-> DomainInformationContainer -> CreateOutboundConnection)
-> Lens
CreateOutboundConnection
CreateOutboundConnection
DomainInformationContainer
DomainInformationContainer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnection' {DomainInformationContainer
localDomainInfo :: DomainInformationContainer
$sel:localDomainInfo:CreateOutboundConnection' :: CreateOutboundConnection -> DomainInformationContainer
localDomainInfo} -> DomainInformationContainer
localDomainInfo) (\s :: CreateOutboundConnection
s@CreateOutboundConnection' {} DomainInformationContainer
a -> CreateOutboundConnection
s {$sel:localDomainInfo:CreateOutboundConnection' :: DomainInformationContainer
localDomainInfo = DomainInformationContainer
a} :: CreateOutboundConnection)
createOutboundConnection_remoteDomainInfo :: Lens.Lens' CreateOutboundConnection DomainInformationContainer
createOutboundConnection_remoteDomainInfo :: (DomainInformationContainer -> f DomainInformationContainer)
-> CreateOutboundConnection -> f CreateOutboundConnection
createOutboundConnection_remoteDomainInfo = (CreateOutboundConnection -> DomainInformationContainer)
-> (CreateOutboundConnection
-> DomainInformationContainer -> CreateOutboundConnection)
-> Lens
CreateOutboundConnection
CreateOutboundConnection
DomainInformationContainer
DomainInformationContainer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnection' {DomainInformationContainer
remoteDomainInfo :: DomainInformationContainer
$sel:remoteDomainInfo:CreateOutboundConnection' :: CreateOutboundConnection -> DomainInformationContainer
remoteDomainInfo} -> DomainInformationContainer
remoteDomainInfo) (\s :: CreateOutboundConnection
s@CreateOutboundConnection' {} DomainInformationContainer
a -> CreateOutboundConnection
s {$sel:remoteDomainInfo:CreateOutboundConnection' :: DomainInformationContainer
remoteDomainInfo = DomainInformationContainer
a} :: CreateOutboundConnection)
createOutboundConnection_connectionAlias :: Lens.Lens' CreateOutboundConnection Prelude.Text
createOutboundConnection_connectionAlias :: (Text -> f Text)
-> CreateOutboundConnection -> f CreateOutboundConnection
createOutboundConnection_connectionAlias = (CreateOutboundConnection -> Text)
-> (CreateOutboundConnection -> Text -> CreateOutboundConnection)
-> Lens CreateOutboundConnection CreateOutboundConnection Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnection' {Text
connectionAlias :: Text
$sel:connectionAlias:CreateOutboundConnection' :: CreateOutboundConnection -> Text
connectionAlias} -> Text
connectionAlias) (\s :: CreateOutboundConnection
s@CreateOutboundConnection' {} Text
a -> CreateOutboundConnection
s {$sel:connectionAlias:CreateOutboundConnection' :: Text
connectionAlias = Text
a} :: CreateOutboundConnection)
instance Core.AWSRequest CreateOutboundConnection where
type
AWSResponse CreateOutboundConnection =
CreateOutboundConnectionResponse
request :: CreateOutboundConnection -> Request CreateOutboundConnection
request = Service
-> CreateOutboundConnection -> Request CreateOutboundConnection
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateOutboundConnection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateOutboundConnection)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateOutboundConnection))
-> Logger
-> Service
-> Proxy CreateOutboundConnection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateOutboundConnection)))
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 DomainInformationContainer
-> Maybe Text
-> Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse
CreateOutboundConnectionResponse'
(Maybe DomainInformationContainer
-> Maybe Text
-> Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
-> Either String (Maybe DomainInformationContainer)
-> Either
String
(Maybe Text
-> Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe DomainInformationContainer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RemoteDomainInfo")
Either
String
(Maybe Text
-> Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
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
"ConnectionAlias")
Either
String
(Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
-> Either String (Maybe DomainInformationContainer)
-> Either
String
(Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DomainInformationContainer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LocalDomainInfo")
Either
String
(Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe OutboundConnectionStatus
-> Int -> CreateOutboundConnectionResponse)
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
"ConnectionId")
Either
String
(Maybe OutboundConnectionStatus
-> Int -> CreateOutboundConnectionResponse)
-> Either String (Maybe OutboundConnectionStatus)
-> Either String (Int -> CreateOutboundConnectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe OutboundConnectionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConnectionStatus")
Either String (Int -> CreateOutboundConnectionResponse)
-> Either String Int
-> Either String CreateOutboundConnectionResponse
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 CreateOutboundConnection
instance Prelude.NFData CreateOutboundConnection
instance Core.ToHeaders CreateOutboundConnection where
toHeaders :: CreateOutboundConnection -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateOutboundConnection -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON CreateOutboundConnection where
toJSON :: CreateOutboundConnection -> Value
toJSON CreateOutboundConnection' {Text
DomainInformationContainer
connectionAlias :: Text
remoteDomainInfo :: DomainInformationContainer
localDomainInfo :: DomainInformationContainer
$sel:connectionAlias:CreateOutboundConnection' :: CreateOutboundConnection -> Text
$sel:remoteDomainInfo:CreateOutboundConnection' :: CreateOutboundConnection -> DomainInformationContainer
$sel:localDomainInfo:CreateOutboundConnection' :: CreateOutboundConnection -> DomainInformationContainer
..} =
[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
"LocalDomainInfo" Text -> DomainInformationContainer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DomainInformationContainer
localDomainInfo),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"RemoteDomainInfo" Text -> DomainInformationContainer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DomainInformationContainer
remoteDomainInfo),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ConnectionAlias" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
connectionAlias)
]
)
instance Core.ToPath CreateOutboundConnection where
toPath :: CreateOutboundConnection -> ByteString
toPath =
ByteString -> CreateOutboundConnection -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2021-01-01/opensearch/cc/outboundConnection"
instance Core.ToQuery CreateOutboundConnection where
toQuery :: CreateOutboundConnection -> QueryString
toQuery = QueryString -> CreateOutboundConnection -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateOutboundConnectionResponse = CreateOutboundConnectionResponse'
{
CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer
remoteDomainInfo :: Prelude.Maybe DomainInformationContainer,
CreateOutboundConnectionResponse -> Maybe Text
connectionAlias :: Prelude.Maybe Prelude.Text,
CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer
localDomainInfo :: Prelude.Maybe DomainInformationContainer,
CreateOutboundConnectionResponse -> Maybe Text
connectionId :: Prelude.Maybe Prelude.Text,
CreateOutboundConnectionResponse -> Maybe OutboundConnectionStatus
connectionStatus :: Prelude.Maybe OutboundConnectionStatus,
CreateOutboundConnectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool
(CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool)
-> (CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool)
-> Eq CreateOutboundConnectionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool
$c/= :: CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool
== :: CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool
$c== :: CreateOutboundConnectionResponse
-> CreateOutboundConnectionResponse -> Bool
Prelude.Eq, ReadPrec [CreateOutboundConnectionResponse]
ReadPrec CreateOutboundConnectionResponse
Int -> ReadS CreateOutboundConnectionResponse
ReadS [CreateOutboundConnectionResponse]
(Int -> ReadS CreateOutboundConnectionResponse)
-> ReadS [CreateOutboundConnectionResponse]
-> ReadPrec CreateOutboundConnectionResponse
-> ReadPrec [CreateOutboundConnectionResponse]
-> Read CreateOutboundConnectionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateOutboundConnectionResponse]
$creadListPrec :: ReadPrec [CreateOutboundConnectionResponse]
readPrec :: ReadPrec CreateOutboundConnectionResponse
$creadPrec :: ReadPrec CreateOutboundConnectionResponse
readList :: ReadS [CreateOutboundConnectionResponse]
$creadList :: ReadS [CreateOutboundConnectionResponse]
readsPrec :: Int -> ReadS CreateOutboundConnectionResponse
$creadsPrec :: Int -> ReadS CreateOutboundConnectionResponse
Prelude.Read, Int -> CreateOutboundConnectionResponse -> ShowS
[CreateOutboundConnectionResponse] -> ShowS
CreateOutboundConnectionResponse -> String
(Int -> CreateOutboundConnectionResponse -> ShowS)
-> (CreateOutboundConnectionResponse -> String)
-> ([CreateOutboundConnectionResponse] -> ShowS)
-> Show CreateOutboundConnectionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateOutboundConnectionResponse] -> ShowS
$cshowList :: [CreateOutboundConnectionResponse] -> ShowS
show :: CreateOutboundConnectionResponse -> String
$cshow :: CreateOutboundConnectionResponse -> String
showsPrec :: Int -> CreateOutboundConnectionResponse -> ShowS
$cshowsPrec :: Int -> CreateOutboundConnectionResponse -> ShowS
Prelude.Show, (forall x.
CreateOutboundConnectionResponse
-> Rep CreateOutboundConnectionResponse x)
-> (forall x.
Rep CreateOutboundConnectionResponse x
-> CreateOutboundConnectionResponse)
-> Generic CreateOutboundConnectionResponse
forall x.
Rep CreateOutboundConnectionResponse x
-> CreateOutboundConnectionResponse
forall x.
CreateOutboundConnectionResponse
-> Rep CreateOutboundConnectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateOutboundConnectionResponse x
-> CreateOutboundConnectionResponse
$cfrom :: forall x.
CreateOutboundConnectionResponse
-> Rep CreateOutboundConnectionResponse x
Prelude.Generic)
newCreateOutboundConnectionResponse ::
Prelude.Int ->
CreateOutboundConnectionResponse
newCreateOutboundConnectionResponse :: Int -> CreateOutboundConnectionResponse
newCreateOutboundConnectionResponse Int
pHttpStatus_ =
CreateOutboundConnectionResponse' :: Maybe DomainInformationContainer
-> Maybe Text
-> Maybe DomainInformationContainer
-> Maybe Text
-> Maybe OutboundConnectionStatus
-> Int
-> CreateOutboundConnectionResponse
CreateOutboundConnectionResponse'
{ $sel:remoteDomainInfo:CreateOutboundConnectionResponse' :: Maybe DomainInformationContainer
remoteDomainInfo =
Maybe DomainInformationContainer
forall a. Maybe a
Prelude.Nothing,
$sel:connectionAlias:CreateOutboundConnectionResponse' :: Maybe Text
connectionAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:localDomainInfo:CreateOutboundConnectionResponse' :: Maybe DomainInformationContainer
localDomainInfo = Maybe DomainInformationContainer
forall a. Maybe a
Prelude.Nothing,
$sel:connectionId:CreateOutboundConnectionResponse' :: Maybe Text
connectionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:connectionStatus:CreateOutboundConnectionResponse' :: Maybe OutboundConnectionStatus
connectionStatus = Maybe OutboundConnectionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateOutboundConnectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createOutboundConnectionResponse_remoteDomainInfo :: Lens.Lens' CreateOutboundConnectionResponse (Prelude.Maybe DomainInformationContainer)
createOutboundConnectionResponse_remoteDomainInfo :: (Maybe DomainInformationContainer
-> f (Maybe DomainInformationContainer))
-> CreateOutboundConnectionResponse
-> f CreateOutboundConnectionResponse
createOutboundConnectionResponse_remoteDomainInfo = (CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer)
-> (CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer
-> CreateOutboundConnectionResponse)
-> Lens
CreateOutboundConnectionResponse
CreateOutboundConnectionResponse
(Maybe DomainInformationContainer)
(Maybe DomainInformationContainer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnectionResponse' {Maybe DomainInformationContainer
remoteDomainInfo :: Maybe DomainInformationContainer
$sel:remoteDomainInfo:CreateOutboundConnectionResponse' :: CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer
remoteDomainInfo} -> Maybe DomainInformationContainer
remoteDomainInfo) (\s :: CreateOutboundConnectionResponse
s@CreateOutboundConnectionResponse' {} Maybe DomainInformationContainer
a -> CreateOutboundConnectionResponse
s {$sel:remoteDomainInfo:CreateOutboundConnectionResponse' :: Maybe DomainInformationContainer
remoteDomainInfo = Maybe DomainInformationContainer
a} :: CreateOutboundConnectionResponse)
createOutboundConnectionResponse_connectionAlias :: Lens.Lens' CreateOutboundConnectionResponse (Prelude.Maybe Prelude.Text)
createOutboundConnectionResponse_connectionAlias :: (Maybe Text -> f (Maybe Text))
-> CreateOutboundConnectionResponse
-> f CreateOutboundConnectionResponse
createOutboundConnectionResponse_connectionAlias = (CreateOutboundConnectionResponse -> Maybe Text)
-> (CreateOutboundConnectionResponse
-> Maybe Text -> CreateOutboundConnectionResponse)
-> Lens
CreateOutboundConnectionResponse
CreateOutboundConnectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnectionResponse' {Maybe Text
connectionAlias :: Maybe Text
$sel:connectionAlias:CreateOutboundConnectionResponse' :: CreateOutboundConnectionResponse -> Maybe Text
connectionAlias} -> Maybe Text
connectionAlias) (\s :: CreateOutboundConnectionResponse
s@CreateOutboundConnectionResponse' {} Maybe Text
a -> CreateOutboundConnectionResponse
s {$sel:connectionAlias:CreateOutboundConnectionResponse' :: Maybe Text
connectionAlias = Maybe Text
a} :: CreateOutboundConnectionResponse)
createOutboundConnectionResponse_localDomainInfo :: Lens.Lens' CreateOutboundConnectionResponse (Prelude.Maybe DomainInformationContainer)
createOutboundConnectionResponse_localDomainInfo :: (Maybe DomainInformationContainer
-> f (Maybe DomainInformationContainer))
-> CreateOutboundConnectionResponse
-> f CreateOutboundConnectionResponse
createOutboundConnectionResponse_localDomainInfo = (CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer)
-> (CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer
-> CreateOutboundConnectionResponse)
-> Lens
CreateOutboundConnectionResponse
CreateOutboundConnectionResponse
(Maybe DomainInformationContainer)
(Maybe DomainInformationContainer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnectionResponse' {Maybe DomainInformationContainer
localDomainInfo :: Maybe DomainInformationContainer
$sel:localDomainInfo:CreateOutboundConnectionResponse' :: CreateOutboundConnectionResponse
-> Maybe DomainInformationContainer
localDomainInfo} -> Maybe DomainInformationContainer
localDomainInfo) (\s :: CreateOutboundConnectionResponse
s@CreateOutboundConnectionResponse' {} Maybe DomainInformationContainer
a -> CreateOutboundConnectionResponse
s {$sel:localDomainInfo:CreateOutboundConnectionResponse' :: Maybe DomainInformationContainer
localDomainInfo = Maybe DomainInformationContainer
a} :: CreateOutboundConnectionResponse)
createOutboundConnectionResponse_connectionId :: Lens.Lens' CreateOutboundConnectionResponse (Prelude.Maybe Prelude.Text)
createOutboundConnectionResponse_connectionId :: (Maybe Text -> f (Maybe Text))
-> CreateOutboundConnectionResponse
-> f CreateOutboundConnectionResponse
createOutboundConnectionResponse_connectionId = (CreateOutboundConnectionResponse -> Maybe Text)
-> (CreateOutboundConnectionResponse
-> Maybe Text -> CreateOutboundConnectionResponse)
-> Lens
CreateOutboundConnectionResponse
CreateOutboundConnectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnectionResponse' {Maybe Text
connectionId :: Maybe Text
$sel:connectionId:CreateOutboundConnectionResponse' :: CreateOutboundConnectionResponse -> Maybe Text
connectionId} -> Maybe Text
connectionId) (\s :: CreateOutboundConnectionResponse
s@CreateOutboundConnectionResponse' {} Maybe Text
a -> CreateOutboundConnectionResponse
s {$sel:connectionId:CreateOutboundConnectionResponse' :: Maybe Text
connectionId = Maybe Text
a} :: CreateOutboundConnectionResponse)
createOutboundConnectionResponse_connectionStatus :: Lens.Lens' CreateOutboundConnectionResponse (Prelude.Maybe OutboundConnectionStatus)
createOutboundConnectionResponse_connectionStatus :: (Maybe OutboundConnectionStatus
-> f (Maybe OutboundConnectionStatus))
-> CreateOutboundConnectionResponse
-> f CreateOutboundConnectionResponse
createOutboundConnectionResponse_connectionStatus = (CreateOutboundConnectionResponse
-> Maybe OutboundConnectionStatus)
-> (CreateOutboundConnectionResponse
-> Maybe OutboundConnectionStatus
-> CreateOutboundConnectionResponse)
-> Lens
CreateOutboundConnectionResponse
CreateOutboundConnectionResponse
(Maybe OutboundConnectionStatus)
(Maybe OutboundConnectionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnectionResponse' {Maybe OutboundConnectionStatus
connectionStatus :: Maybe OutboundConnectionStatus
$sel:connectionStatus:CreateOutboundConnectionResponse' :: CreateOutboundConnectionResponse -> Maybe OutboundConnectionStatus
connectionStatus} -> Maybe OutboundConnectionStatus
connectionStatus) (\s :: CreateOutboundConnectionResponse
s@CreateOutboundConnectionResponse' {} Maybe OutboundConnectionStatus
a -> CreateOutboundConnectionResponse
s {$sel:connectionStatus:CreateOutboundConnectionResponse' :: Maybe OutboundConnectionStatus
connectionStatus = Maybe OutboundConnectionStatus
a} :: CreateOutboundConnectionResponse)
createOutboundConnectionResponse_httpStatus :: Lens.Lens' CreateOutboundConnectionResponse Prelude.Int
createOutboundConnectionResponse_httpStatus :: (Int -> f Int)
-> CreateOutboundConnectionResponse
-> f CreateOutboundConnectionResponse
createOutboundConnectionResponse_httpStatus = (CreateOutboundConnectionResponse -> Int)
-> (CreateOutboundConnectionResponse
-> Int -> CreateOutboundConnectionResponse)
-> Lens
CreateOutboundConnectionResponse
CreateOutboundConnectionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutboundConnectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateOutboundConnectionResponse' :: CreateOutboundConnectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateOutboundConnectionResponse
s@CreateOutboundConnectionResponse' {} Int
a -> CreateOutboundConnectionResponse
s {$sel:httpStatus:CreateOutboundConnectionResponse' :: Int
httpStatus = Int
a} :: CreateOutboundConnectionResponse)
instance
Prelude.NFData
CreateOutboundConnectionResponse