#[non_exhaustive]pub struct GetCapacityTaskOutput {
pub capacity_task_id: Option<String>,
pub outpost_id: Option<String>,
pub order_id: Option<String>,
pub requested_instance_pools: Option<Vec<InstanceTypeCapacity>>,
pub dry_run: bool,
pub capacity_task_status: Option<CapacityTaskStatus>,
pub failed: Option<CapacityTaskFailure>,
pub creation_date: Option<DateTime>,
pub completion_date: Option<DateTime>,
pub last_modified_date: Option<DateTime>,
/* private fields */
}
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_task_id: Option<String>
ID of the capacity task.
outpost_id: Option<String>
ID of the Outpost associated with the specified capacity task.
order_id: Option<String>
ID of the Amazon Web Services Outposts order associated with the specified capacity task.
requested_instance_pools: Option<Vec<InstanceTypeCapacity>>
List of instance pools requested in the capacity task.
dry_run: bool
Performs a dry run to determine if you are above or below instance capacity.
capacity_task_status: Option<CapacityTaskStatus>
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.
failed: Option<CapacityTaskFailure>
Reason why the capacity task failed.
creation_date: Option<DateTime>
The date the capacity task was created.
completion_date: Option<DateTime>
The date the capacity task ran successfully.
last_modified_date: Option<DateTime>
The date the capacity task was last modified.
Implementations§
source§impl GetCapacityTaskOutput
impl GetCapacityTaskOutput
sourcepub fn capacity_task_id(&self) -> Option<&str>
pub fn capacity_task_id(&self) -> Option<&str>
ID of the capacity task.
sourcepub fn outpost_id(&self) -> Option<&str>
pub fn outpost_id(&self) -> Option<&str>
ID of the Outpost associated with the specified capacity task.
sourcepub fn order_id(&self) -> Option<&str>
pub fn order_id(&self) -> Option<&str>
ID of the Amazon Web Services Outposts order associated with the specified capacity task.
sourcepub fn requested_instance_pools(&self) -> &[InstanceTypeCapacity]
pub fn requested_instance_pools(&self) -> &[InstanceTypeCapacity]
List of instance pools requested in the capacity task.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .requested_instance_pools.is_none()
.
sourcepub fn dry_run(&self) -> bool
pub fn dry_run(&self) -> bool
Performs a dry run to determine if you are above or below instance capacity.
sourcepub fn capacity_task_status(&self) -> Option<&CapacityTaskStatus>
pub fn capacity_task_status(&self) -> Option<&CapacityTaskStatus>
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.
sourcepub fn failed(&self) -> Option<&CapacityTaskFailure>
pub fn failed(&self) -> Option<&CapacityTaskFailure>
Reason why the capacity task failed.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
The date the capacity task was created.
sourcepub fn completion_date(&self) -> Option<&DateTime>
pub fn completion_date(&self) -> Option<&DateTime>
The date the capacity task ran successfully.
sourcepub fn last_modified_date(&self) -> Option<&DateTime>
pub fn last_modified_date(&self) -> Option<&DateTime>
The date the capacity task was last modified.
source§impl GetCapacityTaskOutput
impl GetCapacityTaskOutput
sourcepub fn builder() -> GetCapacityTaskOutputBuilder
pub fn builder() -> GetCapacityTaskOutputBuilder
Creates a new builder-style object to manufacture GetCapacityTaskOutput
.
Trait Implementations§
source§impl Clone for GetCapacityTaskOutput
impl Clone for GetCapacityTaskOutput
source§fn clone(&self) -> GetCapacityTaskOutput
fn clone(&self) -> GetCapacityTaskOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetCapacityTaskOutput
impl Debug for GetCapacityTaskOutput
source§impl PartialEq for GetCapacityTaskOutput
impl PartialEq for GetCapacityTaskOutput
source§impl RequestId for GetCapacityTaskOutput
impl RequestId for GetCapacityTaskOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetCapacityTaskOutput
Auto Trait Implementations§
impl Freeze for GetCapacityTaskOutput
impl RefUnwindSafe for GetCapacityTaskOutput
impl Send for GetCapacityTaskOutput
impl Sync for GetCapacityTaskOutput
impl Unpin for GetCapacityTaskOutput
impl UnwindSafe for GetCapacityTaskOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more