module Network.AWS.S3.DeleteBucketMetricsConfiguration
(
deleteBucketMetricsConfiguration
, DeleteBucketMetricsConfiguration
, dbmcBucket
, dbmcId
, deleteBucketMetricsConfigurationResponse
, DeleteBucketMetricsConfigurationResponse
) 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 DeleteBucketMetricsConfiguration = DeleteBucketMetricsConfiguration'
{ _dbmcBucket :: !BucketName
, _dbmcId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketMetricsConfiguration
:: BucketName
-> Text
-> DeleteBucketMetricsConfiguration
deleteBucketMetricsConfiguration pBucket_ pId_ =
DeleteBucketMetricsConfiguration' {_dbmcBucket = pBucket_, _dbmcId = pId_}
dbmcBucket :: Lens' DeleteBucketMetricsConfiguration BucketName
dbmcBucket = lens _dbmcBucket (\ s a -> s{_dbmcBucket = a});
dbmcId :: Lens' DeleteBucketMetricsConfiguration Text
dbmcId = lens _dbmcId (\ s a -> s{_dbmcId = a});
instance AWSRequest DeleteBucketMetricsConfiguration
where
type Rs DeleteBucketMetricsConfiguration =
DeleteBucketMetricsConfigurationResponse
request = delete s3
response
= receiveNull
DeleteBucketMetricsConfigurationResponse'
instance Hashable DeleteBucketMetricsConfiguration
where
instance NFData DeleteBucketMetricsConfiguration
where
instance ToHeaders DeleteBucketMetricsConfiguration
where
toHeaders = const mempty
instance ToPath DeleteBucketMetricsConfiguration
where
toPath DeleteBucketMetricsConfiguration'{..}
= mconcat ["/", toBS _dbmcBucket]
instance ToQuery DeleteBucketMetricsConfiguration
where
toQuery DeleteBucketMetricsConfiguration'{..}
= mconcat ["id" =: _dbmcId, "metrics"]
data DeleteBucketMetricsConfigurationResponse =
DeleteBucketMetricsConfigurationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketMetricsConfigurationResponse
:: DeleteBucketMetricsConfigurationResponse
deleteBucketMetricsConfigurationResponse =
DeleteBucketMetricsConfigurationResponse'
instance NFData
DeleteBucketMetricsConfigurationResponse
where