pub struct DeleteInstanceFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteInstance.
Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.
For more information, see Deleting Instances.
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 on user permissions, see Managing User Permissions.
Implementations§
source§impl DeleteInstanceFluentBuilder
impl DeleteInstanceFluentBuilder
sourcepub fn as_input(&self) -> &DeleteInstanceInputBuilder
pub fn as_input(&self) -> &DeleteInstanceInputBuilder
Access the DeleteInstance as a reference.
sourcepub async fn send(
self
) -> Result<DeleteInstanceOutput, SdkError<DeleteInstanceError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteInstanceOutput, SdkError<DeleteInstanceError, 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<DeleteInstanceOutput, DeleteInstanceError>, SdkError<DeleteInstanceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteInstanceOutput, DeleteInstanceError>, SdkError<DeleteInstanceError>>
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.
sourcepub fn delete_elastic_ip(self, input: bool) -> Self
pub fn delete_elastic_ip(self, input: bool) -> Self
Whether to delete the instance Elastic IP address.
sourcepub fn set_delete_elastic_ip(self, input: Option<bool>) -> Self
pub fn set_delete_elastic_ip(self, input: Option<bool>) -> Self
Whether to delete the instance Elastic IP address.
sourcepub fn get_delete_elastic_ip(&self) -> &Option<bool>
pub fn get_delete_elastic_ip(&self) -> &Option<bool>
Whether to delete the instance Elastic IP address.
sourcepub fn delete_volumes(self, input: bool) -> Self
pub fn delete_volumes(self, input: bool) -> Self
Whether to delete the instance's Amazon EBS volumes.
sourcepub fn set_delete_volumes(self, input: Option<bool>) -> Self
pub fn set_delete_volumes(self, input: Option<bool>) -> Self
Whether to delete the instance's Amazon EBS volumes.
sourcepub fn get_delete_volumes(&self) -> &Option<bool>
pub fn get_delete_volumes(&self) -> &Option<bool>
Whether to delete the instance's Amazon EBS volumes.
Trait Implementations§
source§impl Clone for DeleteInstanceFluentBuilder
impl Clone for DeleteInstanceFluentBuilder
source§fn clone(&self) -> DeleteInstanceFluentBuilder
fn clone(&self) -> DeleteInstanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more