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.Types.Reservation

Description

 
Synopsis

Documentation

data Reservation Source #

Describes a launch request for one or more instances, and includes owner, requester, and security group information that applies to all instances in the launch request.

See: newReservation smart constructor.

Constructors

Reservation' 

Fields

Instances

Instances details
FromXML Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

Generic Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

Associated Types

type Rep Reservation :: Type -> Type #

Read Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

Show Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

NFData Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

Methods

rnf :: Reservation -> () #

Eq Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

Hashable Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

type Rep Reservation Source # 
Instance details

Defined in Amazonka.EC2.Types.Reservation

type Rep Reservation = D1 ('MetaData "Reservation" "Amazonka.EC2.Types.Reservation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "Reservation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GroupIdentifier])) :*: S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Instance]))) :*: (S1 ('MetaSel ('Just "requesterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "reservationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ownerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newReservation Source #

Create a value of Reservation 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:groups:Reservation', reservation_groups - [EC2-Classic only] The security groups.

$sel:instances:Reservation', reservation_instances - The instances.

$sel:requesterId:Reservation', reservation_requesterId - The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).

$sel:reservationId:Reservation', reservation_reservationId - The ID of the reservation.

$sel:ownerId:Reservation', reservation_ownerId - The ID of the Amazon Web Services account that owns the reservation.

reservation_groups :: Lens' Reservation (Maybe [GroupIdentifier]) Source #

EC2-Classic only
The security groups.

reservation_requesterId :: Lens' Reservation (Maybe Text) Source #

The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).

reservation_ownerId :: Lens' Reservation Text Source #

The ID of the Amazon Web Services account that owns the reservation.