amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.AssociateInstanceEventWindow

Description

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

Creating a Request

data AssociateInstanceEventWindow Source #

See: newAssociateInstanceEventWindow smart constructor.

Constructors

AssociateInstanceEventWindow' 

Fields

Instances

Instances details
ToHeaders AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

ToPath AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

ToQuery AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

AWSRequest AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Generic AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Associated Types

type Rep AssociateInstanceEventWindow :: Type -> Type #

Read AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Show AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

NFData AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Eq AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Hashable AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

type AWSResponse AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

type Rep AssociateInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

type Rep AssociateInstanceEventWindow = D1 ('MetaData "AssociateInstanceEventWindow" "Amazonka.EC2.AssociateInstanceEventWindow" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AssociateInstanceEventWindow'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceEventWindowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "associationTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InstanceEventWindowAssociationRequest))))

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.

Destructuring the Response

data AssociateInstanceEventWindowResponse Source #

Constructors

AssociateInstanceEventWindowResponse' 

Fields

Instances

Instances details
Generic AssociateInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Read AssociateInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Show AssociateInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

NFData AssociateInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

Eq AssociateInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateInstanceEventWindow

type Rep AssociateInstanceEventWindowResponse Source # 
Instance details

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