Struct aws_sdk_athena::types::CapacityReservation
source · #[non_exhaustive]pub struct CapacityReservation {
pub name: Option<String>,
pub status: Option<CapacityReservationStatus>,
pub target_dpus: Option<i32>,
pub allocated_dpus: Option<i32>,
pub last_allocation: Option<CapacityAllocation>,
pub last_successful_allocation_time: Option<DateTime>,
pub creation_time: Option<DateTime>,
}Expand description
A reservation for a specified number of data processing units (DPUs). When a reservation is initially created, it has no DPUs. Athena allocates DPUs until the allocated amount equals the requested amount.
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.name: Option<String>The name of the capacity reservation.
status: Option<CapacityReservationStatus>The status of the capacity reservation.
target_dpus: Option<i32>The number of data processing units requested.
allocated_dpus: Option<i32>The number of data processing units currently allocated.
last_allocation: Option<CapacityAllocation>Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation.
last_successful_allocation_time: Option<DateTime>The time of the most recent capacity allocation that succeeded.
creation_time: Option<DateTime>The time in UTC epoch millis when the capacity reservation was created.
Implementations§
source§impl CapacityReservation
impl CapacityReservation
sourcepub fn status(&self) -> Option<&CapacityReservationStatus>
pub fn status(&self) -> Option<&CapacityReservationStatus>
The status of the capacity reservation.
sourcepub fn target_dpus(&self) -> Option<i32>
pub fn target_dpus(&self) -> Option<i32>
The number of data processing units requested.
sourcepub fn allocated_dpus(&self) -> Option<i32>
pub fn allocated_dpus(&self) -> Option<i32>
The number of data processing units currently allocated.
sourcepub fn last_allocation(&self) -> Option<&CapacityAllocation>
pub fn last_allocation(&self) -> Option<&CapacityAllocation>
Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation.
sourcepub fn last_successful_allocation_time(&self) -> Option<&DateTime>
pub fn last_successful_allocation_time(&self) -> Option<&DateTime>
The time of the most recent capacity allocation that succeeded.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time in UTC epoch millis when the capacity reservation was created.
source§impl CapacityReservation
impl CapacityReservation
sourcepub fn builder() -> CapacityReservationBuilder
pub fn builder() -> CapacityReservationBuilder
Creates a new builder-style object to manufacture CapacityReservation.
Trait Implementations§
source§impl Clone for CapacityReservation
impl Clone for CapacityReservation
source§fn clone(&self) -> CapacityReservation
fn clone(&self) -> CapacityReservation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CapacityReservation
impl Debug for CapacityReservation
source§impl PartialEq<CapacityReservation> for CapacityReservation
impl PartialEq<CapacityReservation> for CapacityReservation
source§fn eq(&self, other: &CapacityReservation) -> bool
fn eq(&self, other: &CapacityReservation) -> bool
self and other values to be equal, and is used
by ==.