{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DMS.DescribeReplicationTaskAssessmentRuns
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a paginated list of premigration assessment runs based on filter
-- settings.
--
-- These filter settings can specify a combination of premigration
-- assessment runs, migration tasks, replication instances, and assessment
-- run status values.
--
-- This operation doesn\'t return information about individual assessments.
-- For this information, see the
-- @DescribeReplicationTaskIndividualAssessments@ operation.
module Amazonka.DMS.DescribeReplicationTaskAssessmentRuns
  ( -- * Creating a Request
    DescribeReplicationTaskAssessmentRuns (..),
    newDescribeReplicationTaskAssessmentRuns,

    -- * Request Lenses
    describeReplicationTaskAssessmentRuns_filters,
    describeReplicationTaskAssessmentRuns_marker,
    describeReplicationTaskAssessmentRuns_maxRecords,

    -- * Destructuring the Response
    DescribeReplicationTaskAssessmentRunsResponse (..),
    newDescribeReplicationTaskAssessmentRunsResponse,

    -- * Response Lenses
    describeReplicationTaskAssessmentRunsResponse_replicationTaskAssessmentRuns,
    describeReplicationTaskAssessmentRunsResponse_marker,
    describeReplicationTaskAssessmentRunsResponse_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

-- |
--
-- /See:/ 'newDescribeReplicationTaskAssessmentRuns' smart constructor.
data DescribeReplicationTaskAssessmentRuns = DescribeReplicationTaskAssessmentRuns'
  { -- | Filters applied to the premigration assessment runs described in the
    -- form of key-value pairs.
    --
    -- Valid filter names: @replication-task-assessment-run-arn@,
    -- @replication-task-arn@, @replication-instance-arn@, @status@
    DescribeReplicationTaskAssessmentRuns -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeReplicationTaskAssessmentRuns -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of records to include in the response. If more
    -- records exist than the specified @MaxRecords@ value, a pagination token
    -- called a marker is included in the response so that the remaining
    -- results can be retrieved.
    DescribeReplicationTaskAssessmentRuns -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
  }
  deriving (DescribeReplicationTaskAssessmentRuns
-> DescribeReplicationTaskAssessmentRuns -> Bool
(DescribeReplicationTaskAssessmentRuns
 -> DescribeReplicationTaskAssessmentRuns -> Bool)
-> (DescribeReplicationTaskAssessmentRuns
    -> DescribeReplicationTaskAssessmentRuns -> Bool)
-> Eq DescribeReplicationTaskAssessmentRuns
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReplicationTaskAssessmentRuns
-> DescribeReplicationTaskAssessmentRuns -> Bool
$c/= :: DescribeReplicationTaskAssessmentRuns
-> DescribeReplicationTaskAssessmentRuns -> Bool
== :: DescribeReplicationTaskAssessmentRuns
-> DescribeReplicationTaskAssessmentRuns -> Bool
$c== :: DescribeReplicationTaskAssessmentRuns
-> DescribeReplicationTaskAssessmentRuns -> Bool
Prelude.Eq, ReadPrec [DescribeReplicationTaskAssessmentRuns]
ReadPrec DescribeReplicationTaskAssessmentRuns
Int -> ReadS DescribeReplicationTaskAssessmentRuns
ReadS [DescribeReplicationTaskAssessmentRuns]
(Int -> ReadS DescribeReplicationTaskAssessmentRuns)
-> ReadS [DescribeReplicationTaskAssessmentRuns]
-> ReadPrec DescribeReplicationTaskAssessmentRuns
-> ReadPrec [DescribeReplicationTaskAssessmentRuns]
-> Read DescribeReplicationTaskAssessmentRuns
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReplicationTaskAssessmentRuns]
$creadListPrec :: ReadPrec [DescribeReplicationTaskAssessmentRuns]
readPrec :: ReadPrec DescribeReplicationTaskAssessmentRuns
$creadPrec :: ReadPrec DescribeReplicationTaskAssessmentRuns
readList :: ReadS [DescribeReplicationTaskAssessmentRuns]
$creadList :: ReadS [DescribeReplicationTaskAssessmentRuns]
readsPrec :: Int -> ReadS DescribeReplicationTaskAssessmentRuns
$creadsPrec :: Int -> ReadS DescribeReplicationTaskAssessmentRuns
Prelude.Read, Int -> DescribeReplicationTaskAssessmentRuns -> ShowS
[DescribeReplicationTaskAssessmentRuns] -> ShowS
DescribeReplicationTaskAssessmentRuns -> String
(Int -> DescribeReplicationTaskAssessmentRuns -> ShowS)
-> (DescribeReplicationTaskAssessmentRuns -> String)
-> ([DescribeReplicationTaskAssessmentRuns] -> ShowS)
-> Show DescribeReplicationTaskAssessmentRuns
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReplicationTaskAssessmentRuns] -> ShowS
$cshowList :: [DescribeReplicationTaskAssessmentRuns] -> ShowS
show :: DescribeReplicationTaskAssessmentRuns -> String
$cshow :: DescribeReplicationTaskAssessmentRuns -> String
showsPrec :: Int -> DescribeReplicationTaskAssessmentRuns -> ShowS
$cshowsPrec :: Int -> DescribeReplicationTaskAssessmentRuns -> ShowS
Prelude.Show, (forall x.
 DescribeReplicationTaskAssessmentRuns
 -> Rep DescribeReplicationTaskAssessmentRuns x)
-> (forall x.
    Rep DescribeReplicationTaskAssessmentRuns x
    -> DescribeReplicationTaskAssessmentRuns)
-> Generic DescribeReplicationTaskAssessmentRuns
forall x.
Rep DescribeReplicationTaskAssessmentRuns x
-> DescribeReplicationTaskAssessmentRuns
forall x.
DescribeReplicationTaskAssessmentRuns
-> Rep DescribeReplicationTaskAssessmentRuns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReplicationTaskAssessmentRuns x
-> DescribeReplicationTaskAssessmentRuns
$cfrom :: forall x.
DescribeReplicationTaskAssessmentRuns
-> Rep DescribeReplicationTaskAssessmentRuns x
Prelude.Generic)

