{-# 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.Backup.DeleteBackupVaultNotifications
(
DeleteBackupVaultNotifications (..),
newDeleteBackupVaultNotifications,
deleteBackupVaultNotifications_backupVaultName,
DeleteBackupVaultNotificationsResponse (..),
newDeleteBackupVaultNotificationsResponse,
)
where
import Amazonka.Backup.Types
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
data DeleteBackupVaultNotifications = DeleteBackupVaultNotifications'
{
DeleteBackupVaultNotifications -> Text
backupVaultName :: Prelude.Text
}
deriving (DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool
(DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool)
-> (DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool)
-> Eq DeleteBackupVaultNotifications
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool
$c/= :: DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool
== :: DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool
$c== :: DeleteBackupVaultNotifications
-> DeleteBackupVaultNotifications -> Bool
Prelude.Eq, ReadPrec [DeleteBackupVaultNotifications]
ReadPrec DeleteBackupVaultNotifications
Int -> ReadS DeleteBackupVaultNotifications
ReadS [DeleteBackupVaultNotifications]
(Int -> ReadS DeleteBackupVaultNotifications)
-> ReadS [DeleteBackupVaultNotifications]
-> ReadPrec DeleteBackupVaultNotifications
-> ReadPrec [DeleteBackupVaultNotifications]
-> Read DeleteBackupVaultNotifications
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackupVaultNotifications]
$creadListPrec :: ReadPrec [DeleteBackupVaultNotifications]
readPrec :: ReadPrec DeleteBackupVaultNotifications
$creadPrec :: ReadPrec DeleteBackupVaultNotifications
readList :: ReadS [DeleteBackupVaultNotifications]
$creadList :: ReadS [DeleteBackupVaultNotifications]
readsPrec :: Int -> ReadS DeleteBackupVaultNotifications
$creadsPrec :: Int -> ReadS DeleteBackupVaultNotifications
Prelude.Read, Int -> DeleteBackupVaultNotifications -> ShowS
[DeleteBackupVaultNotifications] -> ShowS
DeleteBackupVaultNotifications -> String
(Int -> DeleteBackupVaultNotifications -> ShowS)
-> (DeleteBackupVaultNotifications -> String)
-> ([DeleteBackupVaultNotifications] -> ShowS)
-> Show DeleteBackupVaultNotifications
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackupVaultNotifications] -> ShowS
$cshowList :: [DeleteBackupVaultNotifications] -> ShowS
show :: DeleteBackupVaultNotifications -> String
$cshow :: DeleteBackupVaultNotifications -> String
showsPrec :: Int -> DeleteBackupVaultNotifications -> ShowS
$cshowsPrec :: Int -> DeleteBackupVaultNotifications -> ShowS
Prelude.Show, (forall x.
DeleteBackupVaultNotifications
-> Rep DeleteBackupVaultNotifications x)
-> (forall x.
Rep DeleteBackupVaultNotifications x
-> DeleteBackupVaultNotifications)
-> Generic DeleteBackupVaultNotifications
forall x.
Rep DeleteBackupVaultNotifications x
-> DeleteBackupVaultNotifications
forall x.
DeleteBackupVaultNotifications
-> Rep DeleteBackupVaultNotifications x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBackupVaultNotifications x
-> DeleteBackupVaultNotifications
$cfrom :: forall x.
DeleteBackupVaultNotifications
-> Rep DeleteBackupVaultNotifications x
Prelude.Generic)
newDeleteBackupVaultNotifications ::
Prelude.Text ->
DeleteBackupVaultNotifications
newDeleteBackupVaultNotifications :: Text -> DeleteBackupVaultNotifications
newDeleteBackupVaultNotifications Text
pBackupVaultName_ =
DeleteBackupVaultNotifications' :: Text -> DeleteBackupVaultNotifications
DeleteBackupVaultNotifications'
{ $sel:backupVaultName:DeleteBackupVaultNotifications' :: Text
backupVaultName =
Text
pBackupVaultName_
}
deleteBackupVaultNotifications_backupVaultName :: Lens.Lens' DeleteBackupVaultNotifications Prelude.Text
deleteBackupVaultNotifications_backupVaultName :: (Text -> f Text)
-> DeleteBackupVaultNotifications
-> f DeleteBackupVaultNotifications
deleteBackupVaultNotifications_backupVaultName = (DeleteBackupVaultNotifications -> Text)
-> (DeleteBackupVaultNotifications
-> Text -> DeleteBackupVaultNotifications)
-> Lens
DeleteBackupVaultNotifications
DeleteBackupVaultNotifications
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackupVaultNotifications' {Text
backupVaultName :: Text
$sel:backupVaultName:DeleteBackupVaultNotifications' :: DeleteBackupVaultNotifications -> Text
backupVaultName} -> Text
backupVaultName) (\s :: DeleteBackupVaultNotifications
s@DeleteBackupVaultNotifications' {} Text
a -> DeleteBackupVaultNotifications
s {$sel:backupVaultName:DeleteBackupVaultNotifications' :: Text
backupVaultName = Text
a} :: DeleteBackupVaultNotifications)
instance
Core.AWSRequest
DeleteBackupVaultNotifications
where
type
AWSResponse DeleteBackupVaultNotifications =
DeleteBackupVaultNotificationsResponse
request :: DeleteBackupVaultNotifications
-> Request DeleteBackupVaultNotifications
request = Service
-> DeleteBackupVaultNotifications
-> Request DeleteBackupVaultNotifications
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteBackupVaultNotifications
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteBackupVaultNotifications)))
response =
AWSResponse DeleteBackupVaultNotifications
-> Logger
-> Service
-> Proxy DeleteBackupVaultNotifications
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteBackupVaultNotifications)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteBackupVaultNotifications
DeleteBackupVaultNotificationsResponse
DeleteBackupVaultNotificationsResponse'
instance
Prelude.Hashable
DeleteBackupVaultNotifications
instance
Prelude.NFData
DeleteBackupVaultNotifications
instance
Core.ToHeaders
DeleteBackupVaultNotifications
where
toHeaders :: DeleteBackupVaultNotifications -> [Header]
toHeaders =
[Header] -> DeleteBackupVaultNotifications -> [Header]
forall a b. a -> b -> a
Prelude.const
( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DeleteBackupVaultNotifications where
toPath :: DeleteBackupVaultNotifications -> ByteString
toPath DeleteBackupVaultNotifications' {Text
backupVaultName :: Text
$sel:backupVaultName:DeleteBackupVaultNotifications' :: DeleteBackupVaultNotifications -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/backup-vaults/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
backupVaultName,
ByteString
"/notification-configuration"
]
instance Core.ToQuery DeleteBackupVaultNotifications where
toQuery :: DeleteBackupVaultNotifications -> QueryString
toQuery = QueryString -> DeleteBackupVaultNotifications -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteBackupVaultNotificationsResponse = DeleteBackupVaultNotificationsResponse'
{
}
deriving (DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool
(DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool)
-> (DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool)
-> Eq DeleteBackupVaultNotificationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool
$c/= :: DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool
== :: DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool
$c== :: DeleteBackupVaultNotificationsResponse
-> DeleteBackupVaultNotificationsResponse -> Bool
Prelude.Eq, ReadPrec [DeleteBackupVaultNotificationsResponse]
ReadPrec DeleteBackupVaultNotificationsResponse
Int -> ReadS DeleteBackupVaultNotificationsResponse
ReadS [DeleteBackupVaultNotificationsResponse]
(Int -> ReadS DeleteBackupVaultNotificationsResponse)
-> ReadS [DeleteBackupVaultNotificationsResponse]
-> ReadPrec DeleteBackupVaultNotificationsResponse
-> ReadPrec [DeleteBackupVaultNotificationsResponse]
-> Read DeleteBackupVaultNotificationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackupVaultNotificationsResponse]
$creadListPrec :: ReadPrec [DeleteBackupVaultNotificationsResponse]
readPrec :: ReadPrec DeleteBackupVaultNotificationsResponse
$creadPrec :: ReadPrec DeleteBackupVaultNotificationsResponse
readList :: ReadS [DeleteBackupVaultNotificationsResponse]
$creadList :: ReadS [DeleteBackupVaultNotificationsResponse]
readsPrec :: Int -> ReadS DeleteBackupVaultNotificationsResponse
$creadsPrec :: Int -> ReadS DeleteBackupVaultNotificationsResponse
Prelude.Read, Int -> DeleteBackupVaultNotificationsResponse -> ShowS
[DeleteBackupVaultNotificationsResponse] -> ShowS
DeleteBackupVaultNotificationsResponse -> String
(Int -> DeleteBackupVaultNotificationsResponse -> ShowS)
-> (DeleteBackupVaultNotificationsResponse -> String)
-> ([DeleteBackupVaultNotificationsResponse] -> ShowS)
-> Show DeleteBackupVaultNotificationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackupVaultNotificationsResponse] -> ShowS
$cshowList :: [DeleteBackupVaultNotificationsResponse] -> ShowS
show :: DeleteBackupVaultNotificationsResponse -> String
$cshow :: DeleteBackupVaultNotificationsResponse -> String
showsPrec :: Int -> DeleteBackupVaultNotificationsResponse -> ShowS
$cshowsPrec :: Int -> DeleteBackupVaultNotificationsResponse -> ShowS
Prelude.Show, (forall x.
DeleteBackupVaultNotificationsResponse
-> Rep DeleteBackupVaultNotificationsResponse x)
-> (forall x.
Rep DeleteBackupVaultNotificationsResponse x
-> DeleteBackupVaultNotificationsResponse)
-> Generic DeleteBackupVaultNotificationsResponse
forall x.
Rep DeleteBackupVaultNotificationsResponse x
-> DeleteBackupVaultNotificationsResponse
forall x.
DeleteBackupVaultNotificationsResponse
-> Rep DeleteBackupVaultNotificationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBackupVaultNotificationsResponse x
-> DeleteBackupVaultNotificationsResponse
$cfrom :: forall x.
DeleteBackupVaultNotificationsResponse
-> Rep DeleteBackupVaultNotificationsResponse x
Prelude.Generic)
newDeleteBackupVaultNotificationsResponse ::
DeleteBackupVaultNotificationsResponse
newDeleteBackupVaultNotificationsResponse :: DeleteBackupVaultNotificationsResponse
newDeleteBackupVaultNotificationsResponse =
DeleteBackupVaultNotificationsResponse
DeleteBackupVaultNotificationsResponse'
instance
Prelude.NFData
DeleteBackupVaultNotificationsResponse