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