{-# 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.DMS.DescribeEndpoints
(
DescribeEndpoints (..),
newDescribeEndpoints,
describeEndpoints_filters,
describeEndpoints_marker,
describeEndpoints_maxRecords,
DescribeEndpointsResponse (..),
newDescribeEndpointsResponse,
describeEndpointsResponse_marker,
describeEndpointsResponse_endpoints,
describeEndpointsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DMS.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 DescribeEndpoints = DescribeEndpoints'
{
DescribeEndpoints -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeEndpoints -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeEndpoints -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeEndpoints -> DescribeEndpoints -> Bool
(DescribeEndpoints -> DescribeEndpoints -> Bool)
-> (DescribeEndpoints -> DescribeEndpoints -> Bool)
-> Eq DescribeEndpoints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpoints -> DescribeEndpoints -> Bool
$c/= :: DescribeEndpoints -> DescribeEndpoints -> Bool
== :: DescribeEndpoints -> DescribeEndpoints -> Bool
$c== :: DescribeEndpoints -> DescribeEndpoints -> Bool
Prelude.Eq, ReadPrec [DescribeEndpoints]
ReadPrec DescribeEndpoints
Int -> ReadS DescribeEndpoints
ReadS [DescribeEndpoints]
(Int -> ReadS DescribeEndpoints)
-> ReadS [DescribeEndpoints]
-> ReadPrec DescribeEndpoints
-> ReadPrec [DescribeEndpoints]
-> Read DescribeEndpoints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEndpoints]
$creadListPrec :: ReadPrec [DescribeEndpoints]
readPrec :: ReadPrec DescribeEndpoints
$creadPrec :: ReadPrec DescribeEndpoints
readList :: ReadS [DescribeEndpoints]
$creadList :: ReadS [DescribeEndpoints]
readsPrec :: Int -> ReadS DescribeEndpoints
$creadsPrec :: Int -> ReadS DescribeEndpoints
Prelude.Read, Int -> DescribeEndpoints -> ShowS
[DescribeEndpoints] -> ShowS
DescribeEndpoints -> String
(Int -> DescribeEndpoints -> ShowS)
-> (DescribeEndpoints -> String)
-> ([DescribeEndpoints] -> ShowS)
-> Show DescribeEndpoints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpoints] -> ShowS
$cshowList :: [DescribeEndpoints] -> ShowS
show :: DescribeEndpoints -> String
$cshow :: DescribeEndpoints -> String
showsPrec :: Int -> DescribeEndpoints -> ShowS
$cshowsPrec :: Int -> DescribeEndpoints -> ShowS
Prelude.Show, (forall x. DescribeEndpoints -> Rep DescribeEndpoints x)
-> (forall x. Rep DescribeEndpoints x -> DescribeEndpoints)
-> Generic DescribeEndpoints
forall x. Rep DescribeEndpoints x -> DescribeEndpoints
forall x. DescribeEndpoints -> Rep DescribeEndpoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeEndpoints x -> DescribeEndpoints
$cfrom :: forall x. DescribeEndpoints -> Rep DescribeEndpoints x
Prelude.Generic)
newDescribeEndpoints ::
DescribeEndpoints
newDescribeEndpoints :: DescribeEndpoints
newDescribeEndpoints =
DescribeEndpoints' :: Maybe [Filter] -> Maybe Text -> Maybe Int -> DescribeEndpoints
DescribeEndpoints'
{ $sel:filters:DescribeEndpoints' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeEndpoints' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeEndpoints' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeEndpoints_filters :: Lens.Lens' DescribeEndpoints (Prelude.Maybe [Filter])
describeEndpoints_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEndpoints -> f DescribeEndpoints
describeEndpoints_filters = (DescribeEndpoints -> Maybe [Filter])
-> (DescribeEndpoints -> Maybe [Filter] -> DescribeEndpoints)
-> Lens
DescribeEndpoints
DescribeEndpoints
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpoints' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeEndpoints' :: DescribeEndpoints -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeEndpoints
s@DescribeEndpoints' {} Maybe [Filter]
a -> DescribeEndpoints
s {$sel:filters:DescribeEndpoints' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeEndpoints) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEndpoints -> f DescribeEndpoints)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEndpoints
-> f DescribeEndpoints
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
describeEndpoints_marker :: Lens.Lens' DescribeEndpoints (Prelude.Maybe Prelude.Text)
describeEndpoints_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpoints -> f DescribeEndpoints
describeEndpoints_marker = (DescribeEndpoints -> Maybe Text)
-> (DescribeEndpoints -> Maybe Text -> DescribeEndpoints)
-> Lens
DescribeEndpoints DescribeEndpoints (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpoints' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEndpoints' :: DescribeEndpoints -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEndpoints
s@DescribeEndpoints' {} Maybe Text
a -> DescribeEndpoints
s {$sel:marker:DescribeEndpoints' :: Maybe Text
marker = Maybe Text
a} :: DescribeEndpoints)
describeEndpoints_maxRecords :: Lens.Lens' DescribeEndpoints (Prelude.Maybe Prelude.Int)
describeEndpoints_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeEndpoints -> f DescribeEndpoints
describeEndpoints_maxRecords = (DescribeEndpoints -> Maybe Int)
-> (DescribeEndpoints -> Maybe Int -> DescribeEndpoints)
-> Lens DescribeEndpoints DescribeEndpoints (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpoints' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeEndpoints' :: DescribeEndpoints -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeEndpoints
s@DescribeEndpoints' {} Maybe Int
a -> DescribeEndpoints
s {$sel:maxRecords:DescribeEndpoints' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeEndpoints)
instance Core.AWSPager DescribeEndpoints where
page :: DescribeEndpoints
-> AWSResponse DescribeEndpoints -> Maybe DescribeEndpoints
page DescribeEndpoints
rq AWSResponse DescribeEndpoints
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEndpoints
DescribeEndpointsResponse
rs
DescribeEndpointsResponse
-> Getting (First Text) DescribeEndpointsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointsResponse
-> Const (First Text) DescribeEndpointsResponse
Lens' DescribeEndpointsResponse (Maybe Text)
describeEndpointsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointsResponse
-> Const (First Text) DescribeEndpointsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeEndpointsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeEndpoints
forall a. Maybe a
Prelude.Nothing
| Maybe [Endpoint] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEndpoints
DescribeEndpointsResponse
rs
DescribeEndpointsResponse
-> Getting (First [Endpoint]) DescribeEndpointsResponse [Endpoint]
-> Maybe [Endpoint]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Endpoint] -> Const (First [Endpoint]) (Maybe [Endpoint]))
-> DescribeEndpointsResponse
-> Const (First [Endpoint]) DescribeEndpointsResponse
Lens' DescribeEndpointsResponse (Maybe [Endpoint])
describeEndpointsResponse_endpoints
((Maybe [Endpoint] -> Const (First [Endpoint]) (Maybe [Endpoint]))
-> DescribeEndpointsResponse
-> Const (First [Endpoint]) DescribeEndpointsResponse)
-> (([Endpoint] -> Const (First [Endpoint]) [Endpoint])
-> Maybe [Endpoint] -> Const (First [Endpoint]) (Maybe [Endpoint]))
-> Getting (First [Endpoint]) DescribeEndpointsResponse [Endpoint]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Endpoint] -> Const (First [Endpoint]) [Endpoint])
-> Maybe [Endpoint] -> Const (First [Endpoint]) (Maybe [Endpoint])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeEndpoints
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeEndpoints -> Maybe DescribeEndpoints
forall a. a -> Maybe a
Prelude.Just (DescribeEndpoints -> Maybe DescribeEndpoints)
-> DescribeEndpoints -> Maybe DescribeEndpoints
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeEndpoints
rq
DescribeEndpoints
-> (DescribeEndpoints -> DescribeEndpoints) -> DescribeEndpoints
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeEndpoints -> Identity DescribeEndpoints
Lens DescribeEndpoints DescribeEndpoints (Maybe Text) (Maybe Text)
describeEndpoints_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeEndpoints -> Identity DescribeEndpoints)
-> Maybe Text -> DescribeEndpoints -> DescribeEndpoints
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeEndpoints
DescribeEndpointsResponse
rs
DescribeEndpointsResponse
-> Getting (First Text) DescribeEndpointsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointsResponse
-> Const (First Text) DescribeEndpointsResponse
Lens' DescribeEndpointsResponse (Maybe Text)
describeEndpointsResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointsResponse
-> Const (First Text) DescribeEndpointsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeEndpointsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeEndpoints where
type
AWSResponse DescribeEndpoints =
DescribeEndpointsResponse
request :: DescribeEndpoints -> Request DescribeEndpoints
request = Service -> DescribeEndpoints -> Request DescribeEndpoints
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeEndpoints
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeEndpoints)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeEndpoints))
-> Logger
-> Service
-> Proxy DescribeEndpoints
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeEndpoints)))
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 Text -> Maybe [Endpoint] -> Int -> DescribeEndpointsResponse
DescribeEndpointsResponse'
(Maybe Text
-> Maybe [Endpoint] -> Int -> DescribeEndpointsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Endpoint] -> Int -> DescribeEndpointsResponse)
forall (f :: * -> *) a b. Functor 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
"Marker")
Either
String (Maybe [Endpoint] -> Int -> DescribeEndpointsResponse)
-> Either String (Maybe [Endpoint])
-> Either String (Int -> DescribeEndpointsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Endpoint]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Endpoints" Either String (Maybe (Maybe [Endpoint]))
-> Maybe [Endpoint] -> Either String (Maybe [Endpoint])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Endpoint]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeEndpointsResponse)
-> Either String Int -> Either String DescribeEndpointsResponse
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 DescribeEndpoints
instance Prelude.NFData DescribeEndpoints
instance Core.ToHeaders DescribeEndpoints where
toHeaders :: DescribeEndpoints -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeEndpoints -> 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
"AmazonDMSv20160101.DescribeEndpoints" ::
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 DescribeEndpoints where
toJSON :: DescribeEndpoints -> Value
toJSON DescribeEndpoints' {Maybe Int
Maybe [Filter]
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:maxRecords:DescribeEndpoints' :: DescribeEndpoints -> Maybe Int
$sel:marker:DescribeEndpoints' :: DescribeEndpoints -> Maybe Text
$sel:filters:DescribeEndpoints' :: DescribeEndpoints -> 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
"Marker" 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
marker,
(Text
"MaxRecords" 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
maxRecords
]
)
instance Core.ToPath DescribeEndpoints where
toPath :: DescribeEndpoints -> ByteString
toPath = ByteString -> DescribeEndpoints -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeEndpoints where
toQuery :: DescribeEndpoints -> QueryString
toQuery = QueryString -> DescribeEndpoints -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeEndpointsResponse = DescribeEndpointsResponse'
{
DescribeEndpointsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeEndpointsResponse -> Maybe [Endpoint]
endpoints :: Prelude.Maybe [Endpoint],
DescribeEndpointsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool
(DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool)
-> (DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool)
-> Eq DescribeEndpointsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool
$c/= :: DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool
== :: DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool
$c== :: DescribeEndpointsResponse -> DescribeEndpointsResponse -> Bool
Prelude.Eq, Int -> DescribeEndpointsResponse -> ShowS
[DescribeEndpointsResponse] -> ShowS
DescribeEndpointsResponse -> String
(Int -> DescribeEndpointsResponse -> ShowS)
-> (DescribeEndpointsResponse -> String)
-> ([DescribeEndpointsResponse] -> ShowS)
-> Show DescribeEndpointsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpointsResponse] -> ShowS
$cshowList :: [DescribeEndpointsResponse] -> ShowS
show :: DescribeEndpointsResponse -> String
$cshow :: DescribeEndpointsResponse -> String
showsPrec :: Int -> DescribeEndpointsResponse -> ShowS
$cshowsPrec :: Int -> DescribeEndpointsResponse -> ShowS
Prelude.Show, (forall x.
DescribeEndpointsResponse -> Rep DescribeEndpointsResponse x)
-> (forall x.
Rep DescribeEndpointsResponse x -> DescribeEndpointsResponse)
-> Generic DescribeEndpointsResponse
forall x.
Rep DescribeEndpointsResponse x -> DescribeEndpointsResponse
forall x.
DescribeEndpointsResponse -> Rep DescribeEndpointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEndpointsResponse x -> DescribeEndpointsResponse
$cfrom :: forall x.
DescribeEndpointsResponse -> Rep DescribeEndpointsResponse x
Prelude.Generic)
newDescribeEndpointsResponse ::
Prelude.Int ->
DescribeEndpointsResponse
newDescribeEndpointsResponse :: Int -> DescribeEndpointsResponse
newDescribeEndpointsResponse Int
pHttpStatus_ =
DescribeEndpointsResponse' :: Maybe Text -> Maybe [Endpoint] -> Int -> DescribeEndpointsResponse
DescribeEndpointsResponse'
{ $sel:marker:DescribeEndpointsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endpoints:DescribeEndpointsResponse' :: Maybe [Endpoint]
endpoints = Maybe [Endpoint]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeEndpointsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeEndpointsResponse_marker :: Lens.Lens' DescribeEndpointsResponse (Prelude.Maybe Prelude.Text)
describeEndpointsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpointsResponse -> f DescribeEndpointsResponse
describeEndpointsResponse_marker = (DescribeEndpointsResponse -> Maybe Text)
-> (DescribeEndpointsResponse
-> Maybe Text -> DescribeEndpointsResponse)
-> Lens' DescribeEndpointsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEndpointsResponse' :: DescribeEndpointsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEndpointsResponse
s@DescribeEndpointsResponse' {} Maybe Text
a -> DescribeEndpointsResponse
s {$sel:marker:DescribeEndpointsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeEndpointsResponse)
describeEndpointsResponse_endpoints :: Lens.Lens' DescribeEndpointsResponse (Prelude.Maybe [Endpoint])
describeEndpointsResponse_endpoints :: (Maybe [Endpoint] -> f (Maybe [Endpoint]))
-> DescribeEndpointsResponse -> f DescribeEndpointsResponse
describeEndpointsResponse_endpoints = (DescribeEndpointsResponse -> Maybe [Endpoint])
-> (DescribeEndpointsResponse
-> Maybe [Endpoint] -> DescribeEndpointsResponse)
-> Lens' DescribeEndpointsResponse (Maybe [Endpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointsResponse' {Maybe [Endpoint]
endpoints :: Maybe [Endpoint]
$sel:endpoints:DescribeEndpointsResponse' :: DescribeEndpointsResponse -> Maybe [Endpoint]
endpoints} -> Maybe [Endpoint]
endpoints) (\s :: DescribeEndpointsResponse
s@DescribeEndpointsResponse' {} Maybe [Endpoint]
a -> DescribeEndpointsResponse
s {$sel:endpoints:DescribeEndpointsResponse' :: Maybe [Endpoint]
endpoints = Maybe [Endpoint]
a} :: DescribeEndpointsResponse) ((Maybe [Endpoint] -> f (Maybe [Endpoint]))
-> DescribeEndpointsResponse -> f DescribeEndpointsResponse)
-> ((Maybe [Endpoint] -> f (Maybe [Endpoint]))
-> Maybe [Endpoint] -> f (Maybe [Endpoint]))
-> (Maybe [Endpoint] -> f (Maybe [Endpoint]))
-> DescribeEndpointsResponse
-> f DescribeEndpointsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Endpoint] [Endpoint] [Endpoint] [Endpoint]
-> Iso
(Maybe [Endpoint])
(Maybe [Endpoint])
(Maybe [Endpoint])
(Maybe [Endpoint])
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 [Endpoint] [Endpoint] [Endpoint] [Endpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeEndpointsResponse_httpStatus :: Lens.Lens' DescribeEndpointsResponse Prelude.Int
describeEndpointsResponse_httpStatus :: (Int -> f Int)
-> DescribeEndpointsResponse -> f DescribeEndpointsResponse
describeEndpointsResponse_httpStatus = (DescribeEndpointsResponse -> Int)
-> (DescribeEndpointsResponse -> Int -> DescribeEndpointsResponse)
-> Lens DescribeEndpointsResponse DescribeEndpointsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEndpointsResponse' :: DescribeEndpointsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEndpointsResponse
s@DescribeEndpointsResponse' {} Int
a -> DescribeEndpointsResponse
s {$sel:httpStatus:DescribeEndpointsResponse' :: Int
httpStatus = Int
a} :: DescribeEndpointsResponse)
instance Prelude.NFData DescribeEndpointsResponse