{-# 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.ChimeSDKIdentity.DeleteAppInstanceUser
(
DeleteAppInstanceUser (..),
newDeleteAppInstanceUser,
deleteAppInstanceUser_appInstanceUserArn,
DeleteAppInstanceUserResponse (..),
newDeleteAppInstanceUserResponse,
)
where
import Amazonka.ChimeSDKIdentity.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 DeleteAppInstanceUser = DeleteAppInstanceUser'
{
DeleteAppInstanceUser -> Text
appInstanceUserArn :: Prelude.Text
}
deriving (DeleteAppInstanceUser -> DeleteAppInstanceUser -> Bool
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]
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
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. 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'
{ $sel:appInstanceUserArn:DeleteAppInstanceUser' :: Text
appInstanceUserArn =
Text
pAppInstanceUserArn_
}
deleteAppInstanceUser_appInstanceUserArn :: Lens.Lens' DeleteAppInstanceUser Prelude.Text
deleteAppInstanceUser_appInstanceUserArn :: Lens' DeleteAppInstanceUser Text
deleteAppInstanceUser_appInstanceUserArn = 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 :: (Service -> Service)
-> DeleteAppInstanceUser -> Request DeleteAppInstanceUser
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 DeleteAppInstanceUser
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteAppInstanceUser)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull DeleteAppInstanceUserResponse
DeleteAppInstanceUserResponse'
instance Prelude.Hashable DeleteAppInstanceUser where
hashWithSalt :: Int -> DeleteAppInstanceUser -> Int
hashWithSalt Int
_salt DeleteAppInstanceUser' {Text
appInstanceUserArn :: Text
$sel:appInstanceUserArn:DeleteAppInstanceUser' :: DeleteAppInstanceUser -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
appInstanceUserArn
instance Prelude.NFData DeleteAppInstanceUser where
rnf :: DeleteAppInstanceUser -> ()
rnf DeleteAppInstanceUser' {Text
appInstanceUserArn :: Text
$sel:appInstanceUserArn:DeleteAppInstanceUser' :: DeleteAppInstanceUser -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
appInstanceUserArn
instance Data.ToHeaders DeleteAppInstanceUser where
toHeaders :: DeleteAppInstanceUser -> [Header]
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DeleteAppInstanceUser where
toPath :: DeleteAppInstanceUser -> ByteString
toPath DeleteAppInstanceUser' {Text
appInstanceUserArn :: Text
$sel:appInstanceUserArn:DeleteAppInstanceUser' :: DeleteAppInstanceUser -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/app-instance-users/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
appInstanceUserArn
]
instance Data.ToQuery DeleteAppInstanceUser where
toQuery :: DeleteAppInstanceUser -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteAppInstanceUserResponse = DeleteAppInstanceUserResponse'
{
}
deriving (DeleteAppInstanceUserResponse
-> DeleteAppInstanceUserResponse -> Bool
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]
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
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.
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 where
rnf :: DeleteAppInstanceUserResponse -> ()
rnf DeleteAppInstanceUserResponse
_ = ()