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 |
Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
Synopsis
- data AssociateInstanceEventWindow = AssociateInstanceEventWindow' {}
- newAssociateInstanceEventWindow :: Text -> InstanceEventWindowAssociationRequest -> AssociateInstanceEventWindow
- associateInstanceEventWindow_dryRun :: Lens' AssociateInstanceEventWindow (Maybe Bool)
- associateInstanceEventWindow_instanceEventWindowId :: Lens' AssociateInstanceEventWindow Text
- associateInstanceEventWindow_associationTarget :: Lens' AssociateInstanceEventWindow InstanceEventWindowAssociationRequest
- data AssociateInstanceEventWindowResponse = AssociateInstanceEventWindowResponse' {}
- newAssociateInstanceEventWindowResponse :: Int -> AssociateInstanceEventWindowResponse
- associateInstanceEventWindowResponse_instanceEventWindow :: Lens' AssociateInstanceEventWindowResponse (Maybe InstanceEventWindow)
- associateInstanceEventWindowResponse_httpStatus :: Lens' AssociateInstanceEventWindowResponse Int
Creating a Request
data AssociateInstanceEventWindow Source #
See: newAssociateInstanceEventWindow
smart constructor.
AssociateInstanceEventWindow' | |
|
Instances
newAssociateInstanceEventWindow Source #
Create a value of AssociateInstanceEventWindow
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:AssociateInstanceEventWindow'
, associateInstanceEventWindow_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
.
AssociateInstanceEventWindow
, associateInstanceEventWindow_instanceEventWindowId
- The ID of the event window.
AssociateInstanceEventWindow
, associateInstanceEventWindow_associationTarget
- One or more targets associated with the specified event window.
Request Lenses
associateInstanceEventWindow_dryRun :: Lens' AssociateInstanceEventWindow (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
.
associateInstanceEventWindow_instanceEventWindowId :: Lens' AssociateInstanceEventWindow Text Source #
The ID of the event window.
associateInstanceEventWindow_associationTarget :: Lens' AssociateInstanceEventWindow InstanceEventWindowAssociationRequest Source #
One or more targets associated with the specified event window.
Destructuring the Response
data AssociateInstanceEventWindowResponse Source #
See: newAssociateInstanceEventWindowResponse
smart constructor.
AssociateInstanceEventWindowResponse' | |
|
Instances
Generic AssociateInstanceEventWindowResponse Source # | |
Read AssociateInstanceEventWindowResponse Source # | |
Show AssociateInstanceEventWindowResponse Source # | |
NFData AssociateInstanceEventWindowResponse Source # | |
Defined in Amazonka.EC2.AssociateInstanceEventWindow rnf :: AssociateInstanceEventWindowResponse -> () # | |
Eq AssociateInstanceEventWindowResponse Source # | |
type Rep AssociateInstanceEventWindowResponse Source # | |
Defined in Amazonka.EC2.AssociateInstanceEventWindow type Rep AssociateInstanceEventWindowResponse = D1 ('MetaData "AssociateInstanceEventWindowResponse" "Amazonka.EC2.AssociateInstanceEventWindow" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AssociateInstanceEventWindowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceEventWindow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceEventWindow)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateInstanceEventWindowResponse Source #
Create a value of AssociateInstanceEventWindowResponse
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:AssociateInstanceEventWindowResponse'
, associateInstanceEventWindowResponse_instanceEventWindow
- Information about the event window.
$sel:httpStatus:AssociateInstanceEventWindowResponse'
, associateInstanceEventWindowResponse_httpStatus
- The response's http status code.
Response Lenses
associateInstanceEventWindowResponse_instanceEventWindow :: Lens' AssociateInstanceEventWindowResponse (Maybe InstanceEventWindow) Source #
Information about the event window.
associateInstanceEventWindowResponse_httpStatus :: Lens' AssociateInstanceEventWindowResponse Int Source #
The response's http status code.