public void CreateFlowLogsMarshallTest() { var operation = service_model.FindOperation("CreateFlowLogs"); var request = InstantiateClassGenerator.Execute<CreateFlowLogsRequest>(); var marshaller = new CreateFlowLogsRequestMarshaller(); 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 = CreateFlowLogsResponseUnmarshaller.Instance.Unmarshall(context) as CreateFlowLogsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Creates one or more flow logs to capture IP traffic for a specific network interface, /// subnet, or VPC. Flow logs are delivered to a specified log group in Amazon CloudWatch /// Logs. If you specify a VPC or subnet in the request, a log stream is created in CloudWatch /// Logs for each network interface in the subnet or VPC. Log streams can include information /// about accepted and rejected traffic to a network interface. You can view the data /// in your log streams using Amazon CloudWatch Logs. /// /// /// <para> /// In your request, you must also specify an IAM role that has permission to publish /// logs to CloudWatch Logs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlowLogs service method.</param> /// /// <returns>The response from the CreateFlowLogs service method, as returned by EC2.</returns> public CreateFlowLogsResponse CreateFlowLogs(CreateFlowLogsRequest request) { var marshaller = new CreateFlowLogsRequestMarshaller(); var unmarshaller = CreateFlowLogsResponseUnmarshaller.Instance; return Invoke<CreateFlowLogsRequest,CreateFlowLogsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the CreateFlowLogs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFlowLogs 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<CreateFlowLogsResponse> CreateFlowLogsAsync(CreateFlowLogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateFlowLogsRequestMarshaller(); var unmarshaller = CreateFlowLogsResponseUnmarshaller.Instance; return InvokeAsync<CreateFlowLogsRequest,CreateFlowLogsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the CreateFlowLogs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFlowLogs 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 EndCreateFlowLogs /// operation.</returns> public IAsyncResult BeginCreateFlowLogs(CreateFlowLogsRequest request, AsyncCallback callback, object state) { var marshaller = new CreateFlowLogsRequestMarshaller(); var unmarshaller = CreateFlowLogsResponseUnmarshaller.Instance; return BeginInvoke<CreateFlowLogsRequest>(request, marshaller, unmarshaller, callback, state); }