Struct aws_sdk_ec2::client::fluent_builders::ModifyInstancePlacement [−][src]
pub struct ModifyInstancePlacement<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ModifyInstancePlacement
.
Modifies the placement attributes for a specified instance. You can do the following:
-
Modify the affinity between an instance and a Dedicated Host. When affinity is set to
host
and the instance is not associated with a specific Dedicated Host, the next time the instance is launched, it is automatically associated with the host on which it lands. If the instance is restarted or rebooted, this relationship persists. -
Change the Dedicated Host with which an instance is associated.
-
Change the instance tenancy of an instance.
-
Move an instance to or from a placement group.
At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.
To modify the host ID, tenancy, placement group, or partition for an instance, the
instance must be in the stopped
state.
Implementations
impl<C, M, R> ModifyInstancePlacement<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ModifyInstancePlacement<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ModifyInstancePlacementOutput, SdkError<ModifyInstancePlacementError>> where
R::Policy: SmithyRetryPolicy<ModifyInstancePlacementInputOperationOutputAlias, ModifyInstancePlacementOutput, ModifyInstancePlacementError, ModifyInstancePlacementInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ModifyInstancePlacementOutput, SdkError<ModifyInstancePlacementError>> where
R::Policy: SmithyRetryPolicy<ModifyInstancePlacementInputOperationOutputAlias, ModifyInstancePlacementOutput, ModifyInstancePlacementError, ModifyInstancePlacementInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The affinity setting for the instance.
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 ("").
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 ("").
The ID of the Dedicated Host with which to associate the instance.
The ID of the Dedicated Host with which to associate the instance.
The ID of the instance that you are modifying.
The ID of the instance that you are modifying.
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.
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.
Reserved for future use.
Reserved for future use.
The ARN of the host resource group in which to place the instance.
The ARN of the host resource group in which to place the instance.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ModifyInstancePlacement<C, M, R>
impl<C, M, R> Send for ModifyInstancePlacement<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ModifyInstancePlacement<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ModifyInstancePlacement<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ModifyInstancePlacement<C, M, R>
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