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