module Network.AWS.S3.DeleteBucketAnalyticsConfiguration
(
deleteBucketAnalyticsConfiguration
, DeleteBucketAnalyticsConfiguration
, dbacBucket
, dbacId
, deleteBucketAnalyticsConfigurationResponse
, DeleteBucketAnalyticsConfigurationResponse
) 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 DeleteBucketAnalyticsConfiguration = DeleteBucketAnalyticsConfiguration'
{ _dbacBucket :: !BucketName
, _dbacId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketAnalyticsConfiguration
:: BucketName
-> Text
-> DeleteBucketAnalyticsConfiguration
deleteBucketAnalyticsConfiguration pBucket_ pId_ =
DeleteBucketAnalyticsConfiguration' {_dbacBucket = pBucket_, _dbacId = pId_}
dbacBucket :: Lens' DeleteBucketAnalyticsConfiguration BucketName
dbacBucket = lens _dbacBucket (\ s a -> s{_dbacBucket = a});
dbacId :: Lens' DeleteBucketAnalyticsConfiguration Text
dbacId = lens _dbacId (\ s a -> s{_dbacId = a});
instance AWSRequest
DeleteBucketAnalyticsConfiguration
where
type Rs DeleteBucketAnalyticsConfiguration =
DeleteBucketAnalyticsConfigurationResponse
request = delete s3
response
= receiveNull
DeleteBucketAnalyticsConfigurationResponse'
instance Hashable DeleteBucketAnalyticsConfiguration
where
instance NFData DeleteBucketAnalyticsConfiguration
where
instance ToHeaders DeleteBucketAnalyticsConfiguration
where
toHeaders = const mempty
instance ToPath DeleteBucketAnalyticsConfiguration
where
toPath DeleteBucketAnalyticsConfiguration'{..}
= mconcat ["/", toBS _dbacBucket]
instance ToQuery DeleteBucketAnalyticsConfiguration
where
toQuery DeleteBucketAnalyticsConfiguration'{..}
= mconcat ["id" =: _dbacId, "analytics"]
data DeleteBucketAnalyticsConfigurationResponse =
DeleteBucketAnalyticsConfigurationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketAnalyticsConfigurationResponse
:: DeleteBucketAnalyticsConfigurationResponse
deleteBucketAnalyticsConfigurationResponse =
DeleteBucketAnalyticsConfigurationResponse'
instance NFData
DeleteBucketAnalyticsConfigurationResponse
where