/// <summary> /// <para> Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with /// ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS /// instance during which the RDS instance status is set to rebooting. A DBInstance event is created when the reboot is completed. </para> /// </summary> /// /// <param name="rebootDBInstanceRequest">Container for the necessary parameters to execute the RebootDBInstance service method on /// AmazonRDS.</param> /// /// <returns>The response from the RebootDBInstance service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBInstanceNotFoundException"/> /// <exception cref="InvalidDBInstanceStateException"/> public RebootDBInstanceResponse RebootDBInstance(RebootDBInstanceRequest rebootDBInstanceRequest) { IRequest <RebootDBInstanceRequest> request = new RebootDBInstanceRequestMarshaller().Marshall(rebootDBInstanceRequest); RebootDBInstanceResponse response = Invoke <RebootDBInstanceRequest, RebootDBInstanceResponse> (request, this.signer, RebootDBInstanceResponseUnmarshaller.GetInstance()); return(response); }
public void RebootDBInstanceMarshallTest() { var operation = service_model.FindOperation("RebootDBInstance"); var request = InstantiateClassGenerator.Execute <RebootDBInstanceRequest>(); var marshaller = new RebootDBInstanceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = RebootDBInstanceResponseUnmarshaller.Instance.Unmarshall(context) as RebootDBInstanceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeRebootDBInstance(RebootDBInstanceRequest rebootDBInstanceRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RebootDBInstanceRequestMarshaller().Marshall(rebootDBInstanceRequest); var unmarshaller = RebootDBInstanceResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the RebootDBInstance operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RebootDBInstance operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<RebootDBInstanceResponse> RebootDBInstanceAsync(RebootDBInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RebootDBInstanceRequestMarshaller(); var unmarshaller = RebootDBInstanceResponseUnmarshaller.Instance; return InvokeAsync<RebootDBInstanceRequest,RebootDBInstanceResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Rebooting a DB instance restarts the database engine service. A reboot also applies /// to the DB instance any modifications to the associated DB parameter group that were /// pending. Rebooting a DB instance results in a momentary outage of the instance, during /// which the DB instance status is set to rebooting. If the RDS instance is configured /// for MultiAZ, it is possible that the reboot will be conducted through a failover. /// An Amazon RDS event is created when the reboot is completed. /// /// /// <para> /// If your DB instance is deployed in multiple Availability Zones, you can force a failover /// from one AZ to the other during the reboot. You might force a failover to test the /// availability of your DB instance deployment or to restore operations to the original /// AZ after a failover occurs. /// </para> /// /// <para> /// The time required to reboot is a function of the specific database engine's crash /// recovery process. To improve the reboot time, we recommend that you reduce database /// activities as much as possible during the reboot process to reduce rollback activity /// for in-transit transactions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RebootDBInstance service method.</param> /// /// <returns>The response from the RebootDBInstance service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.DBInstanceNotFoundException"> /// <i>DBInstanceIdentifier</i> does not refer to an existing DB instance. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBInstanceStateException"> /// The specified DB instance is not in the <i>available</i> state. /// </exception> public RebootDBInstanceResponse RebootDBInstance(RebootDBInstanceRequest request) { var marshaller = new RebootDBInstanceRequestMarshaller(); var unmarshaller = RebootDBInstanceResponseUnmarshaller.Instance; return Invoke<RebootDBInstanceRequest,RebootDBInstanceResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RebootDBInstance operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.RebootDBInstance"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RebootDBInstance operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<RebootDBInstanceResponse> RebootDBInstanceAsync(RebootDBInstanceRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RebootDBInstanceRequestMarshaller(); var unmarshaller = RebootDBInstanceResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RebootDBInstanceRequest, RebootDBInstanceResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void RebootDBInstanceMarshallTest() { var operation = service_model.FindOperation("RebootDBInstance"); var request = InstantiateClassGenerator.Execute<RebootDBInstanceRequest>(); var marshaller = new RebootDBInstanceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = RebootDBInstanceResponseUnmarshaller.Instance.Unmarshall(context) as RebootDBInstanceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the /// associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB /// instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through /// a failover. An Amazon RDS event is created when the reboot is completed. </para> <para> If your DB instance is deployed in multiple /// Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability /// of your DB instance deployment or to restore operations to the original AZ after a failover occurs. </para> <para> The time required to /// reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce /// database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions. </para> /// </summary> /// /// <param name="rebootDBInstanceRequest">Container for the necessary parameters to execute the RebootDBInstance service method on /// AmazonRDS.</param> /// /// <returns>The response from the RebootDBInstance service method, as returned by AmazonRDS.</returns> /// /// <exception cref="T:Amazon.RDS.Model.DBInstanceNotFoundException" /> /// <exception cref="T:Amazon.RDS.Model.InvalidDBInstanceStateException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<RebootDBInstanceResponse> RebootDBInstanceAsync(RebootDBInstanceRequest rebootDBInstanceRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RebootDBInstanceRequestMarshaller(); var unmarshaller = RebootDBInstanceResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RebootDBInstanceRequest, RebootDBInstanceResponse>(rebootDBInstanceRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the RebootDBInstance operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RebootDBInstance operation on AmazonRDSClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRebootDBInstance /// operation.</returns> public IAsyncResult BeginRebootDBInstance(RebootDBInstanceRequest request, AsyncCallback callback, object state) { var marshaller = new RebootDBInstanceRequestMarshaller(); var unmarshaller = RebootDBInstanceResponseUnmarshaller.Instance; return BeginInvoke<RebootDBInstanceRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with /// ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS /// instance during which the RDS instance status is set to rebooting. A DBInstance event is created when the reboot is completed. </para> /// </summary> /// /// <param name="rebootDBInstanceRequest">Container for the necessary parameters to execute the RebootDBInstance service method on /// AmazonRDS.</param> /// /// <returns>The response from the RebootDBInstance service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBInstanceNotFoundException"/> /// <exception cref="InvalidDBInstanceStateException"/> public RebootDBInstanceResponse RebootDBInstance(RebootDBInstanceRequest rebootDBInstanceRequest) { IRequest<RebootDBInstanceRequest> request = new RebootDBInstanceRequestMarshaller().Marshall(rebootDBInstanceRequest); RebootDBInstanceResponse response = Invoke<RebootDBInstanceRequest, RebootDBInstanceResponse> (request, this.signer, RebootDBInstanceResponseUnmarshaller.GetInstance()); return response; }