update_bandwidth_rate_limit
¶
update_bandwidth_rate_limit(
gateway_arn: GatewayARN,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
average_upload_rate_limit_in_bits_per_sec: Optional[
BandwidthUploadRateLimit
] = None,
average_download_rate_limit_in_bits_per_sec: Optional[
BandwidthDownloadRateLimit
] = None,
) -> UpdateBandwidthRateLimitOutput
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.
Parameters:
-
average_upload_rate_limit_in_bits_per_sec(Optional[BandwidthUploadRateLimit], default:None) –The average upload bandwidth rate limit in bits per second.
-
average_download_rate_limit_in_bits_per_sec(Optional[BandwidthDownloadRateLimit], default:None) –The average download bandwidth rate limit in bits per second.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update the bandwidth rate limits of a gateway 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.
>>> client.update_bandwidth_rate_limit(gateway_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B', average_upload_rate_limit_in_bits_per_sec=51200, average_download_rate_limit_in_bits_per_sec=102400)
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 | |