aws_sdk_lightsail/client/
disable_add_on.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 [`DisableAddOn`](crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`add_on_type(AddOnType)`](crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder::add_on_type) / [`set_add_on_type(Option<AddOnType>)`](crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder::set_add_on_type):<br>required: **true**<br><p>The add-on type to disable.</p><br>
7    ///   - [`resource_name(impl Into<String>)`](crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder::resource_name) / [`set_resource_name(Option<String>)`](crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder::set_resource_name):<br>required: **true**<br><p>The name of the source resource for which to disable the add-on.</p><br>
8    /// - On success, responds with [`DisableAddOnOutput`](crate::operation::disable_add_on::DisableAddOnOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::disable_add_on::DisableAddOnOutput::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<DisableAddOnError>`](crate::operation::disable_add_on::DisableAddOnError)
11    pub fn disable_add_on(&self) -> crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder {
12        crate::operation::disable_add_on::builders::DisableAddOnFluentBuilder::new(self.handle.clone())
13    }
14}