pub struct ModifyCapacityReservationRequest {
pub capacity_reservation_id: String,
pub dry_run: Option<bool>,
pub end_date: Option<String>,
pub end_date_type: Option<String>,
pub instance_count: Option<i64>,
}Fields§
§capacity_reservation_id: StringThe ID of the Capacity Reservation.
dry_run: Option<bool>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.
end_date: Option<String>The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.
end_date_type: Option<String>Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
-
unlimited- The Capacity Reservation remains active until you explicitly cancel it. Do not provide anEndDatevalue ifEndDateTypeisunlimited. -
limited- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDatevalue ifEndDateTypeislimited.
instance_count: Option<i64>The number of instances for which to reserve capacity.
Trait Implementations§
Source§impl Clone for ModifyCapacityReservationRequest
impl Clone for ModifyCapacityReservationRequest
Source§fn clone(&self) -> ModifyCapacityReservationRequest
fn clone(&self) -> ModifyCapacityReservationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ModifyCapacityReservationRequest
impl Default for ModifyCapacityReservationRequest
Source§fn default() -> ModifyCapacityReservationRequest
fn default() -> ModifyCapacityReservationRequest
Source§impl PartialEq for ModifyCapacityReservationRequest
impl PartialEq for ModifyCapacityReservationRequest
Source§fn eq(&self, other: &ModifyCapacityReservationRequest) -> bool
fn eq(&self, other: &ModifyCapacityReservationRequest) -> bool
self and other values to be equal, and is used by ==.