-- |
-- Create a value of 'DescribeReplicationTaskAssessmentRuns' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'filters', 'describeReplicationTaskAssessmentRuns_filters' - Filters applied to the premigration assessment runs described in the
-- form of key-value pairs.
--
-- Valid filter names: @replication-task-assessment-run-arn@,
-- @replication-task-arn@, @replication-instance-arn@, @status@
--
-- 'marker', 'describeReplicationTaskAssessmentRuns_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'maxRecords', 'describeReplicationTaskAssessmentRuns_maxRecords' - The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so that the remaining
-- results can be retrieved.
newDescribeReplicationTaskAssessmentRuns ::
  DescribeReplicationTaskAssessmentRuns
newDescribeReplicationTaskAssessmentRuns :: DescribeReplicationTaskAssessmentRuns
newDescribeReplicationTaskAssessmentRuns =
  DescribeReplicationTaskAssessmentRuns' :: Maybe [Filter]
-> Maybe Text -> Maybe Int -> DescribeReplicationTaskAssessmentRuns
DescribeReplicationTaskAssessmentRuns'
    { $sel:filters:DescribeReplicationTaskAssessmentRuns' :: Maybe [Filter]
filters =
        Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:DescribeReplicationTaskAssessmentRuns' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeReplicationTaskAssessmentRuns' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | Filters applied to the premigration assessment runs described in the
-- form of key-value pairs.
--
-- Valid filter names: @replication-task-assessment-run-arn@,
-- @replication-task-arn@, @replication-instance-arn@, @status@
describeReplicationTaskAssessmentRuns_filters :: Lens.Lens' DescribeReplicationTaskAssessmentRuns (Prelude.Maybe [Filter])
describeReplicationTaskAssessmentRuns_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReplicationTaskAssessmentRuns
-> f DescribeReplicationTaskAssessmentRuns
describeReplicationTaskAssessmentRuns_filters = (DescribeReplicationTaskAssessmentRuns -> Maybe [Filter])
-> (DescribeReplicationTaskAssessmentRuns
    -> Maybe [Filter] -> DescribeReplicationTaskAssessmentRuns)
-> Lens
     DescribeReplicationTaskAssessmentRuns
     DescribeReplicationTaskAssessmentRuns
     (Maybe [Filter])
     (Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationTaskAssessmentRuns' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeReplicationTaskAssessmentRuns' :: DescribeReplicationTaskAssessmentRuns -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeReplicationTaskAssessmentRuns
s@DescribeReplicationTaskAssessmentRuns' {} Maybe [Filter]
a -> DescribeReplicationTaskAssessmentRuns
s {$sel:filters:DescribeReplicationTaskAssessmentRuns' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeReplicationTaskAssessmentRuns) ((Maybe [Filter] -> f (Maybe [Filter]))
 -> DescribeReplicationTaskAssessmentRuns
 -> f DescribeReplicationTaskAssessmentRuns)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
    -> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReplicationTaskAssessmentRuns
-> f DescribeReplicationTaskAssessmentRuns
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

-- | An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
describeReplicationTaskAssessmentRuns_marker :: Lens.Lens' DescribeReplicationTaskAssessmentRuns (Prelude.Maybe Prelude.Text)
describeReplicationTaskAssessmentRuns_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationTaskAssessmentRuns
-> f DescribeReplicationTaskAssessmentRuns
describeReplicationTaskAssessmentRuns_marker = (DescribeReplicationTaskAssessmentRuns -> Maybe Text)
-> (DescribeReplicationTaskAssessmentRuns
    -> Maybe Text -> DescribeReplicationTaskAssessmentRuns)
-> Lens
     DescribeReplicationTaskAssessmentRuns
     DescribeReplicationTaskAssessmentRuns
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationTaskAssessmentRuns' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReplicationTaskAssessmentRuns' :: DescribeReplicationTaskAssessmentRuns -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReplicationTaskAssessmentRuns
s@DescribeReplicationTaskAssessmentRuns' {} Maybe Text
a -> DescribeReplicationTaskAssessmentRuns
s {$sel:marker:DescribeReplicationTaskAssessmentRuns' :: Maybe Text
marker = Maybe Text
a} :: DescribeReplicationTaskAssessmentRuns)

-- | The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so that the remaining
-- results can be retrieved.
describeReplicationTaskAssessmentRuns_maxRecords :: Lens.Lens' DescribeReplicationTaskAssessmentRuns (Prelude.Maybe Prelude.Int)
describeReplicationTaskAssessmentRuns_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeReplicationTaskAssessmentRuns
-> f DescribeReplicationTaskAssessmentRuns
describeReplicationTaskAssessmentRuns_maxRecords = (DescribeReplicationTaskAssessmentRuns -> Maybe Int)
-> (DescribeReplicationTaskAssessmentRuns
    -> Maybe Int -> DescribeReplicationTaskAssessmentRuns)
-> Lens
     DescribeReplicationTaskAssessmentRuns
     DescribeReplicationTaskAssessmentRuns
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationTaskAssessmentRuns' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeReplicationTaskAssessmentRuns' :: DescribeReplicationTaskAssessmentRuns -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeReplicationTaskAssessmentRuns
s@DescribeReplicationTaskAssessmentRuns' {} Maybe Int
a -> DescribeReplicationTaskAssessmentRuns
s {$sel:maxRecords:DescribeReplicationTaskAssessmentRuns' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeReplicationTaskAssessmentRuns)

instance
  Core.AWSRequest
    DescribeReplicationTaskAssessmentRuns
  where
  type
    AWSResponse
      DescribeReplicationTaskAssessmentRuns =
      DescribeReplicationTaskAssessmentRunsResponse
  request :: DescribeReplicationTaskAssessmentRuns
-> Request DescribeReplicationTaskAssessmentRuns
request = Service
-> DescribeReplicationTaskAssessmentRuns
-> Request DescribeReplicationTaskAssessmentRuns
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeReplicationTaskAssessmentRuns
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeReplicationTaskAssessmentRuns)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeReplicationTaskAssessmentRuns))
-> Logger
-> Service
-> Proxy DescribeReplicationTaskAssessmentRuns
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeReplicationTaskAssessmentRuns)))
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 [ReplicationTaskAssessmentRun]
-> Maybe Text
-> Int
-> DescribeReplicationTaskAssessmentRunsResponse
DescribeReplicationTaskAssessmentRunsResponse'
            (Maybe [ReplicationTaskAssessmentRun]
 -> Maybe Text
 -> Int
 -> DescribeReplicationTaskAssessmentRunsResponse)
