{-# 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.PutBucketAccelerateConfiguration
(
putBucketAccelerateConfiguration
, PutBucketAccelerateConfiguration
, pbacBucket
, pbacAccelerateConfiguration
, putBucketAccelerateConfigurationResponse
, PutBucketAccelerateConfigurationResponse
) 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 PutBucketAccelerateConfiguration = PutBucketAccelerateConfiguration'
{ _pbacBucket :: !BucketName
, _pbacAccelerateConfiguration :: !AccelerateConfiguration
} deriving (Eq, Read, Show, Data, Typeable, Generic)
putBucketAccelerateConfiguration
:: BucketName
-> AccelerateConfiguration
-> PutBucketAccelerateConfiguration
putBucketAccelerateConfiguration pBucket_ pAccelerateConfiguration_ =
PutBucketAccelerateConfiguration'
{ _pbacBucket = pBucket_
, _pbacAccelerateConfiguration = pAccelerateConfiguration_
}
pbacBucket :: Lens' PutBucketAccelerateConfiguration BucketName
pbacBucket = lens _pbacBucket (\ s a -> s{_pbacBucket = a})
pbacAccelerateConfiguration :: Lens' PutBucketAccelerateConfiguration AccelerateConfiguration
pbacAccelerateConfiguration = lens _pbacAccelerateConfiguration (\ s a -> s{_pbacAccelerateConfiguration = a})
instance AWSRequest PutBucketAccelerateConfiguration
where
type Rs PutBucketAccelerateConfiguration =
PutBucketAccelerateConfigurationResponse
request = putXML s3
response
= receiveNull
PutBucketAccelerateConfigurationResponse'
instance Hashable PutBucketAccelerateConfiguration
where
instance NFData PutBucketAccelerateConfiguration
where
instance ToElement PutBucketAccelerateConfiguration
where
toElement
= mkElement
"{http://s3.amazonaws.com/doc/2006-03-01/}AccelerateConfiguration"
.
_pbacAccelerateConfiguration
instance ToHeaders PutBucketAccelerateConfiguration
where
toHeaders = const mempty
instance ToPath PutBucketAccelerateConfiguration
where
toPath PutBucketAccelerateConfiguration'{..}
= mconcat ["/", toBS _pbacBucket]
instance ToQuery PutBucketAccelerateConfiguration
where
toQuery = const (mconcat ["accelerate"])
data PutBucketAccelerateConfigurationResponse =
PutBucketAccelerateConfigurationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
putBucketAccelerateConfigurationResponse
:: PutBucketAccelerateConfigurationResponse
putBucketAccelerateConfigurationResponse =
PutBucketAccelerateConfigurationResponse'
instance NFData
PutBucketAccelerateConfigurationResponse
where