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 |
Set the maintenance start time for a gateway.
Synopsis
- data PutMaintenanceStartTime = PutMaintenanceStartTime' {}
- newPutMaintenanceStartTime :: Text -> Natural -> Natural -> PutMaintenanceStartTime
- putMaintenanceStartTime_dayOfMonth :: Lens' PutMaintenanceStartTime (Maybe Natural)
- putMaintenanceStartTime_dayOfWeek :: Lens' PutMaintenanceStartTime (Maybe Natural)
- putMaintenanceStartTime_gatewayArn :: Lens' PutMaintenanceStartTime Text
- putMaintenanceStartTime_hourOfDay :: Lens' PutMaintenanceStartTime Natural
- putMaintenanceStartTime_minuteOfHour :: Lens' PutMaintenanceStartTime Natural
- data PutMaintenanceStartTimeResponse = PutMaintenanceStartTimeResponse' {
- gatewayArn :: Maybe Text
- httpStatus :: Int
- newPutMaintenanceStartTimeResponse :: Int -> PutMaintenanceStartTimeResponse
- putMaintenanceStartTimeResponse_gatewayArn :: Lens' PutMaintenanceStartTimeResponse (Maybe Text)
- putMaintenanceStartTimeResponse_httpStatus :: Lens' PutMaintenanceStartTimeResponse Int
Creating a Request
data PutMaintenanceStartTime Source #
See: newPutMaintenanceStartTime
smart constructor.
PutMaintenanceStartTime' | |
|
Instances
newPutMaintenanceStartTime Source #
:: Text | |
-> Natural | |
-> Natural | |
-> PutMaintenanceStartTime |
Create a value of PutMaintenanceStartTime
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:
PutMaintenanceStartTime
, putMaintenanceStartTime_dayOfMonth
- The day of the month start maintenance on a gateway.
Valid values range from Sunday
to Saturday
.
PutMaintenanceStartTime
, putMaintenanceStartTime_dayOfWeek
- The day of the week to start maintenance on a gateway.
PutMaintenanceStartTime
, putMaintenanceStartTime_gatewayArn
- The Amazon Resource Name (ARN) for the gateway, used to specify its
maintenance start time.
PutMaintenanceStartTime
, putMaintenanceStartTime_hourOfDay
- The hour of the day to start maintenance on a gateway.
PutMaintenanceStartTime
, putMaintenanceStartTime_minuteOfHour
- The minute of the hour to start maintenance on a gateway.
Request Lenses
putMaintenanceStartTime_dayOfMonth :: Lens' PutMaintenanceStartTime (Maybe Natural) Source #
The day of the month start maintenance on a gateway.
Valid values range from Sunday
to Saturday
.
putMaintenanceStartTime_dayOfWeek :: Lens' PutMaintenanceStartTime (Maybe Natural) Source #
The day of the week to start maintenance on a gateway.
putMaintenanceStartTime_gatewayArn :: Lens' PutMaintenanceStartTime Text Source #
The Amazon Resource Name (ARN) for the gateway, used to specify its maintenance start time.
putMaintenanceStartTime_hourOfDay :: Lens' PutMaintenanceStartTime Natural Source #
The hour of the day to start maintenance on a gateway.
putMaintenanceStartTime_minuteOfHour :: Lens' PutMaintenanceStartTime Natural Source #
The minute of the hour to start maintenance on a gateway.
Destructuring the Response
data PutMaintenanceStartTimeResponse Source #
See: newPutMaintenanceStartTimeResponse
smart constructor.
PutMaintenanceStartTimeResponse' | |
|
Instances
Generic PutMaintenanceStartTimeResponse Source # | |
Read PutMaintenanceStartTimeResponse Source # | |
Show PutMaintenanceStartTimeResponse Source # | |
NFData PutMaintenanceStartTimeResponse Source # | |
Defined in Amazonka.BackupGateway.PutMaintenanceStartTime rnf :: PutMaintenanceStartTimeResponse -> () # | |
Eq PutMaintenanceStartTimeResponse Source # | |
type Rep PutMaintenanceStartTimeResponse Source # | |
Defined in Amazonka.BackupGateway.PutMaintenanceStartTime type Rep PutMaintenanceStartTimeResponse = D1 ('MetaData "PutMaintenanceStartTimeResponse" "Amazonka.BackupGateway.PutMaintenanceStartTime" "amazonka-backup-gateway-2.0-Ee3gVOmXMeV2r3uv4sRO9" 'False) (C1 ('MetaCons "PutMaintenanceStartTimeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutMaintenanceStartTimeResponse Source #
Create a value of PutMaintenanceStartTimeResponse
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:
PutMaintenanceStartTime
, putMaintenanceStartTimeResponse_gatewayArn
- The Amazon Resource Name (ARN) of a gateway for which you set the
maintenance start time.
$sel:httpStatus:PutMaintenanceStartTimeResponse'
, putMaintenanceStartTimeResponse_httpStatus
- The response's http status code.
Response Lenses
putMaintenanceStartTimeResponse_gatewayArn :: Lens' PutMaintenanceStartTimeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of a gateway for which you set the maintenance start time.
putMaintenanceStartTimeResponse_httpStatus :: Lens' PutMaintenanceStartTimeResponse Int Source #
The response's http status code.