Struct aws_sdk_ec2::types::ScheduledInstanceAvailability
source · #[non_exhaustive]pub struct ScheduledInstanceAvailability {Show 13 fields
pub availability_zone: Option<String>,
pub available_instance_count: Option<i32>,
pub first_slot_start_time: Option<DateTime>,
pub hourly_price: Option<String>,
pub instance_type: Option<String>,
pub max_term_duration_in_days: Option<i32>,
pub min_term_duration_in_days: Option<i32>,
pub network_platform: Option<String>,
pub platform: Option<String>,
pub purchase_token: Option<String>,
pub recurrence: Option<ScheduledInstanceRecurrence>,
pub slot_duration_in_hours: Option<i32>,
pub total_scheduled_instance_hours: Option<i32>,
}
Expand description
Describes a schedule that is available for your Scheduled Instances.
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.availability_zone: Option<String>
The Availability Zone.
available_instance_count: Option<i32>
The number of available instances.
first_slot_start_time: Option<DateTime>
The time period for the first schedule to start.
hourly_price: Option<String>
The hourly price for a single instance.
instance_type: Option<String>
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
max_term_duration_in_days: Option<i32>
The maximum term. The only possible value is 365 days.
min_term_duration_in_days: Option<i32>
The minimum term. The only possible value is 365 days.
network_platform: Option<String>
The network platform.
platform: Option<String>
The platform (Linux/UNIX
or Windows
).
purchase_token: Option<String>
The purchase token. This token expires in two hours.
recurrence: Option<ScheduledInstanceRecurrence>
The schedule recurrence.
slot_duration_in_hours: Option<i32>
The number of hours in the schedule.
total_scheduled_instance_hours: Option<i32>
The total number of hours for a single instance for the entire term.
Implementations§
source§impl ScheduledInstanceAvailability
impl ScheduledInstanceAvailability
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone.
sourcepub fn available_instance_count(&self) -> Option<i32>
pub fn available_instance_count(&self) -> Option<i32>
The number of available instances.
sourcepub fn first_slot_start_time(&self) -> Option<&DateTime>
pub fn first_slot_start_time(&self) -> Option<&DateTime>
The time period for the first schedule to start.
sourcepub fn hourly_price(&self) -> Option<&str>
pub fn hourly_price(&self) -> Option<&str>
The hourly price for a single instance.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
sourcepub fn max_term_duration_in_days(&self) -> Option<i32>
pub fn max_term_duration_in_days(&self) -> Option<i32>
The maximum term. The only possible value is 365 days.
sourcepub fn min_term_duration_in_days(&self) -> Option<i32>
pub fn min_term_duration_in_days(&self) -> Option<i32>
The minimum term. The only possible value is 365 days.
sourcepub fn network_platform(&self) -> Option<&str>
pub fn network_platform(&self) -> Option<&str>
The network platform.
sourcepub fn purchase_token(&self) -> Option<&str>
pub fn purchase_token(&self) -> Option<&str>
The purchase token. This token expires in two hours.
sourcepub fn recurrence(&self) -> Option<&ScheduledInstanceRecurrence>
pub fn recurrence(&self) -> Option<&ScheduledInstanceRecurrence>
The schedule recurrence.
sourcepub fn slot_duration_in_hours(&self) -> Option<i32>
pub fn slot_duration_in_hours(&self) -> Option<i32>
The number of hours in the schedule.
sourcepub fn total_scheduled_instance_hours(&self) -> Option<i32>
pub fn total_scheduled_instance_hours(&self) -> Option<i32>
The total number of hours for a single instance for the entire term.
source§impl ScheduledInstanceAvailability
impl ScheduledInstanceAvailability
sourcepub fn builder() -> ScheduledInstanceAvailabilityBuilder
pub fn builder() -> ScheduledInstanceAvailabilityBuilder
Creates a new builder-style object to manufacture ScheduledInstanceAvailability
.
Trait Implementations§
source§impl Clone for ScheduledInstanceAvailability
impl Clone for ScheduledInstanceAvailability
source§fn clone(&self) -> ScheduledInstanceAvailability
fn clone(&self) -> ScheduledInstanceAvailability
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ScheduledInstanceAvailability
impl PartialEq for ScheduledInstanceAvailability
source§fn eq(&self, other: &ScheduledInstanceAvailability) -> bool
fn eq(&self, other: &ScheduledInstanceAvailability) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScheduledInstanceAvailability
Auto Trait Implementations§
impl Freeze for ScheduledInstanceAvailability
impl RefUnwindSafe for ScheduledInstanceAvailability
impl Send for ScheduledInstanceAvailability
impl Sync for ScheduledInstanceAvailability
impl Unpin for ScheduledInstanceAvailability
impl UnwindSafe for ScheduledInstanceAvailability
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> 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