{-# 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.IAM.DeleteInstanceProfile
(
deleteInstanceProfile
, DeleteInstanceProfile
, dipInstanceProfileName
, deleteInstanceProfileResponse
, DeleteInstanceProfileResponse
) where
import Network.AWS.IAM.Types
import Network.AWS.IAM.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteInstanceProfile = DeleteInstanceProfile'
{ _dipInstanceProfileName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteInstanceProfile
:: Text
-> DeleteInstanceProfile
deleteInstanceProfile pInstanceProfileName_ =
DeleteInstanceProfile' {_dipInstanceProfileName = pInstanceProfileName_}
dipInstanceProfileName :: Lens' DeleteInstanceProfile Text
dipInstanceProfileName = lens _dipInstanceProfileName (\ s a -> s{_dipInstanceProfileName = a})
instance AWSRequest DeleteInstanceProfile where
type Rs DeleteInstanceProfile =
DeleteInstanceProfileResponse
request = postQuery iam
response = receiveNull DeleteInstanceProfileResponse'
instance Hashable DeleteInstanceProfile where
instance NFData DeleteInstanceProfile where
instance ToHeaders DeleteInstanceProfile where
toHeaders = const mempty
instance ToPath DeleteInstanceProfile where
toPath = const "/"
instance ToQuery DeleteInstanceProfile where
toQuery DeleteInstanceProfile'{..}
= mconcat
["Action" =: ("DeleteInstanceProfile" :: ByteString),
"Version" =: ("2010-05-08" :: ByteString),
"InstanceProfileName" =: _dipInstanceProfileName]
data DeleteInstanceProfileResponse =
DeleteInstanceProfileResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteInstanceProfileResponse
:: DeleteInstanceProfileResponse
deleteInstanceProfileResponse = DeleteInstanceProfileResponse'
instance NFData DeleteInstanceProfileResponse where