Struct aws_sdk_ec2::input::ModifyInstancePlacementInput
source · [−]#[non_exhaustive]pub struct ModifyInstancePlacementInput {
pub affinity: Option<Affinity>,
pub group_name: Option<String>,
pub host_id: Option<String>,
pub instance_id: Option<String>,
pub tenancy: Option<HostTenancy>,
pub partition_number: Option<i32>,
pub host_resource_group_arn: 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.affinity: Option<Affinity>
The affinity setting for the instance.
group_name: Option<String>
The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of default
. For cluster and partition placement groups, the instance must have a tenancy of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
host_id: Option<String>
The ID of the Dedicated Host with which to associate the instance.
instance_id: Option<String>
The ID of the instance that you are modifying.
tenancy: Option<HostTenancy>
The tenancy for the instance.
For T3 instances, you can't change the tenancy from dedicated
to host
, or from host
to dedicated
. Attempting to make one of these unsupported tenancy changes results in the InvalidTenancy
error code.
partition_number: Option<i32>
The number of the partition in which to place the instance. Valid only if the placement group strategy is set to partition
.
host_resource_group_arn: Option<String>
The ARN of the host resource group in which to place the instance.
Implementations
sourceimpl ModifyInstancePlacementInput
impl ModifyInstancePlacementInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyInstancePlacement, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyInstancePlacement, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyInstancePlacement
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyInstancePlacementInput
.
sourceimpl ModifyInstancePlacementInput
impl ModifyInstancePlacementInput
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of default
. For cluster and partition placement groups, the instance must have a tenancy of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
sourcepub fn host_id(&self) -> Option<&str>
pub fn host_id(&self) -> Option<&str>
The ID of the Dedicated Host with which to associate the instance.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance that you are modifying.
sourcepub fn tenancy(&self) -> Option<&HostTenancy>
pub fn tenancy(&self) -> Option<&HostTenancy>
The tenancy for the instance.
For T3 instances, you can't change the tenancy from dedicated
to host
, or from host
to dedicated
. Attempting to make one of these unsupported tenancy changes results in the InvalidTenancy
error code.
sourcepub fn partition_number(&self) -> Option<i32>
pub fn partition_number(&self) -> Option<i32>
The number of the partition in which to place the instance. Valid only if the placement group strategy is set to partition
.
sourcepub fn host_resource_group_arn(&self) -> Option<&str>
pub fn host_resource_group_arn(&self) -> Option<&str>
The ARN of the host resource group in which to place the instance.
Trait Implementations
sourceimpl Clone for ModifyInstancePlacementInput
impl Clone for ModifyInstancePlacementInput
sourcefn clone(&self) -> ModifyInstancePlacementInput
fn clone(&self) -> ModifyInstancePlacementInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModifyInstancePlacementInput
impl Debug for ModifyInstancePlacementInput
sourceimpl PartialEq<ModifyInstancePlacementInput> for ModifyInstancePlacementInput
impl PartialEq<ModifyInstancePlacementInput> for ModifyInstancePlacementInput
sourcefn eq(&self, other: &ModifyInstancePlacementInput) -> bool
fn eq(&self, other: &ModifyInstancePlacementInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModifyInstancePlacementInput) -> bool
fn ne(&self, other: &ModifyInstancePlacementInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ModifyInstancePlacementInput
Auto Trait Implementations
impl RefUnwindSafe for ModifyInstancePlacementInput
impl Send for ModifyInstancePlacementInput
impl Sync for ModifyInstancePlacementInput
impl Unpin for ModifyInstancePlacementInput
impl UnwindSafe for ModifyInstancePlacementInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more