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