{-# 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.RDS.StopDBInstanceAutomatedBackupsReplication
-- 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)
--
-- Stops automated backup replication for a DB instance.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html Replicating Automated Backups to Another Amazon Web Services Region>
-- in the /Amazon RDS User Guide./
module Amazonka.RDS.StopDBInstanceAutomatedBackupsReplication
  ( -- * Creating a Request
    StopDBInstanceAutomatedBackupsReplication (..),
    newStopDBInstanceAutomatedBackupsReplication,

    -- * Request Lenses
    stopDBInstanceAutomatedBackupsReplication_sourceDBInstanceArn,

    -- * Destructuring the Response
    StopDBInstanceAutomatedBackupsReplicationResponse (..),
    newStopDBInstanceAutomatedBackupsReplicationResponse,

    -- * Response Lenses
    stopDBInstanceAutomatedBackupsReplicationResponse_dbInstanceAutomatedBackup,
    stopDBInstanceAutomatedBackupsReplicationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newStopDBInstanceAutomatedBackupsReplication' smart constructor.
data StopDBInstanceAutomatedBackupsReplication = StopDBInstanceAutomatedBackupsReplication'
  { -- | The Amazon Resource Name (ARN) of the source DB instance for which to
    -- stop replicating automated backups, for example,
    -- @arn:aws:rds:us-west-2:123456789012:db:mydatabase@.
    StopDBInstanceAutomatedBackupsReplication -> Text
sourceDBInstanceArn :: Prelude.Text
  }
  deriving (StopDBInstanceAutomatedBackupsReplication
-> StopDBInstanceAutomatedBackupsReplication -> Bool
(StopDBInstanceAutomatedBackupsReplication
 -> StopDBInstanceAutomatedBackupsReplication -> Bool)
-> (StopDBInstanceAutomatedBackupsReplication
    -> StopDBInstanceAutomatedBackupsReplication -> Bool)
-> Eq StopDBInstanceAutomatedBackupsReplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopDBInstanceAutomatedBackupsReplication
-> StopDBInstanceAutomatedBackupsReplication -> Bool
$c/= :: StopDBInstanceAutomatedBackupsReplication
-> StopDBInstanceAutomatedBackupsReplication -> Bool
== :: StopDBInstanceAutomatedBackupsReplication
-> StopDBInstanceAutomatedBackupsReplication -> Bool
$c== :: StopDBInstanceAutomatedBackupsReplication
-> StopDBInstanceAutomatedBackupsReplication -> Bool
Prelude.Eq, ReadPrec [StopDBInstanceAutomatedBackupsReplication]
ReadPrec StopDBInstanceAutomatedBackupsReplication
Int -> ReadS StopDBInstanceAutomatedBackupsReplication
ReadS [StopDBInstanceAutomatedBackupsReplication]
(Int -> ReadS StopDBInstanceAutomatedBackupsReplication)
-> ReadS [StopDBInstanceAutomatedBackupsReplication]
-> ReadPrec StopDBInstanceAutomatedBackupsReplication
-> ReadPrec [StopDBInstanceAutomatedBackupsReplication]
-> Read StopDBInstanceAutomatedBackupsReplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopDBInstanceAutomatedBackupsReplication]
$creadListPrec :: ReadPrec [StopDBInstanceAutomatedBackupsReplication]
readPrec :: ReadPrec StopDBInstanceAutomatedBackupsReplication
$creadPrec :: ReadPrec StopDBInstanceAutomatedBackupsReplication
readList :: ReadS [StopDBInstanceAutomatedBackupsReplication]
$creadList :: ReadS [StopDBInstanceAutomatedBackupsReplication]
readsPrec :: Int -> ReadS StopDBInstanceAutomatedBackupsReplication
$creadsPrec :: Int -> ReadS StopDBInstanceAutomatedBackupsReplication
Prelude.Read, Int -> StopDBInstanceAutomatedBackupsReplication -> ShowS
[StopDBInstanceAutomatedBackupsReplication] -> ShowS
StopDBInstanceAutomatedBackupsReplication -> String
(Int -> StopDBInstanceAutomatedBackupsReplication -> ShowS)
-> (StopDBInstanceAutomatedBackupsReplication -> String)
-> ([StopDBInstanceAutomatedBackupsReplication] -> ShowS)
-> Show StopDBInstanceAutomatedBackupsReplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopDBInstanceAutomatedBackupsReplication] -> ShowS
$cshowList :: [StopDBInstanceAutomatedBackupsReplication] -> ShowS
show :: StopDBInstanceAutomatedBackupsReplication -> String
$cshow :: StopDBInstanceAutomatedBackupsReplication -> String
showsPrec :: Int -> StopDBInstanceAutomatedBackupsReplication -> ShowS
$cshowsPrec :: Int -> StopDBInstanceAutomatedBackupsReplication -> ShowS
Prelude.Show, (forall x.
 StopDBInstanceAutomatedBackupsReplication
 -> Rep StopDBInstanceAutomatedBackupsReplication x)
