IAsyncResult invokeModifyEventSubscription(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ModifyEventSubscriptionRequestMarshaller().Marshall(modifyEventSubscriptionRequest); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Modifies an existing RDS event notification subscription. Note that you cannot modify /// the source identifiers using this call; to change source identifiers for a subscription, /// use the <a>AddSourceIdentifierToSubscription</a> and <a>RemoveSourceIdentifierFromSubscription</a> /// calls. /// /// /// <para> /// You can see a list of the event categories for a given SourceType in the <a href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html">Events</a> /// topic in the Amazon RDS User Guide or by using the <b>DescribeEventCategories</b> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyEventSubscription service method.</param> /// /// <returns>The response from the ModifyEventSubscription service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.EventSubscriptionQuotaExceededException"> /// You have reached the maximum number of event subscriptions. /// </exception> /// <exception cref="Amazon.RDS.Model.SNSInvalidTopicException"> /// SNS has responded that there is a problem with the SND topic specified. /// </exception> /// <exception cref="Amazon.RDS.Model.SNSNoAuthorizationException"> /// You do not have permission to publish to the SNS topic ARN. /// </exception> /// <exception cref="Amazon.RDS.Model.SNSTopicArnNotFoundException"> /// The SNS topic ARN does not exist. /// </exception> /// <exception cref="Amazon.RDS.Model.SubscriptionCategoryNotFoundException"> /// The supplied category does not exist. /// </exception> /// <exception cref="Amazon.RDS.Model.SubscriptionNotFoundException"> /// The subscription name does not exist. /// </exception> public ModifyEventSubscriptionResponse ModifyEventSubscription(ModifyEventSubscriptionRequest request) { var marshaller = new ModifyEventSubscriptionRequestMarshaller(); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance; return Invoke<ModifyEventSubscriptionRequest,ModifyEventSubscriptionResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ModifyEventSubscription operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyEventSubscription 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<ModifyEventSubscriptionResponse> ModifyEventSubscriptionAsync(ModifyEventSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyEventSubscriptionRequestMarshaller(); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance; return InvokeAsync<ModifyEventSubscriptionRequest,ModifyEventSubscriptionResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ModifyEventSubscription operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.ModifyEventSubscription"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyEventSubscription 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<ModifyEventSubscriptionResponse> ModifyEventSubscriptionAsync(ModifyEventSubscriptionRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyEventSubscriptionRequestMarshaller(); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ModifyEventSubscriptionRequest, ModifyEventSubscriptionResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void ModifyEventSubscriptionMarshallTest() { var operation = service_model.FindOperation("ModifyEventSubscription"); var request = InstantiateClassGenerator.Execute<ModifyEventSubscriptionRequest>(); var marshaller = new ModifyEventSubscriptionRequestMarshaller(); 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 = ModifyEventSubscriptionResponseUnmarshaller.Instance.Unmarshall(context) as ModifyEventSubscriptionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ModifyEventSubscription operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyEventSubscription operation on AmazonRedshiftClient.</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 EndModifyEventSubscription /// operation.</returns> public IAsyncResult BeginModifyEventSubscription(ModifyEventSubscriptionRequest request, AsyncCallback callback, object state) { var marshaller = new ModifyEventSubscriptionRequestMarshaller(); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance; return BeginInvoke<ModifyEventSubscriptionRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Modifies an existing Amazon Redshift event notification subscription. </para> /// </summary> /// /// <param name="modifyEventSubscriptionRequest">Container for the necessary parameters to execute the ModifyEventSubscription service method on /// AmazonRedshift.</param> /// /// <returns>The response from the ModifyEventSubscription service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.SubscriptionCategoryNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.SubscriptionEventIdNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.SubscriptionSeverityNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.SourceNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.SNSNoAuthorizationException" /> /// <exception cref="T:Amazon.Redshift.Model.SNSTopicArnNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.SubscriptionNotFoundException" /> /// <exception cref="T:Amazon.Redshift.Model.SNSInvalidTopicException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<ModifyEventSubscriptionResponse> ModifyEventSubscriptionAsync(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyEventSubscriptionRequestMarshaller(); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ModifyEventSubscriptionRequest, ModifyEventSubscriptionResponse>(modifyEventSubscriptionRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
IAsyncResult invokeModifyEventSubscription(ModifyEventSubscriptionRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ModifyEventSubscriptionRequestMarshaller(); var unmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }