{-# 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.DeleteAttendee
(
DeleteAttendee (..),
newDeleteAttendee,
deleteAttendee_meetingId,
deleteAttendee_attendeeId,
DeleteAttendeeResponse (..),
newDeleteAttendeeResponse,
)
where
import Amazonka.Chime.Types
import qualified Amazonka.Core as Core
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 DeleteAttendee = DeleteAttendee'
{
DeleteAttendee -> Text
meetingId :: Prelude.Text,
DeleteAttendee -> Text
attendeeId :: Prelude.Text
}
deriving (DeleteAttendee -> DeleteAttendee -> Bool
(DeleteAttendee -> DeleteAttendee -> Bool)
-> (DeleteAttendee -> DeleteAttendee -> Bool) -> Eq DeleteAttendee
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteAttendee -> DeleteAttendee -> Bool
$c/= :: DeleteAttendee -> DeleteAttendee -> Bool
== :: DeleteAttendee -> DeleteAttendee -> Bool
$c== :: DeleteAttendee -> DeleteAttendee -> Bool
Prelude.Eq, ReadPrec [DeleteAttendee]
ReadPrec DeleteAttendee
Int -> ReadS DeleteAttendee
ReadS [DeleteAttendee]
(Int -> ReadS DeleteAttendee)
-> ReadS [DeleteAttendee]
-> ReadPrec DeleteAttendee
-> ReadPrec [DeleteAttendee]
-> Read DeleteAttendee
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteAttendee]
$creadListPrec :: ReadPrec [DeleteAttendee]
readPrec :: ReadPrec DeleteAttendee
$creadPrec :: ReadPrec DeleteAttendee
readList :: ReadS [DeleteAttendee]
$creadList :: ReadS [DeleteAttendee]
readsPrec :: Int -> ReadS DeleteAttendee
$creadsPrec :: Int -> ReadS DeleteAttendee
Prelude.Read, Int -> DeleteAttendee -> ShowS
[DeleteAttendee] -> ShowS
DeleteAttendee -> String
(Int -> DeleteAttendee -> ShowS)
-> (DeleteAttendee -> String)
-> ([DeleteAttendee] -> ShowS)
-> Show DeleteAttendee
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteAttendee] -> ShowS
$cshowList :: [DeleteAttendee] -> ShowS
show :: DeleteAttendee -> String
$cshow :: DeleteAttendee -> String
showsPrec :: Int -> DeleteAttendee -> ShowS
$cshowsPrec :: Int -> DeleteAttendee -> ShowS
Prelude.Show, (forall x. DeleteAttendee -> Rep DeleteAttendee x)
-> (forall x. Rep DeleteAttendee x -> DeleteAttendee)
-> Generic DeleteAttendee
forall x. Rep DeleteAttendee x -> DeleteAttendee
forall x. DeleteAttendee -> Rep DeleteAttendee x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteAttendee x -> DeleteAttendee
$cfrom :: forall x. DeleteAttendee -> Rep DeleteAttendee x
Prelude.Generic)
newDeleteAttendee ::
Prelude.Text ->
Prelude.Text ->
DeleteAttendee
newDeleteAttendee :: Text -> Text -> DeleteAttendee
newDeleteAttendee Text
pMeetingId_ Text
pAttendeeId_ =
DeleteAttendee' :: Text -> Text -> DeleteAttendee
DeleteAttendee'
{ $sel:meetingId:DeleteAttendee' :: Text
meetingId = Text
pMeetingId_,
$sel:attendeeId:DeleteAttendee' :: Text
attendeeId = Text
pAttendeeId_
}
deleteAttendee_meetingId :: Lens.Lens' DeleteAttendee Prelude.Text
deleteAttendee_meetingId :: (Text -> f Text) -> DeleteAttendee -> f DeleteAttendee
deleteAttendee_meetingId = (DeleteAttendee -> Text)
-> (DeleteAttendee -> Text -> DeleteAttendee)
-> Lens DeleteAttendee DeleteAttendee Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAttendee' {Text
meetingId :: Text
$sel:meetingId:DeleteAttendee' :: DeleteAttendee -> Text
meetingId} -> Text
meetingId) (\s :: DeleteAttendee
s@DeleteAttendee' {} Text
a -> DeleteAttendee
s {$sel:meetingId:DeleteAttendee' :: Text
meetingId = Text
a} :: DeleteAttendee)
deleteAttendee_attendeeId :: Lens.Lens' DeleteAttendee Prelude.Text
deleteAttendee_attendeeId :: (Text -> f Text) -> DeleteAttendee -> f DeleteAttendee
deleteAttendee_attendeeId = (DeleteAttendee -> Text)
-> (DeleteAttendee -> Text -> DeleteAttendee)
-> Lens DeleteAttendee DeleteAttendee Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAttendee' {Text
attendeeId :: Text
$sel:attendeeId:DeleteAttendee' :: DeleteAttendee -> Text
attendeeId} -> Text
attendeeId) (\s :: DeleteAttendee
s@DeleteAttendee' {} Text
a -> DeleteAttendee
s {$sel:attendeeId:DeleteAttendee' :: Text
attendeeId = Text
a} :: DeleteAttendee)
instance Core.AWSRequest DeleteAttendee where
type
AWSResponse DeleteAttendee =
DeleteAttendeeResponse
request :: DeleteAttendee -> Request DeleteAttendee
request = Service -> DeleteAttendee -> Request DeleteAttendee
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteAttendee
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteAttendee)))
response =
AWSResponse DeleteAttendee
-> Logger
-> Service
-> Proxy DeleteAttendee
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteAttendee)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse DeleteAttendee
DeleteAttendeeResponse
DeleteAttendeeResponse'
instance Prelude.Hashable DeleteAttendee
instance Prelude.NFData DeleteAttendee
instance Core.ToHeaders DeleteAttendee where
toHeaders :: DeleteAttendee -> [Header]
toHeaders = [Header] -> DeleteAttendee -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DeleteAttendee where
toPath :: DeleteAttendee -> ByteString
toPath DeleteAttendee' {Text
attendeeId :: Text
meetingId :: Text
$sel:attendeeId:DeleteAttendee' :: DeleteAttendee -> Text
$sel:meetingId:DeleteAttendee' :: DeleteAttendee -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/meetings/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
meetingId,
ByteString
"/attendees/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
attendeeId
]
instance Core.ToQuery DeleteAttendee where
toQuery :: DeleteAttendee -> QueryString
toQuery = QueryString -> DeleteAttendee -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteAttendeeResponse = DeleteAttendeeResponse'
{
}
deriving (DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool
(DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool)
-> (DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool)
-> Eq DeleteAttendeeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool
$c/= :: DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool
== :: DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool
$c== :: DeleteAttendeeResponse -> DeleteAttendeeResponse -> Bool
Prelude.Eq, ReadPrec [DeleteAttendeeResponse]
ReadPrec DeleteAttendeeResponse
Int -> ReadS DeleteAttendeeResponse
ReadS [DeleteAttendeeResponse]
(Int -> ReadS DeleteAttendeeResponse)
-> ReadS [DeleteAttendeeResponse]
-> ReadPrec DeleteAttendeeResponse
-> ReadPrec [DeleteAttendeeResponse]
-> Read DeleteAttendeeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteAttendeeResponse]
$creadListPrec :: ReadPrec [DeleteAttendeeResponse]
readPrec :: ReadPrec DeleteAttendeeResponse
$creadPrec :: ReadPrec DeleteAttendeeResponse
readList :: ReadS [DeleteAttendeeResponse]
$creadList :: ReadS [DeleteAttendeeResponse]
readsPrec :: Int -> ReadS DeleteAttendeeResponse
$creadsPrec :: Int -> ReadS DeleteAttendeeResponse
Prelude.Read, Int -> DeleteAttendeeResponse -> ShowS
[DeleteAttendeeResponse] -> ShowS
DeleteAttendeeResponse -> String
(Int -> DeleteAttendeeResponse -> ShowS)
-> (DeleteAttendeeResponse -> String)
-> ([DeleteAttendeeResponse] -> ShowS)
-> Show DeleteAttendeeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteAttendeeResponse] -> ShowS
$cshowList :: [DeleteAttendeeResponse] -> ShowS
show :: DeleteAttendeeResponse -> String
$cshow :: DeleteAttendeeResponse -> String
showsPrec :: Int -> DeleteAttendeeResponse -> ShowS
$cshowsPrec :: Int -> DeleteAttendeeResponse -> ShowS
Prelude.Show, (forall x. DeleteAttendeeResponse -> Rep DeleteAttendeeResponse x)
-> (forall x.
Rep DeleteAttendeeResponse x -> DeleteAttendeeResponse)
-> Generic DeleteAttendeeResponse
forall x. Rep DeleteAttendeeResponse x -> DeleteAttendeeResponse
forall x. DeleteAttendeeResponse -> Rep DeleteAttendeeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteAttendeeResponse x -> DeleteAttendeeResponse
$cfrom :: forall x. DeleteAttendeeResponse -> Rep DeleteAttendeeResponse x
Prelude.Generic)
newDeleteAttendeeResponse ::
DeleteAttendeeResponse
newDeleteAttendeeResponse :: DeleteAttendeeResponse
newDeleteAttendeeResponse = DeleteAttendeeResponse
DeleteAttendeeResponse'
instance Prelude.NFData DeleteAttendeeResponse