module Network.AWS.Route53.UpdateHostedZoneComment
(
UpdateHostedZoneComment
, updateHostedZoneComment
, uhzcComment
, uhzcId
, UpdateHostedZoneCommentResponse
, updateHostedZoneCommentResponse
, uhzcrHostedZone
) where
import Network.AWS.Prelude
import Network.AWS.Request.RestXML
import Network.AWS.Route53.Types
import qualified GHC.Exts
data UpdateHostedZoneComment = UpdateHostedZoneComment
{ _uhzcComment :: Maybe Text
, _uhzcId :: Text
} deriving (Eq, Ord, Read, Show)
updateHostedZoneComment :: Text
-> UpdateHostedZoneComment
updateHostedZoneComment p1 = UpdateHostedZoneComment
{ _uhzcId = p1
, _uhzcComment = Nothing
}
uhzcComment :: Lens' UpdateHostedZoneComment (Maybe Text)
uhzcComment = lens _uhzcComment (\s a -> s { _uhzcComment = a })
uhzcId :: Lens' UpdateHostedZoneComment Text
uhzcId = lens _uhzcId (\s a -> s { _uhzcId = a })
newtype UpdateHostedZoneCommentResponse = UpdateHostedZoneCommentResponse
{ _uhzcrHostedZone :: HostedZone
} deriving (Eq, Read, Show)
updateHostedZoneCommentResponse :: HostedZone
-> UpdateHostedZoneCommentResponse
updateHostedZoneCommentResponse p1 = UpdateHostedZoneCommentResponse
{ _uhzcrHostedZone = p1
}
uhzcrHostedZone :: Lens' UpdateHostedZoneCommentResponse HostedZone
uhzcrHostedZone = lens _uhzcrHostedZone (\s a -> s { _uhzcrHostedZone = a })
instance ToPath UpdateHostedZoneComment where
toPath UpdateHostedZoneComment{..} = mconcat
[ "/2013-04-01/hostedzone/"
, toText _uhzcId
]
instance ToQuery UpdateHostedZoneComment where
toQuery = const mempty
instance ToHeaders UpdateHostedZoneComment
instance ToXMLRoot UpdateHostedZoneComment where
toXMLRoot UpdateHostedZoneComment{..} = namespaced ns "UpdateHostedZoneComment"
[ "Comment" =@ _uhzcComment
]
instance ToXML UpdateHostedZoneComment
instance AWSRequest UpdateHostedZoneComment where
type Sv UpdateHostedZoneComment = Route53
type Rs UpdateHostedZoneComment = UpdateHostedZoneCommentResponse
request = post
response = xmlResponse
instance FromXML UpdateHostedZoneCommentResponse where
parseXML x = UpdateHostedZoneCommentResponse
<$> x .@ "HostedZone"