{-# 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.GetSDKType
(
getSDKType
, GetSDKType
, gstId
, sdkType
, SDKType
, stFriendlyName
, stConfigurationProperties
, stId
, stDescription
) 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 GetSDKType = GetSDKType'
{ _gstId :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
getSDKType
:: Text
-> GetSDKType
getSDKType pId_ = GetSDKType' {_gstId = pId_}
gstId :: Lens' GetSDKType Text
gstId = lens _gstId (\ s a -> s{_gstId = a})
instance AWSRequest GetSDKType where
type Rs GetSDKType = SDKType
request = get apiGateway
response = receiveJSON (\ s h x -> eitherParseJSON x)
instance Hashable GetSDKType where
instance NFData GetSDKType where
instance ToHeaders GetSDKType where
toHeaders
= const
(mconcat
["Accept" =# ("application/json" :: ByteString)])
instance ToPath GetSDKType where
toPath GetSDKType'{..}
= mconcat ["/sdktypes/", toBS _gstId]
instance ToQuery GetSDKType where
toQuery = const mempty