-> Either String (Maybe [ReplicationTaskAssessmentRun])
-> Either
     String
     (Maybe Text
      -> Int -> DescribeReplicationTaskAssessmentRunsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [ReplicationTaskAssessmentRun]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ReplicationTaskAssessmentRuns"
                            Either String (Maybe (Maybe [ReplicationTaskAssessmentRun]))
-> Maybe [ReplicationTaskAssessmentRun]
-> Either String (Maybe [ReplicationTaskAssessmentRun])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ReplicationTaskAssessmentRun]
forall a. Monoid a => a
Prelude.mempty
                        )
              Either
  String
  (Maybe Text
   -> Int -> DescribeReplicationTaskAssessmentRunsResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> DescribeReplicationTaskAssessmentRunsResponse)
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 -> DescribeReplicationTaskAssessmentRunsResponse)
-> Either String Int
-> Either String DescribeReplicationTaskAssessmentRunsResponse
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
    DescribeReplicationTaskAssessmentRuns

instance
  Prelude.NFData
    DescribeReplicationTaskAssessmentRuns

instance
  Core.ToHeaders
    DescribeReplicationTaskAssessmentRuns
  where
  toHeaders :: DescribeReplicationTaskAssessmentRuns -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeReplicationTaskAssessmentRuns -> 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.DescribeReplicationTaskAssessmentRuns" ::
                          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
    DescribeReplicationTaskAssessmentRuns
  where
  toJSON :: DescribeReplicationTaskAssessmentRuns -> Value
