amazonka-storagegateway-1.4.5: Amazon Storage Gateway SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StorageGateway.UpdateBandwidthRateLimit

Contents

Description

Updates the bandwidth rate limits of a gateway. You can update both the upload and download bandwidth rate limit or specify only one of the two. If you don't set a bandwidth rate limit, the existing rate limit remains.

By default, a gateway's bandwidth rate limits are not set. If you don't set any limit, the gateway does not have any limitations on its bandwidth usage and could potentially use the maximum available bandwidth.

To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

Synopsis

Creating a Request

updateBandwidthRateLimit #

Creates a value of UpdateBandwidthRateLimit with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateBandwidthRateLimit #

A JSON object containing one or more of the following fields:

  • 'UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec'
  • 'UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec'

See: updateBandwidthRateLimit smart constructor.

Instances

Eq UpdateBandwidthRateLimit # 
Data UpdateBandwidthRateLimit # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateBandwidthRateLimit -> c UpdateBandwidthRateLimit #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateBandwidthRateLimit #

toConstr :: UpdateBandwidthRateLimit -> Constr #

dataTypeOf :: UpdateBandwidthRateLimit -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateBandwidthRateLimit) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateBandwidthRateLimit) #

gmapT :: (forall b. Data b => b -> b) -> UpdateBandwidthRateLimit -> UpdateBandwidthRateLimit #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateBandwidthRateLimit -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateBandwidthRateLimit -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateBandwidthRateLimit -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateBandwidthRateLimit -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateBandwidthRateLimit -> m UpdateBandwidthRateLimit #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateBandwidthRateLimit -> m UpdateBandwidthRateLimit #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateBandwidthRateLimit -> m UpdateBandwidthRateLimit #

Read UpdateBandwidthRateLimit # 
Show UpdateBandwidthRateLimit # 
Generic UpdateBandwidthRateLimit # 
Hashable UpdateBandwidthRateLimit # 
ToJSON UpdateBandwidthRateLimit # 
NFData UpdateBandwidthRateLimit # 
AWSRequest UpdateBandwidthRateLimit # 
ToQuery UpdateBandwidthRateLimit # 
ToPath UpdateBandwidthRateLimit # 
ToHeaders UpdateBandwidthRateLimit # 
type Rep UpdateBandwidthRateLimit # 
type Rep UpdateBandwidthRateLimit = D1 (MetaData "UpdateBandwidthRateLimit" "Network.AWS.StorageGateway.UpdateBandwidthRateLimit" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "UpdateBandwidthRateLimit'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ubrlAverageUploadRateLimitInBitsPerSec") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) ((:*:) (S1 (MetaSel (Just Symbol "_ubrlAverageDownloadRateLimitInBitsPerSec") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_ubrlGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateBandwidthRateLimit # 

Request Lenses

ubrlAverageUploadRateLimitInBitsPerSec :: Lens' UpdateBandwidthRateLimit (Maybe Natural) #

The average upload bandwidth rate limit in bits per second.

ubrlAverageDownloadRateLimitInBitsPerSec :: Lens' UpdateBandwidthRateLimit (Maybe Natural) #

The average download bandwidth rate limit in bits per second.

Destructuring the Response

updateBandwidthRateLimitResponse #

Creates a value of UpdateBandwidthRateLimitResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateBandwidthRateLimitResponse #

A JSON object containing the of the gateway whose throttle information was updated.

See: updateBandwidthRateLimitResponse smart constructor.

Instances

Eq UpdateBandwidthRateLimitResponse # 
Data UpdateBandwidthRateLimitResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateBandwidthRateLimitResponse -> c UpdateBandwidthRateLimitResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateBandwidthRateLimitResponse #

toConstr :: UpdateBandwidthRateLimitResponse -> Constr #

dataTypeOf :: UpdateBandwidthRateLimitResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateBandwidthRateLimitResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateBandwidthRateLimitResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateBandwidthRateLimitResponse -> UpdateBandwidthRateLimitResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateBandwidthRateLimitResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateBandwidthRateLimitResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateBandwidthRateLimitResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateBandwidthRateLimitResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateBandwidthRateLimitResponse -> m UpdateBandwidthRateLimitResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateBandwidthRateLimitResponse -> m UpdateBandwidthRateLimitResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateBandwidthRateLimitResponse -> m UpdateBandwidthRateLimitResponse #

Read UpdateBandwidthRateLimitResponse # 
Show UpdateBandwidthRateLimitResponse # 
Generic UpdateBandwidthRateLimitResponse # 
NFData UpdateBandwidthRateLimitResponse # 
type Rep UpdateBandwidthRateLimitResponse # 
type Rep UpdateBandwidthRateLimitResponse = D1 (MetaData "UpdateBandwidthRateLimitResponse" "Network.AWS.StorageGateway.UpdateBandwidthRateLimit" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "UpdateBandwidthRateLimitResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ubrlrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ubrlrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses