{-# 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.Lightsail.DeleteRelationalDatabaseSnapshot
-- 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)
--
-- Deletes a database snapshot in Amazon Lightsail.
--
-- The @delete relational database snapshot@ operation supports tag-based
-- access control via resource tags applied to the resource identified by
-- relationalDatabaseName. For more information, see the
-- <https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-controlling-access-using-tags Amazon Lightsail Developer Guide>.
module Amazonka.Lightsail.DeleteRelationalDatabaseSnapshot
  ( -- * Creating a Request
    DeleteRelationalDatabaseSnapshot (..),
    newDeleteRelationalDatabaseSnapshot,

    -- * Request Lenses
    deleteRelationalDatabaseSnapshot_relationalDatabaseSnapshotName,

    -- * Destructuring the Response
    DeleteRelationalDatabaseSnapshotResponse (..),
    newDeleteRelationalDatabaseSnapshotResponse,

    -- * Response Lenses
    deleteRelationalDatabaseSnapshotResponse_operations,
    deleteRelationalDatabaseSnapshotResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDeleteRelationalDatabaseSnapshot' smart constructor.
data DeleteRelationalDatabaseSnapshot = DeleteRelationalDatabaseSnapshot'
  { -- | The name of the database snapshot that you are deleting.
    DeleteRelationalDatabaseSnapshot -> Text
relationalDatabaseSnapshotName :: Prelude.Text
  }
  deriving (DeleteRelationalDatabaseSnapshot
-> DeleteRelationalDatabaseSnapshot -> Bool
(DeleteRelationalDatabaseSnapshot
 -> DeleteRelationalDatabaseSnapshot -> Bool)
-> (DeleteRelationalDatabaseSnapshot
    -> DeleteRelationalDatabaseSnapshot -> Bool)
-> Eq DeleteRelationalDatabaseSnapshot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteRelationalDatabaseSnapshot
-> DeleteRelationalDatabaseSnapshot -> Bool
$c/= :: DeleteRelationalDatabaseSnapshot
-> DeleteRelationalDatabaseSnapshot -> Bool
== :: DeleteRelationalDatabaseSnapshot
-> DeleteRelationalDatabaseSnapshot -> Bool
$c== :: DeleteRelationalDatabaseSnapshot
-> DeleteRelationalDatabaseSnapshot -> Bool
Prelude.Eq, ReadPrec [DeleteRelationalDatabaseSnapshot]
ReadPrec DeleteRelationalDatabaseSnapshot
Int -> ReadS DeleteRelationalDatabaseSnapshot
ReadS [DeleteRelationalDatabaseSnapshot]
(Int -> ReadS DeleteRelationalDatabaseSnapshot)
-> ReadS [DeleteRelationalDatabaseSnapshot]
-> ReadPrec DeleteRelationalDatabaseSnapshot
-> ReadPrec [DeleteRelationalDatabaseSnapshot]
-> Read DeleteRelationalDatabaseSnapshot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteRelationalDatabaseSnapshot]
$creadListPrec :: ReadPrec [DeleteRelationalDatabaseSnapshot]
readPrec :: ReadPrec DeleteRelationalDatabaseSnapshot
$creadPrec :: ReadPrec DeleteRelationalDatabaseSnapshot
readList :: ReadS [DeleteRelationalDatabaseSnapshot]
$creadList :: ReadS [DeleteRelationalDatabaseSnapshot]
readsPrec :: Int -> ReadS DeleteRelationalDatabaseSnapshot
$creadsPrec :: Int -> ReadS DeleteRelationalDatabaseSnapshot
Prelude.Read, Int -> DeleteRelationalDatabaseSnapshot -> ShowS
[DeleteRelationalDatabaseSnapshot] -> ShowS
DeleteRelationalDatabaseSnapshot -> String
(Int -> DeleteRelationalDatabaseSnapshot -> ShowS)
-> (DeleteRelationalDatabaseSnapshot -> String)
-> ([DeleteRelationalDatabaseSnapshot] -> ShowS)
-> Show DeleteRelationalDatabaseSnapshot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteRelationalDatabaseSnapshot] -> ShowS
$cshowList :: [DeleteRelationalDatabaseSnapshot] -> ShowS
show :: DeleteRelationalDatabaseSnapshot -> String
$cshow :: DeleteRelationalDatabaseSnapshot -> String
showsPrec :: Int -> DeleteRelationalDatabaseSnapshot -> ShowS
$cshowsPrec :: Int -> DeleteRelationalDatabaseSnapshot -> ShowS
Prelude.Show, (forall x.
 DeleteRelationalDatabaseSnapshot
 -> Rep DeleteRelationalDatabaseSnapshot x)
-> (forall x.
    Rep DeleteRelationalDatabaseSnapshot x
    -> DeleteRelationalDatabaseSnapshot)
-> Generic DeleteRelationalDatabaseSnapshot
forall x.
Rep DeleteRelationalDatabaseSnapshot x
-> DeleteRelationalDatabaseSnapshot
forall x.
DeleteRelationalDatabaseSnapshot
-> Rep DeleteRelationalDatabaseSnapshot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteRelationalDatabaseSnapshot x
-> DeleteRelationalDatabaseSnapshot
$cfrom :: forall x.
DeleteRelationalDatabaseSnapshot
-> Rep DeleteRelationalDatabaseSnapshot x
Prelude.Generic)

-- |
-- Create a value of 'DeleteRelationalDatabaseSnapshot' 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:
--
-- 'relationalDatabaseSnapshotName', 'deleteRelationalDatabaseSnapshot_relationalDatabaseSnapshotName' - The name of the database snapshot that you are deleting.
newDeleteRelationalDatabaseSnapshot ::
  -- | 'relationalDatabaseSnapshotName'
  Prelude.Text ->
  DeleteRelationalDatabaseSnapshot
newDeleteRelationalDatabaseSnapshot :: Text -> DeleteRelationalDatabaseSnapshot
newDeleteRelationalDatabaseSnapshot
  Text
pRelationalDatabaseSnapshotName_ =
    DeleteRelationalDatabaseSnapshot' :: Text -> DeleteRelationalDatabaseSnapshot
DeleteRelationalDatabaseSnapshot'
      { $sel:relationalDatabaseSnapshotName:DeleteRelationalDatabaseSnapshot' :: Text
relationalDatabaseSnapshotName =
          Text
pRelationalDatabaseSnapshotName_
      }

-- | The name of the database snapshot that you are deleting.
deleteRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: Lens.Lens' DeleteRelationalDatabaseSnapshot Prelude.Text
deleteRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: (Text -> f Text)
-> DeleteRelationalDatabaseSnapshot
-> f DeleteRelationalDatabaseSnapshot
deleteRelationalDatabaseSnapshot_relationalDatabaseSnapshotName = (DeleteRelationalDatabaseSnapshot -> Text)
-> (DeleteRelationalDatabaseSnapshot
    -> Text -> DeleteRelationalDatabaseSnapshot)
-> Lens
     DeleteRelationalDatabaseSnapshot
     DeleteRelationalDatabaseSnapshot
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteRelationalDatabaseSnapshot' {Text
relationalDatabaseSnapshotName :: Text
$sel:relationalDatabaseSnapshotName:DeleteRelationalDatabaseSnapshot' :: DeleteRelationalDatabaseSnapshot -> Text
relationalDatabaseSnapshotName} -> Text
relationalDatabaseSnapshotName) (\s :: DeleteRelationalDatabaseSnapshot
s@DeleteRelationalDatabaseSnapshot' {} Text
a -> DeleteRelationalDatabaseSnapshot
s {$sel:relationalDatabaseSnapshotName:DeleteRelationalDatabaseSnapshot' :: Text
relationalDatabaseSnapshotName = Text
a} :: DeleteRelationalDatabaseSnapshot)

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

instance
  Prelude.NFData
    DeleteRelationalDatabaseSnapshot

instance
  Core.ToHeaders
    DeleteRelationalDatabaseSnapshot
  where
  toHeaders :: DeleteRelationalDatabaseSnapshot -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DeleteRelationalDatabaseSnapshot -> 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
"Lightsail_20161128.DeleteRelationalDatabaseSnapshot" ::
                          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 DeleteRelationalDatabaseSnapshot where
  toJSON :: DeleteRelationalDatabaseSnapshot -> Value
toJSON DeleteRelationalDatabaseSnapshot' {Text
relationalDatabaseSnapshotName :: Text
$sel:relationalDatabaseSnapshotName:DeleteRelationalDatabaseSnapshot' :: DeleteRelationalDatabaseSnapshot -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"relationalDatabaseSnapshotName"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
relationalDatabaseSnapshotName
              )
          ]
      )

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

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

-- | /See:/ 'newDeleteRelationalDatabaseSnapshotResponse' smart constructor.
data DeleteRelationalDatabaseSnapshotResponse = DeleteRelationalDatabaseSnapshotResponse'
  { -- | An array of objects that describe the result of the action, such as the
    -- status of the request, the timestamp of the request, and the resources
    -- affected by the request.
    DeleteRelationalDatabaseSnapshotResponse -> Maybe [Operation]
operations :: Prelude.Maybe [Operation],
    -- | The response's http status code.
    DeleteRelationalDatabaseSnapshotResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteRelationalDatabaseSnapshotResponse
-> DeleteRelationalDatabaseSnapshotResponse -> Bool
(DeleteRelationalDatabaseSnapshotResponse
 -> DeleteRelationalDatabaseSnapshotResponse -> Bool)
-> (DeleteRelationalDatabaseSnapshotResponse
    -> DeleteRelationalDatabaseSnapshotResponse -> Bool)
-> Eq DeleteRelationalDatabaseSnapshotResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteRelationalDatabaseSnapshotResponse
-> DeleteRelationalDatabaseSnapshotResponse -> Bool
$c/= :: DeleteRelationalDatabaseSnapshotResponse
-> DeleteRelationalDatabaseSnapshotResponse -> Bool
== :: DeleteRelationalDatabaseSnapshotResponse
-> DeleteRelationalDatabaseSnapshotResponse -> Bool
$c== :: DeleteRelationalDatabaseSnapshotResponse
-> DeleteRelationalDatabaseSnapshotResponse -> Bool
Prelude.Eq, ReadPrec [DeleteRelationalDatabaseSnapshotResponse]
ReadPrec DeleteRelationalDatabaseSnapshotResponse
Int -> ReadS DeleteRelationalDatabaseSnapshotResponse
ReadS [DeleteRelationalDatabaseSnapshotResponse]
(Int -> ReadS DeleteRelationalDatabaseSnapshotResponse)
-> ReadS [DeleteRelationalDatabaseSnapshotResponse]
-> ReadPrec DeleteRelationalDatabaseSnapshotResponse
-> ReadPrec [DeleteRelationalDatabaseSnapshotResponse]
-> Read DeleteRelationalDatabaseSnapshotResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteRelationalDatabaseSnapshotResponse]
$creadListPrec :: ReadPrec [DeleteRelationalDatabaseSnapshotResponse]
readPrec :: ReadPrec DeleteRelationalDatabaseSnapshotResponse
$creadPrec :: ReadPrec DeleteRelationalDatabaseSnapshotResponse
readList :: ReadS [DeleteRelationalDatabaseSnapshotResponse]
$creadList :: ReadS [DeleteRelationalDatabaseSnapshotResponse]
readsPrec :: Int -> ReadS DeleteRelationalDatabaseSnapshotResponse
$creadsPrec :: Int -> ReadS DeleteRelationalDatabaseSnapshotResponse
Prelude.Read, Int -> DeleteRelationalDatabaseSnapshotResponse -> ShowS
[DeleteRelationalDatabaseSnapshotResponse] -> ShowS
DeleteRelationalDatabaseSnapshotResponse -> String
(Int -> DeleteRelationalDatabaseSnapshotResponse -> ShowS)
-> (DeleteRelationalDatabaseSnapshotResponse -> String)
-> ([DeleteRelationalDatabaseSnapshotResponse] -> ShowS)
-> Show DeleteRelationalDatabaseSnapshotResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteRelationalDatabaseSnapshotResponse] -> ShowS
$cshowList :: [DeleteRelationalDatabaseSnapshotResponse] -> ShowS
show :: DeleteRelationalDatabaseSnapshotResponse -> String
$cshow :: DeleteRelationalDatabaseSnapshotResponse -> String
showsPrec :: Int -> DeleteRelationalDatabaseSnapshotResponse -> ShowS
$cshowsPrec :: Int -> DeleteRelationalDatabaseSnapshotResponse -> ShowS
Prelude.Show, (forall x.
 DeleteRelationalDatabaseSnapshotResponse
 -> Rep DeleteRelationalDatabaseSnapshotResponse x)
-> (forall x.
    Rep DeleteRelationalDatabaseSnapshotResponse x
    -> DeleteRelationalDatabaseSnapshotResponse)
-> Generic DeleteRelationalDatabaseSnapshotResponse
forall x.
Rep DeleteRelationalDatabaseSnapshotResponse x
-> DeleteRelationalDatabaseSnapshotResponse
forall x.
DeleteRelationalDatabaseSnapshotResponse
-> Rep DeleteRelationalDatabaseSnapshotResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteRelationalDatabaseSnapshotResponse x
-> DeleteRelationalDatabaseSnapshotResponse
$cfrom :: forall x.
DeleteRelationalDatabaseSnapshotResponse
-> Rep DeleteRelationalDatabaseSnapshotResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteRelationalDatabaseSnapshotResponse' 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:
--
-- 'operations', 'deleteRelationalDatabaseSnapshotResponse_operations' - An array of objects that describe the result of the action, such as the
-- status of the request, the timestamp of the request, and the resources
-- affected by the request.
--
-- 'httpStatus', 'deleteRelationalDatabaseSnapshotResponse_httpStatus' - The response's http status code.
newDeleteRelationalDatabaseSnapshotResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteRelationalDatabaseSnapshotResponse
newDeleteRelationalDatabaseSnapshotResponse :: Int -> DeleteRelationalDatabaseSnapshotResponse
newDeleteRelationalDatabaseSnapshotResponse
  Int
pHttpStatus_ =
    DeleteRelationalDatabaseSnapshotResponse' :: Maybe [Operation]
-> Int -> DeleteRelationalDatabaseSnapshotResponse
DeleteRelationalDatabaseSnapshotResponse'
      { $sel:operations:DeleteRelationalDatabaseSnapshotResponse' :: Maybe [Operation]
operations =
          Maybe [Operation]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DeleteRelationalDatabaseSnapshotResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | An array of objects that describe the result of the action, such as the
-- status of the request, the timestamp of the request, and the resources
-- affected by the request.
deleteRelationalDatabaseSnapshotResponse_operations :: Lens.Lens' DeleteRelationalDatabaseSnapshotResponse (Prelude.Maybe [Operation])
deleteRelationalDatabaseSnapshotResponse_operations :: (Maybe [Operation] -> f (Maybe [Operation]))
-> DeleteRelationalDatabaseSnapshotResponse
-> f DeleteRelationalDatabaseSnapshotResponse
deleteRelationalDatabaseSnapshotResponse_operations = (DeleteRelationalDatabaseSnapshotResponse -> Maybe [Operation])
-> (DeleteRelationalDatabaseSnapshotResponse
    -> Maybe [Operation] -> DeleteRelationalDatabaseSnapshotResponse)
-> Lens
     DeleteRelationalDatabaseSnapshotResponse
     DeleteRelationalDatabaseSnapshotResponse
     (Maybe [Operation])
     (Maybe [Operation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteRelationalDatabaseSnapshotResponse' {Maybe [Operation]
operations :: Maybe [Operation]
$sel:operations:DeleteRelationalDatabaseSnapshotResponse' :: DeleteRelationalDatabaseSnapshotResponse -> Maybe [Operation]
operations} -> Maybe [Operation]
operations) (\s :: DeleteRelationalDatabaseSnapshotResponse
s@DeleteRelationalDatabaseSnapshotResponse' {} Maybe [Operation]
a -> DeleteRelationalDatabaseSnapshotResponse
s {$sel:operations:DeleteRelationalDatabaseSnapshotResponse' :: Maybe [Operation]
operations = Maybe [Operation]
a} :: DeleteRelationalDatabaseSnapshotResponse) ((Maybe [Operation] -> f (Maybe [Operation]))
 -> DeleteRelationalDatabaseSnapshotResponse
 -> f DeleteRelationalDatabaseSnapshotResponse)
-> ((Maybe [Operation] -> f (Maybe [Operation]))
    -> Maybe [Operation] -> f (Maybe [Operation]))
-> (Maybe [Operation] -> f (Maybe [Operation]))
-> DeleteRelationalDatabaseSnapshotResponse
-> f DeleteRelationalDatabaseSnapshotResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Operation] [Operation] [Operation] [Operation]
-> Iso
     (Maybe [Operation])
     (Maybe [Operation])
     (Maybe [Operation])
     (Maybe [Operation])
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 [Operation] [Operation] [Operation] [Operation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DeleteRelationalDatabaseSnapshotResponse