{-# 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.Omics.DeleteWorkflow
(
DeleteWorkflow (..),
newDeleteWorkflow,
deleteWorkflow_id,
DeleteWorkflowResponse (..),
newDeleteWorkflowResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Omics.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteWorkflow = DeleteWorkflow'
{
DeleteWorkflow -> Text
id :: Prelude.Text
}
deriving (DeleteWorkflow -> DeleteWorkflow -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteWorkflow -> DeleteWorkflow -> Bool
$c/= :: DeleteWorkflow -> DeleteWorkflow -> Bool
== :: DeleteWorkflow -> DeleteWorkflow -> Bool
$c== :: DeleteWorkflow -> DeleteWorkflow -> Bool
Prelude.Eq, ReadPrec [DeleteWorkflow]
ReadPrec DeleteWorkflow
Int -> ReadS DeleteWorkflow
ReadS [DeleteWorkflow]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteWorkflow]
$creadListPrec :: ReadPrec [DeleteWorkflow]
readPrec :: ReadPrec DeleteWorkflow
$creadPrec :: ReadPrec DeleteWorkflow
readList :: ReadS [DeleteWorkflow]
$creadList :: ReadS [DeleteWorkflow]
readsPrec :: Int -> ReadS DeleteWorkflow
$creadsPrec :: Int -> ReadS DeleteWorkflow
Prelude.Read, Int -> DeleteWorkflow -> ShowS
[DeleteWorkflow] -> ShowS
DeleteWorkflow -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteWorkflow] -> ShowS
$cshowList :: [DeleteWorkflow] -> ShowS
show :: DeleteWorkflow -> String
$cshow :: DeleteWorkflow -> String
showsPrec :: Int -> DeleteWorkflow -> ShowS
$cshowsPrec :: Int -> DeleteWorkflow -> ShowS
Prelude.Show, forall x. Rep DeleteWorkflow x -> DeleteWorkflow
forall x. DeleteWorkflow -> Rep DeleteWorkflow x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteWorkflow x -> DeleteWorkflow
$cfrom :: forall x. DeleteWorkflow -> Rep DeleteWorkflow x
Prelude.Generic)
newDeleteWorkflow ::
Prelude.Text ->
DeleteWorkflow
newDeleteWorkflow :: Text -> DeleteWorkflow
newDeleteWorkflow Text
pId_ = DeleteWorkflow' {$sel:id:DeleteWorkflow' :: Text
id = Text
pId_}
deleteWorkflow_id :: Lens.Lens' DeleteWorkflow Prelude.Text
deleteWorkflow_id :: Lens' DeleteWorkflow Text
deleteWorkflow_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteWorkflow' {Text
id :: Text
$sel:id:DeleteWorkflow' :: DeleteWorkflow -> Text
id} -> Text
id) (\s :: DeleteWorkflow
s@DeleteWorkflow' {} Text
a -> DeleteWorkflow
s {$sel:id:DeleteWorkflow' :: Text
id = Text
a} :: DeleteWorkflow)
instance Core.AWSRequest DeleteWorkflow where
type
AWSResponse DeleteWorkflow =
DeleteWorkflowResponse
request :: (Service -> Service) -> DeleteWorkflow -> Request DeleteWorkflow
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.delete (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteWorkflow
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteWorkflow)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull DeleteWorkflowResponse
DeleteWorkflowResponse'
instance Prelude.Hashable DeleteWorkflow where
hashWithSalt :: Int -> DeleteWorkflow -> Int
hashWithSalt Int
_salt DeleteWorkflow' {Text
id :: Text
$sel:id:DeleteWorkflow' :: DeleteWorkflow -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
instance Prelude.NFData DeleteWorkflow where
rnf :: DeleteWorkflow -> ()
rnf DeleteWorkflow' {Text
id :: Text
$sel:id:DeleteWorkflow' :: DeleteWorkflow -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
id
instance Data.ToHeaders DeleteWorkflow where
toHeaders :: DeleteWorkflow -> [Header]
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath DeleteWorkflow where
toPath :: DeleteWorkflow -> ByteString
toPath DeleteWorkflow' {Text
id :: Text
$sel:id:DeleteWorkflow' :: DeleteWorkflow -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/workflow/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
id]
instance Data.ToQuery DeleteWorkflow where
toQuery :: DeleteWorkflow -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteWorkflowResponse = DeleteWorkflowResponse'
{
}
deriving (DeleteWorkflowResponse -> DeleteWorkflowResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteWorkflowResponse -> DeleteWorkflowResponse -> Bool
$c/= :: DeleteWorkflowResponse -> DeleteWorkflowResponse -> Bool
== :: DeleteWorkflowResponse -> DeleteWorkflowResponse -> Bool
$c== :: DeleteWorkflowResponse -> DeleteWorkflowResponse -> Bool
Prelude.Eq, ReadPrec [DeleteWorkflowResponse]
ReadPrec DeleteWorkflowResponse
Int -> ReadS DeleteWorkflowResponse
ReadS [DeleteWorkflowResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteWorkflowResponse]
$creadListPrec :: ReadPrec [DeleteWorkflowResponse]
readPrec :: ReadPrec DeleteWorkflowResponse
$creadPrec :: ReadPrec DeleteWorkflowResponse
readList :: ReadS [DeleteWorkflowResponse]
$creadList :: ReadS [DeleteWorkflowResponse]
readsPrec :: Int -> ReadS DeleteWorkflowResponse
$creadsPrec :: Int -> ReadS DeleteWorkflowResponse
Prelude.Read, Int -> DeleteWorkflowResponse -> ShowS
[DeleteWorkflowResponse] -> ShowS
DeleteWorkflowResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteWorkflowResponse] -> ShowS
$cshowList :: [DeleteWorkflowResponse] -> ShowS
show :: DeleteWorkflowResponse -> String
$cshow :: DeleteWorkflowResponse -> String
showsPrec :: Int -> DeleteWorkflowResponse -> ShowS
$cshowsPrec :: Int -> DeleteWorkflowResponse -> ShowS
Prelude.Show, forall x. Rep DeleteWorkflowResponse x -> DeleteWorkflowResponse
forall x. DeleteWorkflowResponse -> Rep DeleteWorkflowResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteWorkflowResponse x -> DeleteWorkflowResponse
$cfrom :: forall x. DeleteWorkflowResponse -> Rep DeleteWorkflowResponse x
Prelude.Generic)
newDeleteWorkflowResponse ::
DeleteWorkflowResponse
newDeleteWorkflowResponse :: DeleteWorkflowResponse
newDeleteWorkflowResponse = DeleteWorkflowResponse
DeleteWorkflowResponse'
instance Prelude.NFData DeleteWorkflowResponse where
rnf :: DeleteWorkflowResponse -> ()
rnf DeleteWorkflowResponse
_ = ()