toJSON DescribeReplicationTaskAssessmentRuns' {Maybe Int
Maybe [Filter]
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:maxRecords:DescribeReplicationTaskAssessmentRuns' :: DescribeReplicationTaskAssessmentRuns -> Maybe Int
$sel:marker:DescribeReplicationTaskAssessmentRuns' :: DescribeReplicationTaskAssessmentRuns -> Maybe Text
$sel:filters:DescribeReplicationTaskAssessmentRuns' :: DescribeReplicationTaskAssessmentRuns -> 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
    DescribeReplicationTaskAssessmentRuns
  where
  toPath :: DescribeReplicationTaskAssessmentRuns -> ByteString
toPath = ByteString -> DescribeReplicationTaskAssessmentRuns -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    DescribeReplicationTaskAssessmentRuns
  where
  toQuery :: DescribeReplicationTaskAssessmentRuns -> QueryString
toQuery = QueryString -> DescribeReplicationTaskAssessmentRuns -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- |
--
-- /See:/ 'newDescribeReplicationTaskAssessmentRunsResponse' smart constructor.
data DescribeReplicationTaskAssessmentRunsResponse = DescribeReplicationTaskAssessmentRunsResponse'
  { -- | One or more premigration assessment runs as specified by @Filters@.
    DescribeReplicationTaskAssessmentRunsResponse
-> Maybe [ReplicationTaskAssessmentRun]
replicationTaskAssessmentRuns :: Prelude.Maybe [ReplicationTaskAssessmentRun],
    -- | A pagination token returned for you to pass to a subsequent request. If
    -- you pass this token as the @Marker@ value in a subsequent request, the
    -- response includes only records beyond the marker, up to the value
    -- specified in the request by @MaxRecords@.
    DescribeReplicationTaskAssessmentRunsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeReplicationTaskAssessmentRunsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeReplicationTaskAssessmentRunsResponse
-> DescribeReplicationTaskAssessmentRunsResponse -> Bool
(DescribeReplicationTaskAssessmentRunsResponse
 -> DescribeReplicationTaskAssessmentRunsResponse -> Bool)
-> (DescribeReplicationTaskAssessmentRunsResponse
    -> DescribeReplicationTaskAssessmentRunsResponse -> Bool)
-> Eq DescribeReplicationTaskAssessmentRunsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReplicationTaskAssessmentRunsResponse
-> DescribeReplicationTaskAssessmentRunsResponse -> Bool
$c/= :: DescribeReplicationTaskAssessmentRunsResponse
-> DescribeReplicationTaskAssessmentRunsResponse -> Bool
== :: DescribeReplicationTaskAssessmentRunsResponse
-> DescribeReplicationTaskAssessmentRunsResponse -> Bool
$c== :: DescribeReplicationTaskAssessmentRunsResponse
-> DescribeReplicationTaskAssessmentRunsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeReplicationTaskAssessmentRunsResponse]
ReadPrec DescribeReplicationTaskAssessmentRunsResponse
Int -> ReadS DescribeReplicationTaskAssessmentRunsResponse
ReadS [DescribeReplicationTaskAssessmentRunsResponse]
(Int -> ReadS DescribeReplicationTaskAssessmentRunsResponse)
-> ReadS [DescribeReplicationTaskAssessmentRunsResponse]
-> ReadPrec DescribeReplicationTaskAssessmentRunsResponse
-> ReadPrec [DescribeReplicationTaskAssessmentRunsResponse]
-> Read DescribeReplicationTaskAssessmentRunsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReplicationTaskAssessmentRunsResponse]
$creadListPrec :: ReadPrec [DescribeReplicationTaskAssessmentRunsResponse]
readPrec :: ReadPrec DescribeReplicationTaskAssessmentRunsResponse
$creadPrec :: ReadPrec DescribeReplicationTaskAssessmentRunsResponse
readList :: ReadS [DescribeReplicationTaskAssessmentRunsResponse]
$creadList :: ReadS [DescribeReplicationTaskAssessmentRunsResponse]
readsPrec :: Int -> ReadS DescribeReplicationTaskAssessmentRunsResponse
$creadsPrec :: Int -> ReadS DescribeReplicationTaskAssessmentRunsResponse
Prelude.Read, Int -> DescribeReplicationTaskAssessmentRunsResponse -> ShowS
[DescribeReplicationTaskAssessmentRunsResponse] -> ShowS
DescribeReplicationTaskAssessmentRunsResponse -> String
(Int -> DescribeReplicationTaskAssessmentRunsResponse -> ShowS)
-> (DescribeReplicationTaskAssessmentRunsResponse -> String)
-> ([DescribeReplicationTaskAssessmentRunsResponse] -> ShowS)
-> Show DescribeReplicationTaskAssessmentRunsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReplicationTaskAssessmentRunsResponse] -> ShowS
$cshowList :: [DescribeReplicationTaskAssessmentRunsResponse] -> ShowS
show :: DescribeReplicationTaskAssessmentRunsResponse -> String
$cshow :: DescribeReplicationTaskAssessmentRunsResponse -> String
showsPrec :: Int -> DescribeReplicationTaskAssessmentRunsResponse -> ShowS
$cshowsPrec :: Int -> DescribeReplicationTaskAssessmentRunsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeReplicationTaskAssessmentRunsResponse
 -> Rep DescribeReplicationTaskAssessmentRunsResponse x)
