aws_sdk_lightsail/client/
enable_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 [`EnableAddOn`](crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_name(impl Into<String>)`](crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder::resource_name) / [`set_resource_name(Option<String>)`](crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder::set_resource_name):<br>required: **true**<br><p>The name of the source resource for which to enable or modify the add-on.</p><br>
7    ///   - [`add_on_request(AddOnRequest)`](crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder::add_on_request) / [`set_add_on_request(Option<AddOnRequest>)`](crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder::set_add_on_request):<br>required: **true**<br><p>An array of strings representing the add-on to enable or modify.</p><br>
8    /// - On success, responds with [`EnableAddOnOutput`](crate::operation::enable_add_on::EnableAddOnOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::enable_add_on::EnableAddOnOutput::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<EnableAddOnError>`](crate::operation::enable_add_on::EnableAddOnError)
11    pub fn enable_add_on(&self) -> crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder {
12        crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder::new(self.handle.clone())
13    }
14}