| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.BackupGateway.PutBandwidthRateLimitSchedule
Description
This action sets the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule.
Synopsis
- data PutBandwidthRateLimitSchedule = PutBandwidthRateLimitSchedule' {}
- newPutBandwidthRateLimitSchedule :: Text -> PutBandwidthRateLimitSchedule
- putBandwidthRateLimitSchedule_bandwidthRateLimitIntervals :: Lens' PutBandwidthRateLimitSchedule [BandwidthRateLimitInterval]
- putBandwidthRateLimitSchedule_gatewayArn :: Lens' PutBandwidthRateLimitSchedule Text
- data PutBandwidthRateLimitScheduleResponse = PutBandwidthRateLimitScheduleResponse' {
- gatewayArn :: Maybe Text
- httpStatus :: Int
- newPutBandwidthRateLimitScheduleResponse :: Int -> PutBandwidthRateLimitScheduleResponse
- putBandwidthRateLimitScheduleResponse_gatewayArn :: Lens' PutBandwidthRateLimitScheduleResponse (Maybe Text)
- putBandwidthRateLimitScheduleResponse_httpStatus :: Lens' PutBandwidthRateLimitScheduleResponse Int
Creating a Request
data PutBandwidthRateLimitSchedule Source #
See: newPutBandwidthRateLimitSchedule smart constructor.
Constructors
| PutBandwidthRateLimitSchedule' | |
Fields
| |
Instances
newPutBandwidthRateLimitSchedule Source #
Create a value of PutBandwidthRateLimitSchedule 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:bandwidthRateLimitIntervals:PutBandwidthRateLimitSchedule', putBandwidthRateLimitSchedule_bandwidthRateLimitIntervals - An array containing bandwidth rate limit schedule intervals for a
gateway. When no bandwidth rate limit intervals have been scheduled, the
array is empty.
PutBandwidthRateLimitSchedule, putBandwidthRateLimitSchedule_gatewayArn - The Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web
Services Region.
Request Lenses
putBandwidthRateLimitSchedule_bandwidthRateLimitIntervals :: Lens' PutBandwidthRateLimitSchedule [BandwidthRateLimitInterval] Source #
An array containing bandwidth rate limit schedule intervals for a gateway. When no bandwidth rate limit intervals have been scheduled, the array is empty.
putBandwidthRateLimitSchedule_gatewayArn :: Lens' PutBandwidthRateLimitSchedule Text Source #
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
Destructuring the Response
data PutBandwidthRateLimitScheduleResponse Source #
See: newPutBandwidthRateLimitScheduleResponse smart constructor.
Constructors
| PutBandwidthRateLimitScheduleResponse' | |
Fields
| |
Instances
newPutBandwidthRateLimitScheduleResponse Source #
Arguments
| :: Int | |
| -> PutBandwidthRateLimitScheduleResponse |
Create a value of PutBandwidthRateLimitScheduleResponse 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:
PutBandwidthRateLimitSchedule, putBandwidthRateLimitScheduleResponse_gatewayArn - The Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web
Services Region.
$sel:httpStatus:PutBandwidthRateLimitScheduleResponse', putBandwidthRateLimitScheduleResponse_httpStatus - The response's http status code.
Response Lenses
putBandwidthRateLimitScheduleResponse_gatewayArn :: Lens' PutBandwidthRateLimitScheduleResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
putBandwidthRateLimitScheduleResponse_httpStatus :: Lens' PutBandwidthRateLimitScheduleResponse Int Source #
The response's http status code.