aws_sdk_rds/client/
apply_pending_maintenance_action.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ApplyPendingMaintenanceAction`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_identifier(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::resource_identifier) / [`set_resource_identifier(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_resource_identifier):<br>required: **true**<br><p>The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing"> Constructing an RDS Amazon Resource Name (ARN)</a>.</p><br>
    ///   - [`apply_action(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::apply_action) / [`set_apply_action(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_apply_action):<br>required: **true**<br><p>The pending maintenance action to apply to this resource.</p> <p>Valid Values: <code>system-update</code>, <code>db-upgrade</code>, <code>hardware-maintenance</code>, <code>ca-certificate-rotation</code></p><br>
    ///   - [`opt_in_type(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::opt_in_type) / [`set_opt_in_type(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_opt_in_type):<br>required: **true**<br><p>A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type <code>immediate</code> can't be undone.</p> <p>Valid Values:</p> <ul>  <li>   <p><code>immediate</code> - Apply the maintenance action immediately.</p></li>  <li>   <p><code>next-maintenance</code> - Apply the maintenance action during the next maintenance window for the resource.</p></li>  <li>   <p><code>undo-opt-in</code> - Cancel any existing <code>next-maintenance</code> opt-in requests.</p></li> </ul><br>
    /// - On success, responds with [`ApplyPendingMaintenanceActionOutput`](crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionOutput) with field(s):
    ///   - [`resource_pending_maintenance_actions(Option<ResourcePendingMaintenanceActions>)`](crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionOutput::resource_pending_maintenance_actions): <p>Describes the pending maintenance actions for a resource.</p>
    /// - On failure, responds with [`SdkError<ApplyPendingMaintenanceActionError>`](crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError)
    pub fn apply_pending_maintenance_action(
        &self,
    ) -> crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder {
        crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::new(self.handle.clone())
    }
}