AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Applies a pending maintenance action to a resource (for example, to a DB instance).

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ApplyPendingMaintenanceActionAsync.

Namespace: Amazon.Neptune
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z

Syntax

C#
public abstract ApplyPendingMaintenanceActionResponse ApplyPendingMaintenanceAction(
         ApplyPendingMaintenanceActionRequest request
)
Parameters
request
Type: Amazon.Neptune.Model.ApplyPendingMaintenanceActionRequest

Container for the necessary parameters to execute the ApplyPendingMaintenanceAction service method.

Return Value
The response from the ApplyPendingMaintenanceAction service method, as returned by Neptune.

Exceptions

ExceptionCondition
ResourceNotFoundException The specified resource ID was not found.

Examples

This example immediately applies a pending system update to a DB instance.

To apply a pending maintenance action


var response = client.ApplyPendingMaintenanceAction(new ApplyPendingMaintenanceActionRequest 
{
    ApplyAction = "system-update",
    OptInType = "immediate",
    ResourceIdentifier = "arn:aws:rds:us-east-1:992648334831:db:mymysqlinstance"
});

ResourcePendingMaintenanceActions resourcePendingMaintenanceActions = response.ResourcePendingMaintenanceActions;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also