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 |
Deletes the specified event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
Synopsis
- data DeleteInstanceEventWindow = DeleteInstanceEventWindow' {}
- newDeleteInstanceEventWindow :: Text -> DeleteInstanceEventWindow
- deleteInstanceEventWindow_dryRun :: Lens' DeleteInstanceEventWindow (Maybe Bool)
- deleteInstanceEventWindow_forceDelete :: Lens' DeleteInstanceEventWindow (Maybe Bool)
- deleteInstanceEventWindow_instanceEventWindowId :: Lens' DeleteInstanceEventWindow Text
- data DeleteInstanceEventWindowResponse = DeleteInstanceEventWindowResponse' {}
- newDeleteInstanceEventWindowResponse :: Int -> DeleteInstanceEventWindowResponse
- deleteInstanceEventWindowResponse_instanceEventWindowState :: Lens' DeleteInstanceEventWindowResponse (Maybe InstanceEventWindowStateChange)
- deleteInstanceEventWindowResponse_httpStatus :: Lens' DeleteInstanceEventWindowResponse Int
Creating a Request
data DeleteInstanceEventWindow Source #
See: newDeleteInstanceEventWindow
smart constructor.
DeleteInstanceEventWindow' | |
|
Instances
newDeleteInstanceEventWindow Source #
Create a value of DeleteInstanceEventWindow
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:dryRun:DeleteInstanceEventWindow'
, deleteInstanceEventWindow_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
.
$sel:forceDelete:DeleteInstanceEventWindow'
, deleteInstanceEventWindow_forceDelete
- Specify true
to force delete the event window. Use the force delete
parameter if the event window is currently associated with targets.
DeleteInstanceEventWindow
, deleteInstanceEventWindow_instanceEventWindowId
- The ID of the event window.
Request Lenses
deleteInstanceEventWindow_dryRun :: Lens' DeleteInstanceEventWindow (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
.
deleteInstanceEventWindow_forceDelete :: Lens' DeleteInstanceEventWindow (Maybe Bool) Source #
Specify true
to force delete the event window. Use the force delete
parameter if the event window is currently associated with targets.
deleteInstanceEventWindow_instanceEventWindowId :: Lens' DeleteInstanceEventWindow Text Source #
The ID of the event window.
Destructuring the Response
data DeleteInstanceEventWindowResponse Source #
See: newDeleteInstanceEventWindowResponse
smart constructor.
DeleteInstanceEventWindowResponse' | |
|
Instances
newDeleteInstanceEventWindowResponse Source #
Create a value of DeleteInstanceEventWindowResponse
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:instanceEventWindowState:DeleteInstanceEventWindowResponse'
, deleteInstanceEventWindowResponse_instanceEventWindowState
- The state of the event window.
$sel:httpStatus:DeleteInstanceEventWindowResponse'
, deleteInstanceEventWindowResponse_httpStatus
- The response's http status code.
Response Lenses
deleteInstanceEventWindowResponse_instanceEventWindowState :: Lens' DeleteInstanceEventWindowResponse (Maybe InstanceEventWindowStateChange) Source #
The state of the event window.
deleteInstanceEventWindowResponse_httpStatus :: Lens' DeleteInstanceEventWindowResponse Int Source #
The response's http status code.