{-# 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.DescribeApplicableIndividualAssessments
(
DescribeApplicableIndividualAssessments (..),
newDescribeApplicableIndividualAssessments,
describeApplicableIndividualAssessments_migrationType,
describeApplicableIndividualAssessments_sourceEngineName,
describeApplicableIndividualAssessments_replicationTaskArn,
describeApplicableIndividualAssessments_marker,
describeApplicableIndividualAssessments_maxRecords,
describeApplicableIndividualAssessments_targetEngineName,
describeApplicableIndividualAssessments_replicationInstanceArn,
DescribeApplicableIndividualAssessmentsResponse (..),
newDescribeApplicableIndividualAssessmentsResponse,
describeApplicableIndividualAssessmentsResponse_marker,
describeApplicableIndividualAssessmentsResponse_individualAssessmentNames,
describeApplicableIndividualAssessmentsResponse_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 DescribeApplicableIndividualAssessments = DescribeApplicableIndividualAssessments'
{
DescribeApplicableIndividualAssessments -> Maybe MigrationTypeValue
migrationType :: Prelude.Maybe MigrationTypeValue,
DescribeApplicableIndividualAssessments -> Maybe Text
sourceEngineName :: Prelude.Maybe Prelude.Text,
DescribeApplicableIndividualAssessments -> Maybe Text
replicationTaskArn :: Prelude.Maybe Prelude.Text,
DescribeApplicableIndividualAssessments -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeApplicableIndividualAssessments -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeApplicableIndividualAssessments -> Maybe Text
targetEngineName :: Prelude.Maybe Prelude.Text,
DescribeApplicableIndividualAssessments -> Maybe Text
replicationInstanceArn :: Prelude.Maybe Prelude.Text
}
deriving (DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool
(DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool)
-> (DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool)
-> Eq DescribeApplicableIndividualAssessments
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool
$c/= :: DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool
== :: DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool
$c== :: DescribeApplicableIndividualAssessments
-> DescribeApplicableIndividualAssessments -> Bool
Prelude.Eq, ReadPrec [DescribeApplicableIndividualAssessments]
ReadPrec DescribeApplicableIndividualAssessments
Int -> ReadS DescribeApplicableIndividualAssessments
ReadS [DescribeApplicableIndividualAssessments]
(Int -> ReadS DescribeApplicableIndividualAssessments)
-> ReadS [DescribeApplicableIndividualAssessments]
-> ReadPrec DescribeApplicableIndividualAssessments
-> ReadPrec [DescribeApplicableIndividualAssessments]
-> Read DescribeApplicableIndividualAssessments
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeApplicableIndividualAssessments]
$creadListPrec :: ReadPrec [DescribeApplicableIndividualAssessments]
readPrec :: ReadPrec DescribeApplicableIndividualAssessments
$creadPrec :: ReadPrec DescribeApplicableIndividualAssessments
readList :: ReadS [DescribeApplicableIndividualAssessments]
$creadList :: ReadS [DescribeApplicableIndividualAssessments]
readsPrec :: Int -> ReadS DescribeApplicableIndividualAssessments
$creadsPrec :: Int -> ReadS DescribeApplicableIndividualAssessments
Prelude.Read, Int -> DescribeApplicableIndividualAssessments -> ShowS
[DescribeApplicableIndividualAssessments] -> ShowS
DescribeApplicableIndividualAssessments -> String
(Int -> DescribeApplicableIndividualAssessments -> ShowS)
-> (DescribeApplicableIndividualAssessments -> String)
-> ([DescribeApplicableIndividualAssessments] -> ShowS)
-> Show DescribeApplicableIndividualAssessments
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeApplicableIndividualAssessments] -> ShowS
$cshowList :: [DescribeApplicableIndividualAssessments] -> ShowS
show :: DescribeApplicableIndividualAssessments -> String
$cshow :: DescribeApplicableIndividualAssessments -> String
showsPrec :: Int -> DescribeApplicableIndividualAssessments -> ShowS
$cshowsPrec :: Int -> DescribeApplicableIndividualAssessments -> ShowS
Prelude.Show, (forall x.
DescribeApplicableIndividualAssessments
-> Rep DescribeApplicableIndividualAssessments x)
-> (forall x.
Rep DescribeApplicableIndividualAssessments x
-> DescribeApplicableIndividualAssessments)
-> Generic DescribeApplicableIndividualAssessments
forall x.
Rep DescribeApplicableIndividualAssessments x
-> DescribeApplicableIndividualAssessments
forall x.
DescribeApplicableIndividualAssessments
-> Rep DescribeApplicableIndividualAssessments x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeApplicableIndividualAssessments x
-> DescribeApplicableIndividualAssessments
$cfrom :: forall x.
DescribeApplicableIndividualAssessments
-> Rep DescribeApplicableIndividualAssessments x
Prelude.Generic)
newDescribeApplicableIndividualAssessments ::
DescribeApplicableIndividualAssessments
newDescribeApplicableIndividualAssessments :: DescribeApplicableIndividualAssessments
newDescribeApplicableIndividualAssessments =
DescribeApplicableIndividualAssessments' :: Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments'
{ $sel:migrationType:DescribeApplicableIndividualAssessments' :: Maybe MigrationTypeValue
migrationType =
Maybe MigrationTypeValue
forall a. Maybe a
Prelude.Nothing,
$sel:sourceEngineName:DescribeApplicableIndividualAssessments' :: Maybe Text
sourceEngineName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskArn:DescribeApplicableIndividualAssessments' :: Maybe Text
replicationTaskArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeApplicableIndividualAssessments' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeApplicableIndividualAssessments' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:targetEngineName:DescribeApplicableIndividualAssessments' :: Maybe Text
targetEngineName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationInstanceArn:DescribeApplicableIndividualAssessments' :: Maybe Text
replicationInstanceArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeApplicableIndividualAssessments_migrationType :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe MigrationTypeValue)
describeApplicableIndividualAssessments_migrationType :: (Maybe MigrationTypeValue -> f (Maybe MigrationTypeValue))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_migrationType = (DescribeApplicableIndividualAssessments
-> Maybe MigrationTypeValue)
-> (DescribeApplicableIndividualAssessments
-> Maybe MigrationTypeValue
-> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe MigrationTypeValue)
(Maybe MigrationTypeValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe MigrationTypeValue
migrationType :: Maybe MigrationTypeValue
$sel:migrationType:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe MigrationTypeValue
migrationType} -> Maybe MigrationTypeValue
migrationType) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe MigrationTypeValue
a -> DescribeApplicableIndividualAssessments
s {$sel:migrationType:DescribeApplicableIndividualAssessments' :: Maybe MigrationTypeValue
migrationType = Maybe MigrationTypeValue
a} :: DescribeApplicableIndividualAssessments)
describeApplicableIndividualAssessments_sourceEngineName :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe Prelude.Text)
describeApplicableIndividualAssessments_sourceEngineName :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_sourceEngineName = (DescribeApplicableIndividualAssessments -> Maybe Text)
-> (DescribeApplicableIndividualAssessments
-> Maybe Text -> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe Text
sourceEngineName :: Maybe Text
$sel:sourceEngineName:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
sourceEngineName} -> Maybe Text
sourceEngineName) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe Text
a -> DescribeApplicableIndividualAssessments
s {$sel:sourceEngineName:DescribeApplicableIndividualAssessments' :: Maybe Text
sourceEngineName = Maybe Text
a} :: DescribeApplicableIndividualAssessments)
describeApplicableIndividualAssessments_replicationTaskArn :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe Prelude.Text)
describeApplicableIndividualAssessments_replicationTaskArn :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_replicationTaskArn = (DescribeApplicableIndividualAssessments -> Maybe Text)
-> (DescribeApplicableIndividualAssessments
-> Maybe Text -> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe Text
replicationTaskArn :: Maybe Text
$sel:replicationTaskArn:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
replicationTaskArn} -> Maybe Text
replicationTaskArn) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe Text
a -> DescribeApplicableIndividualAssessments
s {$sel:replicationTaskArn:DescribeApplicableIndividualAssessments' :: Maybe Text
replicationTaskArn = Maybe Text
a} :: DescribeApplicableIndividualAssessments)
describeApplicableIndividualAssessments_marker :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe Prelude.Text)
describeApplicableIndividualAssessments_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_marker = (DescribeApplicableIndividualAssessments -> Maybe Text)
-> (DescribeApplicableIndividualAssessments
-> Maybe Text -> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe Text
a -> DescribeApplicableIndividualAssessments
s {$sel:marker:DescribeApplicableIndividualAssessments' :: Maybe Text
marker = Maybe Text
a} :: DescribeApplicableIndividualAssessments)
describeApplicableIndividualAssessments_maxRecords :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe Prelude.Int)
describeApplicableIndividualAssessments_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_maxRecords = (DescribeApplicableIndividualAssessments -> Maybe Int)
-> (DescribeApplicableIndividualAssessments
-> Maybe Int -> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe Int
a -> DescribeApplicableIndividualAssessments
s {$sel:maxRecords:DescribeApplicableIndividualAssessments' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeApplicableIndividualAssessments)
describeApplicableIndividualAssessments_targetEngineName :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe Prelude.Text)
describeApplicableIndividualAssessments_targetEngineName :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_targetEngineName = (DescribeApplicableIndividualAssessments -> Maybe Text)
-> (DescribeApplicableIndividualAssessments
-> Maybe Text -> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe Text
targetEngineName :: Maybe Text
$sel:targetEngineName:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
targetEngineName} -> Maybe Text
targetEngineName) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe Text
a -> DescribeApplicableIndividualAssessments
s {$sel:targetEngineName:DescribeApplicableIndividualAssessments' :: Maybe Text
targetEngineName = Maybe Text
a} :: DescribeApplicableIndividualAssessments)
describeApplicableIndividualAssessments_replicationInstanceArn :: Lens.Lens' DescribeApplicableIndividualAssessments (Prelude.Maybe Prelude.Text)
describeApplicableIndividualAssessments_replicationInstanceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicableIndividualAssessments
-> f DescribeApplicableIndividualAssessments
describeApplicableIndividualAssessments_replicationInstanceArn = (DescribeApplicableIndividualAssessments -> Maybe Text)
-> (DescribeApplicableIndividualAssessments
-> Maybe Text -> DescribeApplicableIndividualAssessments)
-> Lens
DescribeApplicableIndividualAssessments
DescribeApplicableIndividualAssessments
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessments' {Maybe Text
replicationInstanceArn :: Maybe Text
$sel:replicationInstanceArn:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
replicationInstanceArn} -> Maybe Text
replicationInstanceArn) (\s :: DescribeApplicableIndividualAssessments
s@DescribeApplicableIndividualAssessments' {} Maybe Text
a -> DescribeApplicableIndividualAssessments
s {$sel:replicationInstanceArn:DescribeApplicableIndividualAssessments' :: Maybe Text
replicationInstanceArn = Maybe Text
a} :: DescribeApplicableIndividualAssessments)
instance
Core.AWSRequest
DescribeApplicableIndividualAssessments
where
type
AWSResponse
DescribeApplicableIndividualAssessments =
DescribeApplicableIndividualAssessmentsResponse
request :: DescribeApplicableIndividualAssessments
-> Request DescribeApplicableIndividualAssessments
request = Service
-> DescribeApplicableIndividualAssessments
-> Request DescribeApplicableIndividualAssessments
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeApplicableIndividualAssessments
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeApplicableIndividualAssessments)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse DescribeApplicableIndividualAssessments))
-> Logger
-> Service
-> Proxy DescribeApplicableIndividualAssessments
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeApplicableIndividualAssessments)))
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]
-> Int
-> DescribeApplicableIndividualAssessmentsResponse
DescribeApplicableIndividualAssessmentsResponse'
(Maybe Text
-> Maybe [Text]
-> Int
-> DescribeApplicableIndividualAssessmentsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Int -> DescribeApplicableIndividualAssessmentsResponse)
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 [Text]
-> Int -> DescribeApplicableIndividualAssessmentsResponse)
-> Either String (Maybe [Text])
-> Either
String (Int -> DescribeApplicableIndividualAssessmentsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IndividualAssessmentNames"
Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Int -> DescribeApplicableIndividualAssessmentsResponse)
-> Either String Int
-> Either String DescribeApplicableIndividualAssessmentsResponse
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
DescribeApplicableIndividualAssessments
instance
Prelude.NFData
DescribeApplicableIndividualAssessments
instance
Core.ToHeaders
DescribeApplicableIndividualAssessments
where
toHeaders :: DescribeApplicableIndividualAssessments -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeApplicableIndividualAssessments -> 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.DescribeApplicableIndividualAssessments" ::
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
DescribeApplicableIndividualAssessments
where
toJSON :: DescribeApplicableIndividualAssessments -> Value
toJSON DescribeApplicableIndividualAssessments' {Maybe Int
Maybe Text
Maybe MigrationTypeValue
replicationInstanceArn :: Maybe Text
targetEngineName :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
replicationTaskArn :: Maybe Text
sourceEngineName :: Maybe Text
migrationType :: Maybe MigrationTypeValue
$sel:replicationInstanceArn:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
$sel:targetEngineName:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
$sel:maxRecords:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Int
$sel:marker:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
$sel:replicationTaskArn:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
$sel:sourceEngineName:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe Text
$sel:migrationType:DescribeApplicableIndividualAssessments' :: DescribeApplicableIndividualAssessments -> Maybe MigrationTypeValue
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"MigrationType" Text -> MigrationTypeValue -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MigrationTypeValue -> Pair)
-> Maybe MigrationTypeValue -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MigrationTypeValue
migrationType,
(Text
"SourceEngineName" 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
sourceEngineName,
(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,
(Text
"TargetEngineName" 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
targetEngineName,
(Text
"ReplicationInstanceArn" 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
replicationInstanceArn
]
)
instance
Core.ToPath
DescribeApplicableIndividualAssessments
where
toPath :: DescribeApplicableIndividualAssessments -> ByteString
toPath = ByteString -> DescribeApplicableIndividualAssessments -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeApplicableIndividualAssessments
where
toQuery :: DescribeApplicableIndividualAssessments -> QueryString
toQuery = QueryString
-> DescribeApplicableIndividualAssessments -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeApplicableIndividualAssessmentsResponse = DescribeApplicableIndividualAssessmentsResponse'
{
DescribeApplicableIndividualAssessmentsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeApplicableIndividualAssessmentsResponse -> Maybe [Text]
individualAssessmentNames :: Prelude.Maybe [Prelude.Text],
DescribeApplicableIndividualAssessmentsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool
(DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool)
-> (DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool)
-> Eq DescribeApplicableIndividualAssessmentsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool
$c/= :: DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool
== :: DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool
$c== :: DescribeApplicableIndividualAssessmentsResponse
-> DescribeApplicableIndividualAssessmentsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeApplicableIndividualAssessmentsResponse]
ReadPrec DescribeApplicableIndividualAssessmentsResponse
Int -> ReadS DescribeApplicableIndividualAssessmentsResponse
ReadS [DescribeApplicableIndividualAssessmentsResponse]
(Int -> ReadS DescribeApplicableIndividualAssessmentsResponse)
-> ReadS [DescribeApplicableIndividualAssessmentsResponse]
-> ReadPrec DescribeApplicableIndividualAssessmentsResponse
-> ReadPrec [DescribeApplicableIndividualAssessmentsResponse]
-> Read DescribeApplicableIndividualAssessmentsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeApplicableIndividualAssessmentsResponse]
$creadListPrec :: ReadPrec [DescribeApplicableIndividualAssessmentsResponse]
readPrec :: ReadPrec DescribeApplicableIndividualAssessmentsResponse
$creadPrec :: ReadPrec DescribeApplicableIndividualAssessmentsResponse
readList :: ReadS [DescribeApplicableIndividualAssessmentsResponse]
$creadList :: ReadS [DescribeApplicableIndividualAssessmentsResponse]
readsPrec :: Int -> ReadS DescribeApplicableIndividualAssessmentsResponse
$creadsPrec :: Int -> ReadS DescribeApplicableIndividualAssessmentsResponse
Prelude.Read, Int -> DescribeApplicableIndividualAssessmentsResponse -> ShowS
[DescribeApplicableIndividualAssessmentsResponse] -> ShowS
DescribeApplicableIndividualAssessmentsResponse -> String
(Int -> DescribeApplicableIndividualAssessmentsResponse -> ShowS)
-> (DescribeApplicableIndividualAssessmentsResponse -> String)
-> ([DescribeApplicableIndividualAssessmentsResponse] -> ShowS)
-> Show DescribeApplicableIndividualAssessmentsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeApplicableIndividualAssessmentsResponse] -> ShowS
$cshowList :: [DescribeApplicableIndividualAssessmentsResponse] -> ShowS
show :: DescribeApplicableIndividualAssessmentsResponse -> String
$cshow :: DescribeApplicableIndividualAssessmentsResponse -> String
showsPrec :: Int -> DescribeApplicableIndividualAssessmentsResponse -> ShowS
$cshowsPrec :: Int -> DescribeApplicableIndividualAssessmentsResponse -> ShowS
Prelude.Show, (forall x.
DescribeApplicableIndividualAssessmentsResponse
-> Rep DescribeApplicableIndividualAssessmentsResponse x)
-> (forall x.
Rep DescribeApplicableIndividualAssessmentsResponse x
-> DescribeApplicableIndividualAssessmentsResponse)
-> Generic DescribeApplicableIndividualAssessmentsResponse
forall x.
Rep DescribeApplicableIndividualAssessmentsResponse x
-> DescribeApplicableIndividualAssessmentsResponse
forall x.
DescribeApplicableIndividualAssessmentsResponse
-> Rep DescribeApplicableIndividualAssessmentsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeApplicableIndividualAssessmentsResponse x
-> DescribeApplicableIndividualAssessmentsResponse
$cfrom :: forall x.
DescribeApplicableIndividualAssessmentsResponse
-> Rep DescribeApplicableIndividualAssessmentsResponse x
Prelude.Generic)
newDescribeApplicableIndividualAssessmentsResponse ::
Prelude.Int ->
DescribeApplicableIndividualAssessmentsResponse
newDescribeApplicableIndividualAssessmentsResponse :: Int -> DescribeApplicableIndividualAssessmentsResponse
newDescribeApplicableIndividualAssessmentsResponse
Int
pHttpStatus_ =
DescribeApplicableIndividualAssessmentsResponse' :: Maybe Text
-> Maybe [Text]
-> Int
-> DescribeApplicableIndividualAssessmentsResponse
DescribeApplicableIndividualAssessmentsResponse'
{ $sel:marker:DescribeApplicableIndividualAssessmentsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:individualAssessmentNames:DescribeApplicableIndividualAssessmentsResponse' :: Maybe [Text]
individualAssessmentNames =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeApplicableIndividualAssessmentsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeApplicableIndividualAssessmentsResponse_marker :: Lens.Lens' DescribeApplicableIndividualAssessmentsResponse (Prelude.Maybe Prelude.Text)
describeApplicableIndividualAssessmentsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicableIndividualAssessmentsResponse
-> f DescribeApplicableIndividualAssessmentsResponse
describeApplicableIndividualAssessmentsResponse_marker = (DescribeApplicableIndividualAssessmentsResponse -> Maybe Text)
-> (DescribeApplicableIndividualAssessmentsResponse
-> Maybe Text -> DescribeApplicableIndividualAssessmentsResponse)
-> Lens
DescribeApplicableIndividualAssessmentsResponse
DescribeApplicableIndividualAssessmentsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessmentsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeApplicableIndividualAssessmentsResponse' :: DescribeApplicableIndividualAssessmentsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeApplicableIndividualAssessmentsResponse
s@DescribeApplicableIndividualAssessmentsResponse' {} Maybe Text
a -> DescribeApplicableIndividualAssessmentsResponse
s {$sel:marker:DescribeApplicableIndividualAssessmentsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeApplicableIndividualAssessmentsResponse)
describeApplicableIndividualAssessmentsResponse_individualAssessmentNames :: Lens.Lens' DescribeApplicableIndividualAssessmentsResponse (Prelude.Maybe [Prelude.Text])
describeApplicableIndividualAssessmentsResponse_individualAssessmentNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeApplicableIndividualAssessmentsResponse
-> f DescribeApplicableIndividualAssessmentsResponse
describeApplicableIndividualAssessmentsResponse_individualAssessmentNames = (DescribeApplicableIndividualAssessmentsResponse -> Maybe [Text])
-> (DescribeApplicableIndividualAssessmentsResponse
-> Maybe [Text] -> DescribeApplicableIndividualAssessmentsResponse)
-> Lens
DescribeApplicableIndividualAssessmentsResponse
DescribeApplicableIndividualAssessmentsResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessmentsResponse' {Maybe [Text]
individualAssessmentNames :: Maybe [Text]
$sel:individualAssessmentNames:DescribeApplicableIndividualAssessmentsResponse' :: DescribeApplicableIndividualAssessmentsResponse -> Maybe [Text]
individualAssessmentNames} -> Maybe [Text]
individualAssessmentNames) (\s :: DescribeApplicableIndividualAssessmentsResponse
s@DescribeApplicableIndividualAssessmentsResponse' {} Maybe [Text]
a -> DescribeApplicableIndividualAssessmentsResponse
s {$sel:individualAssessmentNames:DescribeApplicableIndividualAssessmentsResponse' :: Maybe [Text]
individualAssessmentNames = Maybe [Text]
a} :: DescribeApplicableIndividualAssessmentsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeApplicableIndividualAssessmentsResponse
-> f DescribeApplicableIndividualAssessmentsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeApplicableIndividualAssessmentsResponse
-> f DescribeApplicableIndividualAssessmentsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeApplicableIndividualAssessmentsResponse_httpStatus :: Lens.Lens' DescribeApplicableIndividualAssessmentsResponse Prelude.Int
describeApplicableIndividualAssessmentsResponse_httpStatus :: (Int -> f Int)
-> DescribeApplicableIndividualAssessmentsResponse
-> f DescribeApplicableIndividualAssessmentsResponse
describeApplicableIndividualAssessmentsResponse_httpStatus = (DescribeApplicableIndividualAssessmentsResponse -> Int)
-> (DescribeApplicableIndividualAssessmentsResponse
-> Int -> DescribeApplicableIndividualAssessmentsResponse)
-> Lens
DescribeApplicableIndividualAssessmentsResponse
DescribeApplicableIndividualAssessmentsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicableIndividualAssessmentsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeApplicableIndividualAssessmentsResponse' :: DescribeApplicableIndividualAssessmentsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeApplicableIndividualAssessmentsResponse
s@DescribeApplicableIndividualAssessmentsResponse' {} Int
a -> DescribeApplicableIndividualAssessmentsResponse
s {$sel:httpStatus:DescribeApplicableIndividualAssessmentsResponse' :: Int
httpStatus = Int
a} :: DescribeApplicableIndividualAssessmentsResponse)
instance
Prelude.NFData
DescribeApplicableIndividualAssessmentsResponse