{-# 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.Route53.DeleteReusableDelegationSet
(
DeleteReusableDelegationSet (..),
newDeleteReusableDelegationSet,
deleteReusableDelegationSet_id,
DeleteReusableDelegationSetResponse (..),
newDeleteReusableDelegationSetResponse,
deleteReusableDelegationSetResponse_httpStatus,
)
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.Route53.Types
data DeleteReusableDelegationSet = DeleteReusableDelegationSet'
{
DeleteReusableDelegationSet -> ResourceId
id :: ResourceId
}
deriving (DeleteReusableDelegationSet -> DeleteReusableDelegationSet -> Bool
(DeleteReusableDelegationSet
-> DeleteReusableDelegationSet -> Bool)
-> (DeleteReusableDelegationSet
-> DeleteReusableDelegationSet -> Bool)
-> Eq DeleteReusableDelegationSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteReusableDelegationSet -> DeleteReusableDelegationSet -> Bool
$c/= :: DeleteReusableDelegationSet -> DeleteReusableDelegationSet -> Bool
== :: DeleteReusableDelegationSet -> DeleteReusableDelegationSet -> Bool
$c== :: DeleteReusableDelegationSet -> DeleteReusableDelegationSet -> Bool
Prelude.Eq, ReadPrec [DeleteReusableDelegationSet]
ReadPrec DeleteReusableDelegationSet
Int -> ReadS DeleteReusableDelegationSet
ReadS [DeleteReusableDelegationSet]
(Int -> ReadS DeleteReusableDelegationSet)
-> ReadS [DeleteReusableDelegationSet]
-> ReadPrec DeleteReusableDelegationSet
-> ReadPrec [DeleteReusableDelegationSet]
-> Read DeleteReusableDelegationSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteReusableDelegationSet]
$creadListPrec :: ReadPrec [DeleteReusableDelegationSet]
readPrec :: ReadPrec DeleteReusableDelegationSet
$creadPrec :: ReadPrec DeleteReusableDelegationSet
readList :: ReadS [DeleteReusableDelegationSet]
$creadList :: ReadS [DeleteReusableDelegationSet]
readsPrec :: Int -> ReadS DeleteReusableDelegationSet
$creadsPrec :: Int -> ReadS DeleteReusableDelegationSet
Prelude.Read, Int -> DeleteReusableDelegationSet -> ShowS
[DeleteReusableDelegationSet] -> ShowS
DeleteReusableDelegationSet -> String
(Int -> DeleteReusableDelegationSet -> ShowS)
-> (DeleteReusableDelegationSet -> String)
-> ([DeleteReusableDelegationSet] -> ShowS)
-> Show DeleteReusableDelegationSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteReusableDelegationSet] -> ShowS
$cshowList :: [DeleteReusableDelegationSet] -> ShowS
show :: DeleteReusableDelegationSet -> String
$cshow :: DeleteReusableDelegationSet -> String
showsPrec :: Int -> DeleteReusableDelegationSet -> ShowS
$cshowsPrec :: Int -> DeleteReusableDelegationSet -> ShowS
Prelude.Show, (forall x.
DeleteReusableDelegationSet -> Rep DeleteReusableDelegationSet x)
-> (forall x.
Rep DeleteReusableDelegationSet x -> DeleteReusableDelegationSet)
-> Generic DeleteReusableDelegationSet
forall x.
Rep DeleteReusableDelegationSet x -> DeleteReusableDelegationSet
forall x.
DeleteReusableDelegationSet -> Rep DeleteReusableDelegationSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteReusableDelegationSet x -> DeleteReusableDelegationSet
$cfrom :: forall x.
DeleteReusableDelegationSet -> Rep DeleteReusableDelegationSet x
Prelude.Generic)
newDeleteReusableDelegationSet ::
ResourceId ->
DeleteReusableDelegationSet
newDeleteReusableDelegationSet :: ResourceId -> DeleteReusableDelegationSet
newDeleteReusableDelegationSet ResourceId
pId_ =
DeleteReusableDelegationSet' :: ResourceId -> DeleteReusableDelegationSet
DeleteReusableDelegationSet' {$sel:id:DeleteReusableDelegationSet' :: ResourceId
id = ResourceId
pId_}
deleteReusableDelegationSet_id :: Lens.Lens' DeleteReusableDelegationSet ResourceId
deleteReusableDelegationSet_id :: (ResourceId -> f ResourceId)
-> DeleteReusableDelegationSet -> f DeleteReusableDelegationSet
deleteReusableDelegationSet_id = (DeleteReusableDelegationSet -> ResourceId)
-> (DeleteReusableDelegationSet
-> ResourceId -> DeleteReusableDelegationSet)
-> Lens
DeleteReusableDelegationSet
DeleteReusableDelegationSet
ResourceId
ResourceId
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteReusableDelegationSet' {ResourceId
id :: ResourceId
$sel:id:DeleteReusableDelegationSet' :: DeleteReusableDelegationSet -> ResourceId
id} -> ResourceId
id) (\s :: DeleteReusableDelegationSet
s@DeleteReusableDelegationSet' {} ResourceId
a -> DeleteReusableDelegationSet
s {$sel:id:DeleteReusableDelegationSet' :: ResourceId
id = ResourceId
a} :: DeleteReusableDelegationSet)
instance Core.AWSRequest DeleteReusableDelegationSet where
type
AWSResponse DeleteReusableDelegationSet =
DeleteReusableDelegationSetResponse
request :: DeleteReusableDelegationSet -> Request DeleteReusableDelegationSet
request = Service
-> DeleteReusableDelegationSet
-> Request DeleteReusableDelegationSet
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteReusableDelegationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteReusableDelegationSet)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse DeleteReusableDelegationSet))
-> Logger
-> Service
-> Proxy DeleteReusableDelegationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteReusableDelegationSet)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> DeleteReusableDelegationSetResponse
DeleteReusableDelegationSetResponse'
(Int -> DeleteReusableDelegationSetResponse)
-> Either String Int
-> Either String DeleteReusableDelegationSetResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DeleteReusableDelegationSet
instance Prelude.NFData DeleteReusableDelegationSet
instance Core.ToHeaders DeleteReusableDelegationSet where
toHeaders :: DeleteReusableDelegationSet -> ResponseHeaders
toHeaders = ResponseHeaders -> DeleteReusableDelegationSet -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DeleteReusableDelegationSet where
toPath :: DeleteReusableDelegationSet -> ByteString
toPath DeleteReusableDelegationSet' {ResourceId
id :: ResourceId
$sel:id:DeleteReusableDelegationSet' :: DeleteReusableDelegationSet -> ResourceId
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/2013-04-01/delegationset/", ResourceId -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS ResourceId
id]
instance Core.ToQuery DeleteReusableDelegationSet where
toQuery :: DeleteReusableDelegationSet -> QueryString
toQuery = QueryString -> DeleteReusableDelegationSet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteReusableDelegationSetResponse = DeleteReusableDelegationSetResponse'
{
DeleteReusableDelegationSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool
(DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool)
-> (DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool)
-> Eq DeleteReusableDelegationSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool
$c/= :: DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool
== :: DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool
$c== :: DeleteReusableDelegationSetResponse
-> DeleteReusableDelegationSetResponse -> Bool
Prelude.Eq, ReadPrec [DeleteReusableDelegationSetResponse]
ReadPrec DeleteReusableDelegationSetResponse
Int -> ReadS DeleteReusableDelegationSetResponse
ReadS [DeleteReusableDelegationSetResponse]
(Int -> ReadS DeleteReusableDelegationSetResponse)
-> ReadS [DeleteReusableDelegationSetResponse]
-> ReadPrec DeleteReusableDelegationSetResponse
-> ReadPrec [DeleteReusableDelegationSetResponse]
-> Read DeleteReusableDelegationSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteReusableDelegationSetResponse]
$creadListPrec :: ReadPrec [DeleteReusableDelegationSetResponse]
readPrec :: ReadPrec DeleteReusableDelegationSetResponse
$creadPrec :: ReadPrec DeleteReusableDelegationSetResponse
readList :: ReadS [DeleteReusableDelegationSetResponse]
$creadList :: ReadS [DeleteReusableDelegationSetResponse]
readsPrec :: Int -> ReadS DeleteReusableDelegationSetResponse
$creadsPrec :: Int -> ReadS DeleteReusableDelegationSetResponse
Prelude.Read, Int -> DeleteReusableDelegationSetResponse -> ShowS
[DeleteReusableDelegationSetResponse] -> ShowS
DeleteReusableDelegationSetResponse -> String
(Int -> DeleteReusableDelegationSetResponse -> ShowS)
-> (DeleteReusableDelegationSetResponse -> String)
-> ([DeleteReusableDelegationSetResponse] -> ShowS)
-> Show DeleteReusableDelegationSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteReusableDelegationSetResponse] -> ShowS
$cshowList :: [DeleteReusableDelegationSetResponse] -> ShowS
show :: DeleteReusableDelegationSetResponse -> String
$cshow :: DeleteReusableDelegationSetResponse -> String
showsPrec :: Int -> DeleteReusableDelegationSetResponse -> ShowS
$cshowsPrec :: Int -> DeleteReusableDelegationSetResponse -> ShowS
Prelude.Show, (forall x.
DeleteReusableDelegationSetResponse
-> Rep DeleteReusableDelegationSetResponse x)
-> (forall x.
Rep DeleteReusableDelegationSetResponse x
-> DeleteReusableDelegationSetResponse)
-> Generic DeleteReusableDelegationSetResponse
forall x.
Rep DeleteReusableDelegationSetResponse x
-> DeleteReusableDelegationSetResponse
forall x.
DeleteReusableDelegationSetResponse
-> Rep DeleteReusableDelegationSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteReusableDelegationSetResponse x
-> DeleteReusableDelegationSetResponse
$cfrom :: forall x.
DeleteReusableDelegationSetResponse
-> Rep DeleteReusableDelegationSetResponse x
Prelude.Generic)
newDeleteReusableDelegationSetResponse ::
Prelude.Int ->
DeleteReusableDelegationSetResponse
newDeleteReusableDelegationSetResponse :: Int -> DeleteReusableDelegationSetResponse
newDeleteReusableDelegationSetResponse Int
pHttpStatus_ =
DeleteReusableDelegationSetResponse' :: Int -> DeleteReusableDelegationSetResponse
DeleteReusableDelegationSetResponse'
{ $sel:httpStatus:DeleteReusableDelegationSetResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteReusableDelegationSetResponse_httpStatus :: Lens.Lens' DeleteReusableDelegationSetResponse Prelude.Int
deleteReusableDelegationSetResponse_httpStatus :: (Int -> f Int)
-> DeleteReusableDelegationSetResponse
-> f DeleteReusableDelegationSetResponse
deleteReusableDelegationSetResponse_httpStatus = (DeleteReusableDelegationSetResponse -> Int)
-> (DeleteReusableDelegationSetResponse
-> Int -> DeleteReusableDelegationSetResponse)
-> Lens
DeleteReusableDelegationSetResponse
DeleteReusableDelegationSetResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteReusableDelegationSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteReusableDelegationSetResponse' :: DeleteReusableDelegationSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteReusableDelegationSetResponse
s@DeleteReusableDelegationSetResponse' {} Int
a -> DeleteReusableDelegationSetResponse
s {$sel:httpStatus:DeleteReusableDelegationSetResponse' :: Int
httpStatus = Int
a} :: DeleteReusableDelegationSetResponse)
instance
Prelude.NFData
DeleteReusableDelegationSetResponse