Struct aws_sdk_securityhub::model::AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
source · #[non_exhaustive]pub struct AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails { /* private fields */ }
Expand description
Specifies the Capacity Reservation targeting option of an Amazon EC2 instance.
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() -> Builder
pub fn builder() -> Builder
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails> for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
impl PartialEq<AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails> for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
source§fn eq(
&self,
other: &AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
) -> bool
fn eq(
&self,
other: &AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.