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

Amazonka.StorageGateway.UpdateBandwidthRateLimit

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. This operation is supported for the stored volume, cached volume, and tape gateway types.

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

data UpdateBandwidthRateLimit Source #

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

  • UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec
  • UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec

See: newUpdateBandwidthRateLimit smart constructor.

Constructors

UpdateBandwidthRateLimit' 

Fields

Instances

Instances details
Eq UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Read UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Show UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Generic UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Associated Types

type Rep UpdateBandwidthRateLimit :: Type -> Type #

NFData UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Hashable UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

ToJSON UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

AWSRequest UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

ToHeaders UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

ToPath UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

ToQuery UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

type Rep UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

type Rep UpdateBandwidthRateLimit = D1 ('MetaData "UpdateBandwidthRateLimit" "Amazonka.StorageGateway.UpdateBandwidthRateLimit" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "UpdateBandwidthRateLimit'" 'PrefixI 'True) (S1 ('MetaSel ('Just "averageUploadRateLimitInBitsPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "averageDownloadRateLimitInBitsPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateBandwidthRateLimit Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

newUpdateBandwidthRateLimit Source #

Create a value of UpdateBandwidthRateLimit with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:averageUploadRateLimitInBitsPerSec:UpdateBandwidthRateLimit', updateBandwidthRateLimit_averageUploadRateLimitInBitsPerSec - The average upload bandwidth rate limit in bits per second.

$sel:averageDownloadRateLimitInBitsPerSec:UpdateBandwidthRateLimit', updateBandwidthRateLimit_averageDownloadRateLimitInBitsPerSec - The average download bandwidth rate limit in bits per second.

$sel:gatewayARN:UpdateBandwidthRateLimit', updateBandwidthRateLimit_gatewayARN - Undocumented member.

Request Lenses

Destructuring the Response

data UpdateBandwidthRateLimitResponse Source #

A JSON object containing the Amazon Resource Name (ARN) of the gateway whose throttle information was updated.

See: newUpdateBandwidthRateLimitResponse smart constructor.

Constructors

UpdateBandwidthRateLimitResponse' 

Fields

Instances

Instances details
Eq UpdateBandwidthRateLimitResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Read UpdateBandwidthRateLimitResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Show UpdateBandwidthRateLimitResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Generic UpdateBandwidthRateLimitResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

Associated Types

type Rep UpdateBandwidthRateLimitResponse :: Type -> Type #

NFData UpdateBandwidthRateLimitResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

type Rep UpdateBandwidthRateLimitResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.UpdateBandwidthRateLimit

type Rep UpdateBandwidthRateLimitResponse = D1 ('MetaData "UpdateBandwidthRateLimitResponse" "Amazonka.StorageGateway.UpdateBandwidthRateLimit" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "UpdateBandwidthRateLimitResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateBandwidthRateLimitResponse Source #

Create a value of UpdateBandwidthRateLimitResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:gatewayARN:UpdateBandwidthRateLimit', updateBandwidthRateLimitResponse_gatewayARN - Undocumented member.

$sel:httpStatus:UpdateBandwidthRateLimitResponse', updateBandwidthRateLimitResponse_httpStatus - The response's http status code.

Response Lenses