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_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<ModifyHostsInput> for ModifyHostsInput
impl PartialEq<ModifyHostsInput> 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 ==
.