Struct aws_sdk_ec2::input::ModifyHostsInput [−][src]
#[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>,
}
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.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyHosts, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyHosts, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyHosts
>
Creates a new builder-style object to manufacture ModifyHostsInput
Specify whether to enable or disable auto-placement.
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
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.
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ModifyHostsInput
impl Send for ModifyHostsInput
impl Sync for ModifyHostsInput
impl Unpin for ModifyHostsInput
impl UnwindSafe for ModifyHostsInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more