1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartCapacityTask`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`outpost_identifier(impl Into<String>)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::outpost_identifier) / [`set_outpost_identifier(Option<String>)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::set_outpost_identifier):<br>required: **true**<br><p>The ID or ARN of the Outposts associated with the specified capacity task.</p><br>
    ///   - [`order_id(impl Into<String>)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::order_id) / [`set_order_id(Option<String>)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::set_order_id):<br>required: **true**<br><p>The ID of the Amazon Web Services Outposts order associated with the specified capacity task.</p><br>
    ///   - [`instance_pools(InstanceTypeCapacity)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::instance_pools) / [`set_instance_pools(Option<Vec::<InstanceTypeCapacity>>)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::set_instance_pools):<br>required: **true**<br><p>The instance pools specified in the capacity task.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::set_dry_run):<br>required: **false**<br><p>You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.</p><br>
    /// - On success, responds with [`StartCapacityTaskOutput`](crate::operation::start_capacity_task::StartCapacityTaskOutput) with field(s):
    ///   - [`capacity_task_id(Option<String>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::capacity_task_id): <p>ID of the capacity task that you want to start.</p>
    ///   - [`outpost_id(Option<String>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::outpost_id): <p>ID of the Outpost associated with the capacity task.</p>
    ///   - [`order_id(Option<String>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::order_id): <p>ID of the Amazon Web Services Outposts order of the host associated with the capacity task.</p>
    ///   - [`requested_instance_pools(Option<Vec::<InstanceTypeCapacity>>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::requested_instance_pools): <p>List of the instance pools requested in the specified capacity task.</p>
    ///   - [`dry_run(bool)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::dry_run): <p>Results of the dry run showing if the specified capacity task is above or below the available instance capacity.</p>
    ///   - [`capacity_task_status(Option<CapacityTaskStatus>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::capacity_task_status): <p>Status of the specified capacity task.</p>
    ///   - [`failed(Option<CapacityTaskFailure>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::failed): <p>Reason that the specified capacity task failed.</p>
    ///   - [`creation_date(Option<DateTime>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::creation_date): <p>Date that the specified capacity task was created.</p>
    ///   - [`completion_date(Option<DateTime>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::completion_date): <p>Date that the specified capacity task ran successfully.</p>
    ///   - [`last_modified_date(Option<DateTime>)`](crate::operation::start_capacity_task::StartCapacityTaskOutput::last_modified_date): <p>Date that the specified capacity task was last modified.</p>
    /// - On failure, responds with [`SdkError<StartCapacityTaskError>`](crate::operation::start_capacity_task::StartCapacityTaskError)
    pub fn start_capacity_task(&self) -> crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder {
        crate::operation::start_capacity_task::builders::StartCapacityTaskFluentBuilder::new(self.handle.clone())
    }
}