-> (forall x.
    Rep StopDBInstanceAutomatedBackupsReplication x
    -> StopDBInstanceAutomatedBackupsReplication)
-> Generic StopDBInstanceAutomatedBackupsReplication
forall x.
Rep StopDBInstanceAutomatedBackupsReplication x
-> StopDBInstanceAutomatedBackupsReplication
forall x.
StopDBInstanceAutomatedBackupsReplication
-> Rep StopDBInstanceAutomatedBackupsReplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopDBInstanceAutomatedBackupsReplication x
-> StopDBInstanceAutomatedBackupsReplication
$cfrom :: forall x.
StopDBInstanceAutomatedBackupsReplication
-> Rep StopDBInstanceAutomatedBackupsReplication x
Prelude.Generic)

-- |
-- Create a value of 'StopDBInstanceAutomatedBackupsReplication' 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:
--
-- 'sourceDBInstanceArn', 'stopDBInstanceAutomatedBackupsReplication_sourceDBInstanceArn' - The Amazon Resource Name (ARN) of the source DB instance for which to
-- stop replicating automated backups, for example,
-- @arn:aws:rds:us-west-2:123456789012:db:mydatabase@.
newStopDBInstanceAutomatedBackupsReplication ::
  -- | 'sourceDBInstanceArn'
  Prelude.Text ->
  StopDBInstanceAutomatedBackupsReplication
newStopDBInstanceAutomatedBackupsReplication :: Text -> StopDBInstanceAutomatedBackupsReplication
newStopDBInstanceAutomatedBackupsReplication
  Text
pSourceDBInstanceArn_ =
    StopDBInstanceAutomatedBackupsReplication' :: Text -> StopDBInstanceAutomatedBackupsReplication
StopDBInstanceAutomatedBackupsReplication'
      { $sel:sourceDBInstanceArn:StopDBInstanceAutomatedBackupsReplication' :: Text
sourceDBInstanceArn =
          Text
pSourceDBInstanceArn_
      }

-- | The Amazon Resource Name (ARN) of the source DB instance for which to
-- stop replicating automated backups, for example,
-- @arn:aws:rds:us-west-2:123456789012:db:mydatabase@.
stopDBInstanceAutomatedBackupsReplication_sourceDBInstanceArn :: Lens.Lens' StopDBInstanceAutomatedBackupsReplication Prelude.Text
stopDBInstanceAutomatedBackupsReplication_sourceDBInstanceArn :: (Text -> f Text)
-> StopDBInstanceAutomatedBackupsReplication
-> f StopDBInstanceAutomatedBackupsReplication
stopDBInstanceAutomatedBackupsReplication_sourceDBInstanceArn = (StopDBInstanceAutomatedBackupsReplication -> Text)
-> (StopDBInstanceAutomatedBackupsReplication
    -> Text -> StopDBInstanceAutomatedBackupsReplication)
