IAsyncResult invokeDescribeEventSubscriptions(DescribeEventSubscriptionsRequest describeEventSubscriptionsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeEventSubscriptionsRequestMarshaller().Marshall(describeEventSubscriptionsRequest); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Lists all the subscription descriptions for a customer account. The description for /// a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, /// CreationTime, and Status. /// /// /// <para> /// If you specify a SubscriptionName, lists the description for that subscription. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeEventSubscriptions service method.</param> /// /// <returns>The response from the DescribeEventSubscriptions service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.SubscriptionNotFoundException"> /// The subscription name does not exist. /// </exception> public DescribeEventSubscriptionsResponse DescribeEventSubscriptions(DescribeEventSubscriptionsRequest request) { var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.Instance; return Invoke<DescribeEventSubscriptionsRequest,DescribeEventSubscriptionsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeEventSubscriptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEventSubscriptions 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<DescribeEventSubscriptionsResponse> DescribeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeEventSubscriptionsRequest,DescribeEventSubscriptionsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DescribeEventSubscriptions operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.DescribeEventSubscriptions"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEventSubscriptions 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<DescribeEventSubscriptionsResponse> DescribeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeEventSubscriptionsRequest, DescribeEventSubscriptionsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DescribeEventSubscriptionsMarshallTest() { var operation = service_model.FindOperation("DescribeEventSubscriptions"); var request = InstantiateClassGenerator.Execute<DescribeEventSubscriptionsRequest>(); var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); 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 = DescribeEventSubscriptionsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEventSubscriptionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeEventSubscriptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEventSubscriptions 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 EndDescribeEventSubscriptions /// operation.</returns> public IAsyncResult BeginDescribeEventSubscriptions(DescribeEventSubscriptionsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.Instance; return BeginInvoke<DescribeEventSubscriptionsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Lists descriptions of all the Amazon Redshift event notifications subscription for a customer account. If you specify a subscription /// name, lists the description for that subscription. </para> /// </summary> /// /// <param name="describeEventSubscriptionsRequest">Container for the necessary parameters to execute the DescribeEventSubscriptions service /// method on AmazonRedshift.</param> /// /// <returns>The response from the DescribeEventSubscriptions service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.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<DescribeEventSubscriptionsResponse> DescribeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest describeEventSubscriptionsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeEventSubscriptionsRequest, DescribeEventSubscriptionsResponse>(describeEventSubscriptionsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
IAsyncResult invokeDescribeEventSubscriptions(DescribeEventSubscriptionsRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DescribeEventSubscriptionsRequestMarshaller(); var unmarshaller = DescribeEventSubscriptionsResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }