{-# 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.SES.DeleteConfigurationSetTrackingOptions
(
DeleteConfigurationSetTrackingOptions (..),
newDeleteConfigurationSetTrackingOptions,
deleteConfigurationSetTrackingOptions_configurationSetName,
DeleteConfigurationSetTrackingOptionsResponse (..),
newDeleteConfigurationSetTrackingOptionsResponse,
deleteConfigurationSetTrackingOptionsResponse_httpStatus,
)
where
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
import Amazonka.SES.Types
data DeleteConfigurationSetTrackingOptions = DeleteConfigurationSetTrackingOptions'
{
DeleteConfigurationSetTrackingOptions -> Text
configurationSetName :: Prelude.Text
}
deriving (DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool
(DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool)
-> (DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool)
-> Eq DeleteConfigurationSetTrackingOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool
$c/= :: DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool
== :: DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool
$c== :: DeleteConfigurationSetTrackingOptions
-> DeleteConfigurationSetTrackingOptions -> Bool
Prelude.Eq, ReadPrec [DeleteConfigurationSetTrackingOptions]
ReadPrec DeleteConfigurationSetTrackingOptions
Int -> ReadS DeleteConfigurationSetTrackingOptions
ReadS [DeleteConfigurationSetTrackingOptions]
(Int -> ReadS DeleteConfigurationSetTrackingOptions)
-> ReadS [DeleteConfigurationSetTrackingOptions]
-> ReadPrec DeleteConfigurationSetTrackingOptions
-> ReadPrec [DeleteConfigurationSetTrackingOptions]
-> Read DeleteConfigurationSetTrackingOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteConfigurationSetTrackingOptions]
$creadListPrec :: ReadPrec [DeleteConfigurationSetTrackingOptions]
readPrec :: ReadPrec DeleteConfigurationSetTrackingOptions
$creadPrec :: ReadPrec DeleteConfigurationSetTrackingOptions
readList :: ReadS [DeleteConfigurationSetTrackingOptions]
$creadList :: ReadS [DeleteConfigurationSetTrackingOptions]
readsPrec :: Int -> ReadS DeleteConfigurationSetTrackingOptions
$creadsPrec :: Int -> ReadS DeleteConfigurationSetTrackingOptions
Prelude.Read, Int -> DeleteConfigurationSetTrackingOptions -> ShowS
[DeleteConfigurationSetTrackingOptions] -> ShowS
DeleteConfigurationSetTrackingOptions -> String
(Int -> DeleteConfigurationSetTrackingOptions -> ShowS)
-> (DeleteConfigurationSetTrackingOptions -> String)
-> ([DeleteConfigurationSetTrackingOptions] -> ShowS)
-> Show DeleteConfigurationSetTrackingOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteConfigurationSetTrackingOptions] -> ShowS
$cshowList :: [DeleteConfigurationSetTrackingOptions] -> ShowS
show :: DeleteConfigurationSetTrackingOptions -> String
$cshow :: DeleteConfigurationSetTrackingOptions -> String
showsPrec :: Int -> DeleteConfigurationSetTrackingOptions -> ShowS
$cshowsPrec :: Int -> DeleteConfigurationSetTrackingOptions -> ShowS
Prelude.Show, (forall x.
DeleteConfigurationSetTrackingOptions
-> Rep DeleteConfigurationSetTrackingOptions x)
-> (forall x.
Rep DeleteConfigurationSetTrackingOptions x
-> DeleteConfigurationSetTrackingOptions)
-> Generic DeleteConfigurationSetTrackingOptions
forall x.
Rep DeleteConfigurationSetTrackingOptions x
-> DeleteConfigurationSetTrackingOptions
forall x.
DeleteConfigurationSetTrackingOptions
-> Rep DeleteConfigurationSetTrackingOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteConfigurationSetTrackingOptions x
-> DeleteConfigurationSetTrackingOptions
$cfrom :: forall x.
DeleteConfigurationSetTrackingOptions
-> Rep DeleteConfigurationSetTrackingOptions x
Prelude.Generic)
newDeleteConfigurationSetTrackingOptions ::
Prelude.Text ->
DeleteConfigurationSetTrackingOptions
newDeleteConfigurationSetTrackingOptions :: Text -> DeleteConfigurationSetTrackingOptions
newDeleteConfigurationSetTrackingOptions
Text
pConfigurationSetName_ =
DeleteConfigurationSetTrackingOptions' :: Text -> DeleteConfigurationSetTrackingOptions
DeleteConfigurationSetTrackingOptions'
{ $sel:configurationSetName:DeleteConfigurationSetTrackingOptions' :: Text
configurationSetName =
Text
pConfigurationSetName_
}
deleteConfigurationSetTrackingOptions_configurationSetName :: Lens.Lens' DeleteConfigurationSetTrackingOptions Prelude.Text
deleteConfigurationSetTrackingOptions_configurationSetName :: (Text -> f Text)
-> DeleteConfigurationSetTrackingOptions
-> f DeleteConfigurationSetTrackingOptions
deleteConfigurationSetTrackingOptions_configurationSetName = (DeleteConfigurationSetTrackingOptions -> Text)
-> (DeleteConfigurationSetTrackingOptions
-> Text -> DeleteConfigurationSetTrackingOptions)
-> Lens
DeleteConfigurationSetTrackingOptions
DeleteConfigurationSetTrackingOptions
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteConfigurationSetTrackingOptions' {Text
configurationSetName :: Text
$sel:configurationSetName:DeleteConfigurationSetTrackingOptions' :: DeleteConfigurationSetTrackingOptions -> Text
configurationSetName} -> Text
configurationSetName) (\s :: DeleteConfigurationSetTrackingOptions
s@DeleteConfigurationSetTrackingOptions' {} Text
a -> DeleteConfigurationSetTrackingOptions
s {$sel:configurationSetName:DeleteConfigurationSetTrackingOptions' :: Text
configurationSetName = Text
a} :: DeleteConfigurationSetTrackingOptions)
instance
Core.AWSRequest
DeleteConfigurationSetTrackingOptions
where
type
AWSResponse
DeleteConfigurationSetTrackingOptions =
DeleteConfigurationSetTrackingOptionsResponse
request :: DeleteConfigurationSetTrackingOptions
-> Request DeleteConfigurationSetTrackingOptions
request = Service
-> DeleteConfigurationSetTrackingOptions
-> Request DeleteConfigurationSetTrackingOptions
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteConfigurationSetTrackingOptions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteConfigurationSetTrackingOptions)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse DeleteConfigurationSetTrackingOptions))
-> Logger
-> Service
-> Proxy DeleteConfigurationSetTrackingOptions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteConfigurationSetTrackingOptions)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DeleteConfigurationSetTrackingOptionsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Int -> DeleteConfigurationSetTrackingOptionsResponse
DeleteConfigurationSetTrackingOptionsResponse'
(Int -> DeleteConfigurationSetTrackingOptionsResponse)
-> Either String Int
-> Either String DeleteConfigurationSetTrackingOptionsResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DeleteConfigurationSetTrackingOptions
instance
Prelude.NFData
DeleteConfigurationSetTrackingOptions
instance
Core.ToHeaders
DeleteConfigurationSetTrackingOptions
where
toHeaders :: DeleteConfigurationSetTrackingOptions -> ResponseHeaders
toHeaders = ResponseHeaders
-> DeleteConfigurationSetTrackingOptions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
DeleteConfigurationSetTrackingOptions
where
toPath :: DeleteConfigurationSetTrackingOptions -> ByteString
toPath = ByteString -> DeleteConfigurationSetTrackingOptions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DeleteConfigurationSetTrackingOptions
where
toQuery :: DeleteConfigurationSetTrackingOptions -> QueryString
toQuery DeleteConfigurationSetTrackingOptions' {Text
configurationSetName :: Text
$sel:configurationSetName:DeleteConfigurationSetTrackingOptions' :: DeleteConfigurationSetTrackingOptions -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DeleteConfigurationSetTrackingOptions" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"ConfigurationSetName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
configurationSetName
]
data DeleteConfigurationSetTrackingOptionsResponse = DeleteConfigurationSetTrackingOptionsResponse'
{
DeleteConfigurationSetTrackingOptionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool
(DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool)
-> (DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool)
-> Eq DeleteConfigurationSetTrackingOptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool
$c/= :: DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool
== :: DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool
$c== :: DeleteConfigurationSetTrackingOptionsResponse
-> DeleteConfigurationSetTrackingOptionsResponse -> Bool
Prelude.Eq, ReadPrec [DeleteConfigurationSetTrackingOptionsResponse]
ReadPrec DeleteConfigurationSetTrackingOptionsResponse
Int -> ReadS DeleteConfigurationSetTrackingOptionsResponse
ReadS [DeleteConfigurationSetTrackingOptionsResponse]
(Int -> ReadS DeleteConfigurationSetTrackingOptionsResponse)
-> ReadS [DeleteConfigurationSetTrackingOptionsResponse]
-> ReadPrec DeleteConfigurationSetTrackingOptionsResponse
-> ReadPrec [DeleteConfigurationSetTrackingOptionsResponse]
-> Read DeleteConfigurationSetTrackingOptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteConfigurationSetTrackingOptionsResponse]
$creadListPrec :: ReadPrec [DeleteConfigurationSetTrackingOptionsResponse]
readPrec :: ReadPrec DeleteConfigurationSetTrackingOptionsResponse
$creadPrec :: ReadPrec DeleteConfigurationSetTrackingOptionsResponse
readList :: ReadS [DeleteConfigurationSetTrackingOptionsResponse]
$creadList :: ReadS [DeleteConfigurationSetTrackingOptionsResponse]
readsPrec :: Int -> ReadS DeleteConfigurationSetTrackingOptionsResponse
$creadsPrec :: Int -> ReadS DeleteConfigurationSetTrackingOptionsResponse
Prelude.Read, Int -> DeleteConfigurationSetTrackingOptionsResponse -> ShowS
[DeleteConfigurationSetTrackingOptionsResponse] -> ShowS
DeleteConfigurationSetTrackingOptionsResponse -> String
(Int -> DeleteConfigurationSetTrackingOptionsResponse -> ShowS)
-> (DeleteConfigurationSetTrackingOptionsResponse -> String)
-> ([DeleteConfigurationSetTrackingOptionsResponse] -> ShowS)
-> Show DeleteConfigurationSetTrackingOptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteConfigurationSetTrackingOptionsResponse] -> ShowS
$cshowList :: [DeleteConfigurationSetTrackingOptionsResponse] -> ShowS
show :: DeleteConfigurationSetTrackingOptionsResponse -> String
$cshow :: DeleteConfigurationSetTrackingOptionsResponse -> String
showsPrec :: Int -> DeleteConfigurationSetTrackingOptionsResponse -> ShowS
$cshowsPrec :: Int -> DeleteConfigurationSetTrackingOptionsResponse -> ShowS
Prelude.Show, (forall x.
DeleteConfigurationSetTrackingOptionsResponse
-> Rep DeleteConfigurationSetTrackingOptionsResponse x)
-> (forall x.
Rep DeleteConfigurationSetTrackingOptionsResponse x
-> DeleteConfigurationSetTrackingOptionsResponse)
-> Generic DeleteConfigurationSetTrackingOptionsResponse
forall x.
Rep DeleteConfigurationSetTrackingOptionsResponse x
-> DeleteConfigurationSetTrackingOptionsResponse
forall x.
DeleteConfigurationSetTrackingOptionsResponse
-> Rep DeleteConfigurationSetTrackingOptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteConfigurationSetTrackingOptionsResponse x
-> DeleteConfigurationSetTrackingOptionsResponse
$cfrom :: forall x.
DeleteConfigurationSetTrackingOptionsResponse
-> Rep DeleteConfigurationSetTrackingOptionsResponse x
Prelude.Generic)
newDeleteConfigurationSetTrackingOptionsResponse ::
Prelude.Int ->
DeleteConfigurationSetTrackingOptionsResponse
newDeleteConfigurationSetTrackingOptionsResponse :: Int -> DeleteConfigurationSetTrackingOptionsResponse
newDeleteConfigurationSetTrackingOptionsResponse
Int
pHttpStatus_ =
DeleteConfigurationSetTrackingOptionsResponse' :: Int -> DeleteConfigurationSetTrackingOptionsResponse
DeleteConfigurationSetTrackingOptionsResponse'
{ $sel:httpStatus:DeleteConfigurationSetTrackingOptionsResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteConfigurationSetTrackingOptionsResponse_httpStatus :: Lens.Lens' DeleteConfigurationSetTrackingOptionsResponse Prelude.Int
deleteConfigurationSetTrackingOptionsResponse_httpStatus :: (Int -> f Int)
-> DeleteConfigurationSetTrackingOptionsResponse
-> f DeleteConfigurationSetTrackingOptionsResponse
deleteConfigurationSetTrackingOptionsResponse_httpStatus = (DeleteConfigurationSetTrackingOptionsResponse -> Int)
-> (DeleteConfigurationSetTrackingOptionsResponse
-> Int -> DeleteConfigurationSetTrackingOptionsResponse)
-> Lens
DeleteConfigurationSetTrackingOptionsResponse
DeleteConfigurationSetTrackingOptionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteConfigurationSetTrackingOptionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteConfigurationSetTrackingOptionsResponse' :: DeleteConfigurationSetTrackingOptionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteConfigurationSetTrackingOptionsResponse
s@DeleteConfigurationSetTrackingOptionsResponse' {} Int
a -> DeleteConfigurationSetTrackingOptionsResponse
s {$sel:httpStatus:DeleteConfigurationSetTrackingOptionsResponse' :: Int
httpStatus = Int
a} :: DeleteConfigurationSetTrackingOptionsResponse)
instance
Prelude.NFData
DeleteConfigurationSetTrackingOptionsResponse