Struct aws_sdk_ec2::input::ModifyCapacityReservationFleetInput [−][src]
#[non_exhaustive]pub struct ModifyCapacityReservationFleetInput {
pub capacity_reservation_fleet_id: Option<String>,
pub total_target_capacity: Option<i32>,
pub end_date: Option<Instant>,
pub dry_run: Option<bool>,
pub remove_end_date: Option<bool>,
}
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_fleet_id: Option<String>
The ID of the Capacity Reservation Fleet to modify.
total_target_capacity: Option<i32>
The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
end_date: Option<Instant>
The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation
Fleet expires, its state changes to expired
and all of the Capacity Reservations in the
Fleet expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed
to expire between 13:30:55
and 14:30:55
on 5/31/2019
.
You can't specify EndDate and RemoveEndDate in the same request.
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
.
remove_end_date: Option<bool>
Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyCapacityReservationFleet, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyCapacityReservationFleet, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyCapacityReservationFleet
>
Creates a new builder-style object to manufacture ModifyCapacityReservationFleetInput
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 ModifyCapacityReservationFleetInput
impl Sync for ModifyCapacityReservationFleetInput
impl Unpin for ModifyCapacityReservationFleetInput
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