{-# 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.WorkSpacesWeb.DeleteUserAccessLoggingSettings
(
DeleteUserAccessLoggingSettings (..),
newDeleteUserAccessLoggingSettings,
deleteUserAccessLoggingSettings_userAccessLoggingSettingsArn,
DeleteUserAccessLoggingSettingsResponse (..),
newDeleteUserAccessLoggingSettingsResponse,
deleteUserAccessLoggingSettingsResponse_httpStatus,
)
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 qualified Amazonka.Response as Response
import Amazonka.WorkSpacesWeb.Types
data DeleteUserAccessLoggingSettings = DeleteUserAccessLoggingSettings'
{
DeleteUserAccessLoggingSettings -> Text
userAccessLoggingSettingsArn :: Prelude.Text
}
deriving (DeleteUserAccessLoggingSettings
-> DeleteUserAccessLoggingSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteUserAccessLoggingSettings
-> DeleteUserAccessLoggingSettings -> Bool
$c/= :: DeleteUserAccessLoggingSettings
-> DeleteUserAccessLoggingSettings -> Bool
== :: DeleteUserAccessLoggingSettings
-> DeleteUserAccessLoggingSettings -> Bool
$c== :: DeleteUserAccessLoggingSettings
-> DeleteUserAccessLoggingSettings -> Bool
Prelude.Eq, ReadPrec [DeleteUserAccessLoggingSettings]
ReadPrec DeleteUserAccessLoggingSettings
Int -> ReadS DeleteUserAccessLoggingSettings
ReadS [DeleteUserAccessLoggingSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteUserAccessLoggingSettings]
$creadListPrec :: ReadPrec [DeleteUserAccessLoggingSettings]
readPrec :: ReadPrec DeleteUserAccessLoggingSettings
$creadPrec :: ReadPrec DeleteUserAccessLoggingSettings
readList :: ReadS [DeleteUserAccessLoggingSettings]
$creadList :: ReadS [DeleteUserAccessLoggingSettings]
readsPrec :: Int -> ReadS DeleteUserAccessLoggingSettings
$creadsPrec :: Int -> ReadS DeleteUserAccessLoggingSettings
Prelude.Read, Int -> DeleteUserAccessLoggingSettings -> ShowS
[DeleteUserAccessLoggingSettings] -> ShowS
DeleteUserAccessLoggingSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteUserAccessLoggingSettings] -> ShowS
$cshowList :: [DeleteUserAccessLoggingSettings] -> ShowS
show :: DeleteUserAccessLoggingSettings -> String
$cshow :: DeleteUserAccessLoggingSettings -> String
showsPrec :: Int -> DeleteUserAccessLoggingSettings -> ShowS
$cshowsPrec :: Int -> DeleteUserAccessLoggingSettings -> ShowS
Prelude.Show, forall x.
Rep DeleteUserAccessLoggingSettings x
-> DeleteUserAccessLoggingSettings
forall x.
DeleteUserAccessLoggingSettings
-> Rep DeleteUserAccessLoggingSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteUserAccessLoggingSettings x
-> DeleteUserAccessLoggingSettings
$cfrom :: forall x.
DeleteUserAccessLoggingSettings
-> Rep DeleteUserAccessLoggingSettings x
Prelude.Generic)
newDeleteUserAccessLoggingSettings ::
Prelude.Text ->
DeleteUserAccessLoggingSettings
newDeleteUserAccessLoggingSettings :: Text -> DeleteUserAccessLoggingSettings
newDeleteUserAccessLoggingSettings
Text
pUserAccessLoggingSettingsArn_ =
DeleteUserAccessLoggingSettings'
{ $sel:userAccessLoggingSettingsArn:DeleteUserAccessLoggingSettings' :: Text
userAccessLoggingSettingsArn =
Text
pUserAccessLoggingSettingsArn_
}
deleteUserAccessLoggingSettings_userAccessLoggingSettingsArn :: Lens.Lens' DeleteUserAccessLoggingSettings Prelude.Text
deleteUserAccessLoggingSettings_userAccessLoggingSettingsArn :: Lens' DeleteUserAccessLoggingSettings Text
deleteUserAccessLoggingSettings_userAccessLoggingSettingsArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteUserAccessLoggingSettings' {Text
userAccessLoggingSettingsArn :: Text
$sel:userAccessLoggingSettingsArn:DeleteUserAccessLoggingSettings' :: DeleteUserAccessLoggingSettings -> Text
userAccessLoggingSettingsArn} -> Text
userAccessLoggingSettingsArn) (\s :: DeleteUserAccessLoggingSettings
s@DeleteUserAccessLoggingSettings' {} Text
a -> DeleteUserAccessLoggingSettings
s {$sel:userAccessLoggingSettingsArn:DeleteUserAccessLoggingSettings' :: Text
userAccessLoggingSettingsArn = Text
a} :: DeleteUserAccessLoggingSettings)
instance
Core.AWSRequest
DeleteUserAccessLoggingSettings
where
type
AWSResponse DeleteUserAccessLoggingSettings =
DeleteUserAccessLoggingSettingsResponse
request :: (Service -> Service)
-> DeleteUserAccessLoggingSettings
-> Request DeleteUserAccessLoggingSettings
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 DeleteUserAccessLoggingSettings
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteUserAccessLoggingSettings)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> DeleteUserAccessLoggingSettingsResponse
DeleteUserAccessLoggingSettingsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DeleteUserAccessLoggingSettings
where
hashWithSalt :: Int -> DeleteUserAccessLoggingSettings -> Int
hashWithSalt
Int
_salt
DeleteUserAccessLoggingSettings' {Text
userAccessLoggingSettingsArn :: Text
$sel:userAccessLoggingSettingsArn:DeleteUserAccessLoggingSettings' :: DeleteUserAccessLoggingSettings -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
userAccessLoggingSettingsArn
instance
Prelude.NFData
DeleteUserAccessLoggingSettings
where
rnf :: DeleteUserAccessLoggingSettings -> ()
rnf DeleteUserAccessLoggingSettings' {Text
userAccessLoggingSettingsArn :: Text
$sel:userAccessLoggingSettingsArn:DeleteUserAccessLoggingSettings' :: DeleteUserAccessLoggingSettings -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
userAccessLoggingSettingsArn
instance
Data.ToHeaders
DeleteUserAccessLoggingSettings
where
toHeaders :: DeleteUserAccessLoggingSettings -> ResponseHeaders
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 -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath DeleteUserAccessLoggingSettings where
toPath :: DeleteUserAccessLoggingSettings -> ByteString
toPath DeleteUserAccessLoggingSettings' {Text
userAccessLoggingSettingsArn :: Text
$sel:userAccessLoggingSettingsArn:DeleteUserAccessLoggingSettings' :: DeleteUserAccessLoggingSettings -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/userAccessLoggingSettings/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
userAccessLoggingSettingsArn
]
instance Data.ToQuery DeleteUserAccessLoggingSettings where
toQuery :: DeleteUserAccessLoggingSettings -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteUserAccessLoggingSettingsResponse = DeleteUserAccessLoggingSettingsResponse'
{
DeleteUserAccessLoggingSettingsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteUserAccessLoggingSettingsResponse
-> DeleteUserAccessLoggingSettingsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteUserAccessLoggingSettingsResponse
-> DeleteUserAccessLoggingSettingsResponse -> Bool
$c/= :: DeleteUserAccessLoggingSettingsResponse
-> DeleteUserAccessLoggingSettingsResponse -> Bool
== :: DeleteUserAccessLoggingSettingsResponse
-> DeleteUserAccessLoggingSettingsResponse -> Bool
$c== :: DeleteUserAccessLoggingSettingsResponse
-> DeleteUserAccessLoggingSettingsResponse -> Bool
Prelude.Eq, ReadPrec [DeleteUserAccessLoggingSettingsResponse]
ReadPrec DeleteUserAccessLoggingSettingsResponse
Int -> ReadS DeleteUserAccessLoggingSettingsResponse
ReadS [DeleteUserAccessLoggingSettingsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteUserAccessLoggingSettingsResponse]
$creadListPrec :: ReadPrec [DeleteUserAccessLoggingSettingsResponse]
readPrec :: ReadPrec DeleteUserAccessLoggingSettingsResponse
$creadPrec :: ReadPrec DeleteUserAccessLoggingSettingsResponse
readList :: ReadS [DeleteUserAccessLoggingSettingsResponse]
$creadList :: ReadS [DeleteUserAccessLoggingSettingsResponse]
readsPrec :: Int -> ReadS DeleteUserAccessLoggingSettingsResponse
$creadsPrec :: Int -> ReadS DeleteUserAccessLoggingSettingsResponse
Prelude.Read, Int -> DeleteUserAccessLoggingSettingsResponse -> ShowS
[DeleteUserAccessLoggingSettingsResponse] -> ShowS
DeleteUserAccessLoggingSettingsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteUserAccessLoggingSettingsResponse] -> ShowS
$cshowList :: [DeleteUserAccessLoggingSettingsResponse] -> ShowS
show :: DeleteUserAccessLoggingSettingsResponse -> String
$cshow :: DeleteUserAccessLoggingSettingsResponse -> String
showsPrec :: Int -> DeleteUserAccessLoggingSettingsResponse -> ShowS
$cshowsPrec :: Int -> DeleteUserAccessLoggingSettingsResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteUserAccessLoggingSettingsResponse x
-> DeleteUserAccessLoggingSettingsResponse
forall x.
DeleteUserAccessLoggingSettingsResponse
-> Rep DeleteUserAccessLoggingSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteUserAccessLoggingSettingsResponse x
-> DeleteUserAccessLoggingSettingsResponse
$cfrom :: forall x.
DeleteUserAccessLoggingSettingsResponse
-> Rep DeleteUserAccessLoggingSettingsResponse x
Prelude.Generic)
newDeleteUserAccessLoggingSettingsResponse ::
Prelude.Int ->
DeleteUserAccessLoggingSettingsResponse
newDeleteUserAccessLoggingSettingsResponse :: Int -> DeleteUserAccessLoggingSettingsResponse
newDeleteUserAccessLoggingSettingsResponse
Int
pHttpStatus_ =
DeleteUserAccessLoggingSettingsResponse'
{ $sel:httpStatus:DeleteUserAccessLoggingSettingsResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteUserAccessLoggingSettingsResponse_httpStatus :: Lens.Lens' DeleteUserAccessLoggingSettingsResponse Prelude.Int
deleteUserAccessLoggingSettingsResponse_httpStatus :: Lens' DeleteUserAccessLoggingSettingsResponse Int
deleteUserAccessLoggingSettingsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteUserAccessLoggingSettingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteUserAccessLoggingSettingsResponse' :: DeleteUserAccessLoggingSettingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteUserAccessLoggingSettingsResponse
s@DeleteUserAccessLoggingSettingsResponse' {} Int
a -> DeleteUserAccessLoggingSettingsResponse
s {$sel:httpStatus:DeleteUserAccessLoggingSettingsResponse' :: Int
httpStatus = Int
a} :: DeleteUserAccessLoggingSettingsResponse)
instance
Prelude.NFData
DeleteUserAccessLoggingSettingsResponse
where
rnf :: DeleteUserAccessLoggingSettingsResponse -> ()
rnf DeleteUserAccessLoggingSettingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteUserAccessLoggingSettingsResponse' :: DeleteUserAccessLoggingSettingsResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus