{-# 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.GroundStation.DeleteDataflowEndpointGroup
(
DeleteDataflowEndpointGroup (..),
newDeleteDataflowEndpointGroup,
deleteDataflowEndpointGroup_dataflowEndpointGroupId,
DataflowEndpointGroupIdResponse (..),
newDataflowEndpointGroupIdResponse,
dataflowEndpointGroupIdResponse_dataflowEndpointGroupId,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GroundStation.Types
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 DeleteDataflowEndpointGroup = DeleteDataflowEndpointGroup'
{
DeleteDataflowEndpointGroup -> Text
dataflowEndpointGroupId :: Prelude.Text
}
deriving (DeleteDataflowEndpointGroup -> DeleteDataflowEndpointGroup -> Bool
(DeleteDataflowEndpointGroup
-> DeleteDataflowEndpointGroup -> Bool)
-> (DeleteDataflowEndpointGroup
-> DeleteDataflowEndpointGroup -> Bool)
-> Eq DeleteDataflowEndpointGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDataflowEndpointGroup -> DeleteDataflowEndpointGroup -> Bool
$c/= :: DeleteDataflowEndpointGroup -> DeleteDataflowEndpointGroup -> Bool
== :: DeleteDataflowEndpointGroup -> DeleteDataflowEndpointGroup -> Bool
$c== :: DeleteDataflowEndpointGroup -> DeleteDataflowEndpointGroup -> Bool
Prelude.Eq, ReadPrec [DeleteDataflowEndpointGroup]
ReadPrec DeleteDataflowEndpointGroup
Int -> ReadS DeleteDataflowEndpointGroup
ReadS [DeleteDataflowEndpointGroup]
(Int -> ReadS DeleteDataflowEndpointGroup)
-> ReadS [DeleteDataflowEndpointGroup]
-> ReadPrec DeleteDataflowEndpointGroup
-> ReadPrec [DeleteDataflowEndpointGroup]
-> Read DeleteDataflowEndpointGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDataflowEndpointGroup]
$creadListPrec :: ReadPrec [DeleteDataflowEndpointGroup]
readPrec :: ReadPrec DeleteDataflowEndpointGroup
$creadPrec :: ReadPrec DeleteDataflowEndpointGroup
readList :: ReadS [DeleteDataflowEndpointGroup]
$creadList :: ReadS [DeleteDataflowEndpointGroup]
readsPrec :: Int -> ReadS DeleteDataflowEndpointGroup
$creadsPrec :: Int -> ReadS DeleteDataflowEndpointGroup
Prelude.Read, Int -> DeleteDataflowEndpointGroup -> ShowS
[DeleteDataflowEndpointGroup] -> ShowS
DeleteDataflowEndpointGroup -> String
(Int -> DeleteDataflowEndpointGroup -> ShowS)
-> (DeleteDataflowEndpointGroup -> String)
-> ([DeleteDataflowEndpointGroup] -> ShowS)
-> Show DeleteDataflowEndpointGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDataflowEndpointGroup] -> ShowS
$cshowList :: [DeleteDataflowEndpointGroup] -> ShowS
show :: DeleteDataflowEndpointGroup -> String
$cshow :: DeleteDataflowEndpointGroup -> String
showsPrec :: Int -> DeleteDataflowEndpointGroup -> ShowS
$cshowsPrec :: Int -> DeleteDataflowEndpointGroup -> ShowS
Prelude.Show, (forall x.
DeleteDataflowEndpointGroup -> Rep DeleteDataflowEndpointGroup x)
-> (forall x.
Rep DeleteDataflowEndpointGroup x -> DeleteDataflowEndpointGroup)
-> Generic DeleteDataflowEndpointGroup
forall x.
Rep DeleteDataflowEndpointGroup x -> DeleteDataflowEndpointGroup
forall x.
DeleteDataflowEndpointGroup -> Rep DeleteDataflowEndpointGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteDataflowEndpointGroup x -> DeleteDataflowEndpointGroup
$cfrom :: forall x.
DeleteDataflowEndpointGroup -> Rep DeleteDataflowEndpointGroup x
Prelude.Generic)
newDeleteDataflowEndpointGroup ::
Prelude.Text ->
DeleteDataflowEndpointGroup
newDeleteDataflowEndpointGroup :: Text -> DeleteDataflowEndpointGroup
newDeleteDataflowEndpointGroup
Text
pDataflowEndpointGroupId_ =
DeleteDataflowEndpointGroup' :: Text -> DeleteDataflowEndpointGroup
DeleteDataflowEndpointGroup'
{ $sel:dataflowEndpointGroupId:DeleteDataflowEndpointGroup' :: Text
dataflowEndpointGroupId =
Text
pDataflowEndpointGroupId_
}
deleteDataflowEndpointGroup_dataflowEndpointGroupId :: Lens.Lens' DeleteDataflowEndpointGroup Prelude.Text
deleteDataflowEndpointGroup_dataflowEndpointGroupId :: (Text -> f Text)
-> DeleteDataflowEndpointGroup -> f DeleteDataflowEndpointGroup
deleteDataflowEndpointGroup_dataflowEndpointGroupId = (DeleteDataflowEndpointGroup -> Text)
-> (DeleteDataflowEndpointGroup
-> Text -> DeleteDataflowEndpointGroup)
-> Lens
DeleteDataflowEndpointGroup DeleteDataflowEndpointGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDataflowEndpointGroup' {Text
dataflowEndpointGroupId :: Text
$sel:dataflowEndpointGroupId:DeleteDataflowEndpointGroup' :: DeleteDataflowEndpointGroup -> Text
dataflowEndpointGroupId} -> Text
dataflowEndpointGroupId) (\s :: DeleteDataflowEndpointGroup
s@DeleteDataflowEndpointGroup' {} Text
a -> DeleteDataflowEndpointGroup
s {$sel:dataflowEndpointGroupId:DeleteDataflowEndpointGroup' :: Text
dataflowEndpointGroupId = Text
a} :: DeleteDataflowEndpointGroup)
instance Core.AWSRequest DeleteDataflowEndpointGroup where
type
AWSResponse DeleteDataflowEndpointGroup =
DataflowEndpointGroupIdResponse
request :: DeleteDataflowEndpointGroup -> Request DeleteDataflowEndpointGroup
request = Service
-> DeleteDataflowEndpointGroup
-> Request DeleteDataflowEndpointGroup
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteDataflowEndpointGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteDataflowEndpointGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DeleteDataflowEndpointGroup))
-> Logger
-> Service
-> Proxy DeleteDataflowEndpointGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteDataflowEndpointGroup)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
(\Int
s ResponseHeaders
h Object
x -> Object -> Either String DataflowEndpointGroupIdResponse
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)
instance Prelude.Hashable DeleteDataflowEndpointGroup
instance Prelude.NFData DeleteDataflowEndpointGroup
instance Core.ToHeaders DeleteDataflowEndpointGroup where
toHeaders :: DeleteDataflowEndpointGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> DeleteDataflowEndpointGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DeleteDataflowEndpointGroup where
toPath :: DeleteDataflowEndpointGroup -> ByteString
toPath DeleteDataflowEndpointGroup' {Text
dataflowEndpointGroupId :: Text
$sel:dataflowEndpointGroupId:DeleteDataflowEndpointGroup' :: DeleteDataflowEndpointGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/dataflowEndpointGroup/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dataflowEndpointGroupId
]
instance Core.ToQuery DeleteDataflowEndpointGroup where
toQuery :: DeleteDataflowEndpointGroup -> QueryString
toQuery = QueryString -> DeleteDataflowEndpointGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty