Struct aws_sdk_ec2::model::ScheduledInstanceAvailability
source · [−]#[non_exhaustive]pub struct ScheduledInstanceAvailability { /* private fields */ }
Expand description
Describes a schedule that is available for your Scheduled Instances.
We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Implementations
sourceimpl 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 (EC2-Classic
or EC2-VPC
).
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.
sourceimpl ScheduledInstanceAvailability
impl ScheduledInstanceAvailability
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ScheduledInstanceAvailability
.
Trait Implementations
sourceimpl Clone for ScheduledInstanceAvailability
impl Clone for ScheduledInstanceAvailability
sourcefn clone(&self) -> ScheduledInstanceAvailability
fn clone(&self) -> ScheduledInstanceAvailability
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more