{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Network.AWS.SES.CreateConfigurationSetTrackingOptions
(
createConfigurationSetTrackingOptions
, CreateConfigurationSetTrackingOptions
, ccstoConfigurationSetName
, ccstoTrackingOptions
, createConfigurationSetTrackingOptionsResponse
, CreateConfigurationSetTrackingOptionsResponse
, ccstorsResponseStatus
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.SES.Types
import Network.AWS.SES.Types.Product
data CreateConfigurationSetTrackingOptions = CreateConfigurationSetTrackingOptions'
{ _ccstoConfigurationSetName :: !Text
, _ccstoTrackingOptions :: !TrackingOptions
} deriving (Eq, Read, Show, Data, Typeable, Generic)
createConfigurationSetTrackingOptions
:: Text
-> TrackingOptions
-> CreateConfigurationSetTrackingOptions
createConfigurationSetTrackingOptions pConfigurationSetName_ pTrackingOptions_ =
CreateConfigurationSetTrackingOptions'
{ _ccstoConfigurationSetName = pConfigurationSetName_
, _ccstoTrackingOptions = pTrackingOptions_
}
ccstoConfigurationSetName :: Lens' CreateConfigurationSetTrackingOptions Text
ccstoConfigurationSetName = lens _ccstoConfigurationSetName (\ s a -> s{_ccstoConfigurationSetName = a})
ccstoTrackingOptions :: Lens' CreateConfigurationSetTrackingOptions TrackingOptions
ccstoTrackingOptions = lens _ccstoTrackingOptions (\ s a -> s{_ccstoTrackingOptions = a})
instance AWSRequest
CreateConfigurationSetTrackingOptions
where
type Rs CreateConfigurationSetTrackingOptions =
CreateConfigurationSetTrackingOptionsResponse
request = postQuery ses
response
= receiveXMLWrapper
"CreateConfigurationSetTrackingOptionsResult"
(\ s h x ->
CreateConfigurationSetTrackingOptionsResponse' <$>
(pure (fromEnum s)))
instance Hashable
CreateConfigurationSetTrackingOptions
where
instance NFData CreateConfigurationSetTrackingOptions
where
instance ToHeaders
CreateConfigurationSetTrackingOptions
where
toHeaders = const mempty
instance ToPath CreateConfigurationSetTrackingOptions
where
toPath = const "/"
instance ToQuery
CreateConfigurationSetTrackingOptions
where
toQuery CreateConfigurationSetTrackingOptions'{..}
= mconcat
["Action" =:
("CreateConfigurationSetTrackingOptions" ::
ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"ConfigurationSetName" =: _ccstoConfigurationSetName,
"TrackingOptions" =: _ccstoTrackingOptions]
newtype CreateConfigurationSetTrackingOptionsResponse = CreateConfigurationSetTrackingOptionsResponse'
{ _ccstorsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
createConfigurationSetTrackingOptionsResponse
:: Int
-> CreateConfigurationSetTrackingOptionsResponse
createConfigurationSetTrackingOptionsResponse pResponseStatus_ =
CreateConfigurationSetTrackingOptionsResponse'
{_ccstorsResponseStatus = pResponseStatus_}
ccstorsResponseStatus :: Lens' CreateConfigurationSetTrackingOptionsResponse Int
ccstorsResponseStatus = lens _ccstorsResponseStatus (\ s a -> s{_ccstorsResponseStatus = a})
instance NFData
CreateConfigurationSetTrackingOptionsResponse
where