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