Struct aws_sdk_ec2::input::ModifyCapacityReservationInput [−][src]
#[non_exhaustive]pub struct ModifyCapacityReservationInput {
pub capacity_reservation_id: Option<String>,
pub instance_count: Option<i32>,
pub end_date: Option<Instant>,
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<Instant>
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
pub 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
>
Creates a new builder-style object to manufacture ModifyCapacityReservationInput
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for ModifyCapacityReservationInput
impl Sync for ModifyCapacityReservationInput
impl Unpin for ModifyCapacityReservationInput
impl UnwindSafe for ModifyCapacityReservationInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more