{-# 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.DocumentDB.DeleteDBClusterParameterGroup
(
DeleteDBClusterParameterGroup (..),
newDeleteDBClusterParameterGroup,
deleteDBClusterParameterGroup_dbClusterParameterGroupName,
DeleteDBClusterParameterGroupResponse (..),
newDeleteDBClusterParameterGroupResponse,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DocumentDB.Types
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 DeleteDBClusterParameterGroup = DeleteDBClusterParameterGroup'
{
DeleteDBClusterParameterGroup -> Text
dbClusterParameterGroupName :: Prelude.Text
}
deriving (DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool
(DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool)
-> (DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool)
-> Eq DeleteDBClusterParameterGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool
$c/= :: DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool
== :: DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool
$c== :: DeleteDBClusterParameterGroup
-> DeleteDBClusterParameterGroup -> Bool
Prelude.Eq, ReadPrec [DeleteDBClusterParameterGroup]
ReadPrec DeleteDBClusterParameterGroup
Int -> ReadS DeleteDBClusterParameterGroup
ReadS [DeleteDBClusterParameterGroup]
(Int -> ReadS DeleteDBClusterParameterGroup)
-> ReadS [DeleteDBClusterParameterGroup]
-> ReadPrec DeleteDBClusterParameterGroup
-> ReadPrec [DeleteDBClusterParameterGroup]
-> Read DeleteDBClusterParameterGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDBClusterParameterGroup]
$creadListPrec :: ReadPrec [DeleteDBClusterParameterGroup]
readPrec :: ReadPrec DeleteDBClusterParameterGroup
$creadPrec :: ReadPrec DeleteDBClusterParameterGroup
readList :: ReadS [DeleteDBClusterParameterGroup]
$creadList :: ReadS [DeleteDBClusterParameterGroup]
readsPrec :: Int -> ReadS DeleteDBClusterParameterGroup
$creadsPrec :: Int -> ReadS DeleteDBClusterParameterGroup
Prelude.Read, Int -> DeleteDBClusterParameterGroup -> ShowS
[DeleteDBClusterParameterGroup] -> ShowS
DeleteDBClusterParameterGroup -> String
(Int -> DeleteDBClusterParameterGroup -> ShowS)
-> (DeleteDBClusterParameterGroup -> String)
-> ([DeleteDBClusterParameterGroup] -> ShowS)
-> Show DeleteDBClusterParameterGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDBClusterParameterGroup] -> ShowS
$cshowList :: [DeleteDBClusterParameterGroup] -> ShowS
show :: DeleteDBClusterParameterGroup -> String
$cshow :: DeleteDBClusterParameterGroup -> String
showsPrec :: Int -> DeleteDBClusterParameterGroup -> ShowS
$cshowsPrec :: Int -> DeleteDBClusterParameterGroup -> ShowS
Prelude.Show, (forall x.
DeleteDBClusterParameterGroup
-> Rep DeleteDBClusterParameterGroup x)
-> (forall x.
Rep DeleteDBClusterParameterGroup x
-> DeleteDBClusterParameterGroup)
-> Generic DeleteDBClusterParameterGroup
forall x.
Rep DeleteDBClusterParameterGroup x
-> DeleteDBClusterParameterGroup
forall x.
DeleteDBClusterParameterGroup
-> Rep DeleteDBClusterParameterGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteDBClusterParameterGroup x
-> DeleteDBClusterParameterGroup
$cfrom :: forall x.
DeleteDBClusterParameterGroup
-> Rep DeleteDBClusterParameterGroup x
Prelude.Generic)
newDeleteDBClusterParameterGroup ::
Prelude.Text ->
DeleteDBClusterParameterGroup
newDeleteDBClusterParameterGroup :: Text -> DeleteDBClusterParameterGroup
newDeleteDBClusterParameterGroup
Text
pDBClusterParameterGroupName_ =
DeleteDBClusterParameterGroup' :: Text -> DeleteDBClusterParameterGroup
DeleteDBClusterParameterGroup'
{ $sel:dbClusterParameterGroupName:DeleteDBClusterParameterGroup' :: Text
dbClusterParameterGroupName =
Text
pDBClusterParameterGroupName_
}
deleteDBClusterParameterGroup_dbClusterParameterGroupName :: Lens.Lens' DeleteDBClusterParameterGroup Prelude.Text
deleteDBClusterParameterGroup_dbClusterParameterGroupName :: (Text -> f Text)
-> DeleteDBClusterParameterGroup -> f DeleteDBClusterParameterGroup
deleteDBClusterParameterGroup_dbClusterParameterGroupName = (DeleteDBClusterParameterGroup -> Text)
-> (DeleteDBClusterParameterGroup
-> Text -> DeleteDBClusterParameterGroup)
-> Lens
DeleteDBClusterParameterGroup
DeleteDBClusterParameterGroup
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDBClusterParameterGroup' {Text
dbClusterParameterGroupName :: Text
$sel:dbClusterParameterGroupName:DeleteDBClusterParameterGroup' :: DeleteDBClusterParameterGroup -> Text
dbClusterParameterGroupName} -> Text
dbClusterParameterGroupName) (\s :: DeleteDBClusterParameterGroup
s@DeleteDBClusterParameterGroup' {} Text
a -> DeleteDBClusterParameterGroup
s {$sel:dbClusterParameterGroupName:DeleteDBClusterParameterGroup' :: Text
dbClusterParameterGroupName = Text
a} :: DeleteDBClusterParameterGroup)
instance
Core.AWSRequest
DeleteDBClusterParameterGroup
where
type
AWSResponse DeleteDBClusterParameterGroup =
DeleteDBClusterParameterGroupResponse
request :: DeleteDBClusterParameterGroup
-> Request DeleteDBClusterParameterGroup
request = Service
-> DeleteDBClusterParameterGroup
-> Request DeleteDBClusterParameterGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteDBClusterParameterGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteDBClusterParameterGroup)))
response =
AWSResponse DeleteDBClusterParameterGroup
-> Logger
-> Service
-> Proxy DeleteDBClusterParameterGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteDBClusterParameterGroup)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteDBClusterParameterGroup
DeleteDBClusterParameterGroupResponse
DeleteDBClusterParameterGroupResponse'
instance
Prelude.Hashable
DeleteDBClusterParameterGroup
instance Prelude.NFData DeleteDBClusterParameterGroup
instance Core.ToHeaders DeleteDBClusterParameterGroup where
toHeaders :: DeleteDBClusterParameterGroup -> [Header]
toHeaders = [Header] -> DeleteDBClusterParameterGroup -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DeleteDBClusterParameterGroup where
toPath :: DeleteDBClusterParameterGroup -> ByteString
toPath = ByteString -> DeleteDBClusterParameterGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DeleteDBClusterParameterGroup where
toQuery :: DeleteDBClusterParameterGroup -> QueryString
toQuery DeleteDBClusterParameterGroup' {Text
dbClusterParameterGroupName :: Text
$sel:dbClusterParameterGroupName:DeleteDBClusterParameterGroup' :: DeleteDBClusterParameterGroup -> 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
"DeleteDBClusterParameterGroup" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"DBClusterParameterGroupName"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbClusterParameterGroupName
]
data DeleteDBClusterParameterGroupResponse = DeleteDBClusterParameterGroupResponse'
{
}
deriving (DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool
(DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool)
-> (DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool)
-> Eq DeleteDBClusterParameterGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool
$c/= :: DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool
== :: DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool
$c== :: DeleteDBClusterParameterGroupResponse
-> DeleteDBClusterParameterGroupResponse -> Bool
Prelude.Eq, ReadPrec [DeleteDBClusterParameterGroupResponse]
ReadPrec DeleteDBClusterParameterGroupResponse
Int -> ReadS DeleteDBClusterParameterGroupResponse
ReadS [DeleteDBClusterParameterGroupResponse]
(Int -> ReadS DeleteDBClusterParameterGroupResponse)
-> ReadS [DeleteDBClusterParameterGroupResponse]
-> ReadPrec DeleteDBClusterParameterGroupResponse
-> ReadPrec [DeleteDBClusterParameterGroupResponse]
-> Read DeleteDBClusterParameterGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDBClusterParameterGroupResponse]
$creadListPrec :: ReadPrec [DeleteDBClusterParameterGroupResponse]
readPrec :: ReadPrec DeleteDBClusterParameterGroupResponse
$creadPrec :: ReadPrec DeleteDBClusterParameterGroupResponse
readList :: ReadS [DeleteDBClusterParameterGroupResponse]
$creadList :: ReadS [DeleteDBClusterParameterGroupResponse]
readsPrec :: Int -> ReadS DeleteDBClusterParameterGroupResponse
$creadsPrec :: Int -> ReadS DeleteDBClusterParameterGroupResponse
Prelude.Read, Int -> DeleteDBClusterParameterGroupResponse -> ShowS
[DeleteDBClusterParameterGroupResponse] -> ShowS
DeleteDBClusterParameterGroupResponse -> String
(Int -> DeleteDBClusterParameterGroupResponse -> ShowS)
-> (DeleteDBClusterParameterGroupResponse -> String)
-> ([DeleteDBClusterParameterGroupResponse] -> ShowS)
-> Show DeleteDBClusterParameterGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDBClusterParameterGroupResponse] -> ShowS
$cshowList :: [DeleteDBClusterParameterGroupResponse] -> ShowS
show :: DeleteDBClusterParameterGroupResponse -> String
$cshow :: DeleteDBClusterParameterGroupResponse -> String
showsPrec :: Int -> DeleteDBClusterParameterGroupResponse -> ShowS
$cshowsPrec :: Int -> DeleteDBClusterParameterGroupResponse -> ShowS
Prelude.Show, (forall x.
DeleteDBClusterParameterGroupResponse
-> Rep DeleteDBClusterParameterGroupResponse x)
-> (forall x.
Rep DeleteDBClusterParameterGroupResponse x
-> DeleteDBClusterParameterGroupResponse)
-> Generic DeleteDBClusterParameterGroupResponse
forall x.
Rep DeleteDBClusterParameterGroupResponse x
-> DeleteDBClusterParameterGroupResponse
forall x.
DeleteDBClusterParameterGroupResponse
-> Rep DeleteDBClusterParameterGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteDBClusterParameterGroupResponse x
-> DeleteDBClusterParameterGroupResponse
$cfrom :: forall x.
DeleteDBClusterParameterGroupResponse
-> Rep DeleteDBClusterParameterGroupResponse x
Prelude.Generic)
newDeleteDBClusterParameterGroupResponse ::
DeleteDBClusterParameterGroupResponse
newDeleteDBClusterParameterGroupResponse :: DeleteDBClusterParameterGroupResponse
newDeleteDBClusterParameterGroupResponse =
DeleteDBClusterParameterGroupResponse
DeleteDBClusterParameterGroupResponse'
instance
Prelude.NFData
DeleteDBClusterParameterGroupResponse