Struct aws_sdk_opsworks::client::fluent_builders::AssignInstance [−][src]
pub struct AssignInstance<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to AssignInstance
.
Assign a registered instance to a layer.
-
You can assign registered on-premises instances to any layer type.
-
You can assign registered Amazon EC2 instances only to custom layers.
-
You cannot use this action with instances that were created with AWS OpsWorks Stacks.
Required Permissions: To use this action, an AWS Identity and Access Management (IAM) user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
Implementations
impl<C, M, R> AssignInstance<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AssignInstance<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AssignInstanceOutput, SdkError<AssignInstanceError>> where
R::Policy: SmithyRetryPolicy<AssignInstanceInputOperationOutputAlias, AssignInstanceOutput, AssignInstanceError, AssignInstanceInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AssignInstanceOutput, SdkError<AssignInstanceError>> where
R::Policy: SmithyRetryPolicy<AssignInstanceInputOperationOutputAlias, AssignInstanceOutput, AssignInstanceError, AssignInstanceInputOperationRetryAlias>,
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 instance ID.
The instance ID.
Appends an item to LayerIds
.
To override the contents of this collection use set_layer_ids
.
The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.
The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for AssignInstance<C, M, R>
impl<C, M, R> Send for AssignInstance<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AssignInstance<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AssignInstance<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for AssignInstance<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