{-# 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.DescribeOrderableReplicationInstances
(
DescribeOrderableReplicationInstances (..),
newDescribeOrderableReplicationInstances,
describeOrderableReplicationInstances_marker,
describeOrderableReplicationInstances_maxRecords,
DescribeOrderableReplicationInstancesResponse (..),
newDescribeOrderableReplicationInstancesResponse,
describeOrderableReplicationInstancesResponse_marker,
describeOrderableReplicationInstancesResponse_orderableReplicationInstances,
describeOrderableReplicationInstancesResponse_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 DescribeOrderableReplicationInstances = DescribeOrderableReplicationInstances'
{
DescribeOrderableReplicationInstances -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeOrderableReplicationInstances -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool
(DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool)
-> (DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool)
-> Eq DescribeOrderableReplicationInstances
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool
$c/= :: DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool
== :: DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool
$c== :: DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances -> Bool
Prelude.Eq, ReadPrec [DescribeOrderableReplicationInstances]
ReadPrec DescribeOrderableReplicationInstances
Int -> ReadS DescribeOrderableReplicationInstances
ReadS [DescribeOrderableReplicationInstances]
(Int -> ReadS DescribeOrderableReplicationInstances)
-> ReadS [DescribeOrderableReplicationInstances]
-> ReadPrec DescribeOrderableReplicationInstances
-> ReadPrec [DescribeOrderableReplicationInstances]
-> Read DescribeOrderableReplicationInstances
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOrderableReplicationInstances]
$creadListPrec :: ReadPrec [DescribeOrderableReplicationInstances]
readPrec :: ReadPrec DescribeOrderableReplicationInstances
$creadPrec :: ReadPrec DescribeOrderableReplicationInstances
readList :: ReadS [DescribeOrderableReplicationInstances]
$creadList :: ReadS [DescribeOrderableReplicationInstances]
readsPrec :: Int -> ReadS DescribeOrderableReplicationInstances
$creadsPrec :: Int -> ReadS DescribeOrderableReplicationInstances
Prelude.Read, Int -> DescribeOrderableReplicationInstances -> ShowS
[DescribeOrderableReplicationInstances] -> ShowS
DescribeOrderableReplicationInstances -> String
(Int -> DescribeOrderableReplicationInstances -> ShowS)
-> (DescribeOrderableReplicationInstances -> String)
-> ([DescribeOrderableReplicationInstances] -> ShowS)
-> Show DescribeOrderableReplicationInstances
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOrderableReplicationInstances] -> ShowS
$cshowList :: [DescribeOrderableReplicationInstances] -> ShowS
show :: DescribeOrderableReplicationInstances -> String
$cshow :: DescribeOrderableReplicationInstances -> String
showsPrec :: Int -> DescribeOrderableReplicationInstances -> ShowS
$cshowsPrec :: Int -> DescribeOrderableReplicationInstances -> ShowS
Prelude.Show, (forall x.
DescribeOrderableReplicationInstances
-> Rep DescribeOrderableReplicationInstances x)
-> (forall x.
Rep DescribeOrderableReplicationInstances x
-> DescribeOrderableReplicationInstances)
-> Generic DescribeOrderableReplicationInstances
forall x.
Rep DescribeOrderableReplicationInstances x
-> DescribeOrderableReplicationInstances
forall x.
DescribeOrderableReplicationInstances
-> Rep DescribeOrderableReplicationInstances x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOrderableReplicationInstances x
-> DescribeOrderableReplicationInstances
$cfrom :: forall x.
DescribeOrderableReplicationInstances
-> Rep DescribeOrderableReplicationInstances x
Prelude.Generic)
newDescribeOrderableReplicationInstances ::
DescribeOrderableReplicationInstances
newDescribeOrderableReplicationInstances :: DescribeOrderableReplicationInstances
newDescribeOrderableReplicationInstances =
DescribeOrderableReplicationInstances' :: Maybe Text -> Maybe Int -> DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstances'
{ $sel:marker:DescribeOrderableReplicationInstances' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeOrderableReplicationInstances' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeOrderableReplicationInstances_marker :: Lens.Lens' DescribeOrderableReplicationInstances (Prelude.Maybe Prelude.Text)
describeOrderableReplicationInstances_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeOrderableReplicationInstances
-> f DescribeOrderableReplicationInstances
describeOrderableReplicationInstances_marker = (DescribeOrderableReplicationInstances -> Maybe Text)
-> (DescribeOrderableReplicationInstances
-> Maybe Text -> DescribeOrderableReplicationInstances)
-> Lens
DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstances
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableReplicationInstances' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeOrderableReplicationInstances' :: DescribeOrderableReplicationInstances -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeOrderableReplicationInstances
s@DescribeOrderableReplicationInstances' {} Maybe Text
a -> DescribeOrderableReplicationInstances
s {$sel:marker:DescribeOrderableReplicationInstances' :: Maybe Text
marker = Maybe Text
a} :: DescribeOrderableReplicationInstances)
describeOrderableReplicationInstances_maxRecords :: Lens.Lens' DescribeOrderableReplicationInstances (Prelude.Maybe Prelude.Int)
describeOrderableReplicationInstances_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeOrderableReplicationInstances
-> f DescribeOrderableReplicationInstances
describeOrderableReplicationInstances_maxRecords = (DescribeOrderableReplicationInstances -> Maybe Int)
-> (DescribeOrderableReplicationInstances
-> Maybe Int -> DescribeOrderableReplicationInstances)
-> Lens
DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstances
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableReplicationInstances' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeOrderableReplicationInstances' :: DescribeOrderableReplicationInstances -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeOrderableReplicationInstances
s@DescribeOrderableReplicationInstances' {} Maybe Int
a -> DescribeOrderableReplicationInstances
s {$sel:maxRecords:DescribeOrderableReplicationInstances' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeOrderableReplicationInstances)
instance
Core.AWSPager
DescribeOrderableReplicationInstances
where
page :: DescribeOrderableReplicationInstances
-> AWSResponse DescribeOrderableReplicationInstances
-> Maybe DescribeOrderableReplicationInstances
page DescribeOrderableReplicationInstances
rq AWSResponse DescribeOrderableReplicationInstances
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstancesResponse
rs
DescribeOrderableReplicationInstancesResponse
-> Getting
(First Text) DescribeOrderableReplicationInstancesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrderableReplicationInstancesResponse
-> Const (First Text) DescribeOrderableReplicationInstancesResponse
Lens' DescribeOrderableReplicationInstancesResponse (Maybe Text)
describeOrderableReplicationInstancesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrderableReplicationInstancesResponse
-> Const
(First Text) DescribeOrderableReplicationInstancesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeOrderableReplicationInstancesResponse 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 DescribeOrderableReplicationInstances
forall a. Maybe a
Prelude.Nothing
| Maybe [OrderableReplicationInstance] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstancesResponse
rs
DescribeOrderableReplicationInstancesResponse
-> Getting
(First [OrderableReplicationInstance])
DescribeOrderableReplicationInstancesResponse
[OrderableReplicationInstance]
-> Maybe [OrderableReplicationInstance]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [OrderableReplicationInstance]
-> Const
(First [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance]))
-> DescribeOrderableReplicationInstancesResponse
-> Const
(First [OrderableReplicationInstance])
DescribeOrderableReplicationInstancesResponse
Lens'
DescribeOrderableReplicationInstancesResponse
(Maybe [OrderableReplicationInstance])
describeOrderableReplicationInstancesResponse_orderableReplicationInstances
((Maybe [OrderableReplicationInstance]
-> Const
(First [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance]))
-> DescribeOrderableReplicationInstancesResponse
-> Const
(First [OrderableReplicationInstance])
DescribeOrderableReplicationInstancesResponse)
-> (([OrderableReplicationInstance]
-> Const
(First [OrderableReplicationInstance])
[OrderableReplicationInstance])
-> Maybe [OrderableReplicationInstance]
-> Const
(First [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance]))
-> Getting
(First [OrderableReplicationInstance])
DescribeOrderableReplicationInstancesResponse
[OrderableReplicationInstance]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([OrderableReplicationInstance]
-> Const
(First [OrderableReplicationInstance])
[OrderableReplicationInstance])
-> Maybe [OrderableReplicationInstance]
-> Const
(First [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeOrderableReplicationInstances
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeOrderableReplicationInstances
-> Maybe DescribeOrderableReplicationInstances
forall a. a -> Maybe a
Prelude.Just (DescribeOrderableReplicationInstances
-> Maybe DescribeOrderableReplicationInstances)
-> DescribeOrderableReplicationInstances
-> Maybe DescribeOrderableReplicationInstances
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeOrderableReplicationInstances
rq
DescribeOrderableReplicationInstances
-> (DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances)
-> DescribeOrderableReplicationInstances
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeOrderableReplicationInstances
-> Identity DescribeOrderableReplicationInstances
Lens
DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstances
(Maybe Text)
(Maybe Text)
describeOrderableReplicationInstances_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeOrderableReplicationInstances
-> Identity DescribeOrderableReplicationInstances)
-> Maybe Text
-> DescribeOrderableReplicationInstances
-> DescribeOrderableReplicationInstances
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeOrderableReplicationInstances
DescribeOrderableReplicationInstancesResponse
rs
DescribeOrderableReplicationInstancesResponse
-> Getting
(First Text) DescribeOrderableReplicationInstancesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrderableReplicationInstancesResponse
-> Const (First Text) DescribeOrderableReplicationInstancesResponse
Lens' DescribeOrderableReplicationInstancesResponse (Maybe Text)
describeOrderableReplicationInstancesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrderableReplicationInstancesResponse
-> Const
(First Text) DescribeOrderableReplicationInstancesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeOrderableReplicationInstancesResponse 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
DescribeOrderableReplicationInstances
where
type
AWSResponse
DescribeOrderableReplicationInstances =
DescribeOrderableReplicationInstancesResponse
request :: DescribeOrderableReplicationInstances
-> Request DescribeOrderableReplicationInstances
request = Service
-> DescribeOrderableReplicationInstances
-> Request DescribeOrderableReplicationInstances
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeOrderableReplicationInstances
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeOrderableReplicationInstances)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse DescribeOrderableReplicationInstances))
-> Logger
-> Service
-> Proxy DescribeOrderableReplicationInstances
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeOrderableReplicationInstances)))
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 [OrderableReplicationInstance]
-> Int
-> DescribeOrderableReplicationInstancesResponse
DescribeOrderableReplicationInstancesResponse'
(Maybe Text
-> Maybe [OrderableReplicationInstance]
-> Int
-> DescribeOrderableReplicationInstancesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [OrderableReplicationInstance]
-> Int -> DescribeOrderableReplicationInstancesResponse)
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 [OrderableReplicationInstance]
-> Int -> DescribeOrderableReplicationInstancesResponse)
-> Either String (Maybe [OrderableReplicationInstance])
-> Either
String (Int -> DescribeOrderableReplicationInstancesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [OrderableReplicationInstance]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OrderableReplicationInstances"
Either String (Maybe (Maybe [OrderableReplicationInstance]))
-> Maybe [OrderableReplicationInstance]
-> Either String (Maybe [OrderableReplicationInstance])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OrderableReplicationInstance]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Int -> DescribeOrderableReplicationInstancesResponse)
-> Either String Int
-> Either String DescribeOrderableReplicationInstancesResponse
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
DescribeOrderableReplicationInstances
instance
Prelude.NFData
DescribeOrderableReplicationInstances
instance
Core.ToHeaders
DescribeOrderableReplicationInstances
where
toHeaders :: DescribeOrderableReplicationInstances -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeOrderableReplicationInstances -> 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.DescribeOrderableReplicationInstances" ::
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
DescribeOrderableReplicationInstances
where
toJSON :: DescribeOrderableReplicationInstances -> Value
toJSON DescribeOrderableReplicationInstances' {Maybe Int
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:maxRecords:DescribeOrderableReplicationInstances' :: DescribeOrderableReplicationInstances -> Maybe Int
$sel:marker:DescribeOrderableReplicationInstances' :: DescribeOrderableReplicationInstances -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
DescribeOrderableReplicationInstances
where
toPath :: DescribeOrderableReplicationInstances -> ByteString
toPath = ByteString -> DescribeOrderableReplicationInstances -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeOrderableReplicationInstances
where
toQuery :: DescribeOrderableReplicationInstances -> QueryString
toQuery = QueryString -> DescribeOrderableReplicationInstances -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeOrderableReplicationInstancesResponse = DescribeOrderableReplicationInstancesResponse'
{
DescribeOrderableReplicationInstancesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeOrderableReplicationInstancesResponse
-> Maybe [OrderableReplicationInstance]
orderableReplicationInstances :: Prelude.Maybe [OrderableReplicationInstance],
DescribeOrderableReplicationInstancesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool
(DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool)
-> (DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool)
-> Eq DescribeOrderableReplicationInstancesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool
$c/= :: DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool
== :: DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool
$c== :: DescribeOrderableReplicationInstancesResponse
-> DescribeOrderableReplicationInstancesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeOrderableReplicationInstancesResponse]
ReadPrec DescribeOrderableReplicationInstancesResponse
Int -> ReadS DescribeOrderableReplicationInstancesResponse
ReadS [DescribeOrderableReplicationInstancesResponse]
(Int -> ReadS DescribeOrderableReplicationInstancesResponse)
-> ReadS [DescribeOrderableReplicationInstancesResponse]
-> ReadPrec DescribeOrderableReplicationInstancesResponse
-> ReadPrec [DescribeOrderableReplicationInstancesResponse]
-> Read DescribeOrderableReplicationInstancesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOrderableReplicationInstancesResponse]
$creadListPrec :: ReadPrec [DescribeOrderableReplicationInstancesResponse]
readPrec :: ReadPrec DescribeOrderableReplicationInstancesResponse
$creadPrec :: ReadPrec DescribeOrderableReplicationInstancesResponse
readList :: ReadS [DescribeOrderableReplicationInstancesResponse]
$creadList :: ReadS [DescribeOrderableReplicationInstancesResponse]
readsPrec :: Int -> ReadS DescribeOrderableReplicationInstancesResponse
$creadsPrec :: Int -> ReadS DescribeOrderableReplicationInstancesResponse
Prelude.Read, Int -> DescribeOrderableReplicationInstancesResponse -> ShowS
[DescribeOrderableReplicationInstancesResponse] -> ShowS
DescribeOrderableReplicationInstancesResponse -> String
(Int -> DescribeOrderableReplicationInstancesResponse -> ShowS)
-> (DescribeOrderableReplicationInstancesResponse -> String)
-> ([DescribeOrderableReplicationInstancesResponse] -> ShowS)
-> Show DescribeOrderableReplicationInstancesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOrderableReplicationInstancesResponse] -> ShowS
$cshowList :: [DescribeOrderableReplicationInstancesResponse] -> ShowS
show :: DescribeOrderableReplicationInstancesResponse -> String
$cshow :: DescribeOrderableReplicationInstancesResponse -> String
showsPrec :: Int -> DescribeOrderableReplicationInstancesResponse -> ShowS
$cshowsPrec :: Int -> DescribeOrderableReplicationInstancesResponse -> ShowS
Prelude.Show, (forall x.
DescribeOrderableReplicationInstancesResponse
-> Rep DescribeOrderableReplicationInstancesResponse x)
-> (forall x.
Rep DescribeOrderableReplicationInstancesResponse x
-> DescribeOrderableReplicationInstancesResponse)
-> Generic DescribeOrderableReplicationInstancesResponse
forall x.
Rep DescribeOrderableReplicationInstancesResponse x
-> DescribeOrderableReplicationInstancesResponse
forall x.
DescribeOrderableReplicationInstancesResponse
-> Rep DescribeOrderableReplicationInstancesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOrderableReplicationInstancesResponse x
-> DescribeOrderableReplicationInstancesResponse
$cfrom :: forall x.
DescribeOrderableReplicationInstancesResponse
-> Rep DescribeOrderableReplicationInstancesResponse x
Prelude.Generic)
newDescribeOrderableReplicationInstancesResponse ::
Prelude.Int ->
DescribeOrderableReplicationInstancesResponse
newDescribeOrderableReplicationInstancesResponse :: Int -> DescribeOrderableReplicationInstancesResponse
newDescribeOrderableReplicationInstancesResponse
Int
pHttpStatus_ =
DescribeOrderableReplicationInstancesResponse' :: Maybe Text
-> Maybe [OrderableReplicationInstance]
-> Int
-> DescribeOrderableReplicationInstancesResponse
DescribeOrderableReplicationInstancesResponse'
{ $sel:marker:DescribeOrderableReplicationInstancesResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:orderableReplicationInstances:DescribeOrderableReplicationInstancesResponse' :: Maybe [OrderableReplicationInstance]
orderableReplicationInstances =
Maybe [OrderableReplicationInstance]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeOrderableReplicationInstancesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeOrderableReplicationInstancesResponse_marker :: Lens.Lens' DescribeOrderableReplicationInstancesResponse (Prelude.Maybe Prelude.Text)
describeOrderableReplicationInstancesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeOrderableReplicationInstancesResponse
-> f DescribeOrderableReplicationInstancesResponse
describeOrderableReplicationInstancesResponse_marker = (DescribeOrderableReplicationInstancesResponse -> Maybe Text)
-> (DescribeOrderableReplicationInstancesResponse
-> Maybe Text -> DescribeOrderableReplicationInstancesResponse)
-> Lens' DescribeOrderableReplicationInstancesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableReplicationInstancesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeOrderableReplicationInstancesResponse' :: DescribeOrderableReplicationInstancesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeOrderableReplicationInstancesResponse
s@DescribeOrderableReplicationInstancesResponse' {} Maybe Text
a -> DescribeOrderableReplicationInstancesResponse
s {$sel:marker:DescribeOrderableReplicationInstancesResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeOrderableReplicationInstancesResponse)
describeOrderableReplicationInstancesResponse_orderableReplicationInstances :: Lens.Lens' DescribeOrderableReplicationInstancesResponse (Prelude.Maybe [OrderableReplicationInstance])
describeOrderableReplicationInstancesResponse_orderableReplicationInstances :: (Maybe [OrderableReplicationInstance]
-> f (Maybe [OrderableReplicationInstance]))
-> DescribeOrderableReplicationInstancesResponse
-> f DescribeOrderableReplicationInstancesResponse
describeOrderableReplicationInstancesResponse_orderableReplicationInstances = (DescribeOrderableReplicationInstancesResponse
-> Maybe [OrderableReplicationInstance])
-> (DescribeOrderableReplicationInstancesResponse
-> Maybe [OrderableReplicationInstance]
-> DescribeOrderableReplicationInstancesResponse)
-> Lens'
DescribeOrderableReplicationInstancesResponse
(Maybe [OrderableReplicationInstance])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableReplicationInstancesResponse' {Maybe [OrderableReplicationInstance]
orderableReplicationInstances :: Maybe [OrderableReplicationInstance]
$sel:orderableReplicationInstances:DescribeOrderableReplicationInstancesResponse' :: DescribeOrderableReplicationInstancesResponse
-> Maybe [OrderableReplicationInstance]
orderableReplicationInstances} -> Maybe [OrderableReplicationInstance]
orderableReplicationInstances) (\s :: DescribeOrderableReplicationInstancesResponse
s@DescribeOrderableReplicationInstancesResponse' {} Maybe [OrderableReplicationInstance]
a -> DescribeOrderableReplicationInstancesResponse
s {$sel:orderableReplicationInstances:DescribeOrderableReplicationInstancesResponse' :: Maybe [OrderableReplicationInstance]
orderableReplicationInstances = Maybe [OrderableReplicationInstance]
a} :: DescribeOrderableReplicationInstancesResponse) ((Maybe [OrderableReplicationInstance]
-> f (Maybe [OrderableReplicationInstance]))
-> DescribeOrderableReplicationInstancesResponse
-> f DescribeOrderableReplicationInstancesResponse)
-> ((Maybe [OrderableReplicationInstance]
-> f (Maybe [OrderableReplicationInstance]))
-> Maybe [OrderableReplicationInstance]
-> f (Maybe [OrderableReplicationInstance]))
-> (Maybe [OrderableReplicationInstance]
-> f (Maybe [OrderableReplicationInstance]))
-> DescribeOrderableReplicationInstancesResponse
-> f DescribeOrderableReplicationInstancesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OrderableReplicationInstance]
[OrderableReplicationInstance]
[OrderableReplicationInstance]
[OrderableReplicationInstance]
-> Iso
(Maybe [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance])
(Maybe [OrderableReplicationInstance])
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
[OrderableReplicationInstance]
[OrderableReplicationInstance]
[OrderableReplicationInstance]
[OrderableReplicationInstance]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeOrderableReplicationInstancesResponse_httpStatus :: Lens.Lens' DescribeOrderableReplicationInstancesResponse Prelude.Int
describeOrderableReplicationInstancesResponse_httpStatus :: (Int -> f Int)
-> DescribeOrderableReplicationInstancesResponse
-> f DescribeOrderableReplicationInstancesResponse
describeOrderableReplicationInstancesResponse_httpStatus = (DescribeOrderableReplicationInstancesResponse -> Int)
-> (DescribeOrderableReplicationInstancesResponse
-> Int -> DescribeOrderableReplicationInstancesResponse)
-> Lens
DescribeOrderableReplicationInstancesResponse
DescribeOrderableReplicationInstancesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableReplicationInstancesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeOrderableReplicationInstancesResponse' :: DescribeOrderableReplicationInstancesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeOrderableReplicationInstancesResponse
s@DescribeOrderableReplicationInstancesResponse' {} Int
a -> DescribeOrderableReplicationInstancesResponse
s {$sel:httpStatus:DescribeOrderableReplicationInstancesResponse' :: Int
httpStatus = Int
a} :: DescribeOrderableReplicationInstancesResponse)
instance
Prelude.NFData
DescribeOrderableReplicationInstancesResponse