-> (forall x.
    Rep DescribeReplicationTaskAssessmentRunsResponse x
    -> DescribeReplicationTaskAssessmentRunsResponse)
-> Generic DescribeReplicationTaskAssessmentRunsResponse
forall x.
Rep DescribeReplicationTaskAssessmentRunsResponse x
-> DescribeReplicationTaskAssessmentRunsResponse
forall x.
DescribeReplicationTaskAssessmentRunsResponse
-> Rep DescribeReplicationTaskAssessmentRunsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReplicationTaskAssessmentRunsResponse x
-> DescribeReplicationTaskAssessmentRunsResponse
$cfrom :: forall x.
DescribeReplicationTaskAssessmentRunsResponse
-> Rep DescribeReplicationTaskAssessmentRunsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeReplicationTaskAssessmentRunsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'replicationTaskAssessmentRuns', 'describeReplicationTaskAssessmentRunsResponse_replicationTaskAssessmentRuns' - One or more premigration assessment runs as specified by @Filters@.
--
-- 'marker', 'describeReplicationTaskAssessmentRunsResponse_marker' - A pagination token returned for you to pass to a subsequent request. If
-- you pass this token as the @Marker@ value in a subsequent request, the
-- response includes only records beyond the marker, up to the value
-- specified in the request by @MaxRecords@.
--
-- 'httpStatus', 'describeReplicationTaskAssessmentRunsResponse_httpStatus' - The response's http status code.
newDescribeReplicationTaskAssessmentRunsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeReplicationTaskAssessmentRunsResponse
newDescribeReplicationTaskAssessmentRunsResponse :: Int -> DescribeReplicationTaskAssessmentRunsResponse
newDescribeReplicationTaskAssessmentRunsResponse
  Int
pHttpStatus_ =
    DescribeReplicationTaskAssessmentRunsResponse' :: Maybe [ReplicationTaskAssessmentRun]
-> Maybe Text
-> Int
-> DescribeReplicationTaskAssessmentRunsResponse
DescribeReplicationTaskAssessmentRunsResponse'
      { $sel:replicationTaskAssessmentRuns:DescribeReplicationTaskAssessmentRunsResponse' :: Maybe [ReplicationTaskAssessmentRun]
replicationTaskAssessmentRuns =
          Maybe [ReplicationTaskAssessmentRun]
forall a. Maybe a
Prelude.Nothing,
        $sel:marker:DescribeReplicationTaskAssessmentRunsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeReplicationTaskAssessmentRunsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | One or more premigration assessment runs as specified by @Filters@.
describeReplicationTaskAssessmentRunsResponse_replicationTaskAssessmentRuns :: Lens.Lens' DescribeReplicationTaskAssessmentRunsResponse (Prelude.Maybe [ReplicationTaskAssessmentRun])
describeReplicationTaskAssessmentRunsResponse_replicationTaskAssessmentRuns :: (Maybe [ReplicationTaskAssessmentRun]
 -> f (Maybe [ReplicationTaskAssessmentRun]))
-> DescribeReplicationTaskAssessmentRunsResponse
-> f DescribeReplicationTaskAssessmentRunsResponse
describeReplicationTaskAssessmentRunsResponse_replicationTaskAssessmentRuns = (DescribeReplicationTaskAssessmentRunsResponse
 -> Maybe [ReplicationTaskAssessmentRun])
-> (DescribeReplicationTaskAssessmentRunsResponse
    -> Maybe [ReplicationTaskAssessmentRun]
    -> DescribeReplicationTaskAssessmentRunsResponse)
-> Lens
     DescribeReplicationTaskAssessmentRunsResponse
     DescribeReplicationTaskAssessmentRunsResponse
     (Maybe [ReplicationTaskAssessmentRun])
     (Maybe [ReplicationTaskAssessmentRun])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationTaskAssessmentRunsResponse' {Maybe [ReplicationTaskAssessmentRun]
replicationTaskAssessmentRuns :: Maybe [ReplicationTaskAssessmentRun]
$sel:replicationTaskAssessmentRuns:DescribeReplicationTaskAssessmentRunsResponse' :: DescribeReplicationTaskAssessmentRunsResponse
-> Maybe [ReplicationTaskAssessmentRun]
replicationTaskAssessmentRuns} -> Maybe [ReplicationTaskAssessmentRun]
replicationTaskAssessmentRuns) (\s :: DescribeReplicationTaskAssessmentRunsResponse
s@DescribeReplicationTaskAssessmentRunsResponse' {} Maybe [ReplicationTaskAssessmentRun]
a -> DescribeReplicationTaskAssessmentRunsResponse
s {$sel:replicationTaskAssessmentRuns:DescribeReplicationTaskAssessmentRunsResponse' :: Maybe [ReplicationTaskAssessmentRun]
replicationTaskAssessmentRuns = Maybe [ReplicationTaskAssessmentRun]
a} :: DescribeReplicationTaskAssessmentRunsResponse) ((Maybe [ReplicationTaskAssessmentRun]
  -> f (Maybe [ReplicationTaskAssessmentRun]))
 -> DescribeReplicationTaskAssessmentRunsResponse
 -> f DescribeReplicationTaskAssessmentRunsResponse)
