| 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 |
Amazonka.EC2.Types.Reservation
Description
Synopsis
- data Reservation = Reservation' {
- groups :: Maybe [GroupIdentifier]
- instances :: Maybe [Instance]
- requesterId :: Maybe Text
- reservationId :: Text
- ownerId :: Text
- newReservation :: Text -> Text -> Reservation
- reservation_groups :: Lens' Reservation (Maybe [GroupIdentifier])
- reservation_instances :: Lens' Reservation (Maybe [Instance])
- reservation_requesterId :: Lens' Reservation (Maybe Text)
- reservation_reservationId :: Lens' Reservation Text
- reservation_ownerId :: Lens' Reservation Text
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
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_instances :: Lens' Reservation (Maybe [Instance]) Source #
The instances.
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_reservationId :: Lens' Reservation Text Source #
The ID of the reservation.
reservation_ownerId :: Lens' Reservation Text Source #
The ID of the Amazon Web Services account that owns the reservation.