public void DeleteEvaluationResultsMarshallTest() { var request = InstantiateClassGenerator.Execute <DeleteEvaluationResultsRequest>(); var marshaller = new DeleteEvaluationResultsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DeleteEvaluationResultsRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteEvaluationResults").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DeleteEvaluationResultsResponseUnmarshaller.Instance.Unmarshall(context) as DeleteEvaluationResultsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void DeleteEvaluationResultsMarshallTest() { var request = InstantiateClassGenerator.Execute<DeleteEvaluationResultsRequest>(); var marshaller = new DeleteEvaluationResultsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<DeleteEvaluationResultsRequest>(request,jsonRequest); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteEvaluationResults").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DeleteEvaluationResultsResponseUnmarshaller.Instance.Unmarshall(context) as DeleteEvaluationResultsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Deletes the evaluation results for the specified Config rule. You can specify one /// Config rule per request. After you delete the evaluation results, you can call the /// <a>StartConfigRulesEvaluation</a> API to start evaluating your AWS resources against /// the rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteEvaluationResults service method.</param> /// /// <returns>The response from the DeleteEvaluationResults service method, as returned by ConfigService.</returns> /// <exception cref="Amazon.ConfigService.Model.NoSuchConfigRuleException"> /// One or more AWS Config rules in the request are invalid. Verify that the rule names /// are correct and try again. /// </exception> /// <exception cref="Amazon.ConfigService.Model.ResourceInUseException"> /// The rule is currently being deleted or the rule is deleting your evaluation results. /// Try your request again later. /// </exception> public DeleteEvaluationResultsResponse DeleteEvaluationResults(DeleteEvaluationResultsRequest request) { var marshaller = new DeleteEvaluationResultsRequestMarshaller(); var unmarshaller = DeleteEvaluationResultsResponseUnmarshaller.Instance; return Invoke<DeleteEvaluationResultsRequest,DeleteEvaluationResultsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteEvaluationResults operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteEvaluationResults 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<DeleteEvaluationResultsResponse> DeleteEvaluationResultsAsync(DeleteEvaluationResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteEvaluationResultsRequestMarshaller(); var unmarshaller = DeleteEvaluationResultsResponseUnmarshaller.Instance; return InvokeAsync<DeleteEvaluationResultsRequest,DeleteEvaluationResultsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteEvaluationResults operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteEvaluationResults operation on AmazonConfigServiceClient.</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 EndDeleteEvaluationResults /// operation.</returns> public IAsyncResult BeginDeleteEvaluationResults(DeleteEvaluationResultsRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteEvaluationResultsRequestMarshaller(); var unmarshaller = DeleteEvaluationResultsResponseUnmarshaller.Instance; return BeginInvoke<DeleteEvaluationResultsRequest>(request, marshaller, unmarshaller, callback, state); }