Struct aws_sdk_ec2::input::ModifyCapacityReservationInput
source · [−]#[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
sourceimpl ModifyCapacityReservationInput
impl ModifyCapacityReservationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyCapacityReservation, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyCapacityReservation, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyCapacityReservation
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyCapacityReservationInput
.
sourceimpl 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.
Trait Implementations
sourceimpl Clone for ModifyCapacityReservationInput
impl Clone for ModifyCapacityReservationInput
sourcefn clone(&self) -> ModifyCapacityReservationInput
fn clone(&self) -> ModifyCapacityReservationInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<ModifyCapacityReservationInput> for ModifyCapacityReservationInput
impl PartialEq<ModifyCapacityReservationInput> for ModifyCapacityReservationInput
sourcefn eq(&self, other: &ModifyCapacityReservationInput) -> bool
fn eq(&self, other: &ModifyCapacityReservationInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModifyCapacityReservationInput) -> bool
fn ne(&self, other: &ModifyCapacityReservationInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ModifyCapacityReservationInput
Auto Trait Implementations
impl RefUnwindSafe for ModifyCapacityReservationInput
impl Send for ModifyCapacityReservationInput
impl Sync for ModifyCapacityReservationInput
impl Unpin for ModifyCapacityReservationInput
impl UnwindSafe for ModifyCapacityReservationInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more