aws_sdk_databasemigration/client/apply_pending_maintenance_action.rs
// 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:
/// - [`replication_instance_arn(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::replication_instance_arn) / [`set_replication_instance_arn(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_replication_instance_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to.</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>os-upgrade</code>, <code>system-update</code>, <code>db-upgrade</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. You can't undo an opt-in request of type <code>immediate</code>.</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>The DMS resource that the pending maintenance action will be applied to.</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())
}
}