{-# 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.Chime.DeleteEventsConfiguration
(
DeleteEventsConfiguration (..),
newDeleteEventsConfiguration,
deleteEventsConfiguration_accountId,
deleteEventsConfiguration_botId,
DeleteEventsConfigurationResponse (..),
newDeleteEventsConfigurationResponse,
)
where
import Amazonka.Chime.Types
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 qualified Amazonka.Response as Response
data DeleteEventsConfiguration = DeleteEventsConfiguration'
{
DeleteEventsConfiguration -> Text
accountId :: Prelude.Text,
DeleteEventsConfiguration -> Text
botId :: Prelude.Text
}
deriving (DeleteEventsConfiguration -> DeleteEventsConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteEventsConfiguration -> DeleteEventsConfiguration -> Bool
$c/= :: DeleteEventsConfiguration -> DeleteEventsConfiguration -> Bool
== :: DeleteEventsConfiguration -> DeleteEventsConfiguration -> Bool
$c== :: DeleteEventsConfiguration -> DeleteEventsConfiguration -> Bool
Prelude.Eq, ReadPrec [DeleteEventsConfiguration]
ReadPrec DeleteEventsConfiguration
Int -> ReadS DeleteEventsConfiguration
ReadS [DeleteEventsConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteEventsConfiguration]
$creadListPrec :: ReadPrec [DeleteEventsConfiguration]
readPrec :: ReadPrec DeleteEventsConfiguration
$creadPrec :: ReadPrec DeleteEventsConfiguration
readList :: ReadS [DeleteEventsConfiguration]
$creadList :: ReadS [DeleteEventsConfiguration]
readsPrec :: Int -> ReadS DeleteEventsConfiguration
$creadsPrec :: Int -> ReadS DeleteEventsConfiguration
Prelude.Read, Int -> DeleteEventsConfiguration -> ShowS
[DeleteEventsConfiguration] -> ShowS
DeleteEventsConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteEventsConfiguration] -> ShowS
$cshowList :: [DeleteEventsConfiguration] -> ShowS
show :: DeleteEventsConfiguration -> String
$cshow :: DeleteEventsConfiguration -> String
showsPrec :: Int -> DeleteEventsConfiguration -> ShowS
$cshowsPrec :: Int -> DeleteEventsConfiguration -> ShowS
Prelude.Show, forall x.
Rep DeleteEventsConfiguration x -> DeleteEventsConfiguration
forall x.
DeleteEventsConfiguration -> Rep DeleteEventsConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteEventsConfiguration x -> DeleteEventsConfiguration
$cfrom :: forall x.
DeleteEventsConfiguration -> Rep DeleteEventsConfiguration x
Prelude.Generic)
newDeleteEventsConfiguration ::
Prelude.Text ->
Prelude.Text ->
DeleteEventsConfiguration
newDeleteEventsConfiguration :: Text -> Text -> DeleteEventsConfiguration
newDeleteEventsConfiguration Text
pAccountId_ Text
pBotId_ =
DeleteEventsConfiguration'
{ $sel:accountId:DeleteEventsConfiguration' :: Text
accountId = Text
pAccountId_,
$sel:botId:DeleteEventsConfiguration' :: Text
botId = Text
pBotId_
}
deleteEventsConfiguration_accountId :: Lens.Lens' DeleteEventsConfiguration Prelude.Text
deleteEventsConfiguration_accountId :: Lens' DeleteEventsConfiguration Text
deleteEventsConfiguration_accountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteEventsConfiguration' {Text
accountId :: Text
$sel:accountId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
accountId} -> Text
accountId) (\s :: DeleteEventsConfiguration
s@DeleteEventsConfiguration' {} Text
a -> DeleteEventsConfiguration
s {$sel:accountId:DeleteEventsConfiguration' :: Text
accountId = Text
a} :: DeleteEventsConfiguration)
deleteEventsConfiguration_botId :: Lens.Lens' DeleteEventsConfiguration Prelude.Text
deleteEventsConfiguration_botId :: Lens' DeleteEventsConfiguration Text
deleteEventsConfiguration_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteEventsConfiguration' {Text
botId :: Text
$sel:botId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
botId} -> Text
botId) (\s :: DeleteEventsConfiguration
s@DeleteEventsConfiguration' {} Text
a -> DeleteEventsConfiguration
s {$sel:botId:DeleteEventsConfiguration' :: Text
botId = Text
a} :: DeleteEventsConfiguration)
instance Core.AWSRequest DeleteEventsConfiguration where
type
AWSResponse DeleteEventsConfiguration =
DeleteEventsConfigurationResponse
request :: (Service -> Service)
-> DeleteEventsConfiguration -> Request DeleteEventsConfiguration
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 DeleteEventsConfiguration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteEventsConfiguration)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
DeleteEventsConfigurationResponse
DeleteEventsConfigurationResponse'
instance Prelude.Hashable DeleteEventsConfiguration where
hashWithSalt :: Int -> DeleteEventsConfiguration -> Int
hashWithSalt Int
_salt DeleteEventsConfiguration' {Text
botId :: Text
accountId :: Text
$sel:botId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
$sel:accountId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
accountId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botId
instance Prelude.NFData DeleteEventsConfiguration where
rnf :: DeleteEventsConfiguration -> ()
rnf DeleteEventsConfiguration' {Text
botId :: Text
accountId :: Text
$sel:botId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
$sel:accountId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
accountId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
botId
instance Data.ToHeaders DeleteEventsConfiguration where
toHeaders :: DeleteEventsConfiguration -> [Header]
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DeleteEventsConfiguration where
toPath :: DeleteEventsConfiguration -> ByteString
toPath DeleteEventsConfiguration' {Text
botId :: Text
accountId :: Text
$sel:botId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
$sel:accountId:DeleteEventsConfiguration' :: DeleteEventsConfiguration -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/accounts/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
accountId,
ByteString
"/bots/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
botId,
ByteString
"/events-configuration"
]
instance Data.ToQuery DeleteEventsConfiguration where
toQuery :: DeleteEventsConfiguration -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteEventsConfigurationResponse = DeleteEventsConfigurationResponse'
{
}
deriving (DeleteEventsConfigurationResponse
-> DeleteEventsConfigurationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteEventsConfigurationResponse
-> DeleteEventsConfigurationResponse -> Bool
$c/= :: DeleteEventsConfigurationResponse
-> DeleteEventsConfigurationResponse -> Bool
== :: DeleteEventsConfigurationResponse
-> DeleteEventsConfigurationResponse -> Bool
$c== :: DeleteEventsConfigurationResponse
-> DeleteEventsConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DeleteEventsConfigurationResponse]
ReadPrec DeleteEventsConfigurationResponse
Int -> ReadS DeleteEventsConfigurationResponse
ReadS [DeleteEventsConfigurationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteEventsConfigurationResponse]
$creadListPrec :: ReadPrec [DeleteEventsConfigurationResponse]
readPrec :: ReadPrec DeleteEventsConfigurationResponse
$creadPrec :: ReadPrec DeleteEventsConfigurationResponse
readList :: ReadS [DeleteEventsConfigurationResponse]
$creadList :: ReadS [DeleteEventsConfigurationResponse]
readsPrec :: Int -> ReadS DeleteEventsConfigurationResponse
$creadsPrec :: Int -> ReadS DeleteEventsConfigurationResponse
Prelude.Read, Int -> DeleteEventsConfigurationResponse -> ShowS
[DeleteEventsConfigurationResponse] -> ShowS
DeleteEventsConfigurationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteEventsConfigurationResponse] -> ShowS
$cshowList :: [DeleteEventsConfigurationResponse] -> ShowS
show :: DeleteEventsConfigurationResponse -> String
$cshow :: DeleteEventsConfigurationResponse -> String
showsPrec :: Int -> DeleteEventsConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DeleteEventsConfigurationResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteEventsConfigurationResponse x
-> DeleteEventsConfigurationResponse
forall x.
DeleteEventsConfigurationResponse
-> Rep DeleteEventsConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteEventsConfigurationResponse x
-> DeleteEventsConfigurationResponse
$cfrom :: forall x.
DeleteEventsConfigurationResponse
-> Rep DeleteEventsConfigurationResponse x
Prelude.Generic)
newDeleteEventsConfigurationResponse ::
DeleteEventsConfigurationResponse
newDeleteEventsConfigurationResponse :: DeleteEventsConfigurationResponse
newDeleteEventsConfigurationResponse =
DeleteEventsConfigurationResponse
DeleteEventsConfigurationResponse'
instance
Prelude.NFData
DeleteEventsConfigurationResponse
where
rnf :: DeleteEventsConfigurationResponse -> ()
rnf DeleteEventsConfigurationResponse
_ = ()