amazonka-storagegateway-1.6.0: Amazon Storage Gateway SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 Source #

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 Source #

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

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

See: updateBandwidthRateLimit smart constructor.

Instances

Eq UpdateBandwidthRateLimit Source # 
Data UpdateBandwidthRateLimit Source # 

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 Source # 
Show UpdateBandwidthRateLimit Source # 
Generic UpdateBandwidthRateLimit Source # 
Hashable UpdateBandwidthRateLimit Source # 
ToJSON UpdateBandwidthRateLimit Source # 
NFData UpdateBandwidthRateLimit Source # 
AWSRequest UpdateBandwidthRateLimit Source # 
ToHeaders UpdateBandwidthRateLimit Source # 
ToPath UpdateBandwidthRateLimit Source # 
ToQuery UpdateBandwidthRateLimit Source # 
type Rep UpdateBandwidthRateLimit Source # 
type Rep UpdateBandwidthRateLimit = D1 * (MetaData "UpdateBandwidthRateLimit" "Network.AWS.StorageGateway.UpdateBandwidthRateLimit" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" 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 Source # 

Request Lenses

ubrlAverageUploadRateLimitInBitsPerSec :: Lens' UpdateBandwidthRateLimit (Maybe Natural) Source #

The average upload bandwidth rate limit in bits per second.

ubrlAverageDownloadRateLimitInBitsPerSec :: Lens' UpdateBandwidthRateLimit (Maybe Natural) Source #

The average download bandwidth rate limit in bits per second.

Destructuring the Response

updateBandwidthRateLimitResponse Source #

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 Source #

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

See: updateBandwidthRateLimitResponse smart constructor.

Instances

Eq UpdateBandwidthRateLimitResponse Source # 
Data UpdateBandwidthRateLimitResponse Source # 

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 Source # 
Show UpdateBandwidthRateLimitResponse Source # 
Generic UpdateBandwidthRateLimitResponse Source # 
NFData UpdateBandwidthRateLimitResponse Source # 
type Rep UpdateBandwidthRateLimitResponse Source # 
type Rep UpdateBandwidthRateLimitResponse = D1 * (MetaData "UpdateBandwidthRateLimitResponse" "Network.AWS.StorageGateway.UpdateBandwidthRateLimit" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "UpdateBandwidthRateLimitResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ubrlrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ubrlrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses