Struct aws_sdk_ec2::operation::modify_hosts::ModifyHostsInput
source · #[non_exhaustive]pub struct ModifyHostsInput {
pub auto_placement: Option<AutoPlacement>,
pub host_ids: Option<Vec<String>>,
pub host_recovery: Option<HostRecovery>,
pub instance_type: Option<String>,
pub instance_family: Option<String>,
pub host_maintenance: Option<HostMaintenance>,
}
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.auto_placement: Option<AutoPlacement>
Specify whether to enable or disable auto-placement.
host_ids: Option<Vec<String>>
The IDs of the Dedicated Hosts to modify.
host_recovery: Option<HostRecovery>
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
instance_type: Option<String>
Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
instance_family: Option<String>
Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
host_maintenance: Option<HostMaintenance>
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
Implementations§
source§impl ModifyHostsInput
impl ModifyHostsInput
sourcepub fn auto_placement(&self) -> Option<&AutoPlacement>
pub fn auto_placement(&self) -> Option<&AutoPlacement>
Specify whether to enable or disable auto-placement.
sourcepub fn host_ids(&self) -> &[String]
pub fn host_ids(&self) -> &[String]
The IDs of the Dedicated Hosts to modify.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .host_ids.is_none()
.
sourcepub fn host_recovery(&self) -> Option<&HostRecovery>
pub fn host_recovery(&self) -> Option<&HostRecovery>
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.
If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
sourcepub fn instance_family(&self) -> Option<&str>
pub fn instance_family(&self) -> Option<&str>
Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.
If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
sourcepub fn host_maintenance(&self) -> Option<&HostMaintenance>
pub fn host_maintenance(&self) -> Option<&HostMaintenance>
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
source§impl ModifyHostsInput
impl ModifyHostsInput
sourcepub fn builder() -> ModifyHostsInputBuilder
pub fn builder() -> ModifyHostsInputBuilder
Creates a new builder-style object to manufacture ModifyHostsInput
.
Trait Implementations§
source§impl Clone for ModifyHostsInput
impl Clone for ModifyHostsInput
source§fn clone(&self) -> ModifyHostsInput
fn clone(&self) -> ModifyHostsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyHostsInput
impl Debug for ModifyHostsInput
source§impl PartialEq for ModifyHostsInput
impl PartialEq for ModifyHostsInput
source§fn eq(&self, other: &ModifyHostsInput) -> bool
fn eq(&self, other: &ModifyHostsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModifyHostsInput
Auto Trait Implementations§
impl Freeze for ModifyHostsInput
impl RefUnwindSafe for ModifyHostsInput
impl Send for ModifyHostsInput
impl Sync for ModifyHostsInput
impl Unpin for ModifyHostsInput
impl UnwindSafe for ModifyHostsInput
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