-> Lens
     StopDBInstanceAutomatedBackupsReplication
     StopDBInstanceAutomatedBackupsReplication
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopDBInstanceAutomatedBackupsReplication' {Text
sourceDBInstanceArn :: Text
$sel:sourceDBInstanceArn:StopDBInstanceAutomatedBackupsReplication' :: StopDBInstanceAutomatedBackupsReplication -> Text
sourceDBInstanceArn} -> Text
sourceDBInstanceArn) (\s :: StopDBInstanceAutomatedBackupsReplication
s@StopDBInstanceAutomatedBackupsReplication' {} Text
a -> StopDBInstanceAutomatedBackupsReplication
s {$sel:sourceDBInstanceArn:StopDBInstanceAutomatedBackupsReplication' :: Text
sourceDBInstanceArn = Text
a} :: StopDBInstanceAutomatedBackupsReplication)

instance
  Core.AWSRequest
    StopDBInstanceAutomatedBackupsReplication
  where
  type
    AWSResponse
      StopDBInstanceAutomatedBackupsReplication =
      StopDBInstanceAutomatedBackupsReplicationResponse
  request :: StopDBInstanceAutomatedBackupsReplication
-> Request StopDBInstanceAutomatedBackupsReplication
request = Service
-> StopDBInstanceAutomatedBackupsReplication
-> Request StopDBInstanceAutomatedBackupsReplication
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy StopDBInstanceAutomatedBackupsReplication
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse StopDBInstanceAutomatedBackupsReplication)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either
         String (AWSResponse StopDBInstanceAutomatedBackupsReplication))
-> Logger
-> Service
-> Proxy StopDBInstanceAutomatedBackupsReplication
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse StopDBInstanceAutomatedBackupsReplication)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"StopDBInstanceAutomatedBackupsReplicationResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe DBInstanceAutomatedBackup
-> Int -> StopDBInstanceAutomatedBackupsReplicationResponse
StopDBInstanceAutomatedBackupsReplicationResponse'
            (Maybe DBInstanceAutomatedBackup
 -> Int -> StopDBInstanceAutomatedBackupsReplicationResponse)
-> Either String (Maybe DBInstanceAutomatedBackup)
-> Either
     String (Int -> StopDBInstanceAutomatedBackupsReplicationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBInstanceAutomatedBackup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBInstanceAutomatedBackup")
              Either
  String (Int -> StopDBInstanceAutomatedBackupsReplicationResponse)
-> Either String Int
-> Either String StopDBInstanceAutomatedBackupsReplicationResponse
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
    StopDBInstanceAutomatedBackupsReplication

instance
  Prelude.NFData
    StopDBInstanceAutomatedBackupsReplication

instance
  Core.ToHeaders
    StopDBInstanceAutomatedBackupsReplication
  where
  toHeaders :: StopDBInstanceAutomatedBackupsReplication -> ResponseHeaders
toHeaders = ResponseHeaders
-> StopDBInstanceAutomatedBackupsReplication -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToPath
    StopDBInstanceAutomatedBackupsReplication
  where
  toPath :: StopDBInstanceAutomatedBackupsReplication -> ByteString
toPath = ByteString
-> StopDBInstanceAutomatedBackupsReplication -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    StopDBInstanceAutomatedBackupsReplication
  where
  toQuery :: StopDBInstanceAutomatedBackupsReplication -> QueryString
toQuery
    StopDBInstanceAutomatedBackupsReplication' {Text
sourceDBInstanceArn :: Text
$sel:sourceDBInstanceArn:StopDBInstanceAutomatedBackupsReplication' :: StopDBInstanceAutomatedBackupsReplication -> Text
..} =
      [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
        [ ByteString
"Action"
            ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"StopDBInstanceAutomatedBackupsReplication" ::
                        Prelude.ByteString
                    ),
          ByteString
"Version"
            ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
          ByteString
"SourceDBInstanceArn" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sourceDBInstanceArn
        ]

