/// <summary> /// Initiates the asynchronous execution of the DescribeRouteTables operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeRouteTables 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<DescribeRouteTablesResponse> DescribeRouteTablesAsync(DescribeRouteTablesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeRouteTablesRequestMarshaller(); var unmarshaller = DescribeRouteTablesResponseUnmarshaller.Instance; return InvokeAsync<DescribeRouteTablesRequest,DescribeRouteTablesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DescribeRouteTablesMarshallTest() { var operation = service_model.FindOperation("DescribeRouteTables"); var request = InstantiateClassGenerator.Execute<DescribeRouteTablesRequest>(); var marshaller = new DescribeRouteTablesRequestMarshaller(); 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(); UnmarshallerContext context = new EC2UnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, new WebResponseData()); var response = DescribeRouteTablesResponseUnmarshaller.Instance.Unmarshall(context) as DescribeRouteTablesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Describes one or more of your route tables. /// /// /// <para> /// Each subnet in your VPC must be associated with a route table. If a subnet is not /// explicitly associated with any route table, it is implicitly associated with the main /// route table. This command does not return the subnet ID for implicit associations. /// </para> /// /// <para> /// For more information about route tables, see <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route /// Tables</a> in the <i>Amazon Virtual Private Cloud User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeRouteTables service method.</param> /// /// <returns>The response from the DescribeRouteTables service method, as returned by EC2.</returns> public DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest request) { var marshaller = new DescribeRouteTablesRequestMarshaller(); var unmarshaller = DescribeRouteTablesResponseUnmarshaller.Instance; return Invoke<DescribeRouteTablesRequest,DescribeRouteTablesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeRouteTables operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeRouteTables operation on AmazonEC2Client.</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 EndDescribeRouteTables /// operation.</returns> public IAsyncResult BeginDescribeRouteTables(DescribeRouteTablesRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeRouteTablesRequestMarshaller(); var unmarshaller = DescribeRouteTablesResponseUnmarshaller.Instance; return BeginInvoke<DescribeRouteTablesRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDescribeRouteTables(DescribeRouteTablesRequest describeRouteTablesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeRouteTablesRequestMarshaller().Marshall(describeRouteTablesRequest); var unmarshaller = DescribeRouteTablesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Describes one or more of your route tables.</para> <para>For more information about route tables, see <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the <i>Amazon Virtual Private Cloud /// User Guide</i> .</para> /// </summary> /// /// <param name="describeRouteTablesRequest">Container for the necessary parameters to execute the DescribeRouteTables service method on /// AmazonEC2.</param> /// /// <returns>The response from the DescribeRouteTables service method, as returned by AmazonEC2.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DescribeRouteTablesResponse> DescribeRouteTablesAsync(DescribeRouteTablesRequest describeRouteTablesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeRouteTablesRequestMarshaller(); var unmarshaller = DescribeRouteTablesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeRouteTablesRequest, DescribeRouteTablesResponse>(describeRouteTablesRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DescribeRouteTables operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DescribeRouteTables"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeRouteTables 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 async Task<DescribeRouteTablesResponse> DescribeRouteTablesAsync(DescribeRouteTablesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeRouteTablesRequestMarshaller(); var unmarshaller = DescribeRouteTablesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeRouteTablesRequest, DescribeRouteTablesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }