module Network.AWS.RDS.RevokeDBSecurityGroupIngress
(
revokeDBSecurityGroupIngress
, RevokeDBSecurityGroupIngress
, rdsgiEC2SecurityGroupOwnerId
, rdsgiEC2SecurityGroupName
, rdsgiCIdRIP
, rdsgiEC2SecurityGroupId
, rdsgiDBSecurityGroupName
, revokeDBSecurityGroupIngressResponse
, RevokeDBSecurityGroupIngressResponse
, rdsgirsDBSecurityGroup
, rdsgirsStatus
) where
import Network.AWS.Prelude
import Network.AWS.RDS.Types
import Network.AWS.RDS.Types.Product
import Network.AWS.Request
import Network.AWS.Response
data RevokeDBSecurityGroupIngress = RevokeDBSecurityGroupIngress'
{ _rdsgiEC2SecurityGroupOwnerId :: !(Maybe Text)
, _rdsgiEC2SecurityGroupName :: !(Maybe Text)
, _rdsgiCIdRIP :: !(Maybe Text)
, _rdsgiEC2SecurityGroupId :: !(Maybe Text)
, _rdsgiDBSecurityGroupName :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
revokeDBSecurityGroupIngress
:: Text
-> RevokeDBSecurityGroupIngress
revokeDBSecurityGroupIngress pDBSecurityGroupName_ =
RevokeDBSecurityGroupIngress'
{ _rdsgiEC2SecurityGroupOwnerId = Nothing
, _rdsgiEC2SecurityGroupName = Nothing
, _rdsgiCIdRIP = Nothing
, _rdsgiEC2SecurityGroupId = Nothing
, _rdsgiDBSecurityGroupName = pDBSecurityGroupName_
}
rdsgiEC2SecurityGroupOwnerId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
rdsgiEC2SecurityGroupOwnerId = lens _rdsgiEC2SecurityGroupOwnerId (\ s a -> s{_rdsgiEC2SecurityGroupOwnerId = a});
rdsgiEC2SecurityGroupName :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
rdsgiEC2SecurityGroupName = lens _rdsgiEC2SecurityGroupName (\ s a -> s{_rdsgiEC2SecurityGroupName = a});
rdsgiCIdRIP :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
rdsgiCIdRIP = lens _rdsgiCIdRIP (\ s a -> s{_rdsgiCIdRIP = a});
rdsgiEC2SecurityGroupId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
rdsgiEC2SecurityGroupId = lens _rdsgiEC2SecurityGroupId (\ s a -> s{_rdsgiEC2SecurityGroupId = a});
rdsgiDBSecurityGroupName :: Lens' RevokeDBSecurityGroupIngress Text
rdsgiDBSecurityGroupName = lens _rdsgiDBSecurityGroupName (\ s a -> s{_rdsgiDBSecurityGroupName = a});
instance AWSRequest RevokeDBSecurityGroupIngress
where
type Sv RevokeDBSecurityGroupIngress = RDS
type Rs RevokeDBSecurityGroupIngress =
RevokeDBSecurityGroupIngressResponse
request = postQuery
response
= receiveXMLWrapper
"RevokeDBSecurityGroupIngressResult"
(\ s h x ->
RevokeDBSecurityGroupIngressResponse' <$>
(x .@? "DBSecurityGroup") <*> (pure (fromEnum s)))
instance ToHeaders RevokeDBSecurityGroupIngress where
toHeaders = const mempty
instance ToPath RevokeDBSecurityGroupIngress where
toPath = const "/"
instance ToQuery RevokeDBSecurityGroupIngress where
toQuery RevokeDBSecurityGroupIngress'{..}
= mconcat
["Action" =:
("RevokeDBSecurityGroupIngress" :: ByteString),
"Version" =: ("2014-10-31" :: ByteString),
"EC2SecurityGroupOwnerId" =:
_rdsgiEC2SecurityGroupOwnerId,
"EC2SecurityGroupName" =: _rdsgiEC2SecurityGroupName,
"CIDRIP" =: _rdsgiCIdRIP,
"EC2SecurityGroupId" =: _rdsgiEC2SecurityGroupId,
"DBSecurityGroupName" =: _rdsgiDBSecurityGroupName]
data RevokeDBSecurityGroupIngressResponse = RevokeDBSecurityGroupIngressResponse'
{ _rdsgirsDBSecurityGroup :: !(Maybe DBSecurityGroup)
, _rdsgirsStatus :: !Int
} deriving (Eq,Read,Show,Data,Typeable,Generic)
revokeDBSecurityGroupIngressResponse
:: Int
-> RevokeDBSecurityGroupIngressResponse
revokeDBSecurityGroupIngressResponse pStatus_ =
RevokeDBSecurityGroupIngressResponse'
{ _rdsgirsDBSecurityGroup = Nothing
, _rdsgirsStatus = pStatus_
}
rdsgirsDBSecurityGroup :: Lens' RevokeDBSecurityGroupIngressResponse (Maybe DBSecurityGroup)
rdsgirsDBSecurityGroup = lens _rdsgirsDBSecurityGroup (\ s a -> s{_rdsgirsDBSecurityGroup = a});
rdsgirsStatus :: Lens' RevokeDBSecurityGroupIngressResponse Int
rdsgirsStatus = lens _rdsgirsStatus (\ s a -> s{_rdsgirsStatus = a});