module Network.AWS.DMS.DeleteReplicationSubnetGroup
(
deleteReplicationSubnetGroup
, DeleteReplicationSubnetGroup
, drsgReplicationSubnetGroupIdentifier
, deleteReplicationSubnetGroupResponse
, DeleteReplicationSubnetGroupResponse
, drsgrsResponseStatus
) where
import Network.AWS.DMS.Types
import Network.AWS.DMS.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteReplicationSubnetGroup = DeleteReplicationSubnetGroup'
{ _drsgReplicationSubnetGroupIdentifier :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteReplicationSubnetGroup
:: Text
-> DeleteReplicationSubnetGroup
deleteReplicationSubnetGroup pReplicationSubnetGroupIdentifier_ =
DeleteReplicationSubnetGroup'
{_drsgReplicationSubnetGroupIdentifier = pReplicationSubnetGroupIdentifier_}
drsgReplicationSubnetGroupIdentifier :: Lens' DeleteReplicationSubnetGroup Text
drsgReplicationSubnetGroupIdentifier = lens _drsgReplicationSubnetGroupIdentifier (\ s a -> s{_drsgReplicationSubnetGroupIdentifier = a});
instance AWSRequest DeleteReplicationSubnetGroup
where
type Rs DeleteReplicationSubnetGroup =
DeleteReplicationSubnetGroupResponse
request = postJSON dms
response
= receiveEmpty
(\ s h x ->
DeleteReplicationSubnetGroupResponse' <$>
(pure (fromEnum s)))
instance Hashable DeleteReplicationSubnetGroup where
instance NFData DeleteReplicationSubnetGroup where
instance ToHeaders DeleteReplicationSubnetGroup where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("AmazonDMSv20160101.DeleteReplicationSubnetGroup" ::
ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteReplicationSubnetGroup where
toJSON DeleteReplicationSubnetGroup'{..}
= object
(catMaybes
[Just
("ReplicationSubnetGroupIdentifier" .=
_drsgReplicationSubnetGroupIdentifier)])
instance ToPath DeleteReplicationSubnetGroup where
toPath = const "/"
instance ToQuery DeleteReplicationSubnetGroup where
toQuery = const mempty
newtype DeleteReplicationSubnetGroupResponse = DeleteReplicationSubnetGroupResponse'
{ _drsgrsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteReplicationSubnetGroupResponse
:: Int
-> DeleteReplicationSubnetGroupResponse
deleteReplicationSubnetGroupResponse pResponseStatus_ =
DeleteReplicationSubnetGroupResponse'
{_drsgrsResponseStatus = pResponseStatus_}
drsgrsResponseStatus :: Lens' DeleteReplicationSubnetGroupResponse Int
drsgrsResponseStatus = lens _drsgrsResponseStatus (\ s a -> s{_drsgrsResponseStatus = a});
instance NFData DeleteReplicationSubnetGroupResponse
where