-- | /See:/ 'newStopDBInstanceAutomatedBackupsReplicationResponse' smart constructor.
data StopDBInstanceAutomatedBackupsReplicationResponse = StopDBInstanceAutomatedBackupsReplicationResponse'
  { StopDBInstanceAutomatedBackupsReplicationResponse
-> Maybe DBInstanceAutomatedBackup
dbInstanceAutomatedBackup :: Prelude.Maybe DBInstanceAutomatedBackup,
    -- | The response's http status code.
    StopDBInstanceAutomatedBackupsReplicationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StopDBInstanceAutomatedBackupsReplicationResponse
-> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool
(StopDBInstanceAutomatedBackupsReplicationResponse
 -> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool)
-> (StopDBInstanceAutomatedBackupsReplicationResponse
    -> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool)
-> Eq StopDBInstanceAutomatedBackupsReplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopDBInstanceAutomatedBackupsReplicationResponse
-> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool
$c/= :: StopDBInstanceAutomatedBackupsReplicationResponse
-> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool
== :: StopDBInstanceAutomatedBackupsReplicationResponse
-> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool
$c== :: StopDBInstanceAutomatedBackupsReplicationResponse
-> StopDBInstanceAutomatedBackupsReplicationResponse -> Bool
Prelude.Eq, ReadPrec [StopDBInstanceAutomatedBackupsReplicationResponse]
ReadPrec StopDBInstanceAutomatedBackupsReplicationResponse
Int -> ReadS StopDBInstanceAutomatedBackupsReplicationResponse
ReadS [StopDBInstanceAutomatedBackupsReplicationResponse]
(Int -> ReadS StopDBInstanceAutomatedBackupsReplicationResponse)
-> ReadS [StopDBInstanceAutomatedBackupsReplicationResponse]
-> ReadPrec StopDBInstanceAutomatedBackupsReplicationResponse
-> ReadPrec [StopDBInstanceAutomatedBackupsReplicationResponse]
-> Read StopDBInstanceAutomatedBackupsReplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopDBInstanceAutomatedBackupsReplicationResponse]
$creadListPrec :: ReadPrec [StopDBInstanceAutomatedBackupsReplicationResponse]
readPrec :: ReadPrec StopDBInstanceAutomatedBackupsReplicationResponse
$creadPrec :: ReadPrec StopDBInstanceAutomatedBackupsReplicationResponse
readList :: ReadS [StopDBInstanceAutomatedBackupsReplicationResponse]
$creadList :: ReadS [StopDBInstanceAutomatedBackupsReplicationResponse]
readsPrec :: Int -> ReadS StopDBInstanceAutomatedBackupsReplicationResponse
$creadsPrec :: Int -> ReadS StopDBInstanceAutomatedBackupsReplicationResponse
Prelude.Read, Int -> StopDBInstanceAutomatedBackupsReplicationResponse -> ShowS
[StopDBInstanceAutomatedBackupsReplicationResponse] -> ShowS
StopDBInstanceAutomatedBackupsReplicationResponse -> String
(Int -> StopDBInstanceAutomatedBackupsReplicationResponse -> ShowS)
-> (StopDBInstanceAutomatedBackupsReplicationResponse -> String)
-> ([StopDBInstanceAutomatedBackupsReplicationResponse] -> ShowS)
-> Show StopDBInstanceAutomatedBackupsReplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopDBInstanceAutomatedBackupsReplicationResponse] -> ShowS
$cshowList :: [StopDBInstanceAutomatedBackupsReplicationResponse] -> ShowS
show :: StopDBInstanceAutomatedBackupsReplicationResponse -> String
$cshow :: StopDBInstanceAutomatedBackupsReplicationResponse -> String
showsPrec :: Int -> StopDBInstanceAutomatedBackupsReplicationResponse -> ShowS
$cshowsPrec :: Int -> StopDBInstanceAutomatedBackupsReplicationResponse -> ShowS
Prelude.Show, (forall x.
 StopDBInstanceAutomatedBackupsReplicationResponse
 -> Rep StopDBInstanceAutomatedBackupsReplicationResponse x)
-> (forall x.
    Rep StopDBInstanceAutomatedBackupsReplicationResponse x
    -> StopDBInstanceAutomatedBackupsReplicationResponse)
-> Generic StopDBInstanceAutomatedBackupsReplicationResponse
forall x.
Rep StopDBInstanceAutomatedBackupsReplicationResponse x
-> StopDBInstanceAutomatedBackupsReplicationResponse
forall x.
StopDBInstanceAutomatedBackupsReplicationResponse
-> Rep StopDBInstanceAutomatedBackupsReplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopDBInstanceAutomatedBackupsReplicationResponse x
-> StopDBInstanceAutomatedBackupsReplicationResponse
$cfrom :: forall x.
StopDBInstanceAutomatedBackupsReplicationResponse
-> Rep StopDBInstanceAutomatedBackupsReplicationResponse x
Prelude.Generic)

-- |
-- Create a value of 'StopDBInstanceAutomatedBackupsReplicationResponse' 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:
--
-- 'dbInstanceAutomatedBackup', 'stopDBInstanceAutomatedBackupsReplicationResponse_dbInstanceAutomatedBackup' - Undocumented member.
--
-- 'httpStatus', 'stopDBInstanceAutomatedBackupsReplicationResponse_httpStatus' - The response's http status code.
newStopDBInstanceAutomatedBackupsReplicationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StopDBInstanceAutomatedBackupsReplicationResponse
newStopDBInstanceAutomatedBackupsReplicationResponse :: Int -> StopDBInstanceAutomatedBackupsReplicationResponse
newStopDBInstanceAutomatedBackupsReplicationResponse
  Int
pHttpStatus_ =
    StopDBInstanceAutomatedBackupsReplicationResponse' :: Maybe DBInstanceAutomatedBackup
-> Int -> StopDBInstanceAutomatedBackupsReplicationResponse
StopDBInstanceAutomatedBackupsReplicationResponse'
      { $sel:dbInstanceAutomatedBackup:StopDBInstanceAutomatedBackupsReplicationResponse' :: Maybe DBInstanceAutomatedBackup
dbInstanceAutomatedBackup =
          Maybe DBInstanceAutomatedBackup
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:StopDBInstanceAutomatedBackupsReplicationResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | Undocumented member.
stopDBInstanceAutomatedBackupsReplicationResponse_dbInstanceAutomatedBackup :: Lens.Lens' StopDBInstanceAutomatedBackupsReplicationResponse (Prelude.Maybe DBInstanceAutomatedBackup)
stopDBInstanceAutomatedBackupsReplicationResponse_dbInstanceAutomatedBackup :: (Maybe DBInstanceAutomatedBackup
 -> f (Maybe DBInstanceAutomatedBackup))
-> StopDBInstanceAutomatedBackupsReplicationResponse
-> f StopDBInstanceAutomatedBackupsReplicationResponse
stopDBInstanceAutomatedBackupsReplicationResponse_dbInstanceAutomatedBackup = (StopDBInstanceAutomatedBackupsReplicationResponse
 -> Maybe DBInstanceAutomatedBackup)
-> (StopDBInstanceAutomatedBackupsReplicationResponse
    -> Maybe DBInstanceAutomatedBackup
    -> StopDBInstanceAutomatedBackupsReplicationResponse)
-> Lens
     StopDBInstanceAutomatedBackupsReplicationResponse
     StopDBInstanceAutomatedBackupsReplicationResponse
     (Maybe DBInstanceAutomatedBackup)
     (Maybe DBInstanceAutomatedBackup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopDBInstanceAutomatedBackupsReplicationResponse' {Maybe DBInstanceAutomatedBackup
dbInstanceAutomatedBackup :: Maybe DBInstanceAutomatedBackup
$sel:dbInstanceAutomatedBackup:StopDBInstanceAutomatedBackupsReplicationResponse' :: StopDBInstanceAutomatedBackupsReplicationResponse
-> Maybe DBInstanceAutomatedBackup
dbInstanceAutomatedBackup} -> Maybe DBInstanceAutomatedBackup
dbInstanceAutomatedBackup) (\s :: StopDBInstanceAutomatedBackupsReplicationResponse
s@StopDBInstanceAutomatedBackupsReplicationResponse' {} Maybe DBInstanceAutomatedBackup
a -> StopDBInstanceAutomatedBackupsReplicationResponse
s {$sel:dbInstanceAutomatedBackup:StopDBInstanceAutomatedBackupsReplicationResponse' :: Maybe DBInstanceAutomatedBackup
dbInstanceAutomatedBackup = Maybe DBInstanceAutomatedBackup
a} :: StopDBInstanceAutomatedBackupsReplicationResponse)

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

instance
  Prelude.NFData
    StopDBInstanceAutomatedBackupsReplicationResponse