#[non_exhaustive]pub struct ModifyCapacityReservationInput {
pub capacity_reservation_id: Option<String>,
pub instance_count: Option<i32>,
pub end_date: Option<DateTime>,
pub end_date_type: Option<EndDateType>,
pub accept: Option<bool>,
pub dry_run: Option<bool>,
pub additional_info: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.capacity_reservation_id: Option<String>
The ID of the Capacity Reservation.
instance_count: Option<i32>
The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by more than 1000
in a single request.
end_date: Option<DateTime>
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<EndDateType>
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 anEndDate
value ifEndDateType
isunlimited
. -
limited
- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDate
value ifEndDateType
islimited
.
accept: Option<bool>
Reserved. Capacity Reservations you have created are accepted by default.
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
.
additional_info: Option<String>
Reserved for future use.
Implementations§
source§impl ModifyCapacityReservationInput
impl ModifyCapacityReservationInput
sourcepub fn capacity_reservation_id(&self) -> Option<&str>
pub fn capacity_reservation_id(&self) -> Option<&str>
The ID of the Capacity Reservation.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by more than 1000
in a single request.
sourcepub fn end_date(&self) -> Option<&DateTime>
pub fn end_date(&self) -> Option<&DateTime>
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
.
sourcepub fn end_date_type(&self) -> Option<&EndDateType>
pub fn end_date_type(&self) -> Option<&EndDateType>
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 anEndDate
value ifEndDateType
isunlimited
. -
limited
- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDate
value ifEndDateType
islimited
.
sourcepub fn accept(&self) -> Option<bool>
pub fn accept(&self) -> Option<bool>
Reserved. Capacity Reservations you have created are accepted by default.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> 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
.
sourcepub fn additional_info(&self) -> Option<&str>
pub fn additional_info(&self) -> Option<&str>
Reserved for future use.
source§impl ModifyCapacityReservationInput
impl ModifyCapacityReservationInput
sourcepub fn builder() -> ModifyCapacityReservationInputBuilder
pub fn builder() -> ModifyCapacityReservationInputBuilder
Creates a new builder-style object to manufacture ModifyCapacityReservationInput
.
Trait Implementations§
source§impl Clone for ModifyCapacityReservationInput
impl Clone for ModifyCapacityReservationInput
source§fn clone(&self) -> ModifyCapacityReservationInput
fn clone(&self) -> ModifyCapacityReservationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<ModifyCapacityReservationInput> for ModifyCapacityReservationInput
impl PartialEq<ModifyCapacityReservationInput> for ModifyCapacityReservationInput
source§fn eq(&self, other: &ModifyCapacityReservationInput) -> bool
fn eq(&self, other: &ModifyCapacityReservationInput) -> bool
self
and other
values to be equal, and is used
by ==
.