{-# 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.ResetAllResourceLogLevels
(
ResetAllResourceLogLevels (..),
newResetAllResourceLogLevels,
ResetAllResourceLogLevelsResponse (..),
newResetAllResourceLogLevelsResponse,
resetAllResourceLogLevelsResponse_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 ResetAllResourceLogLevels = ResetAllResourceLogLevels'
{
}
deriving (ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool
(ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool)
-> (ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool)
-> Eq ResetAllResourceLogLevels
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool
$c/= :: ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool
== :: ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool
$c== :: ResetAllResourceLogLevels -> ResetAllResourceLogLevels -> Bool
Prelude.Eq, ReadPrec [ResetAllResourceLogLevels]
ReadPrec ResetAllResourceLogLevels
Int -> ReadS ResetAllResourceLogLevels
ReadS [ResetAllResourceLogLevels]
(Int -> ReadS ResetAllResourceLogLevels)
-> ReadS [ResetAllResourceLogLevels]
-> ReadPrec ResetAllResourceLogLevels
-> ReadPrec [ResetAllResourceLogLevels]
-> Read ResetAllResourceLogLevels
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResetAllResourceLogLevels]
$creadListPrec :: ReadPrec [ResetAllResourceLogLevels]
readPrec :: ReadPrec ResetAllResourceLogLevels
$creadPrec :: ReadPrec ResetAllResourceLogLevels
readList :: ReadS [ResetAllResourceLogLevels]
$creadList :: ReadS [ResetAllResourceLogLevels]
readsPrec :: Int -> ReadS ResetAllResourceLogLevels
$creadsPrec :: Int -> ReadS ResetAllResourceLogLevels
Prelude.Read, Int -> ResetAllResourceLogLevels -> ShowS
[ResetAllResourceLogLevels] -> ShowS
ResetAllResourceLogLevels -> String
(Int -> ResetAllResourceLogLevels -> ShowS)
-> (ResetAllResourceLogLevels -> String)
-> ([ResetAllResourceLogLevels] -> ShowS)
-> Show ResetAllResourceLogLevels
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResetAllResourceLogLevels] -> ShowS
$cshowList :: [ResetAllResourceLogLevels] -> ShowS
show :: ResetAllResourceLogLevels -> String
$cshow :: ResetAllResourceLogLevels -> String
showsPrec :: Int -> ResetAllResourceLogLevels -> ShowS
$cshowsPrec :: Int -> ResetAllResourceLogLevels -> ShowS
Prelude.Show, (forall x.
ResetAllResourceLogLevels -> Rep ResetAllResourceLogLevels x)
-> (forall x.
Rep ResetAllResourceLogLevels x -> ResetAllResourceLogLevels)
-> Generic ResetAllResourceLogLevels
forall x.
Rep ResetAllResourceLogLevels x -> ResetAllResourceLogLevels
forall x.
ResetAllResourceLogLevels -> Rep ResetAllResourceLogLevels x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResetAllResourceLogLevels x -> ResetAllResourceLogLevels
$cfrom :: forall x.
ResetAllResourceLogLevels -> Rep ResetAllResourceLogLevels x
Prelude.Generic)
newResetAllResourceLogLevels ::
ResetAllResourceLogLevels
newResetAllResourceLogLevels :: ResetAllResourceLogLevels
newResetAllResourceLogLevels =
ResetAllResourceLogLevels
ResetAllResourceLogLevels'
instance Core.AWSRequest ResetAllResourceLogLevels where
type
AWSResponse ResetAllResourceLogLevels =
ResetAllResourceLogLevelsResponse
request :: ResetAllResourceLogLevels -> Request ResetAllResourceLogLevels
request = Service
-> ResetAllResourceLogLevels -> Request ResetAllResourceLogLevels
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy ResetAllResourceLogLevels
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ResetAllResourceLogLevels)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse ResetAllResourceLogLevels))
-> Logger
-> Service
-> Proxy ResetAllResourceLogLevels
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ResetAllResourceLogLevels)))
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 -> ResetAllResourceLogLevelsResponse
ResetAllResourceLogLevelsResponse'
(Int -> ResetAllResourceLogLevelsResponse)
-> Either String Int
-> Either String ResetAllResourceLogLevelsResponse
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 ResetAllResourceLogLevels
instance Prelude.NFData ResetAllResourceLogLevels
instance Core.ToHeaders ResetAllResourceLogLevels where
toHeaders :: ResetAllResourceLogLevels -> ResponseHeaders
toHeaders = ResponseHeaders -> ResetAllResourceLogLevels -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ResetAllResourceLogLevels where
toPath :: ResetAllResourceLogLevels -> ByteString
toPath = ByteString -> ResetAllResourceLogLevels -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/log-levels"
instance Core.ToQuery ResetAllResourceLogLevels where
toQuery :: ResetAllResourceLogLevels -> QueryString
toQuery = QueryString -> ResetAllResourceLogLevels -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ResetAllResourceLogLevelsResponse = ResetAllResourceLogLevelsResponse'
{
ResetAllResourceLogLevelsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool
(ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool)
-> (ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool)
-> Eq ResetAllResourceLogLevelsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool
$c/= :: ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool
== :: ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool
$c== :: ResetAllResourceLogLevelsResponse
-> ResetAllResourceLogLevelsResponse -> Bool
Prelude.Eq, ReadPrec [ResetAllResourceLogLevelsResponse]
ReadPrec ResetAllResourceLogLevelsResponse
Int -> ReadS ResetAllResourceLogLevelsResponse
ReadS [ResetAllResourceLogLevelsResponse]
(Int -> ReadS ResetAllResourceLogLevelsResponse)
-> ReadS [ResetAllResourceLogLevelsResponse]
-> ReadPrec ResetAllResourceLogLevelsResponse
-> ReadPrec [ResetAllResourceLogLevelsResponse]
-> Read ResetAllResourceLogLevelsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResetAllResourceLogLevelsResponse]
$creadListPrec :: ReadPrec [ResetAllResourceLogLevelsResponse]
readPrec :: ReadPrec ResetAllResourceLogLevelsResponse
$creadPrec :: ReadPrec ResetAllResourceLogLevelsResponse
readList :: ReadS [ResetAllResourceLogLevelsResponse]
$creadList :: ReadS [ResetAllResourceLogLevelsResponse]
readsPrec :: Int -> ReadS ResetAllResourceLogLevelsResponse
$creadsPrec :: Int -> ReadS ResetAllResourceLogLevelsResponse
Prelude.Read, Int -> ResetAllResourceLogLevelsResponse -> ShowS
[ResetAllResourceLogLevelsResponse] -> ShowS
ResetAllResourceLogLevelsResponse -> String
(Int -> ResetAllResourceLogLevelsResponse -> ShowS)
-> (ResetAllResourceLogLevelsResponse -> String)
-> ([ResetAllResourceLogLevelsResponse] -> ShowS)
-> Show ResetAllResourceLogLevelsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResetAllResourceLogLevelsResponse] -> ShowS
$cshowList :: [ResetAllResourceLogLevelsResponse] -> ShowS
show :: ResetAllResourceLogLevelsResponse -> String
$cshow :: ResetAllResourceLogLevelsResponse -> String
showsPrec :: Int -> ResetAllResourceLogLevelsResponse -> ShowS
$cshowsPrec :: Int -> ResetAllResourceLogLevelsResponse -> ShowS
Prelude.Show, (forall x.
ResetAllResourceLogLevelsResponse
-> Rep ResetAllResourceLogLevelsResponse x)
-> (forall x.
Rep ResetAllResourceLogLevelsResponse x
-> ResetAllResourceLogLevelsResponse)
-> Generic ResetAllResourceLogLevelsResponse
forall x.
Rep ResetAllResourceLogLevelsResponse x
-> ResetAllResourceLogLevelsResponse
forall x.
ResetAllResourceLogLevelsResponse
-> Rep ResetAllResourceLogLevelsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResetAllResourceLogLevelsResponse x
-> ResetAllResourceLogLevelsResponse
$cfrom :: forall x.
ResetAllResourceLogLevelsResponse
-> Rep ResetAllResourceLogLevelsResponse x
Prelude.Generic)
newResetAllResourceLogLevelsResponse ::
Prelude.Int ->
ResetAllResourceLogLevelsResponse
newResetAllResourceLogLevelsResponse :: Int -> ResetAllResourceLogLevelsResponse
newResetAllResourceLogLevelsResponse Int
pHttpStatus_ =
ResetAllResourceLogLevelsResponse' :: Int -> ResetAllResourceLogLevelsResponse
ResetAllResourceLogLevelsResponse'
{ $sel:httpStatus:ResetAllResourceLogLevelsResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
resetAllResourceLogLevelsResponse_httpStatus :: Lens.Lens' ResetAllResourceLogLevelsResponse Prelude.Int
resetAllResourceLogLevelsResponse_httpStatus :: (Int -> f Int)
-> ResetAllResourceLogLevelsResponse
-> f ResetAllResourceLogLevelsResponse
resetAllResourceLogLevelsResponse_httpStatus = (ResetAllResourceLogLevelsResponse -> Int)
-> (ResetAllResourceLogLevelsResponse
-> Int -> ResetAllResourceLogLevelsResponse)
-> Lens
ResetAllResourceLogLevelsResponse
ResetAllResourceLogLevelsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetAllResourceLogLevelsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ResetAllResourceLogLevelsResponse' :: ResetAllResourceLogLevelsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ResetAllResourceLogLevelsResponse
s@ResetAllResourceLogLevelsResponse' {} Int
a -> ResetAllResourceLogLevelsResponse
s {$sel:httpStatus:ResetAllResourceLogLevelsResponse' :: Int
httpStatus = Int
a} :: ResetAllResourceLogLevelsResponse)
instance
Prelude.NFData
ResetAllResourceLogLevelsResponse