{-# 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.DeleteBackupVaultLockConfiguration
(
DeleteBackupVaultLockConfiguration (..),
newDeleteBackupVaultLockConfiguration,
deleteBackupVaultLockConfiguration_backupVaultName,
DeleteBackupVaultLockConfigurationResponse (..),
newDeleteBackupVaultLockConfigurationResponse,
)
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 DeleteBackupVaultLockConfiguration = DeleteBackupVaultLockConfiguration'
{
DeleteBackupVaultLockConfiguration -> Text
backupVaultName :: Prelude.Text
}
deriving (DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool
(DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool)
-> (DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool)
-> Eq DeleteBackupVaultLockConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool
$c/= :: DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool
== :: DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool
$c== :: DeleteBackupVaultLockConfiguration
-> DeleteBackupVaultLockConfiguration -> Bool
Prelude.Eq, ReadPrec [DeleteBackupVaultLockConfiguration]
ReadPrec DeleteBackupVaultLockConfiguration
Int -> ReadS DeleteBackupVaultLockConfiguration
ReadS [DeleteBackupVaultLockConfiguration]
(Int -> ReadS DeleteBackupVaultLockConfiguration)
-> ReadS [DeleteBackupVaultLockConfiguration]
-> ReadPrec DeleteBackupVaultLockConfiguration
-> ReadPrec [DeleteBackupVaultLockConfiguration]
-> Read DeleteBackupVaultLockConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackupVaultLockConfiguration]
$creadListPrec :: ReadPrec [DeleteBackupVaultLockConfiguration]
readPrec :: ReadPrec DeleteBackupVaultLockConfiguration
$creadPrec :: ReadPrec DeleteBackupVaultLockConfiguration
readList :: ReadS [DeleteBackupVaultLockConfiguration]
$creadList :: ReadS [DeleteBackupVaultLockConfiguration]
readsPrec :: Int -> ReadS DeleteBackupVaultLockConfiguration
$creadsPrec :: Int -> ReadS DeleteBackupVaultLockConfiguration
Prelude.Read, Int -> DeleteBackupVaultLockConfiguration -> ShowS
[DeleteBackupVaultLockConfiguration] -> ShowS
DeleteBackupVaultLockConfiguration -> String
(Int -> DeleteBackupVaultLockConfiguration -> ShowS)
-> (DeleteBackupVaultLockConfiguration -> String)
-> ([DeleteBackupVaultLockConfiguration] -> ShowS)
-> Show DeleteBackupVaultLockConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackupVaultLockConfiguration] -> ShowS
$cshowList :: [DeleteBackupVaultLockConfiguration] -> ShowS
show :: DeleteBackupVaultLockConfiguration -> String
$cshow :: DeleteBackupVaultLockConfiguration -> String
showsPrec :: Int -> DeleteBackupVaultLockConfiguration -> ShowS
$cshowsPrec :: Int -> DeleteBackupVaultLockConfiguration -> ShowS
Prelude.Show, (forall x.
DeleteBackupVaultLockConfiguration
-> Rep DeleteBackupVaultLockConfiguration x)
-> (forall x.
Rep DeleteBackupVaultLockConfiguration x
-> DeleteBackupVaultLockConfiguration)
-> Generic DeleteBackupVaultLockConfiguration
forall x.
Rep DeleteBackupVaultLockConfiguration x
-> DeleteBackupVaultLockConfiguration
forall x.
DeleteBackupVaultLockConfiguration
-> Rep DeleteBackupVaultLockConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBackupVaultLockConfiguration x
-> DeleteBackupVaultLockConfiguration
$cfrom :: forall x.
DeleteBackupVaultLockConfiguration
-> Rep DeleteBackupVaultLockConfiguration x
Prelude.Generic)
newDeleteBackupVaultLockConfiguration ::
Prelude.Text ->
DeleteBackupVaultLockConfiguration
newDeleteBackupVaultLockConfiguration :: Text -> DeleteBackupVaultLockConfiguration
newDeleteBackupVaultLockConfiguration
Text
pBackupVaultName_ =
DeleteBackupVaultLockConfiguration' :: Text -> DeleteBackupVaultLockConfiguration
DeleteBackupVaultLockConfiguration'
{ $sel:backupVaultName:DeleteBackupVaultLockConfiguration' :: Text
backupVaultName =
Text
pBackupVaultName_
}
deleteBackupVaultLockConfiguration_backupVaultName :: Lens.Lens' DeleteBackupVaultLockConfiguration Prelude.Text
deleteBackupVaultLockConfiguration_backupVaultName :: (Text -> f Text)
-> DeleteBackupVaultLockConfiguration
-> f DeleteBackupVaultLockConfiguration
deleteBackupVaultLockConfiguration_backupVaultName = (DeleteBackupVaultLockConfiguration -> Text)
-> (DeleteBackupVaultLockConfiguration
-> Text -> DeleteBackupVaultLockConfiguration)
-> Lens
DeleteBackupVaultLockConfiguration
DeleteBackupVaultLockConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackupVaultLockConfiguration' {Text
backupVaultName :: Text
$sel:backupVaultName:DeleteBackupVaultLockConfiguration' :: DeleteBackupVaultLockConfiguration -> Text
backupVaultName} -> Text
backupVaultName) (\s :: DeleteBackupVaultLockConfiguration
s@DeleteBackupVaultLockConfiguration' {} Text
a -> DeleteBackupVaultLockConfiguration
s {$sel:backupVaultName:DeleteBackupVaultLockConfiguration' :: Text
backupVaultName = Text
a} :: DeleteBackupVaultLockConfiguration)
instance
Core.AWSRequest
DeleteBackupVaultLockConfiguration
where
type
AWSResponse DeleteBackupVaultLockConfiguration =
DeleteBackupVaultLockConfigurationResponse
request :: DeleteBackupVaultLockConfiguration
-> Request DeleteBackupVaultLockConfiguration
request = Service
-> DeleteBackupVaultLockConfiguration
-> Request DeleteBackupVaultLockConfiguration
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteBackupVaultLockConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteBackupVaultLockConfiguration)))
response =
AWSResponse DeleteBackupVaultLockConfiguration
-> Logger
-> Service
-> Proxy DeleteBackupVaultLockConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteBackupVaultLockConfiguration)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteBackupVaultLockConfiguration
DeleteBackupVaultLockConfigurationResponse
DeleteBackupVaultLockConfigurationResponse'
instance
Prelude.Hashable
DeleteBackupVaultLockConfiguration
instance
Prelude.NFData
DeleteBackupVaultLockConfiguration
instance
Core.ToHeaders
DeleteBackupVaultLockConfiguration
where
toHeaders :: DeleteBackupVaultLockConfiguration -> [Header]
toHeaders =
[Header] -> DeleteBackupVaultLockConfiguration -> [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
DeleteBackupVaultLockConfiguration
where
toPath :: DeleteBackupVaultLockConfiguration -> ByteString
toPath DeleteBackupVaultLockConfiguration' {Text
backupVaultName :: Text
$sel:backupVaultName:DeleteBackupVaultLockConfiguration' :: DeleteBackupVaultLockConfiguration -> 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
"/vault-lock"
]
instance
Core.ToQuery
DeleteBackupVaultLockConfiguration
where
toQuery :: DeleteBackupVaultLockConfiguration -> QueryString
toQuery = QueryString -> DeleteBackupVaultLockConfiguration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteBackupVaultLockConfigurationResponse = DeleteBackupVaultLockConfigurationResponse'
{
}
deriving (DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool
(DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool)
-> (DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool)
-> Eq DeleteBackupVaultLockConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool
$c/= :: DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool
== :: DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool
$c== :: DeleteBackupVaultLockConfigurationResponse
-> DeleteBackupVaultLockConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DeleteBackupVaultLockConfigurationResponse]
ReadPrec DeleteBackupVaultLockConfigurationResponse
Int -> ReadS DeleteBackupVaultLockConfigurationResponse
ReadS [DeleteBackupVaultLockConfigurationResponse]
(Int -> ReadS DeleteBackupVaultLockConfigurationResponse)
-> ReadS [DeleteBackupVaultLockConfigurationResponse]
-> ReadPrec DeleteBackupVaultLockConfigurationResponse
-> ReadPrec [DeleteBackupVaultLockConfigurationResponse]
-> Read DeleteBackupVaultLockConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackupVaultLockConfigurationResponse]
$creadListPrec :: ReadPrec [DeleteBackupVaultLockConfigurationResponse]
readPrec :: ReadPrec DeleteBackupVaultLockConfigurationResponse
$creadPrec :: ReadPrec DeleteBackupVaultLockConfigurationResponse
readList :: ReadS [DeleteBackupVaultLockConfigurationResponse]
$creadList :: ReadS [DeleteBackupVaultLockConfigurationResponse]
readsPrec :: Int -> ReadS DeleteBackupVaultLockConfigurationResponse
$creadsPrec :: Int -> ReadS DeleteBackupVaultLockConfigurationResponse
Prelude.Read, Int -> DeleteBackupVaultLockConfigurationResponse -> ShowS
[DeleteBackupVaultLockConfigurationResponse] -> ShowS
DeleteBackupVaultLockConfigurationResponse -> String
(Int -> DeleteBackupVaultLockConfigurationResponse -> ShowS)
-> (DeleteBackupVaultLockConfigurationResponse -> String)
-> ([DeleteBackupVaultLockConfigurationResponse] -> ShowS)
-> Show DeleteBackupVaultLockConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackupVaultLockConfigurationResponse] -> ShowS
$cshowList :: [DeleteBackupVaultLockConfigurationResponse] -> ShowS
show :: DeleteBackupVaultLockConfigurationResponse -> String
$cshow :: DeleteBackupVaultLockConfigurationResponse -> String
showsPrec :: Int -> DeleteBackupVaultLockConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DeleteBackupVaultLockConfigurationResponse -> ShowS
Prelude.Show, (forall x.
DeleteBackupVaultLockConfigurationResponse
-> Rep DeleteBackupVaultLockConfigurationResponse x)
-> (forall x.
Rep DeleteBackupVaultLockConfigurationResponse x
-> DeleteBackupVaultLockConfigurationResponse)
-> Generic DeleteBackupVaultLockConfigurationResponse
forall x.
Rep DeleteBackupVaultLockConfigurationResponse x
-> DeleteBackupVaultLockConfigurationResponse
forall x.
DeleteBackupVaultLockConfigurationResponse
-> Rep DeleteBackupVaultLockConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBackupVaultLockConfigurationResponse x
-> DeleteBackupVaultLockConfigurationResponse
$cfrom :: forall x.
DeleteBackupVaultLockConfigurationResponse
-> Rep DeleteBackupVaultLockConfigurationResponse x
Prelude.Generic)
newDeleteBackupVaultLockConfigurationResponse ::
DeleteBackupVaultLockConfigurationResponse
newDeleteBackupVaultLockConfigurationResponse :: DeleteBackupVaultLockConfigurationResponse
newDeleteBackupVaultLockConfigurationResponse =
DeleteBackupVaultLockConfigurationResponse
DeleteBackupVaultLockConfigurationResponse'
instance
Prelude.NFData
DeleteBackupVaultLockConfigurationResponse