{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Network.AWS.APIGateway.GetVPCLink
(
getVPCLink
, GetVPCLink
, gvlVpcLinkId
, vpcLink
, VPCLink
, vlStatus
, vlTargetARNs
, vlName
, vlStatusMessage
, vlId
, vlDescription
) where
import Network.AWS.APIGateway.Types
import Network.AWS.APIGateway.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype GetVPCLink = GetVPCLink'
{ _gvlVpcLinkId :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
getVPCLink
:: Text
-> GetVPCLink
getVPCLink pVpcLinkId_ = GetVPCLink' {_gvlVpcLinkId = pVpcLinkId_}
gvlVpcLinkId :: Lens' GetVPCLink Text
gvlVpcLinkId = lens _gvlVpcLinkId (\ s a -> s{_gvlVpcLinkId = a})
instance AWSRequest GetVPCLink where
type Rs GetVPCLink = VPCLink
request = get apiGateway
response = receiveJSON (\ s h x -> eitherParseJSON x)
instance Hashable GetVPCLink where
instance NFData GetVPCLink where
instance ToHeaders GetVPCLink where
toHeaders
= const
(mconcat
["Accept" =# ("application/json" :: ByteString)])
instance ToPath GetVPCLink where
toPath GetVPCLink'{..}
= mconcat ["/vpclinks/", toBS _gvlVpcLinkId]
instance ToQuery GetVPCLink where
toQuery = const mempty