aws_sdk_ec2/client/
request_spot_fleet.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`RequestSpotFleet`](crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
7    ///   - [`spot_fleet_request_config(SpotFleetRequestConfigData)`](crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder::spot_fleet_request_config) / [`set_spot_fleet_request_config(Option<SpotFleetRequestConfigData>)`](crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder::set_spot_fleet_request_config):<br>required: **true**<br><p>The configuration for the Spot Fleet request.</p><br>
8    /// - On success, responds with [`RequestSpotFleetOutput`](crate::operation::request_spot_fleet::RequestSpotFleetOutput) with field(s):
9    ///   - [`spot_fleet_request_id(Option<String>)`](crate::operation::request_spot_fleet::RequestSpotFleetOutput::spot_fleet_request_id): <p>The ID of the Spot Fleet request.</p>
10    /// - On failure, responds with [`SdkError<RequestSpotFleetError>`](crate::operation::request_spot_fleet::RequestSpotFleetError)
11    pub fn request_spot_fleet(&self) -> crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder {
12        crate::operation::request_spot_fleet::builders::RequestSpotFleetFluentBuilder::new(self.handle.clone())
13    }
14}