{-# 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 #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Network.AWS.RDS.RemoveTagsFromResource -- Copyright : (c) 2013-2015 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Removes metadata tags from an Amazon RDS resource. -- -- For an overview on tagging an Amazon RDS resource, see -- <http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html Tagging Amazon RDS Resources>. -- -- /See:/ <http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RemoveTagsFromResource.html AWS API Reference> for RemoveTagsFromResource. module Network.AWS.RDS.RemoveTagsFromResource ( -- * Creating a Request removeTagsFromResource , RemoveTagsFromResource -- * Request Lenses , rtfrResourceName , rtfrTagKeys -- * Destructuring the Response , removeTagsFromResourceResponse , RemoveTagsFromResourceResponse ) where import Network.AWS.Prelude import Network.AWS.RDS.Types import Network.AWS.RDS.Types.Product import Network.AWS.Request import Network.AWS.Response -- | -- -- /See:/ 'removeTagsFromResource' smart constructor. data RemoveTagsFromResource = RemoveTagsFromResource' { _rtfrResourceName :: !Text , _rtfrTagKeys :: ![Text] } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'RemoveTagsFromResource' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'rtfrResourceName' -- -- * 'rtfrTagKeys' removeTagsFromResource :: Text -- ^ 'rtfrResourceName' -> RemoveTagsFromResource removeTagsFromResource pResourceName_ = RemoveTagsFromResource' { _rtfrResourceName = pResourceName_ , _rtfrTagKeys = mempty } -- | The Amazon RDS resource the tags will be removed from. This value is an -- Amazon Resource Name (ARN). For information about creating an ARN, see -- <http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN Constructing an RDS Amazon Resource Name (ARN)>. rtfrResourceName :: Lens' RemoveTagsFromResource Text rtfrResourceName = lens _rtfrResourceName (\ s a -> s{_rtfrResourceName = a}); -- | The tag key (name) of the tag to be removed. rtfrTagKeys :: Lens' RemoveTagsFromResource [Text] rtfrTagKeys = lens _rtfrTagKeys (\ s a -> s{_rtfrTagKeys = a}) . _Coerce; instance AWSRequest RemoveTagsFromResource where type Sv RemoveTagsFromResource = RDS type Rs RemoveTagsFromResource = RemoveTagsFromResourceResponse request = postQuery response = receiveNull RemoveTagsFromResourceResponse' instance ToHeaders RemoveTagsFromResource where toHeaders = const mempty instance ToPath RemoveTagsFromResource where toPath = const "/" instance ToQuery RemoveTagsFromResource where toQuery RemoveTagsFromResource'{..} = mconcat ["Action" =: ("RemoveTagsFromResource" :: ByteString), "Version" =: ("2014-10-31" :: ByteString), "ResourceName" =: _rtfrResourceName, "TagKeys" =: toQueryList "member" _rtfrTagKeys] -- | /See:/ 'removeTagsFromResourceResponse' smart constructor. data RemoveTagsFromResourceResponse = RemoveTagsFromResourceResponse' deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'RemoveTagsFromResourceResponse' with the minimum fields required to make a request. -- removeTagsFromResourceResponse :: RemoveTagsFromResourceResponse removeTagsFromResourceResponse = RemoveTagsFromResourceResponse'