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