1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::create_capacity_reservation::_create_capacity_reservation_output::CreateCapacityReservationOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::create_capacity_reservation::_create_capacity_reservation_input::CreateCapacityReservationInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::create_capacity_reservation::_create_capacity_reservation_output::CreateCapacityReservationOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::create_capacity_reservation::builders::CreateCapacityReservationInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::create_capacity_reservation::CreateCapacityReservationOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::create_capacity_reservation::CreateCapacityReservationError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.create_capacity_reservation();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `CreateCapacityReservation`.
|
24 24 | ///
|
25 25 | /// <p>Creates a new Capacity Reservation with the specified attributes. Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration.</p>
|
26 26 | /// <p>You can create a Capacity Reservation at any time, and you can choose when it starts. You can create a Capacity Reservation for immediate use or you can request a Capacity Reservation for a future date.</p>
|
27 27 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html"> Reserve compute capacity with On-Demand Capacity Reservations</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
28 28 | /// <p>Your request to create a Capacity Reservation could fail if:</p>
|
29 29 | /// <ul>
|
30 30 | /// <li>
|
31 31 | /// <p>Amazon EC2 does not have sufficient capacity. In this case, try again at a later time, try in a different Availability Zone, or request a smaller Capacity Reservation. If your workload is flexible across instance types and sizes, try with different instance attributes.</p></li>
|
32 32 | /// <li>
|
33 33 | /// <p>The requested quantity exceeds your On-Demand Instance quota. In this case, increase your On-Demand Instance quota for the requested instance type and try again. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html"> Amazon EC2 Service Quotas</a> in the <i>Amazon EC2 User Guide</i>.</p></li>
|
34 34 | /// </ul>
|
35 35 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|