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 ==
.impl StructuralPartialEq for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
Auto Trait Implementations§
impl Freeze for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl RefUnwindSafe for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl Send for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl Sync for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl Unpin for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl UnwindSafe for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
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