{-# 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.DescribeOutboundConnections
(
DescribeOutboundConnections (..),
newDescribeOutboundConnections,
describeOutboundConnections_filters,
describeOutboundConnections_nextToken,
describeOutboundConnections_maxResults,
DescribeOutboundConnectionsResponse (..),
newDescribeOutboundConnectionsResponse,
describeOutboundConnectionsResponse_connections,
describeOutboundConnectionsResponse_nextToken,
describeOutboundConnectionsResponse_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 DescribeOutboundConnections = DescribeOutboundConnections'
{
DescribeOutboundConnections -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeOutboundConnections -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeOutboundConnections -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (DescribeOutboundConnections -> DescribeOutboundConnections -> Bool
(DescribeOutboundConnections
-> DescribeOutboundConnections -> Bool)
-> (DescribeOutboundConnections
-> DescribeOutboundConnections -> Bool)
-> Eq DescribeOutboundConnections
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOutboundConnections -> DescribeOutboundConnections -> Bool
$c/= :: DescribeOutboundConnections -> DescribeOutboundConnections -> Bool
== :: DescribeOutboundConnections -> DescribeOutboundConnections -> Bool
$c== :: DescribeOutboundConnections -> DescribeOutboundConnections -> Bool
Prelude.Eq, ReadPrec [DescribeOutboundConnections]
ReadPrec DescribeOutboundConnections
Int -> ReadS DescribeOutboundConnections
ReadS [DescribeOutboundConnections]
(Int -> ReadS DescribeOutboundConnections)
-> ReadS [DescribeOutboundConnections]
-> ReadPrec DescribeOutboundConnections
-> ReadPrec [DescribeOutboundConnections]
-> Read DescribeOutboundConnections
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOutboundConnections]
$creadListPrec :: ReadPrec [DescribeOutboundConnections]
readPrec :: ReadPrec DescribeOutboundConnections
$creadPrec :: ReadPrec DescribeOutboundConnections
readList :: ReadS [DescribeOutboundConnections]
$creadList :: ReadS [DescribeOutboundConnections]
readsPrec :: Int -> ReadS DescribeOutboundConnections
$creadsPrec :: Int -> ReadS DescribeOutboundConnections
Prelude.Read, Int -> DescribeOutboundConnections -> ShowS
[DescribeOutboundConnections] -> ShowS
DescribeOutboundConnections -> String
(Int -> DescribeOutboundConnections -> ShowS)
-> (DescribeOutboundConnections -> String)
-> ([DescribeOutboundConnections] -> ShowS)
-> Show DescribeOutboundConnections
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOutboundConnections] -> ShowS
$cshowList :: [DescribeOutboundConnections] -> ShowS
show :: DescribeOutboundConnections -> String
$cshow :: DescribeOutboundConnections -> String
showsPrec :: Int -> DescribeOutboundConnections -> ShowS
$cshowsPrec :: Int -> DescribeOutboundConnections -> ShowS
Prelude.Show, (forall x.
DescribeOutboundConnections -> Rep DescribeOutboundConnections x)
-> (forall x.
Rep DescribeOutboundConnections x -> DescribeOutboundConnections)
-> Generic DescribeOutboundConnections
forall x.
Rep DescribeOutboundConnections x -> DescribeOutboundConnections
forall x.
DescribeOutboundConnections -> Rep DescribeOutboundConnections x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOutboundConnections x -> DescribeOutboundConnections
$cfrom :: forall x.
DescribeOutboundConnections -> Rep DescribeOutboundConnections x
Prelude.Generic)
newDescribeOutboundConnections ::
DescribeOutboundConnections
newDescribeOutboundConnections :: DescribeOutboundConnections
newDescribeOutboundConnections =
DescribeOutboundConnections' :: Maybe [Filter]
-> Maybe Text -> Maybe Int -> DescribeOutboundConnections
DescribeOutboundConnections'
{ $sel:filters:DescribeOutboundConnections' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeOutboundConnections' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeOutboundConnections' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeOutboundConnections_filters :: Lens.Lens' DescribeOutboundConnections (Prelude.Maybe [Filter])
describeOutboundConnections_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeOutboundConnections -> f DescribeOutboundConnections
describeOutboundConnections_filters = (DescribeOutboundConnections -> Maybe [Filter])
-> (DescribeOutboundConnections
-> Maybe [Filter] -> DescribeOutboundConnections)
-> Lens
DescribeOutboundConnections
DescribeOutboundConnections
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOutboundConnections' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeOutboundConnections' :: DescribeOutboundConnections -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeOutboundConnections
s@DescribeOutboundConnections' {} Maybe [Filter]
a -> DescribeOutboundConnections
s {$sel:filters:DescribeOutboundConnections' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeOutboundConnections) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeOutboundConnections -> f DescribeOutboundConnections)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeOutboundConnections
-> f DescribeOutboundConnections
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeOutboundConnections_nextToken :: Lens.Lens' DescribeOutboundConnections (Prelude.Maybe Prelude.Text)
describeOutboundConnections_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeOutboundConnections -> f DescribeOutboundConnections
describeOutboundConnections_nextToken = (DescribeOutboundConnections -> Maybe Text)
-> (DescribeOutboundConnections
-> Maybe Text -> DescribeOutboundConnections)
-> Lens
DescribeOutboundConnections
DescribeOutboundConnections
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOutboundConnections' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeOutboundConnections' :: DescribeOutboundConnections -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeOutboundConnections
s@DescribeOutboundConnections' {} Maybe Text
a -> DescribeOutboundConnections
s {$sel:nextToken:DescribeOutboundConnections' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeOutboundConnections)
describeOutboundConnections_maxResults :: Lens.Lens' DescribeOutboundConnections (Prelude.Maybe Prelude.Int)
describeOutboundConnections_maxResults :: (Maybe Int -> f (Maybe Int))
-> DescribeOutboundConnections -> f DescribeOutboundConnections
describeOutboundConnections_maxResults = (DescribeOutboundConnections -> Maybe Int)
-> (DescribeOutboundConnections
-> Maybe Int -> DescribeOutboundConnections)
-> Lens
DescribeOutboundConnections
DescribeOutboundConnections
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOutboundConnections' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeOutboundConnections' :: DescribeOutboundConnections -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeOutboundConnections
s@DescribeOutboundConnections' {} Maybe Int
a -> DescribeOutboundConnections
s {$sel:maxResults:DescribeOutboundConnections' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeOutboundConnections)
instance Core.AWSRequest DescribeOutboundConnections where
type
AWSResponse DescribeOutboundConnections =
DescribeOutboundConnectionsResponse
request :: DescribeOutboundConnections -> Request DescribeOutboundConnections
request = Service
-> DescribeOutboundConnections
-> Request DescribeOutboundConnections
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeOutboundConnections
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeOutboundConnections)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeOutboundConnections))
-> Logger
-> Service
-> Proxy DescribeOutboundConnections
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeOutboundConnections)))
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 [OutboundConnection]
-> Maybe Text -> Int -> DescribeOutboundConnectionsResponse
DescribeOutboundConnectionsResponse'
(Maybe [OutboundConnection]
-> Maybe Text -> Int -> DescribeOutboundConnectionsResponse)
-> Either String (Maybe [OutboundConnection])
-> Either
String (Maybe Text -> Int -> DescribeOutboundConnectionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [OutboundConnection]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Connections" Either String (Maybe (Maybe [OutboundConnection]))
-> Maybe [OutboundConnection]
-> Either String (Maybe [OutboundConnection])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OutboundConnection]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> DescribeOutboundConnectionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeOutboundConnectionsResponse)
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
"NextToken")
Either String (Int -> DescribeOutboundConnectionsResponse)
-> Either String Int
-> Either String DescribeOutboundConnectionsResponse
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 DescribeOutboundConnections
instance Prelude.NFData DescribeOutboundConnections
instance Core.ToHeaders DescribeOutboundConnections where
toHeaders :: DescribeOutboundConnections -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeOutboundConnections -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON DescribeOutboundConnections where
toJSON :: DescribeOutboundConnections -> Value
toJSON DescribeOutboundConnections' {Maybe Int
Maybe [Filter]
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:DescribeOutboundConnections' :: DescribeOutboundConnections -> Maybe Int
$sel:nextToken:DescribeOutboundConnections' :: DescribeOutboundConnections -> Maybe Text
$sel:filters:DescribeOutboundConnections' :: DescribeOutboundConnections -> Maybe [Filter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
(Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
]
)
instance Core.ToPath DescribeOutboundConnections where
toPath :: DescribeOutboundConnections -> ByteString
toPath =
ByteString -> DescribeOutboundConnections -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2021-01-01/opensearch/cc/outboundConnection/search"
instance Core.ToQuery DescribeOutboundConnections where
toQuery :: DescribeOutboundConnections -> QueryString
toQuery = QueryString -> DescribeOutboundConnections -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeOutboundConnectionsResponse = DescribeOutboundConnectionsResponse'
{
DescribeOutboundConnectionsResponse -> Maybe [OutboundConnection]
connections :: Prelude.Maybe [OutboundConnection],
DescribeOutboundConnectionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeOutboundConnectionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool
(DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool)
-> (DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool)
-> Eq DescribeOutboundConnectionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool
$c/= :: DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool
== :: DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool
$c== :: DescribeOutboundConnectionsResponse
-> DescribeOutboundConnectionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeOutboundConnectionsResponse]
ReadPrec DescribeOutboundConnectionsResponse
Int -> ReadS DescribeOutboundConnectionsResponse
ReadS [DescribeOutboundConnectionsResponse]
(Int -> ReadS DescribeOutboundConnectionsResponse)
-> ReadS [DescribeOutboundConnectionsResponse]
-> ReadPrec DescribeOutboundConnectionsResponse
-> ReadPrec [DescribeOutboundConnectionsResponse]
-> Read DescribeOutboundConnectionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOutboundConnectionsResponse]
$creadListPrec :: ReadPrec [DescribeOutboundConnectionsResponse]
readPrec :: ReadPrec DescribeOutboundConnectionsResponse
$creadPrec :: ReadPrec DescribeOutboundConnectionsResponse
readList :: ReadS [DescribeOutboundConnectionsResponse]
$creadList :: ReadS [DescribeOutboundConnectionsResponse]
readsPrec :: Int -> ReadS DescribeOutboundConnectionsResponse
$creadsPrec :: Int -> ReadS DescribeOutboundConnectionsResponse
Prelude.Read, Int -> DescribeOutboundConnectionsResponse -> ShowS
[DescribeOutboundConnectionsResponse] -> ShowS
DescribeOutboundConnectionsResponse -> String
(Int -> DescribeOutboundConnectionsResponse -> ShowS)
-> (DescribeOutboundConnectionsResponse -> String)
-> ([DescribeOutboundConnectionsResponse] -> ShowS)
-> Show DescribeOutboundConnectionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOutboundConnectionsResponse] -> ShowS
$cshowList :: [DescribeOutboundConnectionsResponse] -> ShowS
show :: DescribeOutboundConnectionsResponse -> String
$cshow :: DescribeOutboundConnectionsResponse -> String
showsPrec :: Int -> DescribeOutboundConnectionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeOutboundConnectionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeOutboundConnectionsResponse
-> Rep DescribeOutboundConnectionsResponse x)
-> (forall x.
Rep DescribeOutboundConnectionsResponse x
-> DescribeOutboundConnectionsResponse)
-> Generic DescribeOutboundConnectionsResponse
forall x.
Rep DescribeOutboundConnectionsResponse x
-> DescribeOutboundConnectionsResponse
forall x.
DescribeOutboundConnectionsResponse
-> Rep DescribeOutboundConnectionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOutboundConnectionsResponse x
-> DescribeOutboundConnectionsResponse
$cfrom :: forall x.
DescribeOutboundConnectionsResponse
-> Rep DescribeOutboundConnectionsResponse x
Prelude.Generic)
newDescribeOutboundConnectionsResponse ::
Prelude.Int ->
DescribeOutboundConnectionsResponse
newDescribeOutboundConnectionsResponse :: Int -> DescribeOutboundConnectionsResponse
newDescribeOutboundConnectionsResponse Int
pHttpStatus_ =
DescribeOutboundConnectionsResponse' :: Maybe [OutboundConnection]
-> Maybe Text -> Int -> DescribeOutboundConnectionsResponse
DescribeOutboundConnectionsResponse'
{ $sel:connections:DescribeOutboundConnectionsResponse' :: Maybe [OutboundConnection]
connections =
Maybe [OutboundConnection]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeOutboundConnectionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeOutboundConnectionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeOutboundConnectionsResponse_connections :: Lens.Lens' DescribeOutboundConnectionsResponse (Prelude.Maybe [OutboundConnection])
describeOutboundConnectionsResponse_connections :: (Maybe [OutboundConnection] -> f (Maybe [OutboundConnection]))
-> DescribeOutboundConnectionsResponse
-> f DescribeOutboundConnectionsResponse
describeOutboundConnectionsResponse_connections = (DescribeOutboundConnectionsResponse -> Maybe [OutboundConnection])
-> (DescribeOutboundConnectionsResponse
-> Maybe [OutboundConnection]
-> DescribeOutboundConnectionsResponse)
-> Lens
DescribeOutboundConnectionsResponse
DescribeOutboundConnectionsResponse
(Maybe [OutboundConnection])
(Maybe [OutboundConnection])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOutboundConnectionsResponse' {Maybe [OutboundConnection]
connections :: Maybe [OutboundConnection]
$sel:connections:DescribeOutboundConnectionsResponse' :: DescribeOutboundConnectionsResponse -> Maybe [OutboundConnection]
connections} -> Maybe [OutboundConnection]
connections) (\s :: DescribeOutboundConnectionsResponse
s@DescribeOutboundConnectionsResponse' {} Maybe [OutboundConnection]
a -> DescribeOutboundConnectionsResponse
s {$sel:connections:DescribeOutboundConnectionsResponse' :: Maybe [OutboundConnection]
connections = Maybe [OutboundConnection]
a} :: DescribeOutboundConnectionsResponse) ((Maybe [OutboundConnection] -> f (Maybe [OutboundConnection]))
-> DescribeOutboundConnectionsResponse
-> f DescribeOutboundConnectionsResponse)
-> ((Maybe [OutboundConnection] -> f (Maybe [OutboundConnection]))
-> Maybe [OutboundConnection] -> f (Maybe [OutboundConnection]))
-> (Maybe [OutboundConnection] -> f (Maybe [OutboundConnection]))
-> DescribeOutboundConnectionsResponse
-> f DescribeOutboundConnectionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OutboundConnection]
[OutboundConnection]
[OutboundConnection]
[OutboundConnection]
-> Iso
(Maybe [OutboundConnection])
(Maybe [OutboundConnection])
(Maybe [OutboundConnection])
(Maybe [OutboundConnection])
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
[OutboundConnection]
[OutboundConnection]
[OutboundConnection]
[OutboundConnection]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeOutboundConnectionsResponse_nextToken :: Lens.Lens' DescribeOutboundConnectionsResponse (Prelude.Maybe Prelude.Text)
describeOutboundConnectionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeOutboundConnectionsResponse
-> f DescribeOutboundConnectionsResponse
describeOutboundConnectionsResponse_nextToken = (DescribeOutboundConnectionsResponse -> Maybe Text)
-> (DescribeOutboundConnectionsResponse
-> Maybe Text -> DescribeOutboundConnectionsResponse)
-> Lens
DescribeOutboundConnectionsResponse
DescribeOutboundConnectionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOutboundConnectionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeOutboundConnectionsResponse' :: DescribeOutboundConnectionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeOutboundConnectionsResponse
s@DescribeOutboundConnectionsResponse' {} Maybe Text
a -> DescribeOutboundConnectionsResponse
s {$sel:nextToken:DescribeOutboundConnectionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeOutboundConnectionsResponse)
describeOutboundConnectionsResponse_httpStatus :: Lens.Lens' DescribeOutboundConnectionsResponse Prelude.Int
describeOutboundConnectionsResponse_httpStatus :: (Int -> f Int)
-> DescribeOutboundConnectionsResponse
-> f DescribeOutboundConnectionsResponse
describeOutboundConnectionsResponse_httpStatus = (DescribeOutboundConnectionsResponse -> Int)
-> (DescribeOutboundConnectionsResponse
-> Int -> DescribeOutboundConnectionsResponse)
-> Lens
DescribeOutboundConnectionsResponse
DescribeOutboundConnectionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOutboundConnectionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeOutboundConnectionsResponse' :: DescribeOutboundConnectionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeOutboundConnectionsResponse
s@DescribeOutboundConnectionsResponse' {} Int
a -> DescribeOutboundConnectionsResponse
s {$sel:httpStatus:DescribeOutboundConnectionsResponse' :: Int
httpStatus = Int
a} :: DescribeOutboundConnectionsResponse)
instance
Prelude.NFData
DescribeOutboundConnectionsResponse