/// <summary> /// Initiates the asynchronous execution of the RemoveSourceIdentifierFromSubscription operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription 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<RemoveSourceIdentifierFromSubscriptionResponse> RemoveSourceIdentifierFromSubscriptionAsync(RemoveSourceIdentifierFromSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller(); var unmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.Instance; return InvokeAsync<RemoveSourceIdentifierFromSubscriptionRequest,RemoveSourceIdentifierFromSubscriptionResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeRemoveSourceIdentifierFromSubscription(RemoveSourceIdentifierFromSubscriptionRequest removeSourceIdentifierFromSubscriptionRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller().Marshall(removeSourceIdentifierFromSubscriptionRequest); var unmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Removes a source identifier from an existing RDS event notification subscription. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription service method.</param> /// /// <returns>The response from the RemoveSourceIdentifierFromSubscription service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.SourceNotFoundException"> /// The requested source could not be found. /// </exception> /// <exception cref="Amazon.RDS.Model.SubscriptionNotFoundException"> /// The subscription name does not exist. /// </exception> public RemoveSourceIdentifierFromSubscriptionResponse RemoveSourceIdentifierFromSubscription(RemoveSourceIdentifierFromSubscriptionRequest request) { var marshaller = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller(); var unmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.Instance; return Invoke<RemoveSourceIdentifierFromSubscriptionRequest,RemoveSourceIdentifierFromSubscriptionResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RemoveSourceIdentifierFromSubscription operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.RemoveSourceIdentifierFromSubscription"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription 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<RemoveSourceIdentifierFromSubscriptionResponse> RemoveSourceIdentifierFromSubscriptionAsync(RemoveSourceIdentifierFromSubscriptionRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller(); var unmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RemoveSourceIdentifierFromSubscriptionRequest, RemoveSourceIdentifierFromSubscriptionResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void RemoveSourceIdentifierFromSubscriptionMarshallTest() { var operation = service_model.FindOperation("RemoveSourceIdentifierFromSubscription"); var request = InstantiateClassGenerator.Execute<RemoveSourceIdentifierFromSubscriptionRequest>(); var marshaller = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller(); 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 = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.Instance.Unmarshall(context) as RemoveSourceIdentifierFromSubscriptionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Removes a source identifier from an existing RDS event notification subscription.</para> /// </summary> /// /// <param name="removeSourceIdentifierFromSubscriptionRequest">Container for the necessary parameters to execute the /// RemoveSourceIdentifierFromSubscription service method on AmazonRDS.</param> /// /// <returns>The response from the RemoveSourceIdentifierFromSubscription service method, as returned by AmazonRDS.</returns> /// /// <exception cref="T:Amazon.RDS.Model.SourceNotFoundException" /> /// <exception cref="T:Amazon.RDS.Model.SubscriptionNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<RemoveSourceIdentifierFromSubscriptionResponse> RemoveSourceIdentifierFromSubscriptionAsync(RemoveSourceIdentifierFromSubscriptionRequest removeSourceIdentifierFromSubscriptionRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller(); var unmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RemoveSourceIdentifierFromSubscriptionRequest, RemoveSourceIdentifierFromSubscriptionResponse>(removeSourceIdentifierFromSubscriptionRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the RemoveSourceIdentifierFromSubscription operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription 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 EndRemoveSourceIdentifierFromSubscription /// operation.</returns> public IAsyncResult BeginRemoveSourceIdentifierFromSubscription(RemoveSourceIdentifierFromSubscriptionRequest request, AsyncCallback callback, object state) { var marshaller = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller(); var unmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.Instance; return BeginInvoke<RemoveSourceIdentifierFromSubscriptionRequest>(request, marshaller, unmarshaller, callback, state); }