{-# 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.S3.DeleteBucketInventoryConfiguration
(
deleteBucketInventoryConfiguration
, DeleteBucketInventoryConfiguration
, dbicBucket
, dbicId
, deleteBucketInventoryConfigurationResponse
, DeleteBucketInventoryConfigurationResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.S3.Types
import Network.AWS.S3.Types.Product
data DeleteBucketInventoryConfiguration = DeleteBucketInventoryConfiguration'
{ _dbicBucket :: !BucketName
, _dbicId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketInventoryConfiguration
:: BucketName
-> Text
-> DeleteBucketInventoryConfiguration
deleteBucketInventoryConfiguration pBucket_ pId_ =
DeleteBucketInventoryConfiguration' {_dbicBucket = pBucket_, _dbicId = pId_}
dbicBucket :: Lens' DeleteBucketInventoryConfiguration BucketName
dbicBucket = lens _dbicBucket (\ s a -> s{_dbicBucket = a})
dbicId :: Lens' DeleteBucketInventoryConfiguration Text
dbicId = lens _dbicId (\ s a -> s{_dbicId = a})
instance AWSRequest
DeleteBucketInventoryConfiguration
where
type Rs DeleteBucketInventoryConfiguration =
DeleteBucketInventoryConfigurationResponse
request = delete s3
response
= receiveNull
DeleteBucketInventoryConfigurationResponse'
instance Hashable DeleteBucketInventoryConfiguration
where
instance NFData DeleteBucketInventoryConfiguration
where
instance ToHeaders DeleteBucketInventoryConfiguration
where
toHeaders = const mempty
instance ToPath DeleteBucketInventoryConfiguration
where
toPath DeleteBucketInventoryConfiguration'{..}
= mconcat ["/", toBS _dbicBucket]
instance ToQuery DeleteBucketInventoryConfiguration
where
toQuery DeleteBucketInventoryConfiguration'{..}
= mconcat ["id" =: _dbicId, "inventory"]
data DeleteBucketInventoryConfigurationResponse =
DeleteBucketInventoryConfigurationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketInventoryConfigurationResponse
:: DeleteBucketInventoryConfigurationResponse
deleteBucketInventoryConfigurationResponse =
DeleteBucketInventoryConfigurationResponse'
instance NFData
DeleteBucketInventoryConfigurationResponse
where