module Network.AWS.ELB.DeleteLoadBalancerPolicy
(
DeleteLoadBalancerPolicy
, deleteLoadBalancerPolicy
, dlbp1LoadBalancerName
, dlbp1PolicyName
, DeleteLoadBalancerPolicyResponse
, deleteLoadBalancerPolicyResponse
) where
import Network.AWS.Prelude
import Network.AWS.Request.Query
import Network.AWS.ELB.Types
import qualified GHC.Exts
data DeleteLoadBalancerPolicy = DeleteLoadBalancerPolicy
{ _dlbp1LoadBalancerName :: Text
, _dlbp1PolicyName :: Text
} deriving (Eq, Ord, Show)
deleteLoadBalancerPolicy :: Text
-> Text
-> DeleteLoadBalancerPolicy
deleteLoadBalancerPolicy p1 p2 = DeleteLoadBalancerPolicy
{ _dlbp1LoadBalancerName = p1
, _dlbp1PolicyName = p2
}
dlbp1LoadBalancerName :: Lens' DeleteLoadBalancerPolicy Text
dlbp1LoadBalancerName =
lens _dlbp1LoadBalancerName (\s a -> s { _dlbp1LoadBalancerName = a })
dlbp1PolicyName :: Lens' DeleteLoadBalancerPolicy Text
dlbp1PolicyName = lens _dlbp1PolicyName (\s a -> s { _dlbp1PolicyName = a })
data DeleteLoadBalancerPolicyResponse = DeleteLoadBalancerPolicyResponse
deriving (Eq, Ord, Show, Generic)
deleteLoadBalancerPolicyResponse :: DeleteLoadBalancerPolicyResponse
deleteLoadBalancerPolicyResponse = DeleteLoadBalancerPolicyResponse
instance ToPath DeleteLoadBalancerPolicy where
toPath = const "/"
instance ToQuery DeleteLoadBalancerPolicy where
toQuery DeleteLoadBalancerPolicy{..} = mconcat
[ "LoadBalancerName" =? _dlbp1LoadBalancerName
, "PolicyName" =? _dlbp1PolicyName
]
instance ToHeaders DeleteLoadBalancerPolicy
instance AWSRequest DeleteLoadBalancerPolicy where
type Sv DeleteLoadBalancerPolicy = ELB
type Rs DeleteLoadBalancerPolicy = DeleteLoadBalancerPolicyResponse
request = post "DeleteLoadBalancerPolicy"
response = nullResponse DeleteLoadBalancerPolicyResponse