{-# 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.IoTWireless.DeleteWirelessGatewayTaskDefinition
(
DeleteWirelessGatewayTaskDefinition (..),
newDeleteWirelessGatewayTaskDefinition,
deleteWirelessGatewayTaskDefinition_id,
DeleteWirelessGatewayTaskDefinitionResponse (..),
newDeleteWirelessGatewayTaskDefinitionResponse,
deleteWirelessGatewayTaskDefinitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTWireless.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 DeleteWirelessGatewayTaskDefinition = DeleteWirelessGatewayTaskDefinition'
{
DeleteWirelessGatewayTaskDefinition -> Text
id :: Prelude.Text
}
deriving (DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool
(DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool)
-> (DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool)
-> Eq DeleteWirelessGatewayTaskDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool
$c/= :: DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool
== :: DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool
$c== :: DeleteWirelessGatewayTaskDefinition
-> DeleteWirelessGatewayTaskDefinition -> Bool
Prelude.Eq, ReadPrec [DeleteWirelessGatewayTaskDefinition]
ReadPrec DeleteWirelessGatewayTaskDefinition
Int -> ReadS DeleteWirelessGatewayTaskDefinition
ReadS [DeleteWirelessGatewayTaskDefinition]
(Int -> ReadS DeleteWirelessGatewayTaskDefinition)
-> ReadS [DeleteWirelessGatewayTaskDefinition]
-> ReadPrec DeleteWirelessGatewayTaskDefinition
-> ReadPrec [DeleteWirelessGatewayTaskDefinition]
-> Read DeleteWirelessGatewayTaskDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteWirelessGatewayTaskDefinition]
$creadListPrec :: ReadPrec [DeleteWirelessGatewayTaskDefinition]
readPrec :: ReadPrec DeleteWirelessGatewayTaskDefinition
$creadPrec :: ReadPrec DeleteWirelessGatewayTaskDefinition
readList :: ReadS [DeleteWirelessGatewayTaskDefinition]
$creadList :: ReadS [DeleteWirelessGatewayTaskDefinition]
readsPrec :: Int -> ReadS DeleteWirelessGatewayTaskDefinition
$creadsPrec :: Int -> ReadS DeleteWirelessGatewayTaskDefinition
Prelude.Read, Int -> DeleteWirelessGatewayTaskDefinition -> ShowS
[DeleteWirelessGatewayTaskDefinition] -> ShowS
DeleteWirelessGatewayTaskDefinition -> String
(Int -> DeleteWirelessGatewayTaskDefinition -> ShowS)
-> (DeleteWirelessGatewayTaskDefinition -> String)
-> ([DeleteWirelessGatewayTaskDefinition] -> ShowS)
-> Show DeleteWirelessGatewayTaskDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteWirelessGatewayTaskDefinition] -> ShowS
$cshowList :: [DeleteWirelessGatewayTaskDefinition] -> ShowS
show :: DeleteWirelessGatewayTaskDefinition -> String
$cshow :: DeleteWirelessGatewayTaskDefinition -> String
showsPrec :: Int -> DeleteWirelessGatewayTaskDefinition -> ShowS
$cshowsPrec :: Int -> DeleteWirelessGatewayTaskDefinition -> ShowS
Prelude.Show, (forall x.
DeleteWirelessGatewayTaskDefinition
-> Rep DeleteWirelessGatewayTaskDefinition x)
-> (forall x.
Rep DeleteWirelessGatewayTaskDefinition x
-> DeleteWirelessGatewayTaskDefinition)
-> Generic DeleteWirelessGatewayTaskDefinition
forall x.
Rep DeleteWirelessGatewayTaskDefinition x
-> DeleteWirelessGatewayTaskDefinition
forall x.
DeleteWirelessGatewayTaskDefinition
-> Rep DeleteWirelessGatewayTaskDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteWirelessGatewayTaskDefinition x
-> DeleteWirelessGatewayTaskDefinition
$cfrom :: forall x.
DeleteWirelessGatewayTaskDefinition
-> Rep DeleteWirelessGatewayTaskDefinition x
Prelude.Generic)
newDeleteWirelessGatewayTaskDefinition ::
Prelude.Text ->
DeleteWirelessGatewayTaskDefinition
newDeleteWirelessGatewayTaskDefinition :: Text -> DeleteWirelessGatewayTaskDefinition
newDeleteWirelessGatewayTaskDefinition Text
pId_ =
DeleteWirelessGatewayTaskDefinition' :: Text -> DeleteWirelessGatewayTaskDefinition
DeleteWirelessGatewayTaskDefinition' {$sel:id:DeleteWirelessGatewayTaskDefinition' :: Text
id = Text
pId_}
deleteWirelessGatewayTaskDefinition_id :: Lens.Lens' DeleteWirelessGatewayTaskDefinition Prelude.Text
deleteWirelessGatewayTaskDefinition_id :: (Text -> f Text)
-> DeleteWirelessGatewayTaskDefinition
-> f DeleteWirelessGatewayTaskDefinition
deleteWirelessGatewayTaskDefinition_id = (DeleteWirelessGatewayTaskDefinition -> Text)
-> (DeleteWirelessGatewayTaskDefinition
-> Text -> DeleteWirelessGatewayTaskDefinition)
-> Lens
DeleteWirelessGatewayTaskDefinition
DeleteWirelessGatewayTaskDefinition
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteWirelessGatewayTaskDefinition' {Text
id :: Text
$sel:id:DeleteWirelessGatewayTaskDefinition' :: DeleteWirelessGatewayTaskDefinition -> Text
id} -> Text
id) (\s :: DeleteWirelessGatewayTaskDefinition
s@DeleteWirelessGatewayTaskDefinition' {} Text
a -> DeleteWirelessGatewayTaskDefinition
s {$sel:id:DeleteWirelessGatewayTaskDefinition' :: Text
id = Text
a} :: DeleteWirelessGatewayTaskDefinition)
instance
Core.AWSRequest
DeleteWirelessGatewayTaskDefinition
where
type
AWSResponse DeleteWirelessGatewayTaskDefinition =
DeleteWirelessGatewayTaskDefinitionResponse
request :: DeleteWirelessGatewayTaskDefinition
-> Request DeleteWirelessGatewayTaskDefinition
request = Service
-> DeleteWirelessGatewayTaskDefinition
-> Request DeleteWirelessGatewayTaskDefinition
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteWirelessGatewayTaskDefinition
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteWirelessGatewayTaskDefinition)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse DeleteWirelessGatewayTaskDefinition))
-> Logger
-> Service
-> Proxy DeleteWirelessGatewayTaskDefinition
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteWirelessGatewayTaskDefinition)))
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 -> DeleteWirelessGatewayTaskDefinitionResponse
DeleteWirelessGatewayTaskDefinitionResponse'
(Int -> DeleteWirelessGatewayTaskDefinitionResponse)
-> Either String Int
-> Either String DeleteWirelessGatewayTaskDefinitionResponse
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
DeleteWirelessGatewayTaskDefinition
instance
Prelude.NFData
DeleteWirelessGatewayTaskDefinition
instance
Core.ToHeaders
DeleteWirelessGatewayTaskDefinition
where
toHeaders :: DeleteWirelessGatewayTaskDefinition -> ResponseHeaders
toHeaders = ResponseHeaders
-> DeleteWirelessGatewayTaskDefinition -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
DeleteWirelessGatewayTaskDefinition
where
toPath :: DeleteWirelessGatewayTaskDefinition -> ByteString
toPath DeleteWirelessGatewayTaskDefinition' {Text
id :: Text
$sel:id:DeleteWirelessGatewayTaskDefinition' :: DeleteWirelessGatewayTaskDefinition -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/wireless-gateway-task-definitions/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]
instance
Core.ToQuery
DeleteWirelessGatewayTaskDefinition
where
toQuery :: DeleteWirelessGatewayTaskDefinition -> QueryString
toQuery = QueryString -> DeleteWirelessGatewayTaskDefinition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteWirelessGatewayTaskDefinitionResponse = DeleteWirelessGatewayTaskDefinitionResponse'
{
DeleteWirelessGatewayTaskDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool
(DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool)
-> (DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool)
-> Eq DeleteWirelessGatewayTaskDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool
$c/= :: DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool
== :: DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool
$c== :: DeleteWirelessGatewayTaskDefinitionResponse
-> DeleteWirelessGatewayTaskDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [DeleteWirelessGatewayTaskDefinitionResponse]
ReadPrec DeleteWirelessGatewayTaskDefinitionResponse
Int -> ReadS DeleteWirelessGatewayTaskDefinitionResponse
ReadS [DeleteWirelessGatewayTaskDefinitionResponse]
(Int -> ReadS DeleteWirelessGatewayTaskDefinitionResponse)
-> ReadS [DeleteWirelessGatewayTaskDefinitionResponse]
-> ReadPrec DeleteWirelessGatewayTaskDefinitionResponse
-> ReadPrec [DeleteWirelessGatewayTaskDefinitionResponse]
-> Read DeleteWirelessGatewayTaskDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteWirelessGatewayTaskDefinitionResponse]
$creadListPrec :: ReadPrec [DeleteWirelessGatewayTaskDefinitionResponse]
readPrec :: ReadPrec DeleteWirelessGatewayTaskDefinitionResponse
$creadPrec :: ReadPrec DeleteWirelessGatewayTaskDefinitionResponse
readList :: ReadS [DeleteWirelessGatewayTaskDefinitionResponse]
$creadList :: ReadS [DeleteWirelessGatewayTaskDefinitionResponse]
readsPrec :: Int -> ReadS DeleteWirelessGatewayTaskDefinitionResponse
$creadsPrec :: Int -> ReadS DeleteWirelessGatewayTaskDefinitionResponse
Prelude.Read, Int -> DeleteWirelessGatewayTaskDefinitionResponse -> ShowS
[DeleteWirelessGatewayTaskDefinitionResponse] -> ShowS
DeleteWirelessGatewayTaskDefinitionResponse -> String
(Int -> DeleteWirelessGatewayTaskDefinitionResponse -> ShowS)
-> (DeleteWirelessGatewayTaskDefinitionResponse -> String)
-> ([DeleteWirelessGatewayTaskDefinitionResponse] -> ShowS)
-> Show DeleteWirelessGatewayTaskDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteWirelessGatewayTaskDefinitionResponse] -> ShowS
$cshowList :: [DeleteWirelessGatewayTaskDefinitionResponse] -> ShowS
show :: DeleteWirelessGatewayTaskDefinitionResponse -> String
$cshow :: DeleteWirelessGatewayTaskDefinitionResponse -> String
showsPrec :: Int -> DeleteWirelessGatewayTaskDefinitionResponse -> ShowS
$cshowsPrec :: Int -> DeleteWirelessGatewayTaskDefinitionResponse -> ShowS
Prelude.Show, (forall x.
DeleteWirelessGatewayTaskDefinitionResponse
-> Rep DeleteWirelessGatewayTaskDefinitionResponse x)
-> (forall x.
Rep DeleteWirelessGatewayTaskDefinitionResponse x
-> DeleteWirelessGatewayTaskDefinitionResponse)
-> Generic DeleteWirelessGatewayTaskDefinitionResponse
forall x.
Rep DeleteWirelessGatewayTaskDefinitionResponse x
-> DeleteWirelessGatewayTaskDefinitionResponse
forall x.
DeleteWirelessGatewayTaskDefinitionResponse
-> Rep DeleteWirelessGatewayTaskDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteWirelessGatewayTaskDefinitionResponse x
-> DeleteWirelessGatewayTaskDefinitionResponse
$cfrom :: forall x.
DeleteWirelessGatewayTaskDefinitionResponse
-> Rep DeleteWirelessGatewayTaskDefinitionResponse x
Prelude.Generic)
newDeleteWirelessGatewayTaskDefinitionResponse ::
Prelude.Int ->
DeleteWirelessGatewayTaskDefinitionResponse
newDeleteWirelessGatewayTaskDefinitionResponse :: Int -> DeleteWirelessGatewayTaskDefinitionResponse
newDeleteWirelessGatewayTaskDefinitionResponse
Int
pHttpStatus_ =
DeleteWirelessGatewayTaskDefinitionResponse' :: Int -> DeleteWirelessGatewayTaskDefinitionResponse
DeleteWirelessGatewayTaskDefinitionResponse'
{ $sel:httpStatus:DeleteWirelessGatewayTaskDefinitionResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteWirelessGatewayTaskDefinitionResponse_httpStatus :: Lens.Lens' DeleteWirelessGatewayTaskDefinitionResponse Prelude.Int
deleteWirelessGatewayTaskDefinitionResponse_httpStatus :: (Int -> f Int)
-> DeleteWirelessGatewayTaskDefinitionResponse
-> f DeleteWirelessGatewayTaskDefinitionResponse
deleteWirelessGatewayTaskDefinitionResponse_httpStatus = (DeleteWirelessGatewayTaskDefinitionResponse -> Int)
-> (DeleteWirelessGatewayTaskDefinitionResponse
-> Int -> DeleteWirelessGatewayTaskDefinitionResponse)
-> Lens
DeleteWirelessGatewayTaskDefinitionResponse
DeleteWirelessGatewayTaskDefinitionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteWirelessGatewayTaskDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteWirelessGatewayTaskDefinitionResponse' :: DeleteWirelessGatewayTaskDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteWirelessGatewayTaskDefinitionResponse
s@DeleteWirelessGatewayTaskDefinitionResponse' {} Int
a -> DeleteWirelessGatewayTaskDefinitionResponse
s {$sel:httpStatus:DeleteWirelessGatewayTaskDefinitionResponse' :: Int
httpStatus = Int
a} :: DeleteWirelessGatewayTaskDefinitionResponse)
instance
Prelude.NFData
DeleteWirelessGatewayTaskDefinitionResponse