updateBandwidthRateLimit

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. This operation is supported only for the stored volume, cached volume, and tape gateway types. To update bandwidth rate limits for S3 file gateways, use UpdateBandwidthRateLimitSchedule.

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.

Samples


fun main() { 
   //sampleStart 
   // Updates the bandwidth rate limits of a gateway. Both the upload and download bandwidth rate limit
// can be set, or either one of the two. If a new limit is not set, the existing rate limit remains.
val resp = storageGatewayClient.updateBandwidthRateLimit {
    gatewayArn = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
    averageUploadRateLimitInBitsPerSec = 51200
    averageDownloadRateLimitInBitsPerSec = 102400
} 
   //sampleEnd
}