{-# 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.DeleteBucketLifecycle
(
deleteBucketLifecycle
, DeleteBucketLifecycle
, dblBucket
, deleteBucketLifecycleResponse
, DeleteBucketLifecycleResponse
) 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 DeleteBucketLifecycle = DeleteBucketLifecycle'
{ _dblBucket :: BucketName
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketLifecycle
:: BucketName
-> DeleteBucketLifecycle
deleteBucketLifecycle pBucket_ = DeleteBucketLifecycle' {_dblBucket = pBucket_}
dblBucket :: Lens' DeleteBucketLifecycle BucketName
dblBucket = lens _dblBucket (\ s a -> s{_dblBucket = a})
instance AWSRequest DeleteBucketLifecycle where
type Rs DeleteBucketLifecycle =
DeleteBucketLifecycleResponse
request = delete s3
response = receiveNull DeleteBucketLifecycleResponse'
instance Hashable DeleteBucketLifecycle where
instance NFData DeleteBucketLifecycle where
instance ToHeaders DeleteBucketLifecycle where
toHeaders = const mempty
instance ToPath DeleteBucketLifecycle where
toPath DeleteBucketLifecycle'{..}
= mconcat ["/", toBS _dblBucket]
instance ToQuery DeleteBucketLifecycle where
toQuery = const (mconcat ["lifecycle"])
data DeleteBucketLifecycleResponse =
DeleteBucketLifecycleResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBucketLifecycleResponse
:: DeleteBucketLifecycleResponse
deleteBucketLifecycleResponse = DeleteBucketLifecycleResponse'
instance NFData DeleteBucketLifecycleResponse where