pub struct ApplyPendingMaintenanceAction { /* private fields */ }
Expand description
Fluent builder constructing a request to ApplyPendingMaintenanceAction
.
Applies a pending maintenance action to a resource (for example, to a replication instance).
Implementations§
source§impl ApplyPendingMaintenanceAction
impl ApplyPendingMaintenanceAction
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ApplyPendingMaintenanceAction, AwsResponseRetryClassifier>, SdkError<ApplyPendingMaintenanceActionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ApplyPendingMaintenanceAction, AwsResponseRetryClassifier>, SdkError<ApplyPendingMaintenanceActionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ApplyPendingMaintenanceActionOutput, SdkError<ApplyPendingMaintenanceActionError>>
pub async fn send(
self
) -> Result<ApplyPendingMaintenanceActionOutput, SdkError<ApplyPendingMaintenanceActionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn replication_instance_arn(self, input: impl Into<String>) -> Self
pub fn replication_instance_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to.
sourcepub fn set_replication_instance_arn(self, input: Option<String>) -> Self
pub fn set_replication_instance_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to.
sourcepub fn apply_action(self, input: impl Into<String>) -> Self
pub fn apply_action(self, input: impl Into<String>) -> Self
The pending maintenance action to apply to this resource.
Valid values: os-upgrade
, system-update
, db-upgrade
sourcepub fn set_apply_action(self, input: Option<String>) -> Self
pub fn set_apply_action(self, input: Option<String>) -> Self
The pending maintenance action to apply to this resource.
Valid values: os-upgrade
, system-update
, db-upgrade
sourcepub fn opt_in_type(self, input: impl Into<String>) -> Self
pub fn opt_in_type(self, input: impl Into<String>) -> Self
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 immediate
.
Valid values:
-
immediate
- Apply the maintenance action immediately. -
next-maintenance
- Apply the maintenance action during the next maintenance window for the resource. -
undo-opt-in
- Cancel any existingnext-maintenance
opt-in requests.
sourcepub fn set_opt_in_type(self, input: Option<String>) -> Self
pub fn set_opt_in_type(self, input: Option<String>) -> Self
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 immediate
.
Valid values:
-
immediate
- Apply the maintenance action immediately. -
next-maintenance
- Apply the maintenance action during the next maintenance window for the resource. -
undo-opt-in
- Cancel any existingnext-maintenance
opt-in requests.
Trait Implementations§
source§impl Clone for ApplyPendingMaintenanceAction
impl Clone for ApplyPendingMaintenanceAction
source§fn clone(&self) -> ApplyPendingMaintenanceAction
fn clone(&self) -> ApplyPendingMaintenanceAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more