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