Amazon.OpsWorksCM.AmazonOpsWorksCMClient.StartMaintenance C# (CSharp) Méthode

StartMaintenance() public méthode

Manually starts server maintenance. This command can be useful if an earlier maintenance attempt failed, and the underlying cause of maintenance failure has been resolved. The server will switch to UNDER_MAINTENANCE state, while maintenace is in progress.

Maintenace can only be started for HEALTHY and UNHEALTHY servers. A InvalidStateException is thrown otherwise. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are invalid.

/// The resource is in a state that does not allow you to perform a specified action. /// /// The requested resource does not exist, or access was denied. /// /// One or more of the provided request parameters are not valid. ///
public StartMaintenance ( StartMaintenanceRequest request ) : StartMaintenanceResponse
request Amazon.OpsWorksCM.Model.StartMaintenanceRequest Container for the necessary parameters to execute the StartMaintenance service method.
Résultat Amazon.OpsWorksCM.Model.StartMaintenanceResponse
        public StartMaintenanceResponse StartMaintenance(StartMaintenanceRequest request)
        {
            var marshaller = new StartMaintenanceRequestMarshaller();
            var unmarshaller = StartMaintenanceResponseUnmarshaller.Instance;

            return Invoke<StartMaintenanceRequest,StartMaintenanceResponse>(request, marshaller, unmarshaller);
        }