Struct aws_sdk_securityhub::types::AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
source · #[non_exhaustive]pub struct AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails {
pub capacity_reservation_preference: Option<String>,
pub capacity_reservation_target: Option<AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>,
}Expand description
Specifies the Capacity Reservation targeting option of an Amazon EC2 instance.
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_reservation_preference: Option<String>Indicates the instance's Capacity Reservation preferences. If equal to open, the instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). If equal to none, the instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
capacity_reservation_target: Option<AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>Specifies a target Capacity Reservation.
Implementations§
source§impl AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
sourcepub fn capacity_reservation_preference(&self) -> Option<&str>
pub fn capacity_reservation_preference(&self) -> Option<&str>
Indicates the instance's Capacity Reservation preferences. If equal to open, the instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). If equal to none, the instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
sourcepub fn capacity_reservation_target(
&self
) -> Option<&AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>
pub fn capacity_reservation_target( &self ) -> Option<&AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>
Specifies a target Capacity Reservation.
source§impl AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
sourcepub fn builder(
) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
pub fn builder( ) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
Creates a new builder-style object to manufacture AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl Clone for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
source§fn clone(
&self
) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
fn clone( &self ) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl PartialEq for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
source§fn eq(
&self,
other: &AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
) -> bool
fn eq( &self, other: &AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails ) -> bool
self and other values to be equal, and is used
by ==.