module Network.AWS.S3.DeleteBucketEncryption
(
deleteBucketEncryption
, DeleteBucketEncryption
, dbeBucket
, deleteBucketEncryptionResponse
, DeleteBucketEncryptionResponse
) 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
newtype DeleteBucketEncryption = DeleteBucketEncryption'
{ _dbeBucket :: BucketName
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketEncryption
:: BucketName
-> DeleteBucketEncryption
deleteBucketEncryption pBucket_ =
DeleteBucketEncryption' {_dbeBucket = pBucket_}
dbeBucket :: Lens' DeleteBucketEncryption BucketName
dbeBucket = lens _dbeBucket (\ s a -> s{_dbeBucket = a});
instance AWSRequest DeleteBucketEncryption where
type Rs DeleteBucketEncryption =
DeleteBucketEncryptionResponse
request = delete s3
response
= receiveNull DeleteBucketEncryptionResponse'
instance Hashable DeleteBucketEncryption where
instance NFData DeleteBucketEncryption where
instance ToHeaders DeleteBucketEncryption where
toHeaders = const mempty
instance ToPath DeleteBucketEncryption where
toPath DeleteBucketEncryption'{..}
= mconcat ["/", toBS _dbeBucket]
instance ToQuery DeleteBucketEncryption where
toQuery = const (mconcat ["encryption"])
data DeleteBucketEncryptionResponse =
DeleteBucketEncryptionResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketEncryptionResponse
:: DeleteBucketEncryptionResponse
deleteBucketEncryptionResponse = DeleteBucketEncryptionResponse'
instance NFData DeleteBucketEncryptionResponse where