aws_sdk_outposts/client/get_capacity_task.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetCapacityTask`](crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`capacity_task_id(impl Into<String>)`](crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder::capacity_task_id) / [`set_capacity_task_id(Option<String>)`](crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder::set_capacity_task_id):<br>required: **true**<br><p>ID of the capacity task.</p><br>
/// - [`outpost_identifier(impl Into<String>)`](crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder::outpost_identifier) / [`set_outpost_identifier(Option<String>)`](crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder::set_outpost_identifier):<br>required: **true**<br><p>ID or ARN of the Outpost associated with the specified capacity task.</p><br>
/// - On success, responds with [`GetCapacityTaskOutput`](crate::operation::get_capacity_task::GetCapacityTaskOutput) with field(s):
/// - [`capacity_task_id(Option<String>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::capacity_task_id): <p>ID of the capacity task.</p>
/// - [`outpost_id(Option<String>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::outpost_id): <p>ID of the Outpost associated with the specified capacity task.</p>
/// - [`order_id(Option<String>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::order_id): <p>ID of the Amazon Web Services Outposts order associated with the specified capacity task.</p>
/// - [`requested_instance_pools(Option<Vec::<InstanceTypeCapacity>>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::requested_instance_pools): <p>List of instance pools requested in the capacity task.</p>
/// - [`dry_run(bool)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::dry_run): <p>Performs a dry run to determine if you are above or below instance capacity.</p>
/// - [`capacity_task_status(Option<CapacityTaskStatus>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::capacity_task_status): <p>Status of the capacity task.</p> <p>A capacity task can have one of the following statuses:</p> <ul> <li> <p><code>REQUESTED</code> - The capacity task was created and is awaiting the next step by Amazon Web Services Outposts.</p></li> <li> <p><code>IN_PROGRESS</code> - The capacity task is running and cannot be cancelled.</p></li> <li> <p><code>WAITING_FOR_EVACUATION</code> - The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.</p></li> </ul>
/// - [`failed(Option<CapacityTaskFailure>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::failed): <p>Reason why the capacity task failed.</p>
/// - [`creation_date(Option<DateTime>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::creation_date): <p>The date the capacity task was created.</p>
/// - [`completion_date(Option<DateTime>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::completion_date): <p>The date the capacity task ran successfully.</p>
/// - [`last_modified_date(Option<DateTime>)`](crate::operation::get_capacity_task::GetCapacityTaskOutput::last_modified_date): <p>The date the capacity task was last modified.</p>
/// - On failure, responds with [`SdkError<GetCapacityTaskError>`](crate::operation::get_capacity_task::GetCapacityTaskError)
pub fn get_capacity_task(&self) -> crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder {
crate::operation::get_capacity_task::builders::GetCapacityTaskFluentBuilder::new(self.handle.clone())
}
}