-> ((Maybe [ReplicationTaskAssessmentRun]
     -> f (Maybe [ReplicationTaskAssessmentRun]))
    -> Maybe [ReplicationTaskAssessmentRun]
    -> f (Maybe [ReplicationTaskAssessmentRun]))
-> (Maybe [ReplicationTaskAssessmentRun]
    -> f (Maybe [ReplicationTaskAssessmentRun]))
-> DescribeReplicationTaskAssessmentRunsResponse
-> f DescribeReplicationTaskAssessmentRunsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ReplicationTaskAssessmentRun]
  [ReplicationTaskAssessmentRun]
  [ReplicationTaskAssessmentRun]
  [ReplicationTaskAssessmentRun]
-> Iso
     (Maybe [ReplicationTaskAssessmentRun])
     (Maybe [ReplicationTaskAssessmentRun])
     (Maybe [ReplicationTaskAssessmentRun])
     (Maybe [ReplicationTaskAssessmentRun])
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
  [ReplicationTaskAssessmentRun]
  [ReplicationTaskAssessmentRun]
  [ReplicationTaskAssessmentRun]
  [ReplicationTaskAssessmentRun]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A pagination token returned for you to pass to a subsequent request. If
-- you pass this token as the @Marker@ value in a subsequent request, the
-- response includes only records beyond the marker, up to the value
-- specified in the request by @MaxRecords@.
describeReplicationTaskAssessmentRunsResponse_marker :: Lens.Lens' DescribeReplicationTaskAssessmentRunsResponse (Prelude.Maybe Prelude.Text)
describeReplicationTaskAssessmentRunsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationTaskAssessmentRunsResponse
-> f DescribeReplicationTaskAssessmentRunsResponse
describeReplicationTaskAssessmentRunsResponse_marker = (DescribeReplicationTaskAssessmentRunsResponse -> Maybe Text)
-> (DescribeReplicationTaskAssessmentRunsResponse
    -> Maybe Text -> DescribeReplicationTaskAssessmentRunsResponse)
-> Lens
     DescribeReplicationTaskAssessmentRunsResponse
     DescribeReplicationTaskAssessmentRunsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationTaskAssessmentRunsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReplicationTaskAssessmentRunsResponse' :: DescribeReplicationTaskAssessmentRunsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReplicationTaskAssessmentRunsResponse
s@DescribeReplicationTaskAssessmentRunsResponse' {} Maybe Text
a -> DescribeReplicationTaskAssessmentRunsResponse
s {$sel:marker:DescribeReplicationTaskAssessmentRunsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeReplicationTaskAssessmentRunsResponse)

-- | The response's http status code.
describeReplicationTaskAssessmentRunsResponse_httpStatus :: Lens.Lens' DescribeReplicationTaskAssessmentRunsResponse Prelude.Int
describeReplicationTaskAssessmentRunsResponse_httpStatus :: (Int -> f Int)
-> DescribeReplicationTaskAssessmentRunsResponse
-> f DescribeReplicationTaskAssessmentRunsResponse
describeReplicationTaskAssessmentRunsResponse_httpStatus = (DescribeReplicationTaskAssessmentRunsResponse -> Int)
-> (DescribeReplicationTaskAssessmentRunsResponse
    -> Int -> DescribeReplicationTaskAssessmentRunsResponse)
-> Lens
     DescribeReplicationTaskAssessmentRunsResponse
     DescribeReplicationTaskAssessmentRunsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationTaskAssessmentRunsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeReplicationTaskAssessmentRunsResponse' :: DescribeReplicationTaskAssessmentRunsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeReplicationTaskAssessmentRunsResponse
s@DescribeReplicationTaskAssessmentRunsResponse' {} Int
a -> DescribeReplicationTaskAssessmentRunsResponse
s {$sel:httpStatus:DescribeReplicationTaskAssessmentRunsResponse' :: Int
httpStatus = Int
a} :: DescribeReplicationTaskAssessmentRunsResponse)

instance
  Prelude.NFData
    DescribeReplicationTaskAssessmentRunsResponse