module Network.AWS.Route53.GetCheckerIpRanges
(
GetCheckerIpRanges
, getCheckerIpRanges
, GetCheckerIpRangesResponse
, getCheckerIpRangesResponse
, gcirrCheckerIpRanges
) where
import Network.AWS.Prelude
import Network.AWS.Request.RestXML
import Network.AWS.Route53.Types
import qualified GHC.Exts
data GetCheckerIpRanges = GetCheckerIpRanges
deriving (Eq, Ord, Show, Generic)
getCheckerIpRanges :: GetCheckerIpRanges
getCheckerIpRanges = GetCheckerIpRanges
newtype GetCheckerIpRangesResponse = GetCheckerIpRangesResponse
{ _gcirrCheckerIpRanges :: List "CheckerIpRanges" Text
} deriving (Eq, Ord, Show, Monoid, Semigroup)
instance GHC.Exts.IsList GetCheckerIpRangesResponse where
type Item GetCheckerIpRangesResponse = Text
fromList = GetCheckerIpRangesResponse . GHC.Exts.fromList
toList = GHC.Exts.toList . _gcirrCheckerIpRanges
getCheckerIpRangesResponse :: GetCheckerIpRangesResponse
getCheckerIpRangesResponse = GetCheckerIpRangesResponse
{ _gcirrCheckerIpRanges = mempty
}
gcirrCheckerIpRanges :: Lens' GetCheckerIpRangesResponse [Text]
gcirrCheckerIpRanges =
lens _gcirrCheckerIpRanges (\s a -> s { _gcirrCheckerIpRanges = a })
. _List
instance ToPath GetCheckerIpRanges where
toPath = const "/2013-04-01/checkeripranges"
instance ToQuery GetCheckerIpRanges where
toQuery = const mempty
instance ToHeaders GetCheckerIpRanges
instance ToXMLRoot GetCheckerIpRanges where
toXMLRoot = const (namespaced ns "GetCheckerIpRanges" [])
instance ToXML GetCheckerIpRanges
instance AWSRequest GetCheckerIpRanges where
type Sv GetCheckerIpRanges = Route53
type Rs GetCheckerIpRanges = GetCheckerIpRangesResponse
request = get
response = xmlResponse
instance FromXML GetCheckerIpRangesResponse where
parseXML x = GetCheckerIpRangesResponse
<$> x .@ "CheckerIpRanges"