public void DescribeFlowLogsMarshallTest() { var operation = service_model.FindOperation("DescribeFlowLogs"); var request = InstantiateClassGenerator.Execute<DescribeFlowLogsRequest>(); var marshaller = new DescribeFlowLogsRequestMarshaller(); 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 = DescribeFlowLogsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeFlowLogsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Describes one or more flow logs. To view the information in your flow logs (the log /// streams for the network interfaces), you must use the CloudWatch Logs console or the /// CloudWatch Logs API. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowLogs service method.</param> /// /// <returns>The response from the DescribeFlowLogs service method, as returned by EC2.</returns> public DescribeFlowLogsResponse DescribeFlowLogs(DescribeFlowLogsRequest request) { var marshaller = new DescribeFlowLogsRequestMarshaller(); var unmarshaller = DescribeFlowLogsResponseUnmarshaller.Instance; return Invoke<DescribeFlowLogsRequest,DescribeFlowLogsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeFlowLogs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeFlowLogs 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<DescribeFlowLogsResponse> DescribeFlowLogsAsync(DescribeFlowLogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeFlowLogsRequestMarshaller(); var unmarshaller = DescribeFlowLogsResponseUnmarshaller.Instance; return InvokeAsync<DescribeFlowLogsRequest,DescribeFlowLogsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DescribeFlowLogs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeFlowLogs 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 EndDescribeFlowLogs /// operation.</returns> public IAsyncResult BeginDescribeFlowLogs(DescribeFlowLogsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeFlowLogsRequestMarshaller(); var unmarshaller = DescribeFlowLogsResponseUnmarshaller.Instance; return BeginInvoke<DescribeFlowLogsRequest>(request, marshaller, unmarshaller, callback, state); }