{-# 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.ResourceExplorer2.DisassociateDefaultView
  ( 
    DisassociateDefaultView (..),
    newDisassociateDefaultView,
    
    DisassociateDefaultViewResponse (..),
    newDisassociateDefaultViewResponse,
  )
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import Amazonka.ResourceExplorer2.Types
import qualified Amazonka.Response as Response
data DisassociateDefaultView = DisassociateDefaultView'
  {
  }
  deriving (DisassociateDefaultView -> DisassociateDefaultView -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateDefaultView -> DisassociateDefaultView -> Bool
$c/= :: DisassociateDefaultView -> DisassociateDefaultView -> Bool
== :: DisassociateDefaultView -> DisassociateDefaultView -> Bool
$c== :: DisassociateDefaultView -> DisassociateDefaultView -> Bool
Prelude.Eq, ReadPrec [DisassociateDefaultView]
ReadPrec DisassociateDefaultView
Int -> ReadS DisassociateDefaultView
ReadS [DisassociateDefaultView]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateDefaultView]
$creadListPrec :: ReadPrec [DisassociateDefaultView]
readPrec :: ReadPrec DisassociateDefaultView
$creadPrec :: ReadPrec DisassociateDefaultView
readList :: ReadS [DisassociateDefaultView]
$creadList :: ReadS [DisassociateDefaultView]
readsPrec :: Int -> ReadS DisassociateDefaultView
$creadsPrec :: Int -> ReadS DisassociateDefaultView
Prelude.Read, Int -> DisassociateDefaultView -> ShowS
[DisassociateDefaultView] -> ShowS
DisassociateDefaultView -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateDefaultView] -> ShowS
$cshowList :: [DisassociateDefaultView] -> ShowS
show :: DisassociateDefaultView -> String
$cshow :: DisassociateDefaultView -> String
showsPrec :: Int -> DisassociateDefaultView -> ShowS
$cshowsPrec :: Int -> DisassociateDefaultView -> ShowS
Prelude.Show, forall x. Rep DisassociateDefaultView x -> DisassociateDefaultView
forall x. DisassociateDefaultView -> Rep DisassociateDefaultView x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DisassociateDefaultView x -> DisassociateDefaultView
$cfrom :: forall x. DisassociateDefaultView -> Rep DisassociateDefaultView x
Prelude.Generic)
newDisassociateDefaultView ::
  DisassociateDefaultView
newDisassociateDefaultView :: DisassociateDefaultView
newDisassociateDefaultView = DisassociateDefaultView
DisassociateDefaultView'
instance Core.AWSRequest DisassociateDefaultView where
  type
    AWSResponse DisassociateDefaultView =
      DisassociateDefaultViewResponse
  request :: (Service -> Service)
-> DisassociateDefaultView -> Request DisassociateDefaultView
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DisassociateDefaultView
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DisassociateDefaultView)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
      DisassociateDefaultViewResponse
DisassociateDefaultViewResponse'
instance Prelude.Hashable DisassociateDefaultView where
  hashWithSalt :: Int -> DisassociateDefaultView -> Int
hashWithSalt Int
_salt DisassociateDefaultView
_ =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()
instance Prelude.NFData DisassociateDefaultView where
  rnf :: DisassociateDefaultView -> ()
rnf DisassociateDefaultView
_ = ()
instance Data.ToHeaders DisassociateDefaultView where
  toHeaders :: DisassociateDefaultView -> [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.ToJSON DisassociateDefaultView where
  toJSON :: DisassociateDefaultView -> Value
toJSON = forall a b. a -> b -> a
Prelude.const (Object -> Value
Data.Object forall a. Monoid a => a
Prelude.mempty)
instance Data.ToPath DisassociateDefaultView where
  toPath :: DisassociateDefaultView -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/DisassociateDefaultView"
instance Data.ToQuery DisassociateDefaultView where
  toQuery :: DisassociateDefaultView -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DisassociateDefaultViewResponse = DisassociateDefaultViewResponse'
  {
  }
  deriving (DisassociateDefaultViewResponse
-> DisassociateDefaultViewResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateDefaultViewResponse
-> DisassociateDefaultViewResponse -> Bool
$c/= :: DisassociateDefaultViewResponse
-> DisassociateDefaultViewResponse -> Bool
== :: DisassociateDefaultViewResponse
-> DisassociateDefaultViewResponse -> Bool
$c== :: DisassociateDefaultViewResponse
-> DisassociateDefaultViewResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateDefaultViewResponse]
ReadPrec DisassociateDefaultViewResponse
Int -> ReadS DisassociateDefaultViewResponse
ReadS [DisassociateDefaultViewResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateDefaultViewResponse]
$creadListPrec :: ReadPrec [DisassociateDefaultViewResponse]
readPrec :: ReadPrec DisassociateDefaultViewResponse
$creadPrec :: ReadPrec DisassociateDefaultViewResponse
readList :: ReadS [DisassociateDefaultViewResponse]
$creadList :: ReadS [DisassociateDefaultViewResponse]
readsPrec :: Int -> ReadS DisassociateDefaultViewResponse
$creadsPrec :: Int -> ReadS DisassociateDefaultViewResponse
Prelude.Read, Int -> DisassociateDefaultViewResponse -> ShowS
[DisassociateDefaultViewResponse] -> ShowS
DisassociateDefaultViewResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateDefaultViewResponse] -> ShowS
$cshowList :: [DisassociateDefaultViewResponse] -> ShowS
show :: DisassociateDefaultViewResponse -> String
$cshow :: DisassociateDefaultViewResponse -> String
showsPrec :: Int -> DisassociateDefaultViewResponse -> ShowS
$cshowsPrec :: Int -> DisassociateDefaultViewResponse -> ShowS
Prelude.Show, forall x.
Rep DisassociateDefaultViewResponse x
-> DisassociateDefaultViewResponse
forall x.
DisassociateDefaultViewResponse
-> Rep DisassociateDefaultViewResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateDefaultViewResponse x
-> DisassociateDefaultViewResponse
$cfrom :: forall x.
DisassociateDefaultViewResponse
-> Rep DisassociateDefaultViewResponse x
Prelude.Generic)
newDisassociateDefaultViewResponse ::
  DisassociateDefaultViewResponse
newDisassociateDefaultViewResponse :: DisassociateDefaultViewResponse
newDisassociateDefaultViewResponse =
  DisassociateDefaultViewResponse
DisassociateDefaultViewResponse'
instance
  Prelude.NFData
    DisassociateDefaultViewResponse
  where
  rnf :: DisassociateDefaultViewResponse -> ()
rnf DisassociateDefaultViewResponse
_ = ()