{-# 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.SMS.UpdateReplicationJob
(
UpdateReplicationJob (..),
newUpdateReplicationJob,
updateReplicationJob_frequency,
updateReplicationJob_numberOfRecentAmisToKeep,
updateReplicationJob_licenseType,
updateReplicationJob_roleName,
updateReplicationJob_encrypted,
updateReplicationJob_nextReplicationRunStartTime,
updateReplicationJob_kmsKeyId,
updateReplicationJob_description,
updateReplicationJob_replicationJobId,
UpdateReplicationJobResponse (..),
newUpdateReplicationJobResponse,
updateReplicationJobResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SMS.Types
data UpdateReplicationJob = UpdateReplicationJob'
{
UpdateReplicationJob -> Maybe Int
frequency :: Prelude.Maybe Prelude.Int,
UpdateReplicationJob -> Maybe Int
numberOfRecentAmisToKeep :: Prelude.Maybe Prelude.Int,
UpdateReplicationJob -> Maybe LicenseType
licenseType :: Prelude.Maybe LicenseType,
UpdateReplicationJob -> Maybe Text
roleName :: Prelude.Maybe Prelude.Text,
UpdateReplicationJob -> Maybe Bool
encrypted :: Prelude.Maybe Prelude.Bool,
UpdateReplicationJob -> Maybe POSIX
nextReplicationRunStartTime :: Prelude.Maybe Core.POSIX,
UpdateReplicationJob -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
UpdateReplicationJob -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateReplicationJob -> Text
replicationJobId :: Prelude.Text
}
deriving (UpdateReplicationJob -> UpdateReplicationJob -> Bool
(UpdateReplicationJob -> UpdateReplicationJob -> Bool)
-> (UpdateReplicationJob -> UpdateReplicationJob -> Bool)
-> Eq UpdateReplicationJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateReplicationJob -> UpdateReplicationJob -> Bool
$c/= :: UpdateReplicationJob -> UpdateReplicationJob -> Bool
== :: UpdateReplicationJob -> UpdateReplicationJob -> Bool
$c== :: UpdateReplicationJob -> UpdateReplicationJob -> Bool
Prelude.Eq, ReadPrec [UpdateReplicationJob]
ReadPrec UpdateReplicationJob
Int -> ReadS UpdateReplicationJob
ReadS [UpdateReplicationJob]
(Int -> ReadS UpdateReplicationJob)
-> ReadS [UpdateReplicationJob]
-> ReadPrec UpdateReplicationJob
-> ReadPrec [UpdateReplicationJob]
-> Read UpdateReplicationJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateReplicationJob]
$creadListPrec :: ReadPrec [UpdateReplicationJob]
readPrec :: ReadPrec UpdateReplicationJob
$creadPrec :: ReadPrec UpdateReplicationJob
readList :: ReadS [UpdateReplicationJob]
$creadList :: ReadS [UpdateReplicationJob]
readsPrec :: Int -> ReadS UpdateReplicationJob
$creadsPrec :: Int -> ReadS UpdateReplicationJob
Prelude.Read, Int -> UpdateReplicationJob -> ShowS
[UpdateReplicationJob] -> ShowS
UpdateReplicationJob -> String
(Int -> UpdateReplicationJob -> ShowS)
-> (UpdateReplicationJob -> String)
-> ([UpdateReplicationJob] -> ShowS)
-> Show UpdateReplicationJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateReplicationJob] -> ShowS
$cshowList :: [UpdateReplicationJob] -> ShowS
show :: UpdateReplicationJob -> String
$cshow :: UpdateReplicationJob -> String
showsPrec :: Int -> UpdateReplicationJob -> ShowS
$cshowsPrec :: Int -> UpdateReplicationJob -> ShowS
Prelude.Show, (forall x. UpdateReplicationJob -> Rep UpdateReplicationJob x)
-> (forall x. Rep UpdateReplicationJob x -> UpdateReplicationJob)
-> Generic UpdateReplicationJob
forall x. Rep UpdateReplicationJob x -> UpdateReplicationJob
forall x. UpdateReplicationJob -> Rep UpdateReplicationJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateReplicationJob x -> UpdateReplicationJob
$cfrom :: forall x. UpdateReplicationJob -> Rep UpdateReplicationJob x
Prelude.Generic)
newUpdateReplicationJob ::
Prelude.Text ->
UpdateReplicationJob
newUpdateReplicationJob :: Text -> UpdateReplicationJob
newUpdateReplicationJob Text
pReplicationJobId_ =
UpdateReplicationJob' :: Maybe Int
-> Maybe Int
-> Maybe LicenseType
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Text
-> UpdateReplicationJob
UpdateReplicationJob'
{ $sel:frequency:UpdateReplicationJob' :: Maybe Int
frequency = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:numberOfRecentAmisToKeep:UpdateReplicationJob' :: Maybe Int
numberOfRecentAmisToKeep = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:licenseType:UpdateReplicationJob' :: Maybe LicenseType
licenseType = Maybe LicenseType
forall a. Maybe a
Prelude.Nothing,
$sel:roleName:UpdateReplicationJob' :: Maybe Text
roleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encrypted:UpdateReplicationJob' :: Maybe Bool
encrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextReplicationRunStartTime:UpdateReplicationJob' :: Maybe POSIX
nextReplicationRunStartTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:UpdateReplicationJob' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateReplicationJob' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationJobId:UpdateReplicationJob' :: Text
replicationJobId = Text
pReplicationJobId_
}
updateReplicationJob_frequency :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.Int)
updateReplicationJob_frequency :: (Maybe Int -> f (Maybe Int))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_frequency = (UpdateReplicationJob -> Maybe Int)
-> (UpdateReplicationJob -> Maybe Int -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob UpdateReplicationJob (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe Int
frequency :: Maybe Int
$sel:frequency:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Int
frequency} -> Maybe Int
frequency) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe Int
a -> UpdateReplicationJob
s {$sel:frequency:UpdateReplicationJob' :: Maybe Int
frequency = Maybe Int
a} :: UpdateReplicationJob)
updateReplicationJob_numberOfRecentAmisToKeep :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.Int)
updateReplicationJob_numberOfRecentAmisToKeep :: (Maybe Int -> f (Maybe Int))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_numberOfRecentAmisToKeep = (UpdateReplicationJob -> Maybe Int)
-> (UpdateReplicationJob -> Maybe Int -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob UpdateReplicationJob (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe Int
numberOfRecentAmisToKeep :: Maybe Int
$sel:numberOfRecentAmisToKeep:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Int
numberOfRecentAmisToKeep} -> Maybe Int
numberOfRecentAmisToKeep) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe Int
a -> UpdateReplicationJob
s {$sel:numberOfRecentAmisToKeep:UpdateReplicationJob' :: Maybe Int
numberOfRecentAmisToKeep = Maybe Int
a} :: UpdateReplicationJob)
updateReplicationJob_licenseType :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe LicenseType)
updateReplicationJob_licenseType :: (Maybe LicenseType -> f (Maybe LicenseType))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_licenseType = (UpdateReplicationJob -> Maybe LicenseType)
-> (UpdateReplicationJob
-> Maybe LicenseType -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob
UpdateReplicationJob
(Maybe LicenseType)
(Maybe LicenseType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe LicenseType
licenseType :: Maybe LicenseType
$sel:licenseType:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe LicenseType
licenseType} -> Maybe LicenseType
licenseType) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe LicenseType
a -> UpdateReplicationJob
s {$sel:licenseType:UpdateReplicationJob' :: Maybe LicenseType
licenseType = Maybe LicenseType
a} :: UpdateReplicationJob)
updateReplicationJob_roleName :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.Text)
updateReplicationJob_roleName :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_roleName = (UpdateReplicationJob -> Maybe Text)
-> (UpdateReplicationJob -> Maybe Text -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob UpdateReplicationJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe Text
roleName :: Maybe Text
$sel:roleName:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Text
roleName} -> Maybe Text
roleName) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe Text
a -> UpdateReplicationJob
s {$sel:roleName:UpdateReplicationJob' :: Maybe Text
roleName = Maybe Text
a} :: UpdateReplicationJob)
updateReplicationJob_encrypted :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.Bool)
updateReplicationJob_encrypted :: (Maybe Bool -> f (Maybe Bool))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_encrypted = (UpdateReplicationJob -> Maybe Bool)
-> (UpdateReplicationJob -> Maybe Bool -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob UpdateReplicationJob (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe Bool
encrypted :: Maybe Bool
$sel:encrypted:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Bool
encrypted} -> Maybe Bool
encrypted) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe Bool
a -> UpdateReplicationJob
s {$sel:encrypted:UpdateReplicationJob' :: Maybe Bool
encrypted = Maybe Bool
a} :: UpdateReplicationJob)
updateReplicationJob_nextReplicationRunStartTime :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.UTCTime)
updateReplicationJob_nextReplicationRunStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_nextReplicationRunStartTime = (UpdateReplicationJob -> Maybe POSIX)
-> (UpdateReplicationJob -> Maybe POSIX -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob
UpdateReplicationJob
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe POSIX
nextReplicationRunStartTime :: Maybe POSIX
$sel:nextReplicationRunStartTime:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe POSIX
nextReplicationRunStartTime} -> Maybe POSIX
nextReplicationRunStartTime) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe POSIX
a -> UpdateReplicationJob
s {$sel:nextReplicationRunStartTime:UpdateReplicationJob' :: Maybe POSIX
nextReplicationRunStartTime = Maybe POSIX
a} :: UpdateReplicationJob) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateReplicationJob -> f UpdateReplicationJob)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateReplicationJob
-> f UpdateReplicationJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
updateReplicationJob_kmsKeyId :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.Text)
updateReplicationJob_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_kmsKeyId = (UpdateReplicationJob -> Maybe Text)
-> (UpdateReplicationJob -> Maybe Text -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob UpdateReplicationJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe Text
a -> UpdateReplicationJob
s {$sel:kmsKeyId:UpdateReplicationJob' :: Maybe Text
kmsKeyId = Maybe Text
a} :: UpdateReplicationJob)
updateReplicationJob_description :: Lens.Lens' UpdateReplicationJob (Prelude.Maybe Prelude.Text)
updateReplicationJob_description :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_description = (UpdateReplicationJob -> Maybe Text)
-> (UpdateReplicationJob -> Maybe Text -> UpdateReplicationJob)
-> Lens
UpdateReplicationJob UpdateReplicationJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Maybe Text
description :: Maybe Text
$sel:description:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Maybe Text
a -> UpdateReplicationJob
s {$sel:description:UpdateReplicationJob' :: Maybe Text
description = Maybe Text
a} :: UpdateReplicationJob)
updateReplicationJob_replicationJobId :: Lens.Lens' UpdateReplicationJob Prelude.Text
updateReplicationJob_replicationJobId :: (Text -> f Text) -> UpdateReplicationJob -> f UpdateReplicationJob
updateReplicationJob_replicationJobId = (UpdateReplicationJob -> Text)
-> (UpdateReplicationJob -> Text -> UpdateReplicationJob)
-> Lens UpdateReplicationJob UpdateReplicationJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJob' {Text
replicationJobId :: Text
$sel:replicationJobId:UpdateReplicationJob' :: UpdateReplicationJob -> Text
replicationJobId} -> Text
replicationJobId) (\s :: UpdateReplicationJob
s@UpdateReplicationJob' {} Text
a -> UpdateReplicationJob
s {$sel:replicationJobId:UpdateReplicationJob' :: Text
replicationJobId = Text
a} :: UpdateReplicationJob)
instance Core.AWSRequest UpdateReplicationJob where
type
AWSResponse UpdateReplicationJob =
UpdateReplicationJobResponse
request :: UpdateReplicationJob -> Request UpdateReplicationJob
request = Service -> UpdateReplicationJob -> Request UpdateReplicationJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateReplicationJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateReplicationJob)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse UpdateReplicationJob))
-> Logger
-> Service
-> Proxy UpdateReplicationJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateReplicationJob)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> UpdateReplicationJobResponse
UpdateReplicationJobResponse'
(Int -> UpdateReplicationJobResponse)
-> Either String Int -> Either String UpdateReplicationJobResponse
forall (f :: * -> *) a b. Functor 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 UpdateReplicationJob
instance Prelude.NFData UpdateReplicationJob
instance Core.ToHeaders UpdateReplicationJob where
toHeaders :: UpdateReplicationJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateReplicationJob -> 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
"AWSServerMigrationService_V2016_10_24.UpdateReplicationJob" ::
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 UpdateReplicationJob where
toJSON :: UpdateReplicationJob -> Value
toJSON UpdateReplicationJob' {Maybe Bool
Maybe Int
Maybe Text
Maybe POSIX
Maybe LicenseType
Text
replicationJobId :: Text
description :: Maybe Text
kmsKeyId :: Maybe Text
nextReplicationRunStartTime :: Maybe POSIX
encrypted :: Maybe Bool
roleName :: Maybe Text
licenseType :: Maybe LicenseType
numberOfRecentAmisToKeep :: Maybe Int
frequency :: Maybe Int
$sel:replicationJobId:UpdateReplicationJob' :: UpdateReplicationJob -> Text
$sel:description:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Text
$sel:kmsKeyId:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Text
$sel:nextReplicationRunStartTime:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe POSIX
$sel:encrypted:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Bool
$sel:roleName:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Text
$sel:licenseType:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe LicenseType
$sel:numberOfRecentAmisToKeep:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Int
$sel:frequency:UpdateReplicationJob' :: UpdateReplicationJob -> Maybe Int
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"frequency" 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
frequency,
(Text
"numberOfRecentAmisToKeep" 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
numberOfRecentAmisToKeep,
(Text
"licenseType" Text -> LicenseType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LicenseType -> Pair) -> Maybe LicenseType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LicenseType
licenseType,
(Text
"roleName" 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
roleName,
(Text
"encrypted" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
encrypted,
(Text
"nextReplicationRunStartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
nextReplicationRunStartTime,
(Text
"kmsKeyId" 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
kmsKeyId,
(Text
"description" 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
description,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"replicationJobId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
replicationJobId)
]
)
instance Core.ToPath UpdateReplicationJob where
toPath :: UpdateReplicationJob -> ByteString
toPath = ByteString -> UpdateReplicationJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateReplicationJob where
toQuery :: UpdateReplicationJob -> QueryString
toQuery = QueryString -> UpdateReplicationJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateReplicationJobResponse = UpdateReplicationJobResponse'
{
UpdateReplicationJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool
(UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool)
-> (UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool)
-> Eq UpdateReplicationJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool
$c/= :: UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool
== :: UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool
$c== :: UpdateReplicationJobResponse
-> UpdateReplicationJobResponse -> Bool
Prelude.Eq, ReadPrec [UpdateReplicationJobResponse]
ReadPrec UpdateReplicationJobResponse
Int -> ReadS UpdateReplicationJobResponse
ReadS [UpdateReplicationJobResponse]
(Int -> ReadS UpdateReplicationJobResponse)
-> ReadS [UpdateReplicationJobResponse]
-> ReadPrec UpdateReplicationJobResponse
-> ReadPrec [UpdateReplicationJobResponse]
-> Read UpdateReplicationJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateReplicationJobResponse]
$creadListPrec :: ReadPrec [UpdateReplicationJobResponse]
readPrec :: ReadPrec UpdateReplicationJobResponse
$creadPrec :: ReadPrec UpdateReplicationJobResponse
readList :: ReadS [UpdateReplicationJobResponse]
$creadList :: ReadS [UpdateReplicationJobResponse]
readsPrec :: Int -> ReadS UpdateReplicationJobResponse
$creadsPrec :: Int -> ReadS UpdateReplicationJobResponse
Prelude.Read, Int -> UpdateReplicationJobResponse -> ShowS
[UpdateReplicationJobResponse] -> ShowS
UpdateReplicationJobResponse -> String
(Int -> UpdateReplicationJobResponse -> ShowS)
-> (UpdateReplicationJobResponse -> String)
-> ([UpdateReplicationJobResponse] -> ShowS)
-> Show UpdateReplicationJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateReplicationJobResponse] -> ShowS
$cshowList :: [UpdateReplicationJobResponse] -> ShowS
show :: UpdateReplicationJobResponse -> String
$cshow :: UpdateReplicationJobResponse -> String
showsPrec :: Int -> UpdateReplicationJobResponse -> ShowS
$cshowsPrec :: Int -> UpdateReplicationJobResponse -> ShowS
Prelude.Show, (forall x.
UpdateReplicationJobResponse -> Rep UpdateReplicationJobResponse x)
-> (forall x.
Rep UpdateReplicationJobResponse x -> UpdateReplicationJobResponse)
-> Generic UpdateReplicationJobResponse
forall x.
Rep UpdateReplicationJobResponse x -> UpdateReplicationJobResponse
forall x.
UpdateReplicationJobResponse -> Rep UpdateReplicationJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateReplicationJobResponse x -> UpdateReplicationJobResponse
$cfrom :: forall x.
UpdateReplicationJobResponse -> Rep UpdateReplicationJobResponse x
Prelude.Generic)
newUpdateReplicationJobResponse ::
Prelude.Int ->
UpdateReplicationJobResponse
newUpdateReplicationJobResponse :: Int -> UpdateReplicationJobResponse
newUpdateReplicationJobResponse Int
pHttpStatus_ =
UpdateReplicationJobResponse' :: Int -> UpdateReplicationJobResponse
UpdateReplicationJobResponse'
{ $sel:httpStatus:UpdateReplicationJobResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
updateReplicationJobResponse_httpStatus :: Lens.Lens' UpdateReplicationJobResponse Prelude.Int
updateReplicationJobResponse_httpStatus :: (Int -> f Int)
-> UpdateReplicationJobResponse -> f UpdateReplicationJobResponse
updateReplicationJobResponse_httpStatus = (UpdateReplicationJobResponse -> Int)
-> (UpdateReplicationJobResponse
-> Int -> UpdateReplicationJobResponse)
-> Lens
UpdateReplicationJobResponse UpdateReplicationJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateReplicationJobResponse' :: UpdateReplicationJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateReplicationJobResponse
s@UpdateReplicationJobResponse' {} Int
a -> UpdateReplicationJobResponse
s {$sel:httpStatus:UpdateReplicationJobResponse' :: Int
httpStatus = Int
a} :: UpdateReplicationJobResponse)
instance Prelude.NFData UpdateReplicationJobResponse