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