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