aws-sdk-lightsail 1.107.0

AWS SDK for Amazon Lightsail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`EnableAddOn`](crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`EnableAddOnOutput`](crate::operation::enable_add_on::EnableAddOnOutput) with field(s):
    ///   - [`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>
    /// - On failure, responds with [`SdkError<EnableAddOnError>`](crate::operation::enable_add_on::EnableAddOnError)
    pub fn enable_add_on(&self) -> crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder {
        crate::operation::enable_add_on::builders::EnableAddOnFluentBuilder::new(self.handle.clone())
    }
}