Struct aws_sdk_opsworks::operation::unassign_instance::builders::UnassignInstanceFluentBuilder
source · pub struct UnassignInstanceFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to UnassignInstance.
Unassigns a registered instance from all layers that are using the instance. The instance remains in the stack as an unassigned instance, and can be assigned to another layer as needed. You cannot use this action with instances that were created with AWS OpsWorks Stacks.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
Implementations§
source§impl UnassignInstanceFluentBuilder
impl UnassignInstanceFluentBuilder
sourcepub fn as_input(&self) -> &UnassignInstanceInputBuilder
pub fn as_input(&self) -> &UnassignInstanceInputBuilder
Access the UnassignInstance as a reference.
sourcepub async fn send(
self
) -> Result<UnassignInstanceOutput, SdkError<UnassignInstanceError, HttpResponse>>
pub async fn send( self ) -> Result<UnassignInstanceOutput, SdkError<UnassignInstanceError, HttpResponse>>
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.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UnassignInstanceOutput, UnassignInstanceError>, SdkError<UnassignInstanceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UnassignInstanceOutput, UnassignInstanceError>, SdkError<UnassignInstanceError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The instance ID.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The instance ID.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The instance ID.
Trait Implementations§
source§impl Clone for UnassignInstanceFluentBuilder
impl Clone for UnassignInstanceFluentBuilder
source§fn clone(&self) -> UnassignInstanceFluentBuilder
fn clone(&self) -> UnassignInstanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more