{-# 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.DescribeEndpointTypes
(
DescribeEndpointTypes (..),
newDescribeEndpointTypes,
describeEndpointTypes_filters,
describeEndpointTypes_marker,
describeEndpointTypes_maxRecords,
DescribeEndpointTypesResponse (..),
newDescribeEndpointTypesResponse,
describeEndpointTypesResponse_supportedEndpointTypes,
describeEndpointTypesResponse_marker,
describeEndpointTypesResponse_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 DescribeEndpointTypes = DescribeEndpointTypes'
{
DescribeEndpointTypes -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeEndpointTypes -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeEndpointTypes -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeEndpointTypes -> DescribeEndpointTypes -> Bool
(DescribeEndpointTypes -> DescribeEndpointTypes -> Bool)
-> (DescribeEndpointTypes -> DescribeEndpointTypes -> Bool)
-> Eq DescribeEndpointTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpointTypes -> DescribeEndpointTypes -> Bool
$c/= :: DescribeEndpointTypes -> DescribeEndpointTypes -> Bool
== :: DescribeEndpointTypes -> DescribeEndpointTypes -> Bool
$c== :: DescribeEndpointTypes -> DescribeEndpointTypes -> Bool
Prelude.Eq, ReadPrec [DescribeEndpointTypes]
ReadPrec DescribeEndpointTypes
Int -> ReadS DescribeEndpointTypes
ReadS [DescribeEndpointTypes]
(Int -> ReadS DescribeEndpointTypes)
-> ReadS [DescribeEndpointTypes]
-> ReadPrec DescribeEndpointTypes
-> ReadPrec [DescribeEndpointTypes]
-> Read DescribeEndpointTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEndpointTypes]
$creadListPrec :: ReadPrec [DescribeEndpointTypes]
readPrec :: ReadPrec DescribeEndpointTypes
$creadPrec :: ReadPrec DescribeEndpointTypes
readList :: ReadS [DescribeEndpointTypes]
$creadList :: ReadS [DescribeEndpointTypes]
readsPrec :: Int -> ReadS DescribeEndpointTypes
$creadsPrec :: Int -> ReadS DescribeEndpointTypes
Prelude.Read, Int -> DescribeEndpointTypes -> ShowS
[DescribeEndpointTypes] -> ShowS
DescribeEndpointTypes -> String
(Int -> DescribeEndpointTypes -> ShowS)
-> (DescribeEndpointTypes -> String)
-> ([DescribeEndpointTypes] -> ShowS)
-> Show DescribeEndpointTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpointTypes] -> ShowS
$cshowList :: [DescribeEndpointTypes] -> ShowS
show :: DescribeEndpointTypes -> String
$cshow :: DescribeEndpointTypes -> String
showsPrec :: Int -> DescribeEndpointTypes -> ShowS
$cshowsPrec :: Int -> DescribeEndpointTypes -> ShowS
Prelude.Show, (forall x. DescribeEndpointTypes -> Rep DescribeEndpointTypes x)
-> (forall x. Rep DescribeEndpointTypes x -> DescribeEndpointTypes)
-> Generic DescribeEndpointTypes
forall x. Rep DescribeEndpointTypes x -> DescribeEndpointTypes
forall x. DescribeEndpointTypes -> Rep DescribeEndpointTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeEndpointTypes x -> DescribeEndpointTypes
$cfrom :: forall x. DescribeEndpointTypes -> Rep DescribeEndpointTypes x
Prelude.Generic)
newDescribeEndpointTypes ::
DescribeEndpointTypes
newDescribeEndpointTypes :: DescribeEndpointTypes
newDescribeEndpointTypes =
DescribeEndpointTypes' :: Maybe [Filter] -> Maybe Text -> Maybe Int -> DescribeEndpointTypes
DescribeEndpointTypes'
{ $sel:filters:DescribeEndpointTypes' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeEndpointTypes' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeEndpointTypes' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeEndpointTypes_filters :: Lens.Lens' DescribeEndpointTypes (Prelude.Maybe [Filter])
describeEndpointTypes_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEndpointTypes -> f DescribeEndpointTypes
describeEndpointTypes_filters = (DescribeEndpointTypes -> Maybe [Filter])
-> (DescribeEndpointTypes
-> Maybe [Filter] -> DescribeEndpointTypes)
-> Lens
DescribeEndpointTypes
DescribeEndpointTypes
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointTypes' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeEndpointTypes' :: DescribeEndpointTypes -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeEndpointTypes
s@DescribeEndpointTypes' {} Maybe [Filter]
a -> DescribeEndpointTypes
s {$sel:filters:DescribeEndpointTypes' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeEndpointTypes) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEndpointTypes -> f DescribeEndpointTypes)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEndpointTypes
-> f DescribeEndpointTypes
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
describeEndpointTypes_marker :: Lens.Lens' DescribeEndpointTypes (Prelude.Maybe Prelude.Text)
describeEndpointTypes_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpointTypes -> f DescribeEndpointTypes
describeEndpointTypes_marker = (DescribeEndpointTypes -> Maybe Text)
-> (DescribeEndpointTypes -> Maybe Text -> DescribeEndpointTypes)
-> Lens
DescribeEndpointTypes
DescribeEndpointTypes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointTypes' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEndpointTypes' :: DescribeEndpointTypes -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEndpointTypes
s@DescribeEndpointTypes' {} Maybe Text
a -> DescribeEndpointTypes
s {$sel:marker:DescribeEndpointTypes' :: Maybe Text
marker = Maybe Text
a} :: DescribeEndpointTypes)
describeEndpointTypes_maxRecords :: Lens.Lens' DescribeEndpointTypes (Prelude.Maybe Prelude.Int)
describeEndpointTypes_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeEndpointTypes -> f DescribeEndpointTypes
describeEndpointTypes_maxRecords = (DescribeEndpointTypes -> Maybe Int)
-> (DescribeEndpointTypes -> Maybe Int -> DescribeEndpointTypes)
-> Lens
DescribeEndpointTypes DescribeEndpointTypes (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointTypes' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeEndpointTypes' :: DescribeEndpointTypes -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeEndpointTypes
s@DescribeEndpointTypes' {} Maybe Int
a -> DescribeEndpointTypes
s {$sel:maxRecords:DescribeEndpointTypes' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeEndpointTypes)
instance Core.AWSPager DescribeEndpointTypes where
page :: DescribeEndpointTypes
-> AWSResponse DescribeEndpointTypes -> Maybe DescribeEndpointTypes
page DescribeEndpointTypes
rq AWSResponse DescribeEndpointTypes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEndpointTypes
DescribeEndpointTypesResponse
rs
DescribeEndpointTypesResponse
-> Getting (First Text) DescribeEndpointTypesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointTypesResponse
-> Const (First Text) DescribeEndpointTypesResponse
Lens' DescribeEndpointTypesResponse (Maybe Text)
describeEndpointTypesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointTypesResponse
-> Const (First Text) DescribeEndpointTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeEndpointTypesResponse 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 DescribeEndpointTypes
forall a. Maybe a
Prelude.Nothing
| Maybe [SupportedEndpointType] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEndpointTypes
DescribeEndpointTypesResponse
rs
DescribeEndpointTypesResponse
-> Getting
(First [SupportedEndpointType])
DescribeEndpointTypesResponse
[SupportedEndpointType]
-> Maybe [SupportedEndpointType]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SupportedEndpointType]
-> Const
(First [SupportedEndpointType]) (Maybe [SupportedEndpointType]))
-> DescribeEndpointTypesResponse
-> Const
(First [SupportedEndpointType]) DescribeEndpointTypesResponse
Lens' DescribeEndpointTypesResponse (Maybe [SupportedEndpointType])
describeEndpointTypesResponse_supportedEndpointTypes
((Maybe [SupportedEndpointType]
-> Const
(First [SupportedEndpointType]) (Maybe [SupportedEndpointType]))
-> DescribeEndpointTypesResponse
-> Const
(First [SupportedEndpointType]) DescribeEndpointTypesResponse)
-> (([SupportedEndpointType]
-> Const (First [SupportedEndpointType]) [SupportedEndpointType])
-> Maybe [SupportedEndpointType]
-> Const
(First [SupportedEndpointType]) (Maybe [SupportedEndpointType]))
-> Getting
(First [SupportedEndpointType])
DescribeEndpointTypesResponse
[SupportedEndpointType]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SupportedEndpointType]
-> Const (First [SupportedEndpointType]) [SupportedEndpointType])
-> Maybe [SupportedEndpointType]
-> Const
(First [SupportedEndpointType]) (Maybe [SupportedEndpointType])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeEndpointTypes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeEndpointTypes -> Maybe DescribeEndpointTypes
forall a. a -> Maybe a
Prelude.Just (DescribeEndpointTypes -> Maybe DescribeEndpointTypes)
-> DescribeEndpointTypes -> Maybe DescribeEndpointTypes
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeEndpointTypes
rq
DescribeEndpointTypes
-> (DescribeEndpointTypes -> DescribeEndpointTypes)
-> DescribeEndpointTypes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeEndpointTypes -> Identity DescribeEndpointTypes
Lens
DescribeEndpointTypes
DescribeEndpointTypes
(Maybe Text)
(Maybe Text)
describeEndpointTypes_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeEndpointTypes -> Identity DescribeEndpointTypes)
-> Maybe Text -> DescribeEndpointTypes -> DescribeEndpointTypes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeEndpointTypes
DescribeEndpointTypesResponse
rs
DescribeEndpointTypesResponse
-> Getting (First Text) DescribeEndpointTypesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointTypesResponse
-> Const (First Text) DescribeEndpointTypesResponse
Lens' DescribeEndpointTypesResponse (Maybe Text)
describeEndpointTypesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeEndpointTypesResponse
-> Const (First Text) DescribeEndpointTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeEndpointTypesResponse 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 DescribeEndpointTypes where
type
AWSResponse DescribeEndpointTypes =
DescribeEndpointTypesResponse
request :: DescribeEndpointTypes -> Request DescribeEndpointTypes
request = Service -> DescribeEndpointTypes -> Request DescribeEndpointTypes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeEndpointTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeEndpointTypes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeEndpointTypes))
-> Logger
-> Service
-> Proxy DescribeEndpointTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeEndpointTypes)))
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 [SupportedEndpointType]
-> Maybe Text -> Int -> DescribeEndpointTypesResponse
DescribeEndpointTypesResponse'
(Maybe [SupportedEndpointType]
-> Maybe Text -> Int -> DescribeEndpointTypesResponse)
-> Either String (Maybe [SupportedEndpointType])
-> Either
String (Maybe Text -> Int -> DescribeEndpointTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [SupportedEndpointType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SupportedEndpointTypes"
Either String (Maybe (Maybe [SupportedEndpointType]))
-> Maybe [SupportedEndpointType]
-> Either String (Maybe [SupportedEndpointType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SupportedEndpointType]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> DescribeEndpointTypesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeEndpointTypesResponse)
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
"Marker")
Either String (Int -> DescribeEndpointTypesResponse)
-> Either String Int -> Either String DescribeEndpointTypesResponse
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 DescribeEndpointTypes
instance Prelude.NFData DescribeEndpointTypes
instance Core.ToHeaders DescribeEndpointTypes where
toHeaders :: DescribeEndpointTypes -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeEndpointTypes -> 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.DescribeEndpointTypes" ::
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 DescribeEndpointTypes where
toJSON :: DescribeEndpointTypes -> Value
toJSON DescribeEndpointTypes' {Maybe Int
Maybe [Filter]
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:maxRecords:DescribeEndpointTypes' :: DescribeEndpointTypes -> Maybe Int
$sel:marker:DescribeEndpointTypes' :: DescribeEndpointTypes -> Maybe Text
$sel:filters:DescribeEndpointTypes' :: DescribeEndpointTypes -> 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 DescribeEndpointTypes where
toPath :: DescribeEndpointTypes -> ByteString
toPath = ByteString -> DescribeEndpointTypes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeEndpointTypes where
toQuery :: DescribeEndpointTypes -> QueryString
toQuery = QueryString -> DescribeEndpointTypes -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeEndpointTypesResponse = DescribeEndpointTypesResponse'
{
DescribeEndpointTypesResponse -> Maybe [SupportedEndpointType]
supportedEndpointTypes :: Prelude.Maybe [SupportedEndpointType],
DescribeEndpointTypesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeEndpointTypesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool
(DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool)
-> (DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool)
-> Eq DescribeEndpointTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool
$c/= :: DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool
== :: DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool
$c== :: DescribeEndpointTypesResponse
-> DescribeEndpointTypesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEndpointTypesResponse]
ReadPrec DescribeEndpointTypesResponse
Int -> ReadS DescribeEndpointTypesResponse
ReadS [DescribeEndpointTypesResponse]
(Int -> ReadS DescribeEndpointTypesResponse)
-> ReadS [DescribeEndpointTypesResponse]
-> ReadPrec DescribeEndpointTypesResponse
-> ReadPrec [DescribeEndpointTypesResponse]
-> Read DescribeEndpointTypesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEndpointTypesResponse]
$creadListPrec :: ReadPrec [DescribeEndpointTypesResponse]
readPrec :: ReadPrec DescribeEndpointTypesResponse
$creadPrec :: ReadPrec DescribeEndpointTypesResponse
readList :: ReadS [DescribeEndpointTypesResponse]
$creadList :: ReadS [DescribeEndpointTypesResponse]
readsPrec :: Int -> ReadS DescribeEndpointTypesResponse
$creadsPrec :: Int -> ReadS DescribeEndpointTypesResponse
Prelude.Read, Int -> DescribeEndpointTypesResponse -> ShowS
[DescribeEndpointTypesResponse] -> ShowS
DescribeEndpointTypesResponse -> String
(Int -> DescribeEndpointTypesResponse -> ShowS)
-> (DescribeEndpointTypesResponse -> String)
-> ([DescribeEndpointTypesResponse] -> ShowS)
-> Show DescribeEndpointTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpointTypesResponse] -> ShowS
$cshowList :: [DescribeEndpointTypesResponse] -> ShowS
show :: DescribeEndpointTypesResponse -> String
$cshow :: DescribeEndpointTypesResponse -> String
showsPrec :: Int -> DescribeEndpointTypesResponse -> ShowS
$cshowsPrec :: Int -> DescribeEndpointTypesResponse -> ShowS
Prelude.Show, (forall x.
DescribeEndpointTypesResponse
-> Rep DescribeEndpointTypesResponse x)
-> (forall x.
Rep DescribeEndpointTypesResponse x
-> DescribeEndpointTypesResponse)
-> Generic DescribeEndpointTypesResponse
forall x.
Rep DescribeEndpointTypesResponse x
-> DescribeEndpointTypesResponse
forall x.
DescribeEndpointTypesResponse
-> Rep DescribeEndpointTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEndpointTypesResponse x
-> DescribeEndpointTypesResponse
$cfrom :: forall x.
DescribeEndpointTypesResponse
-> Rep DescribeEndpointTypesResponse x
Prelude.Generic)
newDescribeEndpointTypesResponse ::
Prelude.Int ->
DescribeEndpointTypesResponse
newDescribeEndpointTypesResponse :: Int -> DescribeEndpointTypesResponse
newDescribeEndpointTypesResponse Int
pHttpStatus_ =
DescribeEndpointTypesResponse' :: Maybe [SupportedEndpointType]
-> Maybe Text -> Int -> DescribeEndpointTypesResponse
DescribeEndpointTypesResponse'
{ $sel:supportedEndpointTypes:DescribeEndpointTypesResponse' :: Maybe [SupportedEndpointType]
supportedEndpointTypes =
Maybe [SupportedEndpointType]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeEndpointTypesResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeEndpointTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeEndpointTypesResponse_supportedEndpointTypes :: Lens.Lens' DescribeEndpointTypesResponse (Prelude.Maybe [SupportedEndpointType])
describeEndpointTypesResponse_supportedEndpointTypes :: (Maybe [SupportedEndpointType]
-> f (Maybe [SupportedEndpointType]))
-> DescribeEndpointTypesResponse -> f DescribeEndpointTypesResponse
describeEndpointTypesResponse_supportedEndpointTypes = (DescribeEndpointTypesResponse -> Maybe [SupportedEndpointType])
-> (DescribeEndpointTypesResponse
-> Maybe [SupportedEndpointType] -> DescribeEndpointTypesResponse)
-> Lens'
DescribeEndpointTypesResponse (Maybe [SupportedEndpointType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointTypesResponse' {Maybe [SupportedEndpointType]
supportedEndpointTypes :: Maybe [SupportedEndpointType]
$sel:supportedEndpointTypes:DescribeEndpointTypesResponse' :: DescribeEndpointTypesResponse -> Maybe [SupportedEndpointType]
supportedEndpointTypes} -> Maybe [SupportedEndpointType]
supportedEndpointTypes) (\s :: DescribeEndpointTypesResponse
s@DescribeEndpointTypesResponse' {} Maybe [SupportedEndpointType]
a -> DescribeEndpointTypesResponse
s {$sel:supportedEndpointTypes:DescribeEndpointTypesResponse' :: Maybe [SupportedEndpointType]
supportedEndpointTypes = Maybe [SupportedEndpointType]
a} :: DescribeEndpointTypesResponse) ((Maybe [SupportedEndpointType]
-> f (Maybe [SupportedEndpointType]))
-> DescribeEndpointTypesResponse
-> f DescribeEndpointTypesResponse)
-> ((Maybe [SupportedEndpointType]
-> f (Maybe [SupportedEndpointType]))
-> Maybe [SupportedEndpointType]
-> f (Maybe [SupportedEndpointType]))
-> (Maybe [SupportedEndpointType]
-> f (Maybe [SupportedEndpointType]))
-> DescribeEndpointTypesResponse
-> f DescribeEndpointTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SupportedEndpointType]
[SupportedEndpointType]
[SupportedEndpointType]
[SupportedEndpointType]
-> Iso
(Maybe [SupportedEndpointType])
(Maybe [SupportedEndpointType])
(Maybe [SupportedEndpointType])
(Maybe [SupportedEndpointType])
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
[SupportedEndpointType]
[SupportedEndpointType]
[SupportedEndpointType]
[SupportedEndpointType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeEndpointTypesResponse_marker :: Lens.Lens' DescribeEndpointTypesResponse (Prelude.Maybe Prelude.Text)
describeEndpointTypesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpointTypesResponse -> f DescribeEndpointTypesResponse
describeEndpointTypesResponse_marker = (DescribeEndpointTypesResponse -> Maybe Text)
-> (DescribeEndpointTypesResponse
-> Maybe Text -> DescribeEndpointTypesResponse)
-> Lens' DescribeEndpointTypesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointTypesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEndpointTypesResponse' :: DescribeEndpointTypesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEndpointTypesResponse
s@DescribeEndpointTypesResponse' {} Maybe Text
a -> DescribeEndpointTypesResponse
s {$sel:marker:DescribeEndpointTypesResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeEndpointTypesResponse)
describeEndpointTypesResponse_httpStatus :: Lens.Lens' DescribeEndpointTypesResponse Prelude.Int
describeEndpointTypesResponse_httpStatus :: (Int -> f Int)
-> DescribeEndpointTypesResponse -> f DescribeEndpointTypesResponse
describeEndpointTypesResponse_httpStatus = (DescribeEndpointTypesResponse -> Int)
-> (DescribeEndpointTypesResponse
-> Int -> DescribeEndpointTypesResponse)
-> Lens
DescribeEndpointTypesResponse DescribeEndpointTypesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEndpointTypesResponse' :: DescribeEndpointTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEndpointTypesResponse
s@DescribeEndpointTypesResponse' {} Int
a -> DescribeEndpointTypesResponse
s {$sel:httpStatus:DescribeEndpointTypesResponse' :: Int
httpStatus = Int
a} :: DescribeEndpointTypesResponse)
instance Prelude.NFData DescribeEndpointTypesResponse