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 |
Modifies the specified event window.
You can define either a set of time ranges or a cron expression when modifying the event window, but not both.
To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.
If Amazon Web Services has already scheduled an event, modifying an event window won't change the time of the scheduled event.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
Synopsis
- data ModifyInstanceEventWindow = ModifyInstanceEventWindow' {}
- newModifyInstanceEventWindow :: Text -> ModifyInstanceEventWindow
- modifyInstanceEventWindow_cronExpression :: Lens' ModifyInstanceEventWindow (Maybe Text)
- modifyInstanceEventWindow_dryRun :: Lens' ModifyInstanceEventWindow (Maybe Bool)
- modifyInstanceEventWindow_name :: Lens' ModifyInstanceEventWindow (Maybe Text)
- modifyInstanceEventWindow_timeRanges :: Lens' ModifyInstanceEventWindow (Maybe [InstanceEventWindowTimeRangeRequest])
- modifyInstanceEventWindow_instanceEventWindowId :: Lens' ModifyInstanceEventWindow Text
- data ModifyInstanceEventWindowResponse = ModifyInstanceEventWindowResponse' {}
- newModifyInstanceEventWindowResponse :: Int -> ModifyInstanceEventWindowResponse
- modifyInstanceEventWindowResponse_instanceEventWindow :: Lens' ModifyInstanceEventWindowResponse (Maybe InstanceEventWindow)
- modifyInstanceEventWindowResponse_httpStatus :: Lens' ModifyInstanceEventWindowResponse Int
Creating a Request
data ModifyInstanceEventWindow Source #
See: newModifyInstanceEventWindow
smart constructor.
ModifyInstanceEventWindow' | |
|
Instances
newModifyInstanceEventWindow Source #
Create a value of ModifyInstanceEventWindow
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:
ModifyInstanceEventWindow
, modifyInstanceEventWindow_cronExpression
- The cron expression of the event window, for example,
* 0-4,20-23 * * 1,5
.
Constraints:
- Only hour and day of the week values are supported.
- For day of the week values, you can specify either integers
0
through6
, or alternative single valuesSUN
throughSAT
. - The minute, month, and year must be specified by
*
. - The hour value must be one or a multiple range, for example,
0-4
or0-4,20-23
. - Each hour range must be >= 2 hours, for example,
0-2
or20-23
. - The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
$sel:dryRun:ModifyInstanceEventWindow'
, modifyInstanceEventWindow_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
ModifyInstanceEventWindow
, modifyInstanceEventWindow_name
- The name of the event window.
ModifyInstanceEventWindow
, modifyInstanceEventWindow_timeRanges
- The time ranges of the event window.
ModifyInstanceEventWindow
, modifyInstanceEventWindow_instanceEventWindowId
- The ID of the event window.
Request Lenses
modifyInstanceEventWindow_cronExpression :: Lens' ModifyInstanceEventWindow (Maybe Text) Source #
The cron expression of the event window, for example,
* 0-4,20-23 * * 1,5
.
Constraints:
- Only hour and day of the week values are supported.
- For day of the week values, you can specify either integers
0
through6
, or alternative single valuesSUN
throughSAT
. - The minute, month, and year must be specified by
*
. - The hour value must be one or a multiple range, for example,
0-4
or0-4,20-23
. - Each hour range must be >= 2 hours, for example,
0-2
or20-23
. - The event window must be >= 4 hours. The combined total time ranges in the event window must be >= 4 hours.
For more information about cron expressions, see cron on the Wikipedia website.
modifyInstanceEventWindow_dryRun :: Lens' ModifyInstanceEventWindow (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
modifyInstanceEventWindow_name :: Lens' ModifyInstanceEventWindow (Maybe Text) Source #
The name of the event window.
modifyInstanceEventWindow_timeRanges :: Lens' ModifyInstanceEventWindow (Maybe [InstanceEventWindowTimeRangeRequest]) Source #
The time ranges of the event window.
modifyInstanceEventWindow_instanceEventWindowId :: Lens' ModifyInstanceEventWindow Text Source #
The ID of the event window.
Destructuring the Response
data ModifyInstanceEventWindowResponse Source #
See: newModifyInstanceEventWindowResponse
smart constructor.
ModifyInstanceEventWindowResponse' | |
|
Instances
Generic ModifyInstanceEventWindowResponse Source # | |
Read ModifyInstanceEventWindowResponse Source # | |
Show ModifyInstanceEventWindowResponse Source # | |
Defined in Amazonka.EC2.ModifyInstanceEventWindow | |
NFData ModifyInstanceEventWindowResponse Source # | |
Defined in Amazonka.EC2.ModifyInstanceEventWindow rnf :: ModifyInstanceEventWindowResponse -> () # | |
Eq ModifyInstanceEventWindowResponse Source # | |
type Rep ModifyInstanceEventWindowResponse Source # | |
Defined in Amazonka.EC2.ModifyInstanceEventWindow type Rep ModifyInstanceEventWindowResponse = D1 ('MetaData "ModifyInstanceEventWindowResponse" "Amazonka.EC2.ModifyInstanceEventWindow" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyInstanceEventWindowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceEventWindow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceEventWindow)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyInstanceEventWindowResponse Source #
Create a value of ModifyInstanceEventWindowResponse
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:instanceEventWindow:ModifyInstanceEventWindowResponse'
, modifyInstanceEventWindowResponse_instanceEventWindow
- Information about the event window.
$sel:httpStatus:ModifyInstanceEventWindowResponse'
, modifyInstanceEventWindowResponse_httpStatus
- The response's http status code.
Response Lenses
modifyInstanceEventWindowResponse_instanceEventWindow :: Lens' ModifyInstanceEventWindowResponse (Maybe InstanceEventWindow) Source #
Information about the event window.
modifyInstanceEventWindowResponse_httpStatus :: Lens' ModifyInstanceEventWindowResponse Int Source #
The response's http status code.