aws_sdk_lightsail/client/delete_instance.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DeleteInstance`](crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`instance_name(impl Into<String>)`](crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder::instance_name) / [`set_instance_name(Option<String>)`](crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder::set_instance_name):<br>required: **true**<br><p>The name of the instance to delete.</p><br>
7 /// - [`force_delete_add_ons(bool)`](crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder::force_delete_add_ons) / [`set_force_delete_add_ons(Option<bool>)`](crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder::set_force_delete_add_ons):<br>required: **false**<br><p>A Boolean value to indicate whether to delete all add-ons for the instance.</p><br>
8 /// - On success, responds with [`DeleteInstanceOutput`](crate::operation::delete_instance::DeleteInstanceOutput) with field(s):
9 /// - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_instance::DeleteInstanceOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10 /// - On failure, responds with [`SdkError<DeleteInstanceError>`](crate::operation::delete_instance::DeleteInstanceError)
11 pub fn delete_instance(&self) -> crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder {
12 crate::operation::delete_instance::builders::DeleteInstanceFluentBuilder::new(self.handle.clone